Minor code cleanup
This commit is contained in:
@@ -119,7 +119,7 @@ function roots_1140_header_before() {
|
||||
global $roots_options;
|
||||
$roots_css_framework = $roots_options['css_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "<div class=\"row\">\n";
|
||||
echo '<div class="row">', "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ function roots_1140_header_after() {
|
||||
$roots_css_framework = $roots_options['css_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "</div><!-- /.row -->\n";
|
||||
echo "<div class=\"row\">\n";
|
||||
echo '<div class="row">', "\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ function roots_1140_footer_before() {
|
||||
$roots_css_framework = $roots_options['css_framework'];
|
||||
if ($roots_css_framework === '1140') {
|
||||
echo "</div><!-- /.row -->\n";
|
||||
echo "<div class=\"row\">\n";
|
||||
echo '<div class="row">', "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -152,8 +152,8 @@ add_filter('the_generator', 'roots_no_generator');
|
||||
|
||||
// cleanup wp_head
|
||||
function roots_noindex() {
|
||||
if ('0' == get_option('blog_public'))
|
||||
echo "<meta name=\"robots\" content=\"noindex,nofollow\">\n";
|
||||
if (get_option('blog_public') === '0')
|
||||
echo '<meta name="robots" content="noindex,nofollow">', "\n";
|
||||
}
|
||||
|
||||
function roots_rel_canonical() {
|
||||
@@ -163,7 +163,7 @@ function roots_rel_canonical() {
|
||||
if (!$id = $wp_the_query->get_queried_object_id())
|
||||
return;
|
||||
$link = get_permalink($id);
|
||||
echo "<link rel=\"canonical\" href=\"$link\">\n";
|
||||
echo "\t<link rel=\"canonical\" href=\"$link\">\n";
|
||||
}
|
||||
|
||||
// remove CSS from recent comments widget
|
||||
@@ -176,7 +176,7 @@ function roots_remove_recent_comments_style() {
|
||||
|
||||
// remove CSS from gallery
|
||||
function roots_gallery_style($css) {
|
||||
return preg_replace("#<style type='text/css'>(.*?)</style>#s", '', $css);
|
||||
return preg_replace("/<style type='text/css'>(.*?)</style>/s", '', $css);
|
||||
}
|
||||
|
||||
function roots_head_cleanup() {
|
||||
|
||||
@@ -18,7 +18,7 @@ class roots_vcard extends WP_Widget {
|
||||
$email = $instance['email'];
|
||||
?>
|
||||
<?php echo $before_widget; ?>
|
||||
<?php if ($title) echo $before_title . $title . $after_title; ?>
|
||||
<?php if ($title) echo $before_title, $title, $after_title; ?>
|
||||
<p class="vcard">
|
||||
<a class="fn org url" href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a><br>
|
||||
<span class="adr">
|
||||
@@ -83,4 +83,4 @@ class roots_vcard extends WP_Widget {
|
||||
|
||||
register_widget('roots_vcard');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user