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 +?>