Пример #1
0
 static function get_options()
 {
     // Cache options
     $cache = new PLS_Cache('Theme PLS Options');
     $cache_args = array();
     if ($options = $cache->get($cache_args)) {
         self::$styles = array_merge(self::$styles, $options);
         return;
     }
     require PLS_Route::locate_blueprint_option('init.php');
     require_if_theme_supports("pls-user-options", PLS_Route::locate_blueprint_option('user.php'));
     require_if_theme_supports("pls-search-options", PLS_Route::locate_blueprint_option('search.php'));
     require_if_theme_supports("pls-color-options", PLS_Route::locate_blueprint_option('colors.php'));
     require_if_theme_supports("pls-slideshow-options", PLS_Route::locate_blueprint_option('slideshow.php'));
     require_if_theme_supports("pls-typography-options", PLS_Route::locate_blueprint_option('typography.php'));
     require_if_theme_supports("pls-header-options", PLS_Route::locate_blueprint_option('header.php'));
     require_if_theme_supports("pls-navigation-options", PLS_Route::locate_blueprint_option('navigation.php'));
     require_if_theme_supports("pls-listing-options", PLS_Route::locate_blueprint_option('listings.php'));
     require_if_theme_supports("pls-post-options", PLS_Route::locate_blueprint_option('post.php'));
     require_if_theme_supports("pls-widget-options", PLS_Route::locate_blueprint_option('widget.php'));
     require_if_theme_supports("pls-footer-options", PLS_Route::locate_blueprint_option('footer.php'));
     require_if_theme_supports("pls-css-options", PLS_Route::locate_blueprint_option('css.php'));
     // Cache options
     $cache->save(self::$styles);
 }
Пример #2
0
/**
 * Loads the core post meta box files on the 'load-post.php' action hook.  Each meta box file is only loaded if 
 * the theme declares support for the feature.
 *
 * @since 1.2.0
 * @return void
 */
function hybrid_admin_load_post_meta_boxes()
{
    /* Load the SEO post meta box. */
    require_if_theme_supports('hybrid-core-seo', trailingslashit(HYBRID_ADMIN) . 'meta-box-post-seo.php');
    /* Load the post template meta box. */
    require_if_theme_supports('hybrid-core-template-hierarchy', trailingslashit(HYBRID_ADMIN) . 'meta-box-post-template.php');
}
Пример #3
0
/**
 * Loads the core post meta box files on the 'load-post.php' action hook.  Each meta box file is only loaded if
 * the theme declares support for the feature.
 *
 * @since  1.2.0
 * @access public
 * @return void
 */
function hybrid_admin_load_post_meta_boxes()
{
    // Load the post template meta box.
    require_if_theme_supports('hybrid-core-template-hierarchy', HYBRID_ADMIN . 'meta-box-post-template.php');
    // Load the layout meta box.
    require_if_theme_supports('theme-layouts', HYBRID_ADMIN . 'meta-box-post-layout.php');
    // Load the post style meta box.
    require_once HYBRID_ADMIN . 'meta-box-post-style.php';
}
Пример #4
0
 function functions()
 {
     // required functions
     require_once locate_template('/framework/functions/get-options.php');
     require_once locate_template('/framework/functions/helpers.php');
     require_once locate_template('/framework/functions/layouts.php');
     require_once locate_template('/framework/functions/post-meta.php');
     require_once locate_template('/framework/functions/srcset-images.php');
     require_once locate_template('/framework/functions/theme-supports.php');
     // if theme supports functions
     require_if_theme_supports('inti-pagination', locate_template('/framework/functions/pagination.php'));
 }
Пример #5
0
 function functions()
 {
     // required functions
     require_once locate_template('/library/inc/functions/columns.php');
     require_once locate_template('/library/inc/functions/helpers.php');
     // optional functions
     require_once locate_template('/library/inc/functions/top-bar.php');
     require_once locate_template('/library/inc/functions/slider.php');
     // if theme supports functions
     require_if_theme_supports('reactor-breadcrumbs', locate_template('/library/inc/functions/breadcrumbs.php'));
     require_if_theme_supports('reactor-custom-login', locate_template('/library/inc/functions/custom-login.php'));
     require_if_theme_supports('reactor-page-links', locate_template('/library/inc/functions/page-links.php'));
     require_if_theme_supports('reactor-post-meta', locate_template('/library/inc/functions/post-meta.php'));
     require_if_theme_supports('reactor-tumblog-icons', locate_template('/library/inc/functions/tumblog-icons.php'));
     require_if_theme_supports('reactor-taxonomy-subnav', locate_template('/library/inc/functions/taxonomy-subnav.php'));
 }
Пример #6
0
 /**
  * Sets up theme defaults and registers support for various WordPress features.
  *
  * @author	WordPress.org
  * @since	1.0.0 - 05.02.2012
  *
  * @return	void
  */
 function the_bootstrap_setup()
 {
     $themename = 'Pirate Party Australia';
     global $content_width;
     if (!isset($content_width)) {
         $content_width = 770;
     }
     load_theme_textdomain('the-bootstrap', get_template_directory() . '/lang');
     add_theme_support('automatic-feed-links');
     add_theme_support('post-thumbnails');
     add_theme_support('post-formats', array('aside', 'chat', 'link', 'gallery', 'status', 'quote', 'image', 'video'));
     add_theme_support('tha_hooks', array('all'));
     if (version_compare(get_bloginfo('version'), '3.4', '<')) {
         // Custom Theme Options
         require_once get_template_directory() . '/inc/theme-options.php';
     } else {
         // Implement the Theme Customizer script
         require_once get_template_directory() . '/inc/theme-customizer.php';
     }
     /**
      * Custom template tags for this theme.
      */
     require_once get_template_directory() . '/inc/template-tags.php';
     /**
      * Implement the Custom Header feature
      */
     require_once get_template_directory() . '/inc/custom-header.php';
     /**
      * Custom Nav Menu handler for the Navbar.
      */
     require_once get_template_directory() . '/inc/nav-menu-walker.php';
     /**
      * Theme Hook Alliance
      */
     require_if_theme_supports('tha_hooks', get_template_directory() . '/inc/tha-theme-hooks.php');
     /**
      * Including three menu (header-menu, primary and footer-menu).
      * Primary is wrapping in a navbar containing div (wich support responsive variation)
      * Header-menu and Footer-menu are inside pills dropdown menu
      * 
      * @since	1.2.2 - 07.04.2012
      * @see		http://codex.wordpress.org/Function_Reference/register_nav_menus
      */
     register_nav_menus(array('primary_left' => __('Main Menu Left', $themename), 'primary_right' => __('Main Menu Right', $themename), 'footer' => __('Footer menu', $themename)));
 }
