Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
05693133dd
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
53 lines (41 sloc) 2.85 KB
<?php
function cs_scripts() {
wp_enqueue_style( 'cs-glyph', site_url().'/wp-content/global/glyphicons_pro/glyphicons/web/html_css/css/glyphicons.css');
wp_enqueue_style( 'cs-glyph-filetypes', site_url().'/wp-content/global/glyphicons_pro/glyphicons-filetypes/web/html_css/css/glyphicons-filetypes.css');
wp_enqueue_style( 'cs-glyph-halflings', site_url().'/wp-content/global/glyphicons_pro/glyphicons-halflings/web/html_css/css/glyphicons-halflings.css');
wp_enqueue_style( 'cs-glyph-social', site_url().'/wp-content/global/glyphicons_pro/glyphicons-social/web/html_css/css/glyphicons-social.css');
wp_enqueue_style( 'cs-style', get_stylesheet_uri(), array( 'cs-glyph' ));
wp_enqueue_style( 'cs-print', get_template_directory_uri() .'/css/print.css', array( 'cs-style' ), false, 'print');
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
$maxMegaMenuActive = is_plugin_active('megamenu/megamenu.php');
if ($maxMegaMenuActive){
wp_enqueue_style( 'cs-megamenu', get_template_directory_uri(). '/css/megamenu-cornerstone-base.css', array( 'cs-style' ));
};
wp_enqueue_script( 'cs-bootstrap-js', site_url().'/wp-content/global/bootstrap-3.3.4/javascripts/bootstrap.min.js', array( 'jquery' ));
wp_enqueue_script( 'cs-modernizr', get_template_directory_uri() . '/js/cs-modernizr.js', array( 'jquery' ));
wp_enqueue_script( 'cs', get_template_directory_uri() . '/js/cs.js', array( 'jquery' ));
wp_enqueue_script( 'cs-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'cs-bootstrap-js'), '20120206', true );
wp_enqueue_script( 'cs-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true );
wp_enqueue_script( 'cs-header-widgets', get_template_directory_uri() . '/js/header-widgets.js', array( 'jquery' ));
$outboundtracking = get_option( 'outbound_tracking','');
if($outboundtracking == 'yes') wp_enqueue_script('uc-link-tracking', get_bloginfo('template_url').'/js/linktracking.js', array('jquery'));
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if(get_option('stickynav') == 'on') {
wp_enqueue_script( 'stickynav', get_template_directory_uri() . '/js/stickynav.js', array( 'jquery' ));
}
}
add_action( 'wp_enqueue_scripts', 'cs_scripts' );
function load_cornerstone_wp_admin_style($hook) {
wp_register_style( 'custom_wp_admin_css', get_template_directory_uri() . '/css/admin-style.php' );
wp_enqueue_style( 'custom_wp_admin_css' );
wp_register_script('uc-admin-js', get_template_directory_uri() . '/js/admin-style.js' );
wp_enqueue_script('uc-admin-js');
if( 'widgets.php' != $hook )
return;
wp_register_style( 'css-widgets-area', get_template_directory_uri().'/css/widgets-area.php' );
wp_enqueue_style( 'css-widgets-area' );
}
add_action( 'admin_enqueue_scripts', 'load_cornerstone_wp_admin_style' );
?>