Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Added Html5Shiv
Browse files Browse the repository at this point in the history
Added html5shiv for i.e. 8 or later support.
  • Loading branch information
Jessika Caldera authored and Jessika Caldera committed Jul 8, 2014
1 parent 38b88b2 commit f62c2e4
Show file tree
Hide file tree
Showing 6 changed files with 863 additions and 1 deletion.
12 changes: 12 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,24 @@ function cs_scripts() {
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 );


if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}

add_action( 'wp_enqueue_scripts', 'cs_scripts' );

function htmlShiv(){
$template = get_template_directory_uri();
echo '<!--[if lt IE 9]><script src="' . $template . '/js/html5shiv/html5shiv.min.js"></script><script src="' . $template . '/js/html5shiv/html5shiv-printshiv.min.js"></script><![endif]-->';


}

add_action( 'wp_head', htmlShiv, 1 );


/**
* Implement the Custom Header feature.
*/
Expand Down
2 changes: 1 addition & 1 deletion inc/reg-sidebars.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function check_sidebar_params( $params ) {
} else {
$cols = floor(12 / $count);
}
$params[0]['before_widget'] = str_replace('class="', 'class="col-xs-' . $cols . ' ', $params[0]['before_widget']);
$params[0]['before_widget'] = str_replace('class="', 'class="col-sm-' . $cols . ' ', $params[0]['before_widget']);
}
return $params;
}
Expand Down
Loading

0 comments on commit f62c2e4

Please sign in to comment.