Skip to content

Commit 8cc266e

Browse files
committed
auto code format
1 parent 746d0e0 commit 8cc266e

29 files changed

+717
-690
lines changed

advert.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
<div class="ads text-center">
1313
<?php
14-
if (wp_is_mobile()) {
15-
if (is_active_sidebar(2)) {
16-
dynamic_sidebar(2);
17-
}
18-
} else {
19-
if (is_active_sidebar(3)) {
20-
dynamic_sidebar(3);
21-
}
14+
if (wp_is_mobile()) {
15+
if (is_active_sidebar(2)) {
16+
dynamic_sidebar(2);
2217
}
23-
?>
18+
} else {
19+
if (is_active_sidebar(3)) {
20+
dynamic_sidebar(3);
21+
}
22+
}
23+
?>
2424
</div>

archive.php

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,69 +26,69 @@
2626
<header>
2727
<h1 class="article_title">
2828
<?php
29-
if (is_category()) {
30-
printf('%s', single_cat_title('', false));
31-
} elseif (is_tag()) {
32-
printf(
33-
esc_html_e('Posts Tagged %s', 'multiloquent'),
34-
single_cat_title('', false)
35-
);
36-
} elseif (is_day()) {
37-
printf(
38-
esc_html_e('Archive for %s', 'multiloquent'),
39-
get_the_time('F jS, Y')
40-
);
41-
} elseif (is_month()) {
42-
printf(
43-
esc_html_e('Archive for %s', 'multiloquent')
44-
, get_the_time('F Y')
45-
);
46-
} elseif (is_year()) {
47-
printf(
48-
esc_html_e('Archive for %s', 'multiloquent'),
49-
get_the_time('Y')
50-
);
51-
} elseif (is_search()) {
52-
printf(
53-
esc_html_e('Search Results', 'multiloquent')
54-
);
55-
} elseif (is_author()) {
56-
printf(
57-
esc_html_e('All entries by this author', 'multiloquent')
58-
);
59-
} elseif (isset($_GET['paged']) && ! empty($_GET['paged'])) {
60-
printf(
61-
esc_html_e('Blog Archives', 'multiloquent')
62-
);
63-
} elseif (is_home()) {
64-
printf(
65-
esc_html_e('Recent Posts', 'multiloquent')
66-
);
67-
}
68-
?>
29+
if (is_category()) {
30+
printf('%s', single_cat_title('', false));
31+
} elseif (is_tag()) {
32+
printf(
33+
esc_html_e('Posts Tagged %s', 'multiloquent'),
34+
single_cat_title('', false)
35+
);
36+
} elseif (is_day()) {
37+
printf(
38+
esc_html_e('Archive for %s', 'multiloquent'),
39+
get_the_time('F jS, Y')
40+
);
41+
} elseif (is_month()) {
42+
printf(
43+
esc_html_e('Archive for %s', 'multiloquent')
44+
, get_the_time('F Y')
45+
);
46+
} elseif (is_year()) {
47+
printf(
48+
esc_html_e('Archive for %s', 'multiloquent'),
49+
get_the_time('Y')
50+
);
51+
} elseif (is_search()) {
52+
printf(
53+
esc_html_e('Search Results', 'multiloquent')
54+
);
55+
} elseif (is_author()) {
56+
printf(
57+
esc_html_e('All entries by this author', 'multiloquent')
58+
);
59+
} elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
60+
printf(
61+
esc_html_e('Blog Archives', 'multiloquent')
62+
);
63+
} elseif (is_home()) {
64+
printf(
65+
esc_html_e('Recent Posts', 'multiloquent')
66+
);
67+
}
68+
?>
6969
</h1>
7070
</header>
7171
</div>
7272
</div>
7373
<section class="container-fluid post clearfix">
7474
<?php
75-
$colour = $multiloquent->multiloquent_get_random_blue_class();
76-
while (have_posts()) {
77-
the_post();
78-
$multiloquent->multiloquent_render_the_archive($colour);
79-
}
80-
?>
75+
$colour = $multiloquent->multiloquent_get_random_blue_class();
76+
while (have_posts()) {
77+
the_post();
78+
$multiloquent->multiloquent_render_the_archive($colour);
79+
}
80+
?>
8181
</section>
8282
<section class="container-fluid post clearfix">
8383
<?php
84-
get_template_part('advert');
85-
?>
84+
get_template_part('advert');
85+
?>
8686
</section>
8787
<div class="container-fluid post clearfix">
8888
<nav class="navitems text-center">
8989
<ul class="pagination">
90-
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent')); ?></li>
91-
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent')); ?></li>
90+
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'));?></li>
91+
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'));?></li>
9292
</ul>
9393
</nav>
9494
</div>
@@ -97,8 +97,8 @@
9797
?>
9898
<div class="container-fluid post clearfix">
9999
<?php
100-
get_template_part('error-snippet');
101-
?>
100+
get_template_part('error-snippet');
101+
?>
102102
</div>
103103
<?php
104104
}

author.php

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
<header class="profile">
2020
<div class="col-sm-12">
2121
<div class="col-xs-12 col-sm-8">
22-
<h2><?php the_author_meta('display_name'); ?></h2>
22+
<h2><?php the_author_meta('display_name');?></h2>
2323

