Merge branch 'master' of github.com:benchmarkstudios/barebones
This commit is contained in:
commit
a48e9be598
|
@ -14,7 +14,6 @@ Author: Benchmark
|
||||||
|
|
||||||
@import 'vendor/simple-grid/simple-grid';
|
@import 'vendor/simple-grid/simple-grid';
|
||||||
|
|
||||||
@import 'base/normalise';
|
|
||||||
@import 'base/shared';
|
@import 'base/shared';
|
||||||
@import 'base/images';
|
@import 'base/images';
|
||||||
@import 'base/forms';
|
@import 'base/forms';
|
||||||
|
@ -23,4 +22,4 @@ Author: Benchmark
|
||||||
@import 'base/links';
|
@import 'base/links';
|
||||||
|
|
||||||
@import 'modules/nav';
|
@import 'modules/nav';
|
||||||
@import 'modules/buttons';
|
@import 'modules/buttons';
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
.sr-only {
|
.sr-only {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
width: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -42,10 +42,8 @@ add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' );
|
||||||
function barebones_scripts() {
|
function barebones_scripts() {
|
||||||
/*
|
/*
|
||||||
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
* For IE8 to play nice, you'll need to include your CSS here, for example:
|
||||||
*
|
|
||||||
* wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' );
|
|
||||||
* wp_enqueue_style( 'icons', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', null, '4.3.0' );
|
|
||||||
*/
|
*/
|
||||||
|
// wp_enqueue_style( 'fonts', '//fonts.googleapis.com/css?family=Font+Family' );
|
||||||
wp_deregister_script( 'jquery' );
|
wp_deregister_script( 'jquery' );
|
||||||
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2', true );
|
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2', true );
|
||||||
wp_enqueue_script( 'jquery' );
|
wp_enqueue_script( 'jquery' );
|
||||||
|
@ -133,3 +131,13 @@ function barebones_tiny_mce_before_init( $settings ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
|
add_filter( 'tiny_mce_before_init', 'barebones_tiny_mce_before_init' );
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get image URL for whatever size.
|
||||||
|
*/
|
||||||
|
|
||||||
|
function wp_get_attachment_image_url( $id, $size = 'full', $attrs = []) {
|
||||||
|
$image = wp_get_attachment_image_src( $id, $size, $attrs );
|
||||||
|
return $image[0];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue