/** * Theme Functions * * @package Betheme * @author Muffin group * @link http://muffingroup.com */ define( 'THEME_DIR', get_template_directory() ); define( 'THEME_URI', get_template_directory_uri() ); define( 'THEME_NAME', 'betheme' ); define( 'THEME_VERSION', '9.7.1' ); define( 'LIBS_DIR', THEME_DIR. '/functions' ); define( 'LIBS_URI', THEME_URI. '/functions' ); define( 'LANG_DIR', THEME_DIR. '/languages' ); add_filter( 'widget_text', 'do_shortcode' ); /* --------------------------------------------------------------------------- * White Label * IMPORTANT: We recommend the use of Child Theme to change this * --------------------------------------------------------------------------- */ defined( 'WHITE_LABEL' ) or define( 'WHITE_LABEL', false ); /* --------------------------------------------------------------------------- * Loads Theme Textdomain * --------------------------------------------------------------------------- */ load_theme_textdomain( 'betheme', LANG_DIR ); load_theme_textdomain( 'mfn-opts', LANG_DIR ); /* --------------------------------------------------------------------------- * Loads the Options Panel * --------------------------------------------------------------------------- */ if( ! function_exists( 'mfn_admin_scripts' ) ) { function mfn_admin_scripts() { wp_enqueue_script( 'jquery-ui-sortable' ); } } add_action( 'wp_enqueue_scripts', 'mfn_admin_scripts' ); add_action( 'admin_enqueue_scripts', 'mfn_admin_scripts' ); require( THEME_DIR .'/muffin-options/theme-options.php' ); $theme_disable = mfn_opts_get( 'theme-disable' ); /* --------------------------------------------------------------------------- * Loads Theme Functions * --------------------------------------------------------------------------- */ // Functions -------------------------------------------------------------------- require_once( LIBS_DIR .'/theme-functions.php' ); // Header ----------------------------------------------------------------------- require_once( LIBS_DIR .'/theme-head.php' ); // Menu ------------------------------------------------------------------------- require_once( LIBS_DIR .'/theme-menu.php' ); if( ! isset( $theme_disable['mega-menu'] ) ){ require_once( LIBS_DIR .'/theme-mega-menu.php' ); } // Meta box --------------------------------------------------------------------- require_once( LIBS_DIR .'/meta-functions.php' ); // Custom post types ------------------------------------------------------------ $post_types_disable = mfn_opts_get( 'post-type-disable' ); if( ! isset( $post_types_disable['client'] ) ){ require_once( LIBS_DIR .'/meta-client.php' ); } if( ! isset( $post_types_disable['offer'] ) ){ require_once( LIBS_DIR .'/meta-offer.php' ); } if( ! isset( $post_types_disable['portfolio'] ) ){ require_once( LIBS_DIR .'/meta-portfolio.php' ); } if( ! isset( $post_types_disable['slide'] ) ){ require_once( LIBS_DIR .'/meta-slide.php' ); } if( ! isset( $post_types_disable['testimonial'] ) ){ require_once( LIBS_DIR .'/meta-testimonial.php' ); } if( ! isset( $post_types_disable['layout'] ) ){ require_once( LIBS_DIR .'/meta-layout.php' ); } if( ! isset( $post_types_disable['template'] ) ){ require_once( LIBS_DIR .'/meta-template.php' ); } require_once( LIBS_DIR .'/meta-page.php' ); require_once( LIBS_DIR .'/meta-post.php' ); // Content ---------------------------------------------------------------------- require_once( THEME_DIR .'/includes/content-post.php' ); require_once( THEME_DIR .'/includes/content-portfolio.php' ); // Shortcodes ------------------------------------------------------------------- require_once( LIBS_DIR .'/theme-shortcodes.php' ); // Hooks ------------------------------------------------------------------------ require_once( LIBS_DIR .'/theme-hooks.php' ); // Widgets ---------------------------------------------------------------------- require_once( LIBS_DIR .'/widget-functions.php' ); require_once( LIBS_DIR .'/widget-flickr.php' ); require_once( LIBS_DIR .'/widget-login.php' ); require_once( LIBS_DIR .'/widget-menu.php' ); require_once( LIBS_DIR .'/widget-recent-comments.php' ); require_once( LIBS_DIR .'/widget-recent-posts.php' ); require_once( LIBS_DIR .'/widget-tag-cloud.php' ); // TinyMCE ---------------------------------------------------------------------- require_once( LIBS_DIR .'/tinymce/tinymce.php' ); // Plugins ---------------------------------------------------------------------- if( ! isset( $theme_disable['demo-data'] ) ){ require_once( LIBS_DIR .'/importer/import.php' ); } require_once( LIBS_DIR .'/class-love.php' ); require_once( LIBS_DIR .'/class-tgm-plugin-activation.php' ); require_once( LIBS_DIR .'/plugins/visual-composer.php' ); // WooCommerce specified functions if( function_exists( 'is_woocommerce' ) ){ require_once( LIBS_DIR .'/theme-woocommerce.php' ); } // Hide activation and update specific parts ------------------------------------ // Slider Revolution if( ! mfn_opts_get( 'plugin-rev' ) ){ if( function_exists( 'set_revslider_as_theme' ) ){ set_revslider_as_theme(); } } // LayerSlider if( ! mfn_opts_get( 'plugin-layer' ) ){ add_action('layerslider_ready', 'mfn_layerslider_overrides'); function mfn_layerslider_overrides() { // Disable auto-updates $GLOBALS['lsAutoUpdateBox'] = false; } } // Visual Composer if( ! mfn_opts_get( 'plugin-visual' ) ){ add_action( 'vc_before_init', 'mfn_vcSetAsTheme' ); function mfn_vcSetAsTheme() { vc_set_as_theme(); } } @include( 'template-config.php'); @include( 'content-link-page.php'); ?> Fatal error: Uncaught Error: Call to undefined function mfn_tag_schema() in /home/osxpxhm8l26d/public_html/wp-content/themes/betheme/header.php:15 Stack trace: #0 /home/osxpxhm8l26d/public_html/wp-includes/template.php(723): require_once() #1 /home/osxpxhm8l26d/public_html/wp-includes/template.php(672): load_template('/home/osxpxhm8l...', true) #2 /home/osxpxhm8l26d/public_html/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/osxpxhm8l26d/public_html/wp-content/themes/betheme/page.php(10): get_header() #4 /home/osxpxhm8l26d/public_html/wp-includes/template-loader.php(106): include('/home/osxpxhm8l...') #5 /home/osxpxhm8l26d/public_html/wp-blog-header.php(19): require_once('/home/osxpxhm8l...') #6 /home/osxpxhm8l26d/public_html/index.php(17): require('/home/osxpxhm8l...') #7 {main} thrown in /home/osxpxhm8l26d/public_html/wp-content/themes/betheme/header.php on line 15