Fix indentations

This commit is contained in:
Ben Goldsworthy 2021-01-23 14:41:19 +00:00
parent f650e53d9b
commit 42ba13de1b
14 changed files with 364 additions and 368 deletions

View file

@ -6,7 +6,7 @@
* @since Omphaloskepsis 1.0 * @since Omphaloskepsis 1.0
*/ */
/* /**
* If the current post is protected by a password and * If the current post is protected by a password and
* the visitor has not yet entered the password we will * the visitor has not yet entered the password we will
* return early without loading the comments. * return early without loading the comments.

View file

@ -1,9 +1,7 @@
<?php <?php
/** /**
* Template Name: Experience by Companies * Template Name: Experience by Companies
* / *
/**
* The template for displaying all items, indexed by organisation. * The template for displaying all items, indexed by organisation.
* *
* @package Omphaloskepsis * @package Omphaloskepsis

View file

@ -1,9 +1,7 @@
<?php <?php
/** /**
* Template Name: Experience Timeline * Template Name: Experience Timeline
* / *
/**
* The template for displaying all roles in a timeline. * The template for displaying all roles in a timeline.
* *
* @package Omphaloskepsis * @package Omphaloskepsis
@ -114,7 +112,7 @@ function within_dates( $role_start_date, $role_end_date ) {
) )
); );
$role_title = htmlspecialchars_decode( strip_tags( get_the_title() ) ); $role_title = htmlspecialchars_decode( wp_strip_all_tags( get_the_title() ) );
$start = get_the_date(); $start = get_the_date();
$end = ( ! $end_date || ( $end_date && $end_date > gmdate( 'Y-m-d' ) ) ) ? gmdate( 'Y-m-d' ) : $end_date; $end = ( ! $end_date || ( $end_date && $end_date > gmdate( 'Y-m-d' ) ) ) ? gmdate( 'Y-m-d' ) : $end_date;
?> ?>

View file

@ -133,7 +133,7 @@
<section id="related" class="row"> <section id="related" class="row">
<div id="parents" class="col-6 col-m-12"> <div id="parents" class="col-6 col-m-12">
<?php <?php
if ( get_queried_object()->parent != 0 ) { if ( get_queried_object()->parent !== 0 ) {
// phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores // phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
$parents = apply_filters( $parents = apply_filters(
'taxonomy-images-get-terms', 'taxonomy-images-get-terms',
@ -181,7 +181,7 @@
// phpcs:enable // phpcs:enable
if ( count( $children ) > 0 ) : if ( count( $children ) > 0 ) :
?> ?>
<h2 class="subheading">Child<?php echo ( count( $children ) != 1 ) ? 'ren' : ''; ?></h2> <h2 class="subheading">Child<?php echo ( count( $children ) !== 1 ) ? 'ren' : ''; ?></h2>
<ul class="index"> <ul class="index">
<?php <?php
foreach ( (array) $children as $child ) : foreach ( (array) $children as $child ) :