Пример #7
0
/**
 * Loads framework-specific customize classes.  These are classes that extend the core `WP_Customize_*`
 * classes to provide theme authors access to functionality that core doesn't handle out of the box.
 *
 * @since  3.0.0
 * @access public
 * @return void
 */
function hybrid_load_customize_classes($wp_customize)
{
    // Load customize setting classes.
    require_once HYBRID_CUSTOMIZE . 'setting-array-map.php';
    require_once HYBRID_CUSTOMIZE . 'setting-image-data.php';
    // Load customize control classes.
    require_once HYBRID_CUSTOMIZE . 'control-checkbox-multiple.php';
    require_once HYBRID_CUSTOMIZE . 'control-dropdown-terms.php';
    require_once HYBRID_CUSTOMIZE . 'control-palette.php';
    require_once HYBRID_CUSTOMIZE . 'control-radio-image.php';
    require_once HYBRID_CUSTOMIZE . 'control-select-group.php';
    require_once HYBRID_CUSTOMIZE . 'control-select-multiple.php';
    require_if_theme_supports('theme-layouts', HYBRID_CUSTOMIZE . 'control-layout.php');
    // Register JS control types.
    $wp_customize->register_control_type('Hybrid_Customize_Control_Checkbox_Multiple');
    $wp_customize->register_control_type('Hybrid_Customize_Control_Palette');
    $wp_customize->register_control_type('Hybrid_Customize_Control_Radio_Image');
    $wp_customize->register_control_type('Hybrid_Customize_Control_Select_Group');
    $wp_customize->register_control_type('Hybrid_Customize_Control_Select_Multiple');
}
Пример #8
0
require_once XF_THEME_DIR . '/lib/xtreme-theme-router.php';
require_once XF_THEME_DIR . '/lib/xtreme-template-loader.php';
require_once XF_THEME_DIR . '/lib/xtreme-template-functions.php';
require_once XF_THEME_DIR . '/lib/xtreme-navigation.php';
require_once XF_THEME_DIR . '/lib/xtreme-post-functions.php';
require_once XF_THEME_DIR . '/lib/xtreme-image-functions.php';
require_once XF_THEME_DIR . '/lib/xtreme-comment-functions.php';
require_once XF_THEME_DIR . '/lib/xtreme-javascripts.php';
require_once XF_THEME_DIR . '/lib/xtreme-widget-manager.php';
require_once XF_THEME_DIR . '/lib/xtreme-3rd-party-fixes.php';
if (is_admin()) {
    require_once XF_ADMIN_DIR . '/includes/xtreme-backend-functions.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-template-finder.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-options.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-metaboxes.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-metaboxes-default.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-metaboxes-layout.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-dialogs.php';
    require_once XF_ADMIN_DIR . '/includes/xtreme-github-updater.php';
    require_once XF_ADMIN_DIR . '/xtreme-admin-functions.php';
    require_once XF_ADMIN_DIR . '/xtreme-backend.php';
    require_once XF_ADMIN_DIR . '/xtreme-layouts.php';
    require_once XF_ADMIN_DIR . '/xtreme-backup.php';
    require_once XF_ADMIN_DIR . '/xtreme-widgets-admin.php';
    add_action('admin_head', 'xtreme_favicon_for_admin');
    add_action('wp_dashboard_setup', 'xtreme_dashboard_rss_widget_setup');
    add_filter('avatar_defaults', 'xtreme_add_gravatar');
}
require_if_theme_supports('xtreme-fancybox', XF_THEME_DIR . '/lib/xtreme-fancybox.php');
require_if_theme_supports('xtreme-subtitles', XF_THEME_DIR . '/lib/xtreme-subtitles.php');
Пример #9
0
add_filter('enlightenment_select_box_args', 'enlightenment_theme_settings_override_value');
add_filter('enlightenment_textarea_args', 'enlightenment_theme_settings_override_value');
add_filter('enlightenment_upload_media_args', 'enlightenment_theme_settings_override_value');
function enlightenment_theme_settings_override_value($args)
{
    global $pagenow;
    if ('themes.php' == $pagenow && isset($_GET['page']) && current_theme_supports('enlightenment-theme-settings', 'menu_slug') == $_GET['page']) {
        if (false === strpos($args['name'], '[')) {
            if (doing_filter('enlightenment_checkbox_args') && empty($args['checked'])) {
                $checkbox = enlightenment_theme_option($args['name']);
                $args['checked'] = !empty($checkbox);
            } elseif (empty($args['value'])) {
                $args['value'] = enlightenment_theme_option($args['name']);
            }
        }
    }
    return $args;
}
require_once enlightenment_admin_directory() . '/settings-api.php';
require_if_theme_supports('enlightenment-web-fonts', enlightenment_admin_directory() . '/web-fonts.php');
require_if_theme_supports('enlightenment-logo', enlightenment_admin_directory() . '/logo.php');
require_if_theme_supports('enlightenment-menu-icons', enlightenment_admin_directory() . '/menu-icons.php');
require_if_theme_supports('enlightenment-custom-layouts', enlightenment_admin_directory() . '/custom-layouts.php');
require_if_theme_supports('enlightenment-grid-loop', enlightenment_admin_directory() . '/grid-loop.php');
if (current_theme_supports('enlightenment-template-editor')) {
    require_once enlightenment_admin_directory() . '/template-editor.php';
    require_if_theme_supports('enlightenment-page-builder', enlightenment_admin_directory() . '/page-builder.php');
    require_if_theme_supports('post-formats', enlightenment_admin_directory() . '/post-formats-editor.php');
}
require_if_theme_supports('enlightenment-unlimited-sidebars', enlightenment_admin_directory() . '/unlimited-sidebars.php');
require_once enlightenment_admin_directory() . '/validate.php';
Пример #10
0
/**
 * Loads all the framework files and features.
 *
 * The genesis_pre_framework action hook is called before any of the files are
 * required().
 *
 * If a child theme defines GENESIS_LOAD_FRAMEWORK as false before requiring
 * this init.php file, then this function will abort before any other framework
 * files are loaded.
 *
 * @since 1.6.0
 */
