Merge branch 'master' of github.com:benchmarkstudios/barebones

This commit is contained in:
Mike Francis 2015-04-13 12:07:23 +01:00
commit a48e9be598
3 changed files with 16 additions and 6 deletions

View File

@ -14,7 +14,6 @@ Author: Benchmark
@import 'vendor/simple-grid/simple-grid';
@import 'base/normalise';
@import 'base/shared';
@import 'base/images';
@import 'base/forms';
@ -23,4 +22,4 @@ Author: Benchmark
@import 'base/links';
@import 'modules/nav';
@import 'modules/buttons';
@import 'modules/buttons';

View File

@ -1,4 +1,7 @@
.sr-only {
font-size: 0;
height: 0;
overflow: hidden;
position: absolute;
}
width: 0;
}

View File

@ -42,10 +42,8 @@ add_filter( 'post_comments_feed_link', 'barebones_remove_comments_rss' );
function barebones_scripts() {
/*
* 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_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2', true );
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' );
/**
* 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];
}