From d6c0125fa91a9bc5f5d2ed6fcd228acc36767827 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Sun, 15 Jan 2012 20:37:40 -0500 Subject: [PATCH] Add rel option to stylesheet_link_tag() --- inc/roots-actions.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/inc/roots-actions.php b/inc/roots-actions.php index 9109cff..e93bdf1 100644 --- a/inc/roots-actions.php +++ b/inc/roots-actions.php @@ -50,7 +50,7 @@ function roots_get_stylesheets() { $styles .= stylesheet_link_tag('/bootstrap/bootstrap.css'); break; case 'bootstrap_less' : - $styles .= less_stylesheet_link_tag('/bootstrap/lib/bootstrap.less'); + $styles .= stylesheet_link_tag('/bootstrap/lib/bootstrap.less', 0, true, 'stylesheet/less'); break; } @@ -80,14 +80,9 @@ function roots_get_stylesheets() { echo $styles; } -function stylesheet_link_tag($file, $tabs = 0, $newline = true) { +function stylesheet_link_tag($file, $tabs = 0, $newline = true, $rel = 'stylesheet') { $indent = str_repeat("\t", $tabs); - return $indent . '' . ($newline ? "\n" : ""); -} - -function less_stylesheet_link_tag($file, $tabs = 0, $newline = true) { - $indent = str_repeat("\t", $tabs); - return $indent . '' . ($newline ? "\n" : ""); + return $indent . '' . ($newline ? "\n" : ""); } add_action('roots_footer', 'roots_google_analytics'); @@ -236,4 +231,4 @@ if (roots_current_framework() === 'bootstrap' || roots_current_framework() === ' } } -?> \ No newline at end of file +?>