/** * Setup theme functions for Engrave. * * @package ThinkUpThemes */ // Setup content width if ( ! isset( $content_width ) ) $content_width = 1170; //---------------------------------------------------------------------------------- // Add Theme Options Panel & Assign Variable Values //---------------------------------------------------------------------------------- // Add Redux Framework - Credits attributable to http://reduxframework.com/ require_once (get_template_directory() . '/admin/main/framework.php'); // Add theme options to page/post meta. require_once ( get_template_directory() . '/admin/meta/meta-functions.php' ); // Load demo functions if required. if( file_exists( get_template_directory() . '/demo/functions/demo-variable.php' ) ) include get_template_directory() . '/demo/functions/demo-variable.php'; // Add Theme Options Features. require_once( get_template_directory() . '/admin/main/options/00.theme-setup.php' ); require_once( get_template_directory() . '/admin/main/options/00.variables.php' ); require_once( get_template_directory() . '/admin/main/options/01.general-settings.php' ); require_once( get_template_directory() . '/admin/main/options/02.homepage.php' ); require_once( get_template_directory() . '/admin/main/options/03.header.php' ); require_once( get_template_directory() . '/admin/main/options/04.footer.php' ); require_once( get_template_directory() . '/admin/main/options/05.blog.php' ); require_once( get_template_directory() . '/admin/main/options/06.portfolio.php' ); require_once( get_template_directory() . '/admin/main/options/07.contact-page.php' ); require_once( get_template_directory() . '/admin/main/options/08.special-pages.php' ); require_once( get_template_directory() . '/admin/main/options/09.notification-bar.php' ); require_once( get_template_directory() . '/admin/main/options/10.seo.php' ); require_once( get_template_directory() . '/admin/main/options/11.typography.php' ); require_once( get_template_directory() . '/admin/main/options/12.custom-styling.php' ); // Add widget features. include_once( get_template_directory() . '/lib/widgets/categories.php' ); include_once( get_template_directory() . '/lib/widgets/childmenu.php' ); include_once( get_template_directory() . '/lib/widgets/flickr.php' ); include_once( get_template_directory() . '/lib/widgets/popularposts.php' ); include_once( get_template_directory() . '/lib/widgets/recentcomments.php' ); include_once( get_template_directory() . '/lib/widgets/recentposts.php' ); include_once( get_template_directory() . '/lib/widgets/searchfield.php' ); include_once( get_template_directory() . '/lib/widgets/tabs.php' ); include_once( get_template_directory() . '/lib/widgets/tagscloud.php' ); include_once( get_template_directory() . '/lib/widgets/twitterfeed.php' ); // Add widget used in page builder. // include_once( get_template_directory() . '/lib/widgets_builder/calltoaction/calltoaction.php' ); include_once( get_template_directory() . '/lib/widgets_builder/carousel_blog/carousel_blog.php' ); include_once( get_template_directory() . '/lib/widgets_builder/carousel_portfolio/carousel_portfolio.php' ); include_once( get_template_directory() . '/lib/widgets_builder/heading/heading.php' ); include_once( get_template_directory() . '/lib/widgets_builder/progress_round/progress_round.php' ); include_once( get_template_directory() . '/lib/widgets_builder/services/services.php' ); // Add unlimited sidebars. require_once( get_template_directory() . '/lib/extentions/unlimited-sidebars/class.SidebarGenerator.php' ); // Add shortcodes. if( file_exists( get_template_directory() . '/lib/shortcodes/framework.php' ) ) require_once( get_template_directory() . '/lib/shortcodes/framework.php' ); // Add Upgrade Notice if( file_exists( get_template_directory() . '/lib/update/update_notice_engrave.php' ) ) require_once( get_template_directory() . '/lib/update/update_notice_engrave.php'); // Add Demo Installer if( file_exists( get_template_directory() . '/lib/demoinstaller/init.php' ) ) require_once( get_template_directory() . '/lib/demoinstaller/init.php' ); //---------------------------------------------------------------------------------- // Assign Theme Specific Functions //---------------------------------------------------------------------------------- // Setup theme features, register menus and scripts. if ( ! function_exists( 'thinkup_themesetup' ) ) { function thinkup_themesetup() { global $pagenow; // Redirect to demo installation page - Redirect removed in v1.6.1 // if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) { // wp_redirect(admin_url("themes.php?page=easint")); // Your admin page URL // } // Load required files require_once ( get_template_directory() . '/admin/meta/init.php' ); require_once ( get_template_directory() . '/lib/functions/extras.php' ); require_once ( get_template_directory() . '/lib/functions/template-tags.php' ); require_once ( get_template_directory() . '/lib/functions/util.php' ); // Register Custom Post Types require_once ( get_template_directory() . '/lib/custom_posts/portfolio/register-portfolio.php' ); // Make theme translation ready. load_theme_textdomain( 'lan-thinkupthemes', get_template_directory() . '/languages' ); // Add default theme functions. add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'post-formats', array( 'gallery', 'image', 'video', 'audio', 'status', 'quote', 'link', 'chat' ) ); add_theme_support( 'custom-background' ); // Add support for custom header $args = apply_filters( 'custom-header', array( 'height' => 200, 'width' => 1600 ) ); add_theme_support( 'custom-header', $args ); // Add WooCommerce functions. add_theme_support( 'woocommerce' ); // Register theme menu's. register_nav_menus( array( 'pre_header_menu' => 'Pre Header Menu', ) ); register_nav_menus( array( 'header_menu' => 'Primary Header Menu', ) ); register_nav_menus( array( 'sub_footer_menu' => 'Footer Menu', ) ); } } add_action( 'after_setup_theme', 'thinkup_themesetup' ); //---------------------------------------------------------------------------------- // Register Front-End Styles And Scripts //---------------------------------------------------------------------------------- function thinkup_frontscripts() { /* Add jQuery library. */ wp_enqueue_script('jquery'); // Register theme stylesheets. wp_register_style( 'responsive', get_template_directory_uri() . '/styles/style-responsive.css', '', '1.1' ); wp_register_style( 'sidebarleft', get_template_directory_uri() . '/styles/layouts/thinkup-left-sidebar.css', '', '1.1' ); wp_register_style( 'sidebarright', get_template_directory_uri() . '/styles/layouts/thinkup-right-sidebar.css', '', '1.1' ); // Add theme stylesheets. wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/lib/extentions/bootstrap/css/bootstrap.min.css', '', '2.3.2' ); wp_enqueue_style( 'prettyPhoto', get_template_directory_uri() . '/lib/extentions/prettyPhoto/css/prettyPhoto.css', '', '3.1.5' ); wp_enqueue_style( 'shortcodes', get_template_directory_uri() . '/styles/style-shortcodes.css', '', '1.1' ); wp_enqueue_style( 'style', get_stylesheet_uri(), '', '1.6.2' ); // Add Font Packages. wp_enqueue_style( 'font-awesome-min', get_template_directory_uri() . '/lib/extentions/font-awesome/css/font-awesome.min.css', '', '3.2.1' ); wp_enqueue_style( 'font-awesome-cdn', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', '', '4.1.0' ); wp_enqueue_style( 'elusive-min', get_template_directory_uri() . '/lib/extentions/elusive-icons/elusive-webfont.css', '', '2.0' ); wp_enqueue_style( 'dashicons-css', get_template_directory_uri() . '/lib/extentions/dashicons/css/dashicons.css', '', '2.0' ); // Add theme scripts wp_enqueue_script( 'prettyPhoto', ( get_template_directory_uri()."/lib/extentions/prettyPhoto/jquery.prettyPhoto.js" ), array( 'jquery' ), '3.1.5', 'true' ); wp_enqueue_script( 'frontend', get_template_directory_uri() . '/lib/scripts/main-frontend.js', array( 'jquery' ), '1.1', 'true' ); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/lib/extentions/bootstrap/js/bootstrap.js', array( 'jquery' ), '2.3.2', 'true' ); wp_enqueue_script( 'modernizr', get_template_directory_uri() . '/lib/scripts/modernizr.js', array( 'jquery' ), '2.6.2', 'true' ); wp_enqueue_script( 'waypoints', get_template_directory_uri() . '/lib/scripts/plugins/waypoints/waypoints.min.js', array( 'jquery' ), '2.0.3', 'true' ); wp_enqueue_script( 'waypoints-sticky', get_template_directory_uri() . '/lib/scripts/plugins/waypoints/waypoints-sticky.min.js', array( 'jquery' ), '2.0.3', 'true' ); // Register Retina script - Enqueued in 01.general-settings.php wp_register_script( 'retina', get_template_directory_uri() . '/lib/scripts/retina.js', array( 'jquery' ), '0.0.2', '', true ); // Add Blog scripts if ( is_blog() or is_archive() or is_page_template( 'template-blog.php' ) ) { wp_enqueue_script( 'masonry', get_template_directory_uri() . '/lib/scripts/plugins/masonry/masonry.js', array( 'jquery' ), '3.1.2', true ); wp_enqueue_script( 'imagesloaded', get_template_directory_uri() . '/lib/scripts/plugins/imagesloaded/imagesloaded.js', array( 'jquery' ), '3.1.4', true ); } // Add Portfolio styles & scripts if ( is_post_type_archive( 'portfolio' ) or is_page_template( 'template-portfolio.php' ) ) { wp_enqueue_style( 'portfolio', get_template_directory_uri() . '/styles/style-portfolio.css', '', '1.1' ); wp_enqueue_script( 'portfolio', get_template_directory_uri() . '/lib/extentions/portfolio/js/portfolio.js', array( 'jquery' ), '1.1', true ); wp_enqueue_script( 'quicksand', get_template_directory_uri() . '/lib/scripts/plugins/quicksand/jquery.quicksand.js', array( 'jquery' ), array( 'jquery' ), '1.3', true ); wp_enqueue_script( 'quicksand-scale', get_template_directory_uri() . '/lib/scripts/plugins/quicksand/jquery-animate-css-rotate-scale.js', array( 'jquery' ), array( 'jquery' ), '1.3', true ); } if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } // Add ThinkUpSlider scripts if ( is_front_page() or is_thinkuphome() ) { wp_enqueue_script( 'thinkupslider', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides.min.js', array( 'jquery' ), '1.54', 'true' ); wp_enqueue_script( 'thinkupslider-call', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides-call.js', array( 'jquery' ), '', 'true' ); } } add_action( 'wp_enqueue_scripts', 'thinkup_frontscripts', 10 ); //---------------------------------------------------------------------------------- // Register Back-End Styles And Scripts //---------------------------------------------------------------------------------- function thinkup_adminscripts() { // Load scripts only used on Engrave Setup page. if( get_current_screen()->id == 'appearance_page_easint' ) { wp_enqueue_style( 'bootstrap', '//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css', '', '' ); wp_enqueue_script( 'bootstrap', '//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js', array( 'jquery' ), '' ); } // Register theme stylesheets. wp_register_style( 'backend', get_template_directory_uri() . '/styles/backend/style-backend.css', '', 1.1 ); // Register theme scripts. wp_register_script( 'backend', get_template_directory_uri() . '/lib/scripts/main-backend.js', array( 'jquery' ), '1.1' ); wp_register_script( 'confirm', get_template_directory_uri() . '/lib/scripts/plugins/confirm/jquery.confirm.js', array( 'jquery' ), '2.3.1' ); // Add theme stylesheets. wp_enqueue_style( 'backend' ); // Add theme scripts. wp_enqueue_script( 'backend' ); wp_enqueue_script( 'confirm' ); } add_action( 'admin_enqueue_scripts', 'thinkup_adminscripts' ); //---------------------------------------------------------------------------------- // Register Shortcodes Styles And Scripts //---------------------------------------------------------------------------------- function thinkup_shortcodescripts() { // Register shortcode stylesheets wp_register_style( 'portfolio', get_template_directory_uri() . '/styles/style-portfolio.css', '', '1.1' ); // Register shortcode scripts wp_register_script( 'carouFredSel', get_template_directory_uri(). '/lib/scripts/plugins/carouFredSel/jquery.carouFredSel-6.2.1.js', array( 'jquery' ), '6.2.1', true ); wp_register_script( 'thinkupslider', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides.min.js', array( 'jquery' ), '1.54', 'true' ); wp_register_script( 'thinkupslider-call', get_template_directory_uri() . '/lib/scripts/plugins/ResponsiveSlides/responsiveslides-call.js', array( 'jquery' ), '', 'true' ); wp_register_script( 'knob', get_template_directory_uri() . '/lib/scripts/plugins/knob/jquery.knob.js', array( 'jquery' ), '1.2.8', 'false' ); // Add shortcode stylesheets wp_enqueue_style( 'portfolio' ); // Add shortcode scripts wp_enqueue_script( 'carouFredSel' ); wp_enqueue_script( 'thinkupslider' ); wp_enqueue_script( 'thinkupslider-call' ); wp_enqueue_script( 'knob' ); } add_action( 'wp_enqueue_scripts', 'thinkup_shortcodescripts', 10 ); //---------------------------------------------------------------------------------- // Register Theme Widgets //---------------------------------------------------------------------------------- function thinkup_widgets_init() { register_sidebar( array( 'name' => 'Sidebar', 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 1', 'id' => 'footer-w1', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 2', 'id' => 'footer-w2', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 3', 'id' => 'footer-w3', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 4', 'id' => 'footer-w4', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 5', 'id' => 'footer-w5', 'before_widget' => '', 'before_title' => '', ) ); register_sidebar( array( 'name' => 'Footer Widget Area 6', 'id' => 'footer-w6', 'before_widget' => '', 'before_title' => '', ) ); } add_action( 'widgets_init', 'thinkup_widgets_init' );
Fatal error: Call to undefined function thinkup_hook_header() in /restauracjaparasol/wordpress/wp-content/themes/Engrave/header.php on line 13