function genesis_load_framework()
{
    /** Run the genesis_pre_framework Hook */
    do_action('genesis_pre_framework');
    /** Short circuit, if necessary */
    if (defined('GENESIS_LOAD_FRAMEWORK') && GENESIS_LOAD_FRAMEWORK === false) {
        return;
    }
    /** Load Framework */
    require_once GENESIS_LIB_DIR . '/framework.php';
    /** Load Classes */
    require_once GENESIS_CLASSES_DIR . '/admin.php';
    require_once GENESIS_CLASSES_DIR . '/breadcrumb.php';
    require_once GENESIS_CLASSES_DIR . '/sanitization.php';
    /** Load Functions */
    require_once GENESIS_FUNCTIONS_DIR . '/upgrade.php';
    require_once GENESIS_FUNCTIONS_DIR . '/general.php';
    require_once GENESIS_FUNCTIONS_DIR . '/options.php';
    require_once GENESIS_FUNCTIONS_DIR . '/image.php';
    require_once GENESIS_FUNCTIONS_DIR . '/menu.php';
    require_once GENESIS_FUNCTIONS_DIR . '/layout.php';
    require_once GENESIS_FUNCTIONS_DIR . '/formatting.php';
    require_once GENESIS_FUNCTIONS_DIR . '/seo.php';
    require_once GENESIS_FUNCTIONS_DIR . '/widgetize.php';
    require_once GENESIS_FUNCTIONS_DIR . '/feed.php';
    require_once GENESIS_FUNCTIONS_DIR . '/i18n.php';
    require_once GENESIS_FUNCTIONS_DIR . '/deprecated.php';
    /** Load Shortcodes */
    require_once GENESIS_SHORTCODES_DIR . '/post.php';
    require_once GENESIS_SHORTCODES_DIR . '/footer.php';
    /** Load Structure */
    require_once GENESIS_STRUCTURE_DIR . '/header.php';
    require_once GENESIS_STRUCTURE_DIR . '/footer.php';
    require_once GENESIS_STRUCTURE_DIR . '/menu.php';
    require_once GENESIS_STRUCTURE_DIR . '/layout.php';
    require_once GENESIS_STRUCTURE_DIR . '/post.php';
    require_once GENESIS_STRUCTURE_DIR . '/loops.php';
    require_once GENESIS_STRUCTURE_DIR . '/comments.php';
    require_once GENESIS_STRUCTURE_DIR . '/sidebar.php';
    require_once GENESIS_STRUCTURE_DIR . '/archive.php';
    require_once GENESIS_STRUCTURE_DIR . '/search.php';
    /** Load Admin */
    if (is_admin()) {
        require_once GENESIS_ADMIN_DIR . '/editor.php';
        require_once GENESIS_ADMIN_DIR . '/menu.php';
        require_once GENESIS_ADMIN_DIR . '/theme-settings.php';
        require_once GENESIS_ADMIN_DIR . '/seo-settings.php';
        require_once GENESIS_ADMIN_DIR . '/import-export.php';
        require_once GENESIS_ADMIN_DIR . '/readme-menu.php';
        require_once GENESIS_ADMIN_DIR . '/inpost-metaboxes.php';
    }
    require_once GENESIS_ADMIN_DIR . '/term-meta.php';
    require_once GENESIS_ADMIN_DIR . '/user-meta.php';
    /** Load Javascript */
    require_once GENESIS_JS_DIR . '/load-scripts.php';
    /** Load CSS */
    require_once GENESIS_CSS_DIR . '/load-styles.php';
    /** Load Widgets */
    require_once GENESIS_WIDGETS_DIR . '/widgets.php';
    /** Load Tools */
    require_once GENESIS_TOOLS_DIR . '/custom-field-redirect.php';
    require_if_theme_supports('post-templates', GENESIS_TOOLS_DIR . '/post-templates.php');
    global $_genesis_formatting_allowedtags;
    $_genesis_formatting_allowedtags = genesis_formatting_allowedtags();
}
Пример #11
0
/**
 * Loads the theme functions if the theme/child theme syupports them.
 *
 * @since Cakifo 1.3
 */
function cakifo_load_theme_support()
{
    /* Load the Cakifo sidebars if supported */
    require_if_theme_supports('cakifo-sidebars', locate_template('functions/sidebars.php'));
    /* Load Cakifo shortcodes if supported */
    require_if_theme_supports('cakifo-shortcodes', locate_template('functions/shortcodes.php'));
    /* Load the Colorbox Script extention if supported. */
    require_if_theme_supports('cakifo-colorbox', locate_template('functions/colorbox.php'));
    /* Load the Twitter Button extention if supported */
    require_if_theme_supports('cakifo-twitter-button', locate_template('functions/tweet_button.php'));
}
 /**
  * Loads the framework files supported by themes and template-related functions/classes.
  *
  * @since 4.0.0
  */
 function includes()
 {
     // Load Cherry_Wrapping class.
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-wrapping.php';
     // Load Cherry_Sidebar class.
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-sidebar.php';
     // Load the HTML attributes functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'attr.php';
     // Load the template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template.php';
     // Load the comments functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-comments.php';
     // Load the general template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-general.php';
     // Load the media template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-media.php';
     // Load the custom template tags.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-tags.php';
     // Load the post template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-post.php';
     // Load the meta template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-meta.php';
     // Load the custom functions that act independently of the theme templates.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'extras.php';
     // Load the structure functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'structure.php';
     // Load Cherry_Options_Framework class.
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-optionsframework.php';
     // Load the post format functionality if post formats are supported.
     require_if_theme_supports('post-formats', trailingslashit(CHERRY_FUNCTIONS) . 'post-formats.php');
 }
