Beispiel #1
0
function wpgrade_callback_load_woocommerce_assets()
{
    global $woocommerce;
    if (!wpgrade::option('enable_woocommerce_support', '0')) {
        return;
    }
    wp_enqueue_style('wpgrade-woocommerce', get_template_directory_uri() . '/assets/css/woocommerce.css', array('woocommerce-general'), wpgrade::cachebust_string(wpgrade::themefilepath('assets/css/woocommerce.css')));
}
Beispiel #2
0
<?php

return array('name' => 'Rosa', 'shortname' => 'rosa', 'prefix' => '_rosa_', 'textdomain' => 'rosa_txtd', 'language-path' => 'languages', 'update-notifier' => array('xml-source' => REQUEST_PROTOCOL . '//pixelgrade.com/updates/', 'cache-interval' => 10800, 'update-page-name' => 'theme-update-notifier'), 'theme-adminpanel-path' => 'config/admin-panel', 'include-paths' => array('inc/classes', 'inc/functions'), 'include-files' => array('inc/required-plugins/required-plugins.php'), 'core-partials-overwrite-path' => 'templates/core', 'resource-path' => '/assets', 'theme-options' => array(), 'body-classes' => array(), 'custom-css-handler' => null, 'content-filters' => array('default' => array('wpgrade_callback_theme_general_filters' => 100, 'wpgrade_callback_shortcode_filters' => 200, 'wpgrade_callback_attachment_filters' => 300, 'wpgrade_callback_paragraph_filters' => 400)), 'post-formats' => array(), 'shortcodes' => array('Columns', 'Button', 'Icon', 'Tabs', 'Heading', 'Separator', 'Slider', 'OpenTableReservations', 'RestaurantMenu'), 'import_homepage_name' => 'Home Page', 'import_blogpage_name' => 'News', 'import_nav_menu' => array('main_menu' => 'Main Menu', 'footer_menu' => 'Footer Menu'), 'resources' => array('register' => array('head-scripts' => array('modernizr' => array('path' => get_template_directory_uri() . '/assets/js/vendor/modernizr.min.js', 'require' => array('jquery')), 'webfont-script' => array('path' => REQUEST_PROTOCOL . '//ajax.googleapis.com/ajax/libs/webfont/1.5.3/webfont.js', 'require' => array('jquery'))), 'footer-scripts' => array('wpgrade-plugins' => array('path' => get_template_directory_uri() . '/assets/js/plugins.js', 'require' => array('jquery', 'modernizr')), 'wpgrade-main-scripts' => array('path' => get_template_directory_uri() . '/assets/js/main.js', 'cache_bust' => wpgrade::cachebust_string(wpgrade::themefilepath('assets/js/main.js')), 'require' => array('wpgrade-plugins')), 'addthis-api' => array('path' => REQUEST_PROTOCOL . '//s7.addthis.com/js/300/addthis_widget.js#async=1', 'require' => array('jquery')), 'google-maps-api' => array('path' => REQUEST_PROTOCOL . '//maps.google.com/maps/api/js?sensor=false&amp;language=en', 'require' => array('jquery'))), 'styles' => array('google-webfonts' => array('path' => REQUEST_PROTOCOL . '//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,900|Cabin:400,700,400italic,700italic|Herr+Von+Muellerhoff'), 'wpgrade-main-style' => array('path' => get_template_directory_uri() . '/assets/css/style.css', 'cache_bust' => wpgrade::cachebust_string(wpgrade::themefilepath('assets/css/style.css'))))), 'auto-enqueue-scripts' => array('wpgrade-main-scripts'), 'auto-localize-scripts' => array('wpgrade-main-scripts' => array('ajaxurl' => admin_url('admin-ajax.php'), 'objectl10n' => array('tPrev' => __('Previous (Left arrow key)', 'rosa_txtd'), 'tNext' => __('Next (Right arrow key)', 'rosa_txtd'), 'tCounter' => __('of', 'rosa_txtd'), 'infscrLoadingText' => "", 'infscrReachedEnd' => ""))), 'script-enqueue-handlers' => array('google-web-fonts' => 'wpgrade_callback_enqueue_google_fonts_rosa', 'thread-comments' => 'wpgrade_callback_thread_comments_scripts', 'addthis' => 'wpgrade_callback_addthis'), 'auto-enqueue-styles' => array('google-webfonts', 'wpgrade-main-style'), 'style-enqueue-handlers' => array('dynamic-css' => array('handler' => 'wpgrade_callback_enqueue_dynamic_css_rosa', 'priority' => 9999), 'rtl-support' => 'wpgrade_callback_enqueue_rtl_support', '404-page' => 'wpgrade_callback_enqueue_404_css')), 'pagination' => array('formatter' => 'wpgrade_callback_pagination_formatter', 'prev_next' => true, 'prev_text' => __('Prev', 'rosa_txtd'), 'next_text' => __('Next', 'rosa_txtd'), 'sorted_paging' => false, 'order' => 'desc', 'show_all' => false, 'end_size' => 1, 'mid_size' => 2, 'add_args' => false, 'add_fragment' => null), 'pagination-targets' => array(), 'thumbnails_sizes' => array('full-size' => array('width' => 2048), 'large-size' => array('width' => 1200), 'medium-size' => array('width' => 900), 'small-size' => array('width' => 400)));
# end theme configuration