Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
localhost8080 committed Mar 31, 2018
1 parent cf90470 commit 9120adb
Show file tree
Hide file tree
Showing 31 changed files with 1,711 additions and 1,711 deletions.
2 changes: 1 addition & 1 deletion 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
*/

get_header();
get_template_part('error-snippet');
get_template_part( 'error-snippet' );
get_footer();
18 changes: 9 additions & 9 deletions advert.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

<div class="ads text-center">
<?php
if (wp_is_mobile()) {
if (is_active_sidebar(2)) {
dynamic_sidebar(2);
}
} else {
if (is_active_sidebar(3)) {
dynamic_sidebar(3);
}
}
if ( wp_is_mobile() ) {
if ( is_active_sidebar( 2 ) ) {
dynamic_sidebar( 2 );
}
} else {
if ( is_active_sidebar( 3 ) ) {
dynamic_sidebar( 3 );
}
}
?>
</div>
110 changes: 55 additions & 55 deletions archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,86 +19,86 @@
*/

get_header();
if (have_posts()) {
?>
if ( have_posts() ) {
?>
<div class="jumbotron">
<div class="container-fluid clearfix">
<header>
<h1 class="article_title">
<?php
if (is_category()) {
printf('%s', single_cat_title('', false));
} elseif (is_tag()) {
printf(
esc_html_e('Posts Tagged %s', 'multiloquent'),
single_cat_title('', false)
);
} elseif (is_day()) {
printf(
esc_html_e('Archive for %s', 'multiloquent'),
get_the_time('F jS, Y')
);
} elseif (is_month()) {
printf(
esc_html_e('Archive for %s', 'multiloquent')
, get_the_time('F Y')
);
} elseif (is_year()) {
printf(
esc_html_e('Archive for %s', 'multiloquent'),
get_the_time('Y')
);
} elseif (is_search()) {
printf(
esc_html_e('Search Results', 'multiloquent')
);
} elseif (is_author()) {
printf(
esc_html_e('All entries by this author', 'multiloquent')
);
} elseif (isset($_GET['paged']) && ! empty($_GET['paged'])) {
printf(
esc_html_e('Blog Archives', 'multiloquent')
);
} elseif (is_home()) {
printf(
esc_html_e('Recent Posts', 'multiloquent')
);
}
?>
if ( is_category() ) {
printf( '%s', single_cat_title( '', false ) );
} elseif ( is_tag() ) {
printf(
esc_html_e( 'Posts Tagged %s', 'multiloquent' ),
single_cat_title( '', false )
);
} elseif ( is_day() ) {
printf(
esc_html_e( 'Archive for %s', 'multiloquent' ),
get_the_time( 'F jS, Y' )
);
} elseif ( is_month() ) {
printf(
esc_html_e( 'Archive for %s', 'multiloquent' )
, get_the_time( 'F Y' )
);
} elseif ( is_year() ) {
printf(
esc_html_e( 'Archive for %s', 'multiloquent' ),
get_the_time( 'Y' )
);
} elseif ( is_search() ) {
printf(
esc_html_e( 'Search Results', 'multiloquent' )
);
} elseif ( is_author() ) {
printf(
esc_html_e( 'All entries by this author', 'multiloquent' )
);
} elseif ( isset($_GET['paged']) && ! empty($_GET['paged']) ) {
printf(
esc_html_e( 'Blog Archives', 'multiloquent' )
);
} elseif ( is_home() ) {
printf(
esc_html_e( 'Recent Posts', 'multiloquent' )
);
}
?>
</h1>
</header>
</div>
</div>
<section class="container-fluid post clearfix">
<?php
$colour = $multiloquent->multiloquent_get_random_blue_class();
while (have_posts()) {
the_post();
$multiloquent->multiloquent_render_the_archive($colour);
}
?>
$colour = $multiloquent->multiloquent_get_random_blue_class();
while ( have_posts() ) {
the_post();
$multiloquent->multiloquent_render_the_archive( $colour );
}
?>
</section>
<section class="container-fluid post clearfix">
<?php
get_template_part('advert');
?>
get_template_part( 'advert' );
?>
</section>
<div class="container-fluid post clearfix">
<nav class="navitems text-center">
<ul class="pagination">
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'));?></li>
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'));?></li>
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) );?></li>
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) );?></li>
</ul>
</nav>
</div>
<?php
} else {
?>
?>
<div class="container-fluid post clearfix">
<?php
get_template_part('error-snippet');
?>
get_template_part( 'error-snippet' );
?>
</div>
<?php
}
Expand Down
66 changes: 33 additions & 33 deletions author.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@
*/