Пример #13
0
 /**
  * Load admin files for the framework.
  *
  * @since 0.7.0
  */
 function admin()
 {
     /* Check if in the WordPress admin. */
     if (is_admin()) {
         /* Load the main admin file. */
         require_once trailingslashit(HYBRID_ADMIN) . 'admin.php';
         /* Load the theme settings feature if supported. */
         require_if_theme_supports('hybrid-core-theme-settings', trailingslashit(HYBRID_ADMIN) . 'theme-settings.php');
     }
 }
Пример #14
0
/**
 * Loads the core post meta box files on the 'load-post.php' action hook.  Each meta box file is only loaded if 
 * the theme declares support for the feature.
 *
 * @since 0.9.0
 * @return void
 */
function omega_admin_load_post_meta_boxes()
{
    /* Load the post template meta box. */
    require_if_theme_supports('omega-template-hierarchy', trailingslashit(OMEGA_ADMIN) . 'meta-box-post-template.php');
}
Пример #15
0
<?php

/**
 * Load required support files.
 *
 * @package Photo_Perfect
 */
/**
 * Load Footer Widget Support.
 */
require_if_theme_supports('footer-widgets', get_template_directory() . '/inc/support/footer-widgets.php');
Пример #16
0
<?php

/*
 * This file is part of WordPlate.
 *
 * (c) Vincent Klaiber <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
/*
 * Plugin Name: Plate
 * Description: A framework plugin for WordPlate.
 * Author: WordPlate
 * Author URI: https://wordplate.github.io
 * Version: 1.0.0
 * Plugin URI: https://github.com/wordplate/plate
 */
add_action('after_setup_theme', function () {
    require_if_theme_supports('plate-dashboard', __DIR__ . '/src/dashboard.php');
    require_if_theme_supports('plate-editor', __DIR__ . '/src/editor.php');
    require_if_theme_supports('plate-footer', __DIR__ . '/src/footer.php');
    require_if_theme_supports('plate-login', __DIR__ . '/src/login.php');
    require_if_theme_supports('plate-menu', __DIR__ . '/src/menu.php');
    require_if_theme_supports('plate-permalink', __DIR__ . '/src/permalink.php');
    require_if_theme_supports('plate-tabs', __DIR__ . '/src/tabs.php');
    require_if_theme_supports('plate-toolbar', __DIR__ . '/src/toolbar.php');
}, 100);
Пример #17
0
 /**
  * Loads the framework files supported by themes.  Functionality in these files should
  * not be expected within the theme setup function.
  *
  * @since  2.0.0
  * @access public
  * @return void
  */
 public function includes()
 {
     // Load the template hierarchy if supported.
     require_if_theme_supports('hybrid-core-template-hierarchy', HYBRID_INC . 'template-hierarchy.php');
     // Load the post format functionality if post formats are supported.
     require_if_theme_supports('post-formats', HYBRID_INC . 'functions-formats.php');
     require_if_theme_supports('post-formats', HYBRID_INC . 'class-chat.php');
     // Load the Theme Layouts extension if supported.
     require_if_theme_supports('theme-layouts', HYBRID_INC . 'class-layout.php');
     require_if_theme_supports('theme-layouts', HYBRID_INC . 'class-layout-factory.php');
     require_if_theme_supports('theme-layouts', HYBRID_INC . 'functions-layouts.php');
     // Load the deprecated functions if supported.
     require_if_theme_supports('hybrid-core-deprecated', HYBRID_INC . 'functions-deprecated.php');
 }
Пример #18
0
 /**
  * Loads the framework extension files. Extensions are pieces of 
  * functionality that are conceptually sepparated by the framework core. 
  * Themes must add support with add_theme_support( 'extension-name' );
  *
  * @uses trailingslashit() Appends a trailing slash.
  * @uses require_if_theme_supports() Adds a feature only if theme supports it.
  * @since 0.0.1
  */
 function extensions()
 {
     /** Load the Routing Util extension if supported. */
     require_if_theme_supports('pls-routing-util', trailingslashit(PLS_EXT_DIR) . 'routing-util.php');
     /** Load the Slideshow extension if supported. */
     require_if_theme_supports('pls-slideshow', trailingslashit(PLS_EXT_DIR) . 'slideshow.php');
     /** Load the Options Framework extension if supported. */
     require_if_theme_supports('pls-theme-options', trailingslashit(PLS_EXT_DIR) . 'options-framework.php');
     /** Load the Style Util extension if supported. */
     require_if_theme_supports('pls-theme-options', trailingslashit(PLS_EXT_DIR) . 'style-util.php');
     /** Load the image handling if supported. */
     require_if_theme_supports('pls-image-util', trailingslashit(PLS_EXT_DIR) . 'image-util.php');
     /** Load the Maps Util extension if supported. */
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/maps-util.php');
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/lifestyle.php');
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/lifestyle_polygon.php');
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/listings.php');
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/polygon.php');
     require_if_theme_supports('pls-maps-util', trailingslashit(PLS_EXT_DIR) . 'maps/neighborhood.php');
     /** Load fallbacks last. */
     require_once trailingslashit(PLS_FUNCTIONS_DIR) . 'fallback.php';
     /** Load the Shuffle Bricks extension if requested. */
     require_if_theme_supports('pls-shuffle-bricks', trailingslashit(PLS_EXT_DIR) . 'shuffle-bricks.php');
     /** Load the Meta Data, Micro Data, Meta Tags extension if requested. */
     require_if_theme_supports('pls-meta-tags', trailingslashit(PLS_EXT_DIR) . 'meta-tags.php');
     require_if_theme_supports('pls-micro-data', trailingslashit(PLS_EXT_DIR) . 'micro-data.php');
 }
Пример #19
0
<?php

