/**
 * Register styles commonly used by BuddyPress.
 *
 * @since 2.1.0
 */
function bp_core_register_common_styles()
{
    $min = bp_core_get_minified_asset_suffix();
    $url = buddypress()->plugin_url . 'bp-core/css/';
    /**
     * Filters the URL for the Admin Bar stylesheet.
     *
     * @since 1.1.0
     *
     * @param string $value URL for the Admin Bar stylesheet.
     */
    $admin_bar_file = apply_filters('bp_core_admin_bar_css', "{$url}admin-bar{$min}.css");
    /**
     * Filters the BuddyPress Core stylesheet files to register.
     *
     * @since 2.1.0
     *
     * @param array $value Array of stylesheet file information to register.
     */
    $styles = apply_filters('bp_core_register_common_styles', array('bp-admin-bar' => array('file' => $admin_bar_file, 'dependencies' => array('admin-bar')), 'bp-avatar' => array('file' => "{$url}avatar{$min}.css", 'dependencies' => array('jcrop'))));
    foreach ($styles as $id => $style) {
        wp_register_style($id, $style['file'], $style['dependencies'], bp_get_version());
        wp_style_add_data($id, 'rtl', true);
        if ($min) {
            wp_style_add_data($id, 'suffix', $min);
        }
    }
}
Exemplo n.º 2
2
function tinytheme_scripts_and_styles_setup()
{
    // Load the icon font stylesheet
    wp_enqueue_style('tinytheme-icon-font', get_template_directory_uri() . '/stylesheet/font-awesome.min.css');
    wp_enqueue_style('tinytheme-icon-font-ie', get_template_directory_uri() . '/stylesheet/font-awesome-ie7.min.css', array('tinytheme-icon-font'));
    wp_style_add_data('tinytheme-icon-font-ie', 'conditional', 'IE 7');
}
Exemplo n.º 3
2
 /**
  * Enqueue Storefront Styles
  *
  * @return void
  */
 public function enqueue_styles()
 {
     global $storefront_version, $storechild_version;
     /**
      * Styles
      */
     wp_enqueue_style('storefront-style', get_template_directory_uri() . '/style.css', $storefront_version);
     wp_style_add_data('storefront-child-style', 'rtl', 'replace');
     /**
      * Javascript
      */
     wp_enqueue_script('storechild', get_stylesheet_directory_uri() . '/assets/js/storechild.min.js', array('jquery'), $storechild_version, true);
 }
Exemplo n.º 4
0
/**
 * Register jquery scripts
 */
function ambition_scripts_styles_method()
{
    global $disable_slider, $ambition_settings;
    /**
     * Loads our main stylesheet.
     */
    // Load our main stylesheet.
    wp_enqueue_style('ambition_style', get_stylesheet_uri());
    wp_style_add_data('ambition-ie', 'conditional', 'lt IE 9');
    /**
     * Adds JavaScript to pages with the comment form to support
     * sites with threaded comments (when in use).
     */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_enqueue_script('jquery_cycle', get_template_directory_uri() . '/js/jquery.cycle.all.min.js', array('jquery'), '2.9999.5', true);
    wp_enqueue_style('ambition-fonts', ambition_font_url(), array(), null);
    /**
     * Enqueue Slider setup js file.
     * Enqueue Fancy Box setup js and css file.
     */
    $disable_slider = $ambition_settings['disable_slider'];
    if ((is_home() || is_front_page()) && empty($disable_slider)) {
        wp_enqueue_script('ambition_slider', get_template_directory_uri() . '/js/ambition-slider-setting.js', array('jquery_cycle'), false, true);
    }
    wp_enqueue_script('scripts', get_template_directory_uri() . '/js/scripts.js', array('jquery'), false, true);
    wp_enqueue_style('ambition-fonts');
}
Exemplo n.º 5
0
/**
 * @author Vanderson Sena
 * @since Quatro Rodas
 */