2424
<p>
2525
<strong>
2626
<?php
27-
printf(
28-
esc_html_e('Website: ', 'multiloquent')
29-
);
30-
?>
27+
printf(
28+
esc_html_e('Website: ', 'multiloquent')
29+
);
30+
?>
3131
</strong>
32-
<?php the_author_link(); ?>
32+
<?php the_author_link();?>
3333
</p>
3434
</div>
3535
<div class="col-xs-12 col-sm-4 text-center">
@@ -38,11 +38,11 @@
3838
<figcaption class="ratings">
3939
<p>
4040
<?php
41-
printf(
42-
esc_html_e('Post count: %s', 'multiloquent'),
43-
$wp_query->found_posts
44-
);
45-
?>
41+
printf(
42+
esc_html_e('Post count: %s', 'multiloquent'),
43+
$wp_query->found_posts
44+
);
45+
?>
4646
</p>
4747
</figcaption>
4848
</figure>
@@ -51,43 +51,43 @@
5151
<div class="col-xs-12 divider">
5252
<div class="col-xs-12">
5353
<?php
54-
$description = get_the_author_meta('description');
55-
if ( ! empty($description)) {
56-
echo '<p>' . $description . '</p>';
57-
}
58-
?>
54+
$description = get_the_author_meta('description');
55+
if (!empty($description)) {
56+
echo '<p>' . $description . '</p>';
57+
}
58+
?>
5959
</div>
6060
</div>
6161
</header>
6262
</div>
6363
</div>
6464
<section class="container-fluid post clearfix">
6565
<?php
66-
$colour = $multiloquent->multiloquent_get_random_blue_class();
67-
while (have_posts()) {
68-
the_post();
69-
$multiloquent->multiloquent_render_the_archive($colour);
70-
}
71-
?>
66+
$colour = $multiloquent->multiloquent_get_random_blue_class();
67+
while (have_posts()) {
68+
the_post();
69+
$multiloquent->multiloquent_render_the_archive($colour);
70+
}
71+
?>
7272
</section>
7373
<section class="container-fluid post clearfix">
74-
<?php
75-
get_template_part('advert');
76-
?>
74+
<?php
75+
get_template_part('advert');
76+
?>
7777
</section>
7878
<div class="container-fluid post clearfix">
7979
<nav class="navitems text-center">
8080
<ul class="pagination">
81-
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent')) ?></li>
82-
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent')) ?></li>
81+
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'))?></li>
82+
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'))?></li>
8383
</ul>
8484
</nav>
8585
</div>
86-
<?php } else { ?>
86+
<?php } else {?>
8787
<div class="container-fluid post clearfix">
88-
<?php
89-
get_template_part('error-snippet');
90-
?>
88+
<?php
89+
get_template_part('error-snippet');
90+
?>
9191
</div>
9292
<?php
9393
}

breadcrumb.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@
99
* the breadcrumb for pages
1010
*/
1111

12-
1312
?>
1413
<nav class="container-fluid hidden-xs">
1514
<ul class="breadcrumb clearfix pull-left col-sm-12 col-md-6 col-lg-7" itemscope itemtype="http://schema.org/BreadcrumbList">
1615
<?php
17-
echo $multiloquent->multiloquent_breadcrumbs();
18-
?>
16+
echo $multiloquent->multiloquent_breadcrumbs();
17+
?>
1918
</ul>
2019
<ul class="breadcrumb clearfix pull-right col-sm-12 col-md-6 col-lg-5">
2120
<?php
22-
require(locate_template('metadata.php'));
23-
?>
21+
require locate_template('metadata.php');
22+
?>
2423
</ul>
2524
</nav>

category.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,49 +17,49 @@
1717
<div class="container-fluid clearfix">
1818
<header>
1919
<h1 class="article_title">
20-
<?php printf('%s', single_cat_title('', false)); ?>
20+
<?php printf('%s', single_cat_title('', false));?>
2121
</h1>
2222

2323
<p>
2424
<?php
25-
printf(
26-
esc_html_e('There are %1$s posts in the %2$s category', 'multiloquent'),
27-
$wp_query->found_posts,
28-
single_cat_title('', false)
29-
);
30-
?>
25+
printf(
26+
esc_html_e('There are %1$s posts in the %2$s category', 'multiloquent'),
27+
$wp_query->found_posts,
28+
single_cat_title('', false)
29+
);
30+
?>
3131
</p>
3232
<div><?php echo category_description(); ?></div>
3333
</header>
3434
</div>
3535
</div>
3636
<section class="container-fluid post clearfix">
3737
<?php
38-
$colour = $multiloquent->multiloquent_get_random_blue_class();
39-
while (have_posts()) {
40-
the_post();
41-
$multiloquent->multiloquent_render_the_archive($colour);
42-
}
43-
?>
38+
$colour = $multiloquent->multiloquent_get_random_blue_class();
39+
while (have_posts()) {
40+
the_post();
41+
$multiloquent->multiloquent_render_the_archive($colour);
42+
}
43+
?>
4444
</section>
4545
<section class="container-fluid post clearfix">
4646
<?php
47-
get_template_part('advert');
48-
?>
47+
get_template_part('advert');
48+
?>
4949
</section>
5050
<div class="container-fluid post clearfix">
5151
<nav class="navitems text-center">
5252
<ul class="pagination">
53-
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent')) ?></li>
54-
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent')) ?></li>
53+
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'))?></li>
54+
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'))?></li>
5555
</ul>
5656
</nav>
5757
</div>
58-
<?php } else { ?>
58+
<?php } else {?>
5959
<div class="container-fluid post clearfix">
6060
<?php
61-
get_template_part('error-snippet');
62-
?>
61+
get_template_part('error-snippet');
62+
?>
6363
</div>
6464
<?php
6565
}

0 commit comments

Comments
 (0)