/**
 * SpyroPress Dashboard
 *
 * Dashboard contains Latest News, Theme Info, Lates Tweets, etc.
 *
 */
global $spyropress;
?>


<div class="wrap spyropress-wrap">
	<?php 
require_if_theme_supports('spyropress-builder', admin_path() . 'page-verification.php');
?>

    <?php 
get_spyropress_badge();
?>

    <h1><?php 
echo $spyropress->theme_name . ' ' . __('Dashboard', 'spyropress');
?>
</h1>
    <div class="teaser-text">
		<?php 
_e('Thank you for using SpyroPress. SpyroPress will improve your overall web publishing experience.', 'spyropress');
?>

	</div>
Пример #20
0
 /**
  * Loads files required by specific templates or screens on the front-end
  */
 function specific()
 {
     $template_path = get_template_directory();
     if (is_page_template('magazine.php')) {
         require_once $template_path . "/functions/magazine-functions.php";
     }
     require_if_theme_supports('mega-menus', $template_path . '/library/suffusion-walkers.php');
 }
Пример #21
0
 public function sb_includes()
 {
     // Include all Widgets, Plugins and Theme Options
     require_if_theme_supports('sb-galleriffic', PLUGINS_PATH . '/galleriffic.php');
     // Galleriffic Slideshows (not supported yet)
     require_if_theme_supports('sb-slideshows', PLUGINS_PATH . '/slideshows.php');
     // Slideshows Post Type
     require_if_theme_supports('sb-sidebars', PLUGINS_PATH . '/sidebars.php');
     // Sidebar manager
     require_if_theme_supports('sb-layouts', FUNCTIONS_PATH . '/layouts.php');
     // Theme Layouts
     foreach (glob(WIDGETS_PATH . '/*.php') as $widget) {
         require_once $widget;
     }
     // Widgets
     foreach (glob(ADMIN_PATH . '/*.php') as $admin) {
         require_if_theme_supports('sb-options', $admin);
     }
     // Theme Options
     require_if_theme_supports('sb-updates', FUNCTIONS_PATH . '/upgrade.php');
     // Update Manager
     // Check installed version, upgrade if needed (Credit: K2, http://getk2.com)
     $sb_version = get_option('startbox_version');
     if ($sb_version === false) {
         StartBox::install();
     } elseif (version_compare($sb_version, SB_VERSION, '<')) {
         StartBox::upgrade($sb_version);
     }
 }
Пример #22
0
 /**
  * Load extensions (external projects).  Extensions are projects that are included within the 
  * framework but are not a part of it.  They are external projects developed outside of the 
  * framework.  Themes must use add_theme_support( $extension ) to use a specific extension 
  * within the theme.  This should be declared on 'after_setup_theme' no later than a priority of 11.
  *
  * @since 1.0.0
  * @access public
  * @return void
  */
 function extensions()
 {
     /* Load the Cleaner Gallery extension if supported. */
     require_if_theme_supports('cleaner-gallery', trailingslashit(HOOT_EXTENSIONS) . 'cleaner-gallery.php');
     /* Load the Cleaner Caption extension if supported. */
     require_if_theme_supports('cleaner-caption', trailingslashit(HOOT_EXTENSIONS) . 'cleaner-caption.php');
     /* Load the Loop Pagination extension if supported. */
     require_if_theme_supports('loop-pagination', trailingslashit(HOOT_EXTENSIONS) . 'loop-pagination.php');
     /* Load the Widgets extension if supported. */
     require_if_theme_supports('hoot-core-widgets', trailingslashit(HOOT_EXTENSIONS) . 'widgets.php');
 }
Пример #23
0
function enlightenment_theme_supported_functions()
{
    require_if_theme_supports('enlightenment-web-fonts', enlightenment_functions_directory() . '/web-fonts.php');
    require_if_theme_supports('enlightenment-accessibility', enlightenment_functions_directory() . '/accessibility.php');
    require_if_theme_supports('enlightenment-bootstrap', enlightenment_functions_directory() . '/bootstrap.php');
    require_if_theme_supports('enlightenment-schema-markup', enlightenment_functions_directory() . '/schema-markup.php');
    require_if_theme_supports('enlightenment-logo', enlightenment_functions_directory() . '/logo.php');
    require_if_theme_supports('enlightenment-menu-icons', enlightenment_functions_directory() . '/menu-icons.php');
    require_if_theme_supports('enlightenment-menu-descriptions', enlightenment_functions_directory() . '/menu-descriptions.php');
    if (current_theme_supports('jetpack-portfolio') && class_exists('Jetpack') && in_array('custom-content-types', Jetpack::get_active_modules())) {
        require_once enlightenment_functions_directory() . '/jetpack-portfolio.php';
    }
    require_if_theme_supports('enlightenment-lightbox', enlightenment_functions_directory() . '/lightbox.php');
    require_if_theme_supports('enlightenment-ajax-navigation', enlightenment_functions_directory() . '/ajax-navigation.php');
    require_if_theme_supports('enlightenment-infinite-scroll', enlightenment_functions_directory() . '/infinite-scroll.php');
    require_if_theme_supports('custom-header', enlightenment_functions_directory() . '/custom-header.php');
    require_if_theme_supports('post-thumbnails', enlightenment_functions_directory() . '/post-thumbnails.php');
    require_if_theme_supports('post-formats', enlightenment_functions_directory() . '/post-formats.php');
    require_if_theme_supports('enlightenment-custom-layouts', enlightenment_functions_directory() . '/custom-layouts.php');
    require_if_theme_supports('enlightenment-grid-loop', enlightenment_functions_directory() . '/grid-loop.php');
    if (current_theme_supports('enlightenment-template-editor')) {
        require_once enlightenment_functions_directory() . '/template-editor.php';
        require_if_theme_supports('post-formats', enlightenment_functions_directory() . '/post-formats-editor.php');
    }
    require_if_theme_supports('enlightenment-unlimited-sidebars', enlightenment_functions_directory() . '/unlimited-sidebars.php');
    require_if_theme_supports('enlightenment-custom-queries', enlightenment_functions_directory() . '/custom-queries.php');
    require_if_theme_supports('enlightenment-theme-settings', enlightenment_functions_directory() . '/settings.php');
    if (is_admin() && current_theme_supports('enlightenment-theme-settings')) {
        require_once enlightenment_admin_directory() . '/init.php';
    }
}
Пример #24
0
Файл: kleo.php Проект: 6226/wp
 /**
  * Loads the framework functions.
  *
  * @since 1.0.0
  */
 function functions()
 {
     /* load required plugins if the theme needs to */
     if (!empty($this->args['required_plugins'])) {
         $this->tgm_plugins = $this->args['required_plugins'];
         require_once KLEO_DIR . '/lib/class-tgm-plugin-activation.php';
         add_action('tgmpa_register', array($this, 'required_plugins'));
     }
     /* Load multiple sidebars plugin */
     if (!class_exists('sidebar_generator')) {
         require_if_theme_supports('kleo-sidebar-generator', KLEO_DIR . '/lib/class-multiple-sidebars.php');
     }
     /* Load facebook login if it is enabled in theme options */
     if (sq_option('facebook_login', 1) == 1 && sq_option('fb_app_id', '') !== '') {
         require_if_theme_supports('kleo-facebook-login', KLEO_DIR . '/lib/function-facebook-login.php');
     }
     // Include breadcrumb
     if (!is_admin()) {
         require_once KLEO_DIR . '/lib/function-breadcrumb.php';
     }
     //envato theme update
     add_filter("pre_set_site_transient_update_themes", array(&$this, "themeforest_themes_update"));
 }