get_header();
if (have_posts()) {
?>
if ( have_posts() ) {
?>
<div class="jumbotron">
<div class="container-fluid clearfix">
<header class="profile">
<div class="col-sm-12">
<div class="col-xs-12 col-sm-8">
<h2><?php the_author_meta('display_name');?></h2>
<h2><?php the_author_meta( 'display_name' );?></h2>

<p>
<strong>
<?php
printf(
esc_html_e('Website: ', 'multiloquent')
);
?>
printf(
esc_html_e( 'Website: ', 'multiloquent' )
);
?>
</strong>
<?php the_author_link();?>
<?php the_author_link();?>
</p>
</div>
<div class="col-xs-12 col-sm-4 text-center">
<figure>
<?php echo get_avatar(get_the_author_meta('ID')); ?>
<?php echo get_avatar( get_the_author_meta( 'ID' ) ); ?>
<figcaption class="ratings">
<p>
<?php
printf(
esc_html_e('Post count: %s', 'multiloquent'),
$wp_query->found_posts
);
?>
<?php
printf(
esc_html_e( 'Post count: %s', 'multiloquent' ),
$wp_query->found_posts
);
?>
</p>
</figcaption>
</figure>
Expand All @@ -51,43 +51,43 @@
<div class="col-xs-12 divider">
<div class="col-xs-12">
<?php
$description = get_the_author_meta('description');
if ( ! empty($description)) {
echo '<p>' . $description . '</p>';
}
?>
$description = get_the_author_meta( 'description' );
if ( ! empty($description) ) {
echo '<p>' . $description . '</p>';
}
?>
</div>
</div>
</header>
</div>
</div>
<section class="container-fluid post clearfix">
<?php
$colour = $multiloquent->multiloquent_get_random_blue_class();
while (have_posts()) {
the_post();
$multiloquent->multiloquent_render_the_archive($colour);
}
?>
$colour = $multiloquent->multiloquent_get_random_blue_class();
while ( have_posts() ) {
the_post();
$multiloquent->multiloquent_render_the_archive( $colour );
}
?>
</section>
<section class="container-fluid post clearfix">
<?php
get_template_part('advert');
?>
get_template_part( 'advert' );
?>
</section>
<div class="container-fluid post clearfix">
<nav class="navitems text-center">
<ul class="pagination">
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'))?></li>
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'))?></li>
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) )?></li>
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) )?></li>
</ul>
</nav>
</div>
<?php } else {?>
<?php } else { ?>
<div class="container-fluid post clearfix">
<?php
get_template_part('error-snippet');
?>
get_template_part( 'error-snippet' );
?>
</div>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions breadcrumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
<nav class="container-fluid hidden-xs">
<ul class="breadcrumb clearfix pull-left col-sm-12 col-md-6 col-lg-7" itemscope itemtype="http://schema.org/BreadcrumbList">
<?php
echo $multiloquent->multiloquent_breadcrumbs();
echo $multiloquent->multiloquent_breadcrumbs();
?>
</ul>
<ul class="breadcrumb clearfix pull-right col-sm-12 col-md-6 col-lg-5">
<?php
require locate_template('metadata.php');
require locate_template( 'metadata.php' );
?>
</ul>
</nav>
44 changes: 22 additions & 22 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,55 @@
*/

get_header();
if (have_posts()) {
?>
if ( have_posts() ) {
?>
<div class="jumbotron">
<div class="container-fluid clearfix">
<header>
<h1 class="article_title">
<?php printf('%s', single_cat_title('', false));?>
<?php printf( '%s', single_cat_title( '', false ) );?>
</h1>

<p>
<?php
printf(
esc_html_e('There are %1$s posts in the %2$s category', 'multiloquent'),
$wp_query->found_posts,
single_cat_title('', false)
);
?>
printf(
esc_html_e( 'There are %1$s posts in the %2$s category', 'multiloquent' ),
$wp_query->found_posts,
single_cat_title( '', false )
);
?>
</p>
<div><?php echo category_description(); ?></div>
</header>
</div>
</div>
<section class="container-fluid post clearfix">
<?php
$colour = $multiloquent->multiloquent_get_random_blue_class();
while (have_posts()) {
the_post();
$multiloquent->multiloquent_render_the_archive($colour);
}
?>
$colour = $multiloquent->multiloquent_get_random_blue_class();
while ( have_posts() ) {
the_post();
$multiloquent->multiloquent_render_the_archive( $colour );
}
?>
</section>
<section class="container-fluid post clearfix">
<?php
get_template_part('advert');
?>
get_template_part( 'advert' );
?>
</section>
<div class="container-fluid post clearfix">
<nav class="navitems text-center">
<ul class="pagination">
<li><?php previous_posts_link(esc_html_e('Previous Entries', 'multiloquent'))?></li>
<li><?php next_posts_link(esc_html_e('Next Entries', 'multiloquent'))?></li>
<li><?php previous_posts_link( esc_html_e( 'Previous Entries', 'multiloquent' ) )?></li>
<li><?php next_posts_link( esc_html_e( 'Next Entries', 'multiloquent' ) )?></li>
</ul>
</nav>
</div>
<?php } else {?>
<?php } else { ?>
<div class="container-fluid post clearfix">
<?php
get_template_part('error-snippet');
?>
get_template_part( 'error-snippet' );
?>
</div>
<?php
}
Expand Down
Loading

0 comments on commit 9120adb

Please sign in to comment.