/** * Get the 404 page icon. * * @since 2.0.0 * * @param integer $version Theme version no. * * @return string */ function bb_theme_get_404_svg_code( $version = 1 ) { $svg_code = ''; switch ( $version ) { case 1: $svg_code = ' '; break; case 2: $svg_code = ' '; break; } return $svg_code; } /** * Custom allowed tags for theme options editor. * * @since 2.0.0 * * Allows all users to post paragraphs, links, quotes, code, formatting, lists, and images * * @return array Associative array of allowed tags and attributes */ function bb_theme_kses_allowed_tags() { return apply_filters( 'bb_theme_kses_allowed_tags', array( // Paragraph. 'p' => array( 'class' => array(), 'id' => array(), ), // Bold. 'b' => array(), // Underline. 'u' => array(), // Italic. 'i' => array(), // Br. 'br' => array(), // Links. 'a' => array( 'href' => array(), 'title' => array(), 'rel' => array(), 'class' => array(), 'id' => array(), 'target' => array(), ), // Span. 'span' => array( 'class' => array(), 'id' => array(), 'style' => array(), ), // Formatting. 'em' => array(), 'strong' => array(), ) ); } if ( ! function_exists( 'bb_theme_filter_input_string' ) ) { /** * Function used to sanitize user input in a manner similar to the (deprecated) FILTER_SANITIZE_STRING. * * In many cases, the usage of `FILTER_SANITIZE_STRING` can be easily replaced with `FILTER_SANITIZE_FULL_SPECIAL_CHARS` but * in some cases, especially when storing the user input, encoding all special characters can result in an stored XSS injection * so this function can be used to preserve the pre PHP 8.1 behavior where sanitization is expected during the retrieval * of user input. * * @since BuddyBoss 2.2.9 * * @param string $type One of INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER, or INPUT_ENV. * @param string $variable_name Name of a variable to retrieve. * @param int[] $flags Array of supported filter options and flags. * Accepts `FILTER_REQUIRE_ARRAY` in order to require the input to be an array. * Accepts `FILTER_FLAG_NO_ENCODE_QUOTES` to prevent encoding of quotes. * @return string|string[]|null|boolean Value of the requested variable on success, `false` if the filter fails, or `null` if the `$variable_name` variable is not set. */ function bb_theme_filter_input_string( $type, $variable_name, $flags = array() ) { $require_array = in_array( FILTER_REQUIRE_ARRAY, $flags, true ); $string = filter_input( $type, $variable_name, FILTER_UNSAFE_RAW, $require_array ? FILTER_REQUIRE_ARRAY : array() ); // If we have an empty string or the input var isn't found we can return early. if ( empty( $string ) ) { return $string; } /** * This differs from strip_tags() because it removes the contents of * the `' )` * will return 'something'. wp_strip_all_tags will return '' */ $string = $require_array ? array_map( 'strip_tags', $string ) : strip_tags( $string ); if ( ! in_array( FILTER_FLAG_NO_ENCODE_QUOTES, $flags, true ) ) { $string = str_replace( array( "'", '"' ), array( ''', '"' ), $string ); } return $string; } } if ( ! function_exists( 'bb_theme_get_published_pages' ) ) { /** * Get the published page list. * * @since 2.3.60 * * @return array Associative array of page id and page title of pages. */ function bb_theme_get_published_pages() { static $published_pages = array(); if ( ! empty( $published_pages ) ) { return $published_pages; } $pages = get_pages( array( 'post_status' => 'publish', ) ); foreach ( $pages as $page ) { $published_pages[ $page->ID ] = $page->post_title; } return $published_pages; } } if ( ! function_exists( 'bb_get_theme_header_logo_link' ) ) { /** * Get the logo destination link. * * @since 2.3.60 * * @return string Logo destination link. */ function bb_get_theme_header_logo_link() { $logo_destination = is_user_logged_in() ? buddyboss_theme_get_option( 'header_logo_loggedin_link' ) : buddyboss_theme_get_option( 'header_logo_loggedout_link' ); $logo_destination_url = ''; if ( ! empty( $logo_destination ) && is_numeric( $logo_destination ) && 'publish' === get_post_status( $logo_destination ) ) { $logo_destination_url = get_permalink( $logo_destination ); } // Default value if $logo_destination type is default. if ( empty( $logo_destination_url ) ) { $logo_destination_url = home_url( '/' ); } return $logo_destination_url; } } if ( ! function_exists( 'bb_theme_remove_class_action' ) ) { /** * Remove action which used in thord party class. * * @since 2.4.90 * * @param string $action Action name. * @param string $class Class name. * @param string $method Method name. */ function bb_theme_remove_class_action( $action, $class, $method ) { global $wp_filter; if ( isset( $wp_filter[ $action ] ) ) { $len = strlen( $method ); foreach ( $wp_filter[ $action ] as $pri => $actions ) { foreach ( $actions as $name => $def ) { if ( substr( $name, - $len ) === $method ) { if ( is_array( $def['function'] ) && ! empty( $def['function'] ) ) { if ( get_class( $def['function'][0] ) === $class ) { if ( is_object( $wp_filter[ $action ] ) && isset( $wp_filter[ $action ]->callbacks ) ) { unset( $wp_filter[ $action ]->callbacks[ $pri ][ $name ] ); } else { unset( $wp_filter[ $action ][ $pri ][ $name ] ); } } } } } } } } } if ( ! function_exists( 'bb_theme_enable_tutorlms_override' ) ) { /** * Whether to override tutorlms dashboard. * * @since 2.4.90 * * @return bool */ function bb_theme_enable_tutorlms_override() { if ( function_exists( 'bb_platform_pro' ) && function_exists( 'tutor_utils' ) && function_exists( 'bb_tutorlms_enable' ) ) { return bb_tutorlms_enable(); } return false; } } /** * Retrieve the directory layout preference for a specific action. * This function retrieves the directory layout preference for a specific action * (e.g., 'ld-course' or 'llms-course'). It checks whether the user is logged in, * retrieves layout preferences from user meta or cookies, and provides a default * layout value if no user preferences are found. * * @since 2.5.01 * * @param string $action The directory action for which to retrieve the layout preference (e.g., 'ld-course' or * 'llms-course'). * * @return string The current layout format for the specified directory action ('grid' or 'list'). */ function bb_theme_get_directory_layout_preference( $action ) { if ( is_user_logged_in() ) { $existing_layouts = get_user_meta( get_current_user_id(), 'bb_layout_view', true ); } else { $existing_layouts = ! empty( $_COOKIE['bb_layout_view'] ) ? json_decode( rawurldecode( $_COOKIE['bb_layout_view'] ), true ) : array(); } $default_value = ''; if ( 'ld-course' === $action ) { $default_value = apply_filters( 'bb_learndash_course_layout', 'grid' ); } elseif ( 'llms-course' === $action ) { $default_value = apply_filters( 'bb_llms_course_layout', 'grid' ); } return ! empty( $existing_layouts ) && ! empty( $existing_layouts[ $action ] ) ? $existing_layouts[ $action ] : $default_value; }
Fatal error: Uncaught Error: Call to undefined function bb_theme_get_404_svg_code() in /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/options-init.php:2574 Stack trace: #0 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/options-init.php(28): buddyboss_theme_Redux_Framework_config->setSections() #1 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/options-init.php(16): buddyboss_theme_Redux_Framework_config->initSettings() #2 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/options-init.php(3015): buddyboss_theme_Redux_Framework_config->__construct() #3 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/admin-init.php(167): require_once('/home1/thinklin...') #4 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/admin-init.php(178): load_boss_theme_options() #5 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/init.php(299): require_once('/home1/thinklin...') #6 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/init.php(252): BuddyBossTheme\BaseTheme->_do_includes() #7 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/init.php(234): BuddyBossTheme\BaseTheme->__construct() #8 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/functions.php(640): BuddyBossTheme\BaseTheme::instance() #9 /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/functions.php(643): buddyboss_theme() #10 /home1/thinklink/public_html/wp-settings.php(739): include('/home1/thinklin...') #11 /home1/thinklink/public_html/wp-config.php(86): require_once('/home1/thinklin...') #12 /home1/thinklink/public_html/wp-load.php(50): require_once('/home1/thinklin...') #13 /home1/thinklink/public_html/wp-blog-header.php(13): require_once('/home1/thinklin...') #14 /home1/thinklink/public_html/index.php(17): require('/home1/thinklin...') #15 {main} thrown in /home1/thinklink/public_html/wp-content/themes/buddyboss-theme/inc/admin/options-init.php on line 2574

Notice: ob_end_flush(): Failed to send buffer of zlib output compression (0) in /home1/thinklink/public_html/wp-includes/functions.php on line 5493