function add_scripts()
{
    // Add Genericons, used in the main stylesheet.
    wp_enqueue_style('genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1');
    // Theme stylesheet.
    wp_enqueue_style('quatrorodas-style', get_stylesheet_uri());
    // Load the Internet Explorer specific stylesheet.
    wp_enqueue_style('quatrorodas-ie', get_template_directory_uri() . '/css/ie.css', array('quatrorodas-style'), '20150825');
    wp_style_add_data('quatrorodas-ie', 'conditional', 'lt IE 10');
    // Load the Internet Explorer 8 specific stylesheet.
    wp_enqueue_style('quatrorodas-ie8', get_template_directory_uri() . '/css/ie8.css', array('quatrorodas-style'), '20150825');
    wp_style_add_data('quatrorodas-ie8', 'conditional', 'lt IE 9');
    // Load the Internet Explorer 7 specific stylesheet.
    wp_enqueue_style('quatrorodas-ie7', get_template_directory_uri() . '/css/ie7.css', array('quatrorodas-style'), '20150825');
    wp_style_add_data('quatrorodas-ie7', 'conditional', 'lt IE 8');
    // Load the html5 shiv.
    wp_enqueue_script('quatrorodas-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3');
    wp_script_add_data('quatrorodas-html5', 'conditional', 'lt IE 9');
    wp_enqueue_script('quatrorodas-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20150825', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    if (is_singular() && wp_attachment_is_image()) {
        wp_enqueue_script('quatrorodas-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array('jquery'), '20150825');
    }
    wp_enqueue_script('quatrorodas-script', get_template_directory_uri() . '/js/functions.js', array('jquery'), '20150825', true);
    wp_localize_script('quatrorodas-script', 'screenReaderText', array('expand' => __('expand child menu', 'quatrorodas'), 'collapse' => __('collapse child menu', 'quatrorodas')));
}
Exemplo n.º 6
0
function allurer_scripts()
{
    global $wp_styles;
    // Bump this when changes are made to bust cache
    $allurer_theme = wp_get_theme();
    $version = $allurer_theme->get('Version');
    // CSS Scripts
    // Add our fonts, used in the main stylesheet.
    wp_enqueue_style('allurer-fonts', allurer_font_url(), array(), null);
    wp_enqueue_style('allurer-style', get_template_directory_uri() . '/assets/css/style.css', false, $version, 'all');
    wp_enqueue_style('allurer-bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.css', false, $version, 'all');
    wp_enqueue_style('allurer-custom', get_template_directory_uri() . '/assets/css/custom.css', false, $version, 'all');
    wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/font-awesome/css/font-awesome.css', false, $version, 'all');
    // Load style.css from child theme
    if (is_child_theme()) {
        wp_enqueue_style('allurer-child', get_stylesheet_uri(), false, $version, null);
    }
    // Loads the Internet Explorer specific stylesheet.
    wp_enqueue_style('allurer-ie', get_template_directory_uri() . '/assets/css/ie.css', array('allurer-style'), $version);
    wp_style_add_data('allurer-ie', 'conditional', 'lt IE 8');
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    wp_enqueue_script('bootstrap.js', get_template_directory_uri() . '/assets/js/bootstrap.js', array('jquery'), $version, true);
    wp_enqueue_script('allurer-custom-js', get_template_directory_uri() . '/assets/js/custom.js', array('jquery'), false, true);
    wp_enqueue_script('modernizr.js', get_template_directory_uri() . '/assets/js/modernizr.custom.79639.js', array('jquery'), $version, false);
    wp_enqueue_script('allurer-html5shiv', get_template_directory_uri() . '/js/html5.js', array(), '3.7.0', false);
}
Exemplo n.º 7
0
function zerif_scripts()
{
    wp_enqueue_style('zerif_font', zerif_slug_fonts_url(), array(), null);
    wp_enqueue_style('zerif_font_all', '//fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600italic,600,700,700italic,800,800italic');
    wp_enqueue_style('zerif_bootstrap_style', get_template_directory_uri() . '/assets/css/bootstrap.css');
    wp_style_add_data('zerif_bootstrap_style', 'rtl', 'replace');
    wp_enqueue_style('zerif_fontawesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), 'v1');
    wp_enqueue_style('zerif_pixeden_style', get_template_directory_uri() . '/assets/css/pixeden-icons.css', array('zerif_fontawesome'), 'v1');
    wp_enqueue_style('zerif_style', get_stylesheet_uri(), array('zerif_pixeden_style'), 'v1');
    wp_enqueue_style('zerif_responsive_style', get_template_directory_uri() . '/assets/css/responsive.css', array('zerif_style'), 'v1');
    if (wp_is_mobile()) {
        wp_enqueue_style('zerif_style_mobile', get_template_directory_uri() . '/assets/css/style-mobile.css', array('zerif_bootstrap_style', 'zerif_style'), 'v1');
    }
    wp_enqueue_script('jquery');
    wp_enqueue_script('zerif_bootstrap_script', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array(), '20120206', true);
    wp_enqueue_script('zerif_knob_nav', get_template_directory_uri() . '/assets/js/jquery.knob.js', array("jquery"), '20120206', true);
    wp_enqueue_script('zerif_smoothscroll', get_template_directory_uri() . '/assets/js/smoothscroll.js', array("jquery"), '20120206', true);
    if (!wp_is_mobile()) {
        wp_enqueue_script('zerif_scrollReveal_script', get_template_directory_uri() . '/assets/js/scrollReveal.js', array("jquery"), '20120206', true);
    }
    wp_enqueue_script('zerif_script', get_template_directory_uri() . '/assets/js/zerif.js', array("jquery", "zerif_knob_nav"), '20120206', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Exemplo n.º 8
0
/**
 * Enqueue @mentions JS.
 *
 * @since 2.1.0
 */
function bp_activity_mentions_script()
{
    if (!bp_activity_maybe_load_mentions_scripts()) {
        return;
    }
    // Special handling for New/Edit screens in wp-admin.
    if (is_admin()) {
        if (!get_current_screen() || !in_array(get_current_screen()->base, array('page', 'post')) || !post_type_supports(get_current_screen()->post_type, 'editor')) {
            return;
        }
    }
    $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
    wp_enqueue_script('bp-mentions', buddypress()->plugin_url . "bp-activity/js/mentions{$min}.js", array('jquery', 'jquery-atwho'), bp_get_version(), true);
    wp_enqueue_style('bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/mentions{$min}.css", array(), bp_get_version());
    wp_style_add_data('bp-mentions-css', 'rtl', true);
    if ($min) {
        wp_style_add_data('bp-mentions-css', 'suffix', $min);
    }
    // If the script has been enqueued, let's attach our mentions TinyMCE init callback.
    add_filter('tiny_mce_before_init', 'bp_add_mentions_on_tinymce_init', 10, 2);
    /**
     * Fires at the end of the Activity Mentions script.
     *
     * This is the hook where BP components can add their own prefetched results
     * friends to the page for quicker @mentions lookups.
     *
     * @since 2.1.0
     */
    do_action('bp_activity_mentions_prime_results');
}
Exemplo n.º 9
0
/**
 * Enqueue theme assets.
 *
 * @since 1.0.0
 */
function in_the_beginning_enqueue_assets()
{
    // Load Google fonts
    wp_enqueue_style('in-the-beginning-fonts', in_the_beginning_fonts_url(), array(), null);
    // Replace style.css with style-rtl.css for RTL languages
    wp_style_add_data('in-the-beginning', 'rtl', 'replace');
}
Exemplo n.º 10
0
/**
 * Enqueue CSS stylesheet with theme styles for Infinite Scroll.
 */
function twentysixteen_infinite_scroll_enqueue_styles()
{
    if (wp_script_is('the-neverending-homepage')) {
        wp_enqueue_style('infinity-twentysixteen', plugins_url('twentysixteen.css', __FILE__), array('the-neverending-homepage'), '20151102');
        wp_style_add_data('infinity-twentysixteen', 'rtl', 'replace');
    }
}
Exemplo n.º 11
0
/**
 * Enqueue scripts and styles for the front end.
 *
 * @since Twenty Thirteen 1.0
 *
 * @return void
 */
function utthehill_scripts_styles()
{
    if (!is_admin()) {
        wp_deregister_script('jquery');
        wp_register_script('jquery', "//code.jquery.com/jquery-1.11.2.min.js", array(), null, false);
        wp_enqueue_script('jquery');
    }
    /*
     * Adds JavaScript to pages with the comment form to support
     * sites with threaded comments (when in use).
     */
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
    // Loads UTK JavaScript with added object data fromthe WP table
    // FOR TESTING
    // wp_register_script( 'utthehill-utk', get_template_directory_uri() . '/library/js/build/utk-build.js', array( 'jquery' ), '2015-05-13', true );
    // FOR PROD
    wp_register_script('utthehill-utk', get_template_directory_uri() . '/library/js/min/utk-min.js', array('jquery'), '2015-05-20', true);
    // Setup some vars to pass to js
    $tempDirectory = get_template_directory_uri();
    global $blog_id;
    $siteId = $blog_id;
    $contentArray = generateJson();
    $translation_array = array('templateDirectory' => $tempDirectory, 'siteId' => $siteId, 'contentArray' => $contentArray);
    wp_localize_script('utthehill-utk', 'url_object', $translation_array);
    // run it Lola
    wp_enqueue_script('utthehill-utk');
    // Loads our main stylesheet.
    wp_enqueue_style('utthehill-style', get_stylesheet_uri(), array(), '2015-05-20');
    // Loads the Internet Explorer specific stylesheet.
    wp_enqueue_style('utthehill-ie', get_template_directory_uri() . '/library/css/ie.css', array('utthehill-style'), '2015-05-20');
    wp_style_add_data('utthehill-ie', 'conditional', 'lt IE 9');
}
 /**
  * Enqueue jetpack styles.
  * @since  1.6.1
  */
 public function jetpack_scripts()
 {
     global $storefront_version;
     if (class_exists('Jetpack')) {
         wp_enqueue_style('storefront-jetpack-style', get_template_directory_uri() . '/inc/jetpack/css/jetpack.css', '', $storefront_version);
         wp_style_add_data('storefront-jetpack-style', 'rtl', 'replace');
     }
 }
Exemplo n.º 13
0
 function profile_scripts()
 {
     wp_enqueue_script('post-by-email', plugins_url('post-by-email/post-by-email.js', __FILE__), array('jquery'));
     wp_enqueue_style('post-by-email', plugins_url('post-by-email/post-by-email.css', __FILE__));
     wp_style_add_data('post-by-email', 'jetpack-inline', true);
     // Do we really need `admin_styles`? With the new admin UI, it's breaking some bits.
     // Jetpack::init()->admin_styles();
 }
Exemplo n.º 14
0
/**
 * Enqueue scripts and styles.
 */
function afia_enqueue_scripts()
{
    wp_enqueue_style('genericon', get_template_directory_uri() . '/assets/css/font-awesome.min.css');
    wp_enqueue_style('style', get_stylesheet_uri(), array(), false, 'all');
    wp_enqueue_style('handheld', get_template_directory_uri() . '/assets/css/handheld.css', array(), false, 'all and (max-device-width:768px)');
    wp_enqueue_script('ie_html5shiv', get_template_directory_uri() . '/lib/js/html5.js');
    wp_style_add_data('ie_html5shiv', 'conditional', 'lt IE 9');
}
Exemplo n.º 15
0
 /**
  * Load all required CSS files on the front end.
  *
  * Developers can disable our CSS by filtering wp_featherlight_load_css to
  * false within their theme or plugin.
  *
  * @since  0.1.0
  * @access public
  * @return void
  */
 public function load_css()
 {
     if (!apply_filters('wp_featherlight_load_css', true)) {
         return;
     }
     wp_enqueue_style('wp-featherlight', "{$this->url}css/wp-featherlight{$this->suffix}.css", array(), $this->version);
     wp_style_add_data('wp-featherlight', 'rtl', 'replace');
     wp_style_add_data('wp-featherlight', 'suffix', $this->suffix);
 }
Exemplo n.º 16
0
/**
 * Enqueue scripts and styles.
 */
function cj_ferret_scripts()
{
    wp_enqueue_style('genericon', get_template_directory_uri() . '/lib/font/genericicon/genericons/genericons.css');
    wp_enqueue_style('style', get_stylesheet_uri(), array(), false, 'all');
    wp_enqueue_style('handheld', get_template_directory_uri() . '/lib/css/less-min.css', array(), false, 'all and (max-device-width:768px)');
    wp_enqueue_script('functions', get_template_directory_uri() . '/lib/js/functions.js', array('jquery'), '', true);
    wp_enqueue_script('ie_html5shiv', get_template_directory_uri() . '/lib/js/shiv-comp.js');
    wp_style_add_data('ie_html5shiv', 'conditional', 'lt IE 9');
}
Exemplo n.º 17
0
 function profile_scripts()
 {
     wp_enqueue_script('post-by-email', plugins_url('post-by-email/post-by-email.js', __FILE__), array('jquery'));
     wp_localize_script('post-by-email', 'pbeVars', array('nonces' => array('enable' => wp_create_nonce('jetpack.createPostByEmailAddress'), 'regenerate' => wp_create_nonce('jetpack.regeneratePostByEmailAddress'), 'disable' => wp_create_nonce('jetpack.deletePostByEmailAddress'))));
     wp_enqueue_style('post-by-email', plugins_url('post-by-email/post-by-email.css', __FILE__));
     wp_style_add_data('post-by-email', 'jetpack-inline', true);
     // Do we really need `admin_styles`? With the new admin UI, it's breaking some bits.
     // Jetpack::init()->admin_styles();
 }
Exemplo n.º 18
0
/**
 * Enqueues scripts and styles for front end.
 * ============================================================================ 
 */
function name_me_scripts_styles()
{
    global $wp_styles;
    // Loads our site styles (Generated with SASS)
    wp_enqueue_style('name_me_main_style', get_stylesheet_uri());
    // Loads the Internet Explorer specific stylesheets. (Generated with SASS)
    wp_enqueue_style('name_me_ie8', get_template_directory_uri() . '/css/ie.css', array('name_me_main_style'));
    wp_style_add_data('name_me_ie8', 'conditional', 'lt IE 9');
}
/**
 * WooCommerce specific scripts & stylesheets
 * @since 1.0.0
 */
function storefront_woocommerce_scripts()
{
    global $storefront_version;
    wp_enqueue_style('storefront-woocommerce-style', get_template_directory_uri() . '/inc/woocommerce/css/woocommerce.css', $storefront_version);
    wp_style_add_data('storefront-woocommerce-style', 'rtl', 'replace');
    wp_register_script('storefront-sticky-payment', get_template_directory_uri() . '/js/checkout.min.js', 'jquery', $storefront_version, true);
    if (is_checkout()) {
        wp_enqueue_script('storefront-sticky-payment');
    }
}
 /**
  * Enqueue our scripts and CSS.
  */
 function qldgovt_enqueue_scripts()
 {
     $suffix = SCRIPT_DEBUG ? '' : '.min';
     wp_enqueue_style('main', get_stylesheet_uri());
     wp_enqueue_script('qg', get_template_directory_uri() . "/assets/js/qg{$suffix}.js", array('jquery'), '1.0', true);
     wp_enqueue_style('ie-stylesheet', get_template_directory_uri() . "/assets/css/qg-ie{$suffix}.css", array());
     wp_style_add_data('ie-stylesheet', 'conditional', 'lt IE 8');
     wp_enqueue_script('ie-layout', get_template_directory_uri() . "/assets/js/ie-layout{$suffix}.js", array('jquery'));
     wp_script_add_data('ie-layout', 'conditional', 'lt IE 9');
 }
Exemplo n.º 21
0
function twentyfifteen_init_jetpack()
{
    /**
     * Add our compat CSS file for custom widget stylings and such.
     * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production.
     */
    $version = Jetpack::is_development_version() ? filemtime(plugin_dir_path(__FILE__) . 'twentyfifteen.css') : JETPACK__VERSION;
    wp_enqueue_style('twentyfifteen-jetpack', plugins_url('twentyfifteen.css', __FILE__), array(), $version);
    wp_style_add_data('twentyfifteen-jetpack', 'rtl', 'replace');
}
Exemplo n.º 22
0
/**
 * Enqueue the CSS for XProfile admin styling.
 *
 * @since 1.1.0
 */
function xprofile_add_admin_css()
{
    if (!empty($_GET['page']) && strpos($_GET['page'], 'bp-profile-setup') !== false) {
        $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
        wp_enqueue_style('xprofile-admin-css', buddypress()->plugin_url . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version());
        wp_style_add_data('xprofile-admin-css', 'rtl', true);
        if ($min) {
            wp_style_add_data('xprofile-admin-css', 'suffix', $min);
        }
    }
}
/**
 * Enqueue the CSS for XProfile admin styling.
 *
 * @since 1.1.0
 */
function xprofile_add_admin_css()
{
    if (!empty($_GET['page']) && strpos($_GET['page'], 'bp-profile-setup') !== false) {
        $min = bp_core_get_minified_asset_suffix();
        wp_enqueue_style('xprofile-admin-css', buddypress()->plugin_url . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version());
        wp_style_add_data('xprofile-admin-css', 'rtl', true);
        if ($min) {
            wp_style_add_data('xprofile-admin-css', 'suffix', $min);
        }
    }
}
Exemplo n.º 24
0
 /**
  * Load welcome screen css
  * @return void
  * @since  1.4.4
  */
 public function welcome_style($hook_suffix)
 {
     global $storefront_version;
     if ('appearance_page_storefront-welcome' == $hook_suffix) {
         wp_enqueue_style('storefront-welcome-screen', get_template_directory_uri() . '/assets/sass/admin/welcome-screen/welcome.css', $storefront_version);
         wp_style_add_data('storefront-welcome-screen', 'rtl', 'replace');
         wp_enqueue_style('thickbox');
         wp_enqueue_script('thickbox');
         wp_enqueue_script('masonry');
         wp_enqueue_script('storefront-welcome-screen-script', get_template_directory_uri() . '/assets/js/admin/welcome-screen/welcome.min.js', array('masonry'), $storefront_version);
     }
 }
/**
 * Enqueue the CSS for messages autocomplete.
 *
 * @todo Why do we call wp_print_styles()?
 */
function messages_add_autocomplete_css()
{
    if (bp_is_messages_component() && bp_is_current_action('compose')) {
        $min = bp_core_get_minified_asset_suffix();
        $url = buddypress()->plugin_url . 'bp-messages/css/';
        wp_enqueue_style('bp-messages-autocomplete', "{$url}autocomplete/jquery.autocompletefb{$min}.css", array(), bp_get_version());
        wp_style_add_data('bp-messages-autocomplete', 'rtl', true);
        if ($min) {
            wp_style_add_data('bp-messages-autocomplete', 'suffix', $min);
        }
        wp_print_styles();
    }
}
Exemplo n.º 26
0
/**
 * Register styles commonly used by BuddyPress.
 *
 * @since BuddyPress (2.1.0)
 */
function bp_core_register_common_styles()
{
    $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
    $url = buddypress()->plugin_url . 'bp-core/css/';
    $styles = apply_filters('bp_core_register_common_styles', array('bp-admin-bar' => array('file' => apply_filters('bp_core_admin_bar_css', "{$url}admin-bar{$min}.css"), 'dependencies' => array('admin-bar'))));
    foreach ($styles as $id => $style) {
        wp_register_style($id, $style['file'], $style['dependencies'], bp_get_version());
        wp_style_add_data($id, 'rtl', true);
        if ($min) {
            wp_style_add_data($id, 'suffix', $min);
        }
    }
}
Exemplo n.º 27
0
function twentysixteen_init_jetpack()
{
    /**
     * Add our compat CSS file for custom widget stylings and such.
     * Set the version equal to filemtime for development builds, and the JETPACK__VERSION for production
     * or skip it entirely for wpcom.
     */
    $version = false;
    if (method_exists('Jetpack', 'is_development_version')) {
        $version = Jetpack::is_development_version() ? filemtime(plugin_dir_path(__FILE__) . 'twentysixteen.css') : JETPACK__VERSION;
    }
    wp_enqueue_style('twentysixteen-jetpack', plugins_url('twentysixteen.css', __FILE__), array(), $version);
    wp_style_add_data('twentysixteen-jetpack', 'rtl', 'replace');
}
function load_marquee_scripts()
{
    //wp_register_script('jquery', 'http://code.jquery.com/jquery-1.11.0.min.js');
    wp_register_script('ex2_slider_js', get_template_directory_uri() . '/ex2-slider/js/ex2_slider.js', array('jquery'));
    //wp_enqueue_script('jquery');
    wp_enqueue_script('ex2_slider_js');
    // Load the Internet Explorer specific stylesheet.
    wp_enqueue_style('ex2-slider-css', get_template_directory_uri() . "/ex2-slider/css/ex2_slider.css", array("ex2-blank-style"));
    wp_enqueue_style('ex2-slider-ie8', get_template_directory_uri() . "/ex2-slider/css/ex2_slider_ie8.css", array("ex2-slider-css"));
    wp_style_add_data('ex2-slider-ie8', 'conditional', 'lt IE 9');
    wp_register_script('ex2-slider-shiv', "http://html5shiv.googlecode.com/svn/trunk/html5.js", array("ex2_slider_js"));
    wp_enqueue_script('ex2-slider-shiv');
    wp_script_add_data('ex2-slider-shiv', 'conditional', 'lt IE 9');
}
Exemplo n.º 29
0
/**
 * Enqueue scripts and styles.
 */
function portfoliopress_scripts()
{
    wp_enqueue_style('portfoliopress-style', get_stylesheet_uri(), array(), PORTFOLIO_VERSION);
    // Use style-rtl.css for RTL layouts
    wp_style_add_data('portfoliopress-style', 'rtl', 'replace');
    if (SCRIPT_DEBUG || WP_DEBUG) {
        wp_enqueue_script('portfoliopress-navigation', get_template_directory_uri() . '/js/navigation.js', array('jquery'), PORTFOLIO_VERSION, true);
        wp_enqueue_script('portfoliopress-fit-vids', get_template_directory_uri() . '/js/jquery.fitvids.js', array('jquery'), PORTFOLIO_VERSION, true);
    } else {
        wp_enqueue_script('portfoliopress-combined', get_template_directory_uri() . '/js/combined-min.js', array('jquery'), PORTFOLIO_VERSION, true);
    }
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Exemplo n.º 30
0
 function fcwp_load_stylesheets()
 {
     // Load the main stylesheet.
     wp_enqueue_style('olc-style', FCWP_STYLESHEETURI, array(), '1.0.0');
     // Load the Internet Explorer 7 specific stylesheet.
     wp_enqueue_style('olc-ie8-style', FCWP_STYLESHEETURI . '/css/ie8.style.css', array('olc-style'), '1.0.0');
     wp_style_add_data('olc-ie8-style', 'conditional', 'IE 8');
     // Load the Internet Explorer 7 specific stylesheet.
     wp_enqueue_style('olc-ie9-style', FCWP_STYLESHEETURI . '/css/ie9.style.css', array('olc-style'), '1.0.0');
     wp_style_add_data('olc-ie9-style', 'conditional', 'IE 9');
     $dir = get_stylesheet_directory();
     if (filesize($dir . '/css/quickfix.css') != 0) {
         wp_enqueue_style('ohw-qf', FCWP_CHILD_STYLESHEETURI . '/css/quickfix.css', array(), '1.0.0', 'all');
     }
 }