esc_html__( 'Descending', 'total-theme-core' ), 'asc' => esc_html__( 'Ascending', 'total-theme-core' ), ); } /** * Return border_radius choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_border_radius() { if ( function_exists( 'wpex_utl_border_radius' ) ) { return wpex_utl_border_radius(); } } /** * Return margin options for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_margin() { if ( function_exists( 'wpex_utl_margins' ) ) { return wpex_utl_margins(); } } /** * Return categories choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_categories() { $choices = array( '' => '— ' . esc_html( 'Select', 'total-theme-core' ) . ' —', ); $terms = get_terms( 'category' ); if ( $terms ) { foreach ( $terms as $term ) { $choices[ $term->term_id ] = $term->name; } } return $choices; } /** * Return intermediate_image_sizes choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_intermediate_image_sizes( $field ) { if ( isset( $field['exclude_custom'] ) ) { $sizes = array( '' => esc_html__( 'Default', 'total-theme-core' ) ); } else { $sizes = array( 'wpex-custom' => esc_html__( 'Custom', 'total-theme-core' ) ); } $get_sizes = array_keys( $this->get_intermediate_sizes() ); $sizes = $sizes + array_combine( $get_sizes, $get_sizes ); return $sizes; } /** * Return intermediate_image_sizes choices for admin form. * * @since 1.0 * * @access private * @return array */ private function get_intermediate_sizes() { if ( function_exists( 'wpex_get_thumbnail_sizes' ) ) { return wpex_get_thumbnail_sizes(); } $size = ''; global $_wp_additional_image_sizes; $sizes = array( 'full' => array( 'width' => '9999', 'height' => '9999', 'crop' => 0, ), ); $get_intermediate_image_sizes = get_intermediate_image_sizes(); // Create the full array with sizes and crop info foreach( $get_intermediate_image_sizes as $_size ) { if ( in_array( $_size, array( 'thumbnail', 'medium', 'large' ) ) ) { $sizes[ $_size ]['width'] = get_option( $_size . '_size_w' ); $sizes[ $_size ]['height'] = get_option( $_size . '_size_h' ); $sizes[ $_size ]['crop'] = (bool) get_option( $_size . '_crop' ); } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) { $sizes[ $_size ] = array( 'width' => $_wp_additional_image_sizes[ $_size ]['width'], 'height' => $_wp_additional_image_sizes[ $_size ]['height'], 'crop' => $_wp_additional_image_sizes[ $_size ]['crop'] ); } } // Get only 1 size if found if ( $size ) { if ( isset( $sizes[ $size ] ) ) { return $sizes[ $size ]; } else { return false; } } // Return sizes return $sizes; } /** * Return image_crop_locations choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_image_crop_locations() { return function_exists( 'wpex_image_crop_locations' ) ? wpex_image_crop_locations() : array(); } /** * Return image_hovers choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_image_hovers() { return function_exists( 'wpex_image_hovers' ) ? wpex_image_hovers() : array(); } /** * Return image_filters choices for admin form. * * @since 1.1.2 * * @access private * @return string */ private function choices_image_filters() { return function_exists( 'wpex_image_filters' ) ? wpex_image_filters() : array(); } /** * Return menus choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_menus() { $menus = array(); $get_menus = get_terms( 'nav_menu', array( 'hide_empty' => false, ) ); if ( ! empty( $get_menus ) ) { foreach ( $get_menus as $menu ) { $menus[$menu->term_id] = $menu->name; } } return $menus; } /** * Return posts choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_posts( $field ) { $posts = array(); $ids = new WP_Query( array( 'post_type' => $field['post_type'], 'posts_per_page' => -1, 'fields' => 'ids', 'no_found_rows' => true, ) ); if ( $ids->have_posts() ) { foreach ( $ids->posts as $post_id ) { $posts[$post_id] = get_post_field( 'post_title', $post_id, 'raw' ); } } return $posts; } /** * Return grid_columns choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_grid_columns() { return function_exists( 'wpex_grid_columns' ) ? wpex_grid_columns() : array(); } /** * Return grid_gaps choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_grid_gaps() { return function_exists( 'wpex_column_gaps' ) ? wpex_column_gaps() : array(); } /** * Return link_target choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_link_target() { return array( '_self' => esc_html__( 'Current window', 'total-theme-core' ), '_blank' => esc_html__( 'New window', 'total-theme-core' ), ); } /** * Return utl_font_size choices for admin form. * * @since 1.0 * * @access private * @return string */ private function choices_utl_font_size() { return function_exists( 'wpex_utl_font_sizes' ) ? wpex_utl_font_sizes() : array(); } }
Fatal error: Uncaught Error: Class 'TotalThemeCore\WidgetBuilder' not found in /home/ocb/public_html/wp-content/plugins/total-theme-core/inc/widgets/widget-about.php:16 Stack trace: #0 /home/ocb/public_html/wp-content/plugins/total-theme-core/inc/register-widgets.php(72): require_once() #1 /home/ocb/public_html/wp-includes/class-wp-hook.php(324): TotalThemeCore\Register_Widgets->init('') #2 /home/ocb/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home/ocb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/ocb/public_html/wp-includes/widgets.php(1870): do_action('widgets_init') #5 /home/ocb/public_html/wp-includes/class-wp-hook.php(324): wp_widgets_init('') #6 /home/ocb/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /home/ocb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home/ocb/public_html/wp-settings.php(700): do_action('init') #9 /home/ocb/public_html/wp-config.php(77): require_once('/home/ in /home/ocb/public_html/wp-content/plugins/total-theme-core/inc/widgets/widget-about.php on line 16