Rename to Sage

This commit is contained in:
Ben Word
2015-01-09 20:48:11 -06:00
parent eaf4d7b73b
commit 030c084134
29 changed files with 198 additions and 201 deletions

View File

@@ -7,7 +7,7 @@
*
* @link http://getbootstrap.com/components/#thumbnails
*/
function roots_gallery($attr) {
function sage_gallery($attr) {
$post = get_post();
static $instance = 0;
@@ -115,15 +115,15 @@ function roots_gallery($attr) {
}
if (current_theme_supports('bootstrap-gallery')) {
remove_shortcode('gallery');
add_shortcode('gallery', 'roots_gallery');
add_shortcode('gallery', 'sage_gallery');
add_filter('use_default_gallery_style', '__return_null');
}
/**
* Add class="thumbnail img-thumbnail" to attachment items
*/
function roots_attachment_link_class($html) {
function sage_attachment_link_class($html) {
$html = str_replace('<a', '<a class="thumbnail img-thumbnail"', $html);
return $html;
}
add_filter('wp_get_attachment_link', 'roots_attachment_link_class', 10, 1);
add_filter('wp_get_attachment_link', 'sage_attachment_link_class', 10, 1);