Пример #25
0
/**
 * Loads all the framework files and features.
 *
 * The genesis_pre_framework action hook is called before any of the files are
 * required().
 *
 * If a child theme defines GENESIS_LOAD_FRAMEWORK as false before requiring
 * this init.php file, then this function will abort before any other framework
 * files are loaded.
 *
 * @since 1.6.0
 *
 * @global $_genesis_formatting_allowed_tags Array of allowed tags for output formatting.
 */
function genesis_load_framework()
{
    //* Run the genesis_pre_framework Hook
    do_action('genesis_pre_framework');
    //* Short circuit, if necessary
    if (defined('GENESIS_LOAD_FRAMEWORK') && GENESIS_LOAD_FRAMEWORK === false) {
        return;
    }
    //* Load Framework
    require_once GENESIS_LIB_DIR . '/framework.php';
    //* Load Classes
    require_once GENESIS_CLASSES_DIR . '/admin.php';
    require_if_theme_supports('genesis-breadcrumbs', GENESIS_CLASSES_DIR . '/breadcrumb.php');
    require_once GENESIS_CLASSES_DIR . '/sanitization.php';
    //* Load Functions
    require_once GENESIS_FUNCTIONS_DIR . '/upgrade.php';
    require_once GENESIS_FUNCTIONS_DIR . '/compat.php';
    require_once GENESIS_FUNCTIONS_DIR . '/general.php';
    require_once GENESIS_FUNCTIONS_DIR . '/options.php';
    require_once GENESIS_FUNCTIONS_DIR . '/image.php';
    require_once GENESIS_FUNCTIONS_DIR . '/markup.php';
    require_if_theme_supports('genesis-breadcrumbs', GENESIS_FUNCTIONS_DIR . '/breadcrumb.php');
    require_once GENESIS_FUNCTIONS_DIR . '/menu.php';
    require_once GENESIS_FUNCTIONS_DIR . '/layout.php';
    require_once GENESIS_FUNCTIONS_DIR . '/formatting.php';
    require_once GENESIS_FUNCTIONS_DIR . '/seo.php';
    require_once GENESIS_FUNCTIONS_DIR . '/widgetize.php';
    require_once GENESIS_FUNCTIONS_DIR . '/feed.php';
    if (apply_filters('genesis_load_deprecated', true)) {
        require_once GENESIS_FUNCTIONS_DIR . '/deprecated.php';
    }
    //* Load Shortcodes
    require_once GENESIS_SHORTCODES_DIR . '/post.php';
    require_once GENESIS_SHORTCODES_DIR . '/footer.php';
    //* Load Structure
    require_once GENESIS_STRUCTURE_DIR . '/header.php';
    require_once GENESIS_STRUCTURE_DIR . '/footer.php';
    require_once GENESIS_STRUCTURE_DIR . '/menu.php';
    require_once GENESIS_STRUCTURE_DIR . '/layout.php';
    require_once GENESIS_STRUCTURE_DIR . '/post.php';
    require_once GENESIS_STRUCTURE_DIR . '/loops.php';
    require_once GENESIS_STRUCTURE_DIR . '/comments.php';
    require_once GENESIS_STRUCTURE_DIR . '/sidebar.php';
    require_once GENESIS_STRUCTURE_DIR . '/archive.php';
    require_once GENESIS_STRUCTURE_DIR . '/search.php';
    //* Load Admin
    if (is_admin()) {
        require_once GENESIS_ADMIN_DIR . '/menu.php';
        require_once GENESIS_ADMIN_DIR . '/theme-settings.php';
        require_once GENESIS_ADMIN_DIR . '/seo-settings.php';
        require_once GENESIS_ADMIN_DIR . '/cpt-archive-settings.php';
        require_once GENESIS_ADMIN_DIR . '/import-export.php';
        require_once GENESIS_ADMIN_DIR . '/inpost-metaboxes.php';
        require_once GENESIS_ADMIN_DIR . '/whats-new.php';
    }
    require_once GENESIS_ADMIN_DIR . '/customizer.php';
    require_once GENESIS_ADMIN_DIR . '/term-meta.php';
    require_once GENESIS_ADMIN_DIR . '/user-meta.php';
    //* Load Javascript
    require_once GENESIS_JS_DIR . '/load-scripts.php';
    //* Load CSS
    require_once GENESIS_CSS_DIR . '/load-styles.php';
    //* Load Widgets
    require_once GENESIS_WIDGETS_DIR . '/widgets.php';
    global $_genesis_formatting_allowedtags;
    $_genesis_formatting_allowedtags = genesis_formatting_allowedtags();
}
Пример #26
0
 /**
  * Sets up theme defaults and registers support for various WordPress features.
  *
  * @author	WordPress.org
  * @since	1.0.0 - 05.02.2012
  *
  * @return	void
  */
 function circleflip_after_setup_theme()
 {
     global $content_width;
     if (!isset($content_width)) {
         $content_width = 1170;
     }
     define('images', get_template_directory_uri() . '/img');
     load_theme_textdomain('circleflip', get_template_directory() . '/lang');
     add_theme_support('automatic-feed-links');
     add_theme_support("title-tag");
     add_theme_support('post-thumbnails');
     add_theme_support('post-formats', array('gallery', 'audio', 'video'));
     add_theme_support('tha_hooks', array('all'));
     add_editor_style();
     /**
      * Custom template tags for this theme.
      */
     require_once get_template_directory() . '/inc/template-tags.php';
     /**
      * Implement the Custom Header feature
      */
     require_once get_template_directory() . '/inc/custom-header.php';
     /**
      * Implement the Header Builder feature
      */
     require_once get_template_directory() . '/creiden-framework/header-builder/header-builder.php';
     require_once get_template_directory() . '/creiden-framework/header-builder/header-config.php';
     /**
      * Custom Nav Menu handler for the Navbar.
      */
     require_once get_template_directory() . '/inc/nav-menu-walker.php';
     /**
      * Creiden Framework.
      */
     require_once get_template_directory() . '/inc/creiden-framework.php';
     /**
      * Creiden Custom Filters.
      */
     require_once get_template_directory() . '/inc/circle-flip-filters.php';
     /**
      * Creiden Custom Actions.
      */
     require_once get_template_directory() . '/inc/circle-flip-actions.php';
     /**
      * Creiden Ajax.
      */
     require_once get_template_directory() . '/inc/circle-flip-ajax.php';
     /**
      * Creiden Custom functions.
      */
     require_once get_template_directory() . '/inc/cr-custom-functions.php';
     require_once get_template_directory() . '/inc/circleflip-blog-functions.php';
     require_once get_template_directory() . '/inc/circleflip-post-formats-metabox.php';
     require_once get_template_directory() . '/inc/circleflip-gif-support.php';
     require_once get_template_directory() . '/inc/circleflip-media.php';
     //		require_once get_template_directory() . '/inc/circleflip-sidebar-functions.php';
     require_once get_template_directory() . '/inc/circleflip-headerBuilder.php';
     if (!cr_get_option('header_builder')) {
         require_once get_template_directory() . '/inc/circleflip-multimenu.php';
     }
     require_once get_template_directory() . '/inc/importer/circleflip-importer.php';
     /**
      * Short Code
      */
     require_once get_template_directory() . '/shortcode.php';
     /**
      * Thumbnails Generator
      */
     //	require_once get_template_directory() . '/inc/wp-image.php';
     require_once get_template_directory() . '/inc/WP-Make-Missing-Sizes.php';
     /**
      * Theme Hook Alliance
      */
     require_if_theme_supports('tha_hooks', get_template_directory() . '/inc/tha-theme-hooks.php');
     /**
      * Including three menu (header-menu, primary and footer-menu).
      * Primary is wrapping in a navbar containing div (wich support responsive variation)
      * Header-menu and Footer-menu are inside pills dropdown menu
      *
      * @since	1.2.2 - 07.04.2012
      * @see		http://codex.wordpress.org/Function_Reference/register_nav_menus
      */
     register_nav_menus(array('primary' => __('Main Navigation', 'circleflip'), 'header-menu' => __('Header Menu', 'circleflip'), 'footer-menu' => __('Footer Menu', 'circleflip')));
     /**
      * Creiden Custom Widgets
      */
     require_once get_template_directory() . '/widgets/text_image_widget.php';
     require_once get_template_directory() . '/widgets/contact_information.php';
     require_once get_template_directory() . '/widgets/flickr_widget.php';
     require_once get_template_directory() . '/widgets/images_widget.php';
     require_once get_template_directory() . '/widgets/categories_with_count.php';
     require_once get_template_directory() . '/widgets/Testimonials_Widget.php';
     require_once get_template_directory() . '/widgets/recent_post_thumbnails_widget.php';
     require_once get_template_directory() . '/widgets/recent_post_widget.php';
     require_once get_template_directory() . '/widgets/top_post_views_widget.php';
     require_once get_template_directory() . '/widgets/shortcode_widget.php';
     require_once get_template_directory() . '/widgets/class-circleflip-widget-google-maps.php';
     /*
      * Creiden Sidebars
      */
     require_once get_template_directory() . '/creiden-framework/metabox/sidebars.php';
     $args = apply_filters('circleflip_custom_background_args', array('default-color' => 'EFEFEF'));
     add_theme_support("custom-background", $args);
 }
Пример #27
0
 * @global object $wp_locale
 * @since 2.1.0
 */
$wp_locale = new WP_Locale();
// Load the functions for the active theme, for both parent and child theme if applicable.
if (!defined('WP_INSTALLING') || 'wp-activate.php' === $pagenow) {
    if (TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php')) {
        include STYLESHEETPATH . '/functions.php';
    }
    if (file_exists(TEMPLATEPATH . '/functions.php')) {
        include TEMPLATEPATH . '/functions.php';
    }
}
do_action('after_setup_theme');
// Load any template functions the theme supports.
require_if_theme_supports('post-thumbnails', ABSPATH . WPINC . '/post-thumbnail-template.php');
// Set up current user.
$wp->init();
/**
 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
 * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
 *
 * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
 */
do_action('init');
// Check site status
if (is_multisite()) {
    if (true !== ($file = ms_site_check())) {
        require $file;
        die;
Пример #28
0
 /**
  * Load extensions (external projects).  Extensions are projects that are included within the 
  * framework but are not a part of it.  They are external projects developed outside of the 
  * framework.  Themes must use add_theme_support( $extension ) to use a specific extension 
  * within the theme.  This should be declared on 'after_setup_theme' no later than a priority of 11.
  *
  * @since  0.7.0
  * @access public
  * @return void
  */
 function extensions()
 {
     /* Load the Get the Image extension if supported. */
     require_if_theme_supports('get-the-image', trailingslashit(OMEGA_EXTENSIONS) . 'get-the-image.php');
     /* Load the Loop Pagination extension if supported. */
     require_if_theme_supports('loop-pagination', trailingslashit(OMEGA_EXTENSIONS) . 'loop-pagination.php');
     /* Load the Color Palette extension if supported. */
     require_if_theme_supports('color-palette', trailingslashit(OMEGA_EXTENSIONS) . 'color-palette.php');
     /* Load  child themes page if supported. */
     require_if_theme_supports('omega-child-page', trailingslashit(OMEGA_EXTENSIONS) . '/omega-child-page.php');
     /* Load wraps extension if supported. */
     require_if_theme_supports('omega-wraps', trailingslashit(OMEGA_EXTENSIONS) . '/wraps.php');
     /* Load custom css extension if supported. */
     require_if_theme_supports('omega-custom-css', trailingslashit(OMEGA_EXTENSIONS) . '/custom-css.php');
     /* Load custom logo extension if supported. */
     require_if_theme_supports('omega-custom-logo', trailingslashit(OMEGA_EXTENSIONS) . '/custom-logo.php');
     /* Load custom comment extension. */
     require_once trailingslashit(OMEGA_EXTENSIONS) . '/custom-comment.php';
     /* Load custom post extension if supported. */
     require_if_theme_supports('omega-custom-post', trailingslashit(OMEGA_EXTENSIONS) . '/custom-post.php');
     /* Load footer widgets extension if supported. */
     require_if_theme_supports('omega-footer-widgets', trailingslashit(OMEGA_EXTENSIONS) . '/footer-widgets.php');
     /* Load custom footer extension if supported. */
     require_if_theme_supports('custom-footer', trailingslashit(OMEGA_EXTENSIONS) . '/custom-footer.php');
     /* Load the plugin Activation extension if supported. */
     require_if_theme_supports('plugin-activation', trailingslashit(OMEGA_EXTENSIONS) . 'class-tgm-plugin-activation.php');
 }
Пример #29
0
function kleo_theme_functions()
{
    /* Plugins and functionality */
    // BuddyPress compatibility
    if (function_exists('bp_is_active')) {
        require_once KLEO_LIB_DIR . '/plugin-buddypress/config.php';
        //compatibility with buddypress plugin
    }
    // bbPress compatibility
    if (class_exists('bbPress')) {
        require_once KLEO_LIB_DIR . '/plugin-bbpress/config.php';
        //compatibility with bbpress plugin
    }
    /* Woocommerce compatibility */
    if (class_exists('WooCommerce')) {
        require_once KLEO_LIB_DIR . '/plugin-woocommerce/config.php';
    }
    // Paid memberships Pro compatibility
    if (function_exists('pmpro_url')) {
        require_once KLEO_LIB_DIR . '/plugin-pmpro/config.php';
    }
    // Visual composer compatibility
    if (function_exists('vc_set_as_theme')) {
        require_once KLEO_LIB_DIR . '/plugin-vc/config.php';
    }
    // Compatibility with GeoDirectory plugin
    if (defined('GEODIRECTORY_VERSION')) {
        require_once KLEO_LIB_DIR . '/plugin-geodirectory/config.php';
    }
    // Compatibility with Sensei plugin
    if (class_exists('WooThemes_Sensei')) {
        require_once KLEO_LIB_DIR . '/plugin-sensei/config.php';
    }
    // Compatibility Bp Profile Search
    if (defined('BPS_VERSION')) {
        require_once KLEO_LIB_DIR . '/plugin-bp-profile-search/config.php';
    }
    // Posts likes
    if (sq_option('likes_status', 1) == 1) {
        require_once KLEO_LIB_DIR . '/item-likes.php';
    }
    // Resize on the fly
    require_once KLEO_LIB_DIR . '/aq_resizer.php';
    // menu-items-visibility-control plugin compatibility
    if (class_exists('Boom_Walker_Nav_Menu_Edit')) {
        require_once KLEO_LIB_DIR . '/plugin-menu-items-visibility-control/config.php';
    }
    /* Custom menu */
    require_if_theme_supports('kleo-mega-menu', KLEO_LIB_DIR . '/menu-custom.php');
    /* Custom menu items */
    require_if_theme_supports('kleo-menu-items', KLEO_LIB_DIR . '/menu-items.php');
    /* Portfolio */
    require_if_theme_supports('kleo-portfolio', KLEO_LIB_DIR . '/portfolio.php');
    /* Include admin customizations */
    if (is_admin()) {
        //Metaboxes
        require_once KLEO_LIB_DIR . '/metaboxes.php';
    }
}
 /**
  * Load only frontend-related files.
  *
  * @since 4.0.5
  * @return void
  */
 function load_public()
 {
     if (is_admin()) {
         return;
     }
     // Load Cherry_Wrapping class.
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-wrapping.php';
     // Load Cherry_Sidebar class.
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-sidebar.php';
     // Load the HTML attributes functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'attr.php';
     // Load the template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template.php';
     // Load the comments functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-comments.php';
     // Load the general template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-general.php';
     // Load the media template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-media.php';
     // Load the post template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-post.php';
     // Load the meta template functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-meta.php';
     // Load the custom functions that act independently of the theme templates.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'extras.php';
     // Load the structure functions.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'structure.php';
     // Load the custom template tags.
     require_once trailingslashit(CHERRY_FUNCTIONS) . 'template-tags.php';
     // Load current page object class
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-current-page.php';
     // Load grabber for CSS printed directly to page content
     require_once trailingslashit(CHERRY_CLASSES) . 'class-cherry-css-grabber.php';
     // Load the post format functionality if post formats are supported.
     require_if_theme_supports('post-formats', trailingslashit(CHERRY_FUNCTIONS) . 'post-formats.php');
 }