Fix indentations
This commit is contained in:
parent
f650e53d9b
commit
42ba13de1b
14 changed files with 364 additions and 368 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
@ -13,7 +11,7 @@
|
||||||
get_header(); ?>
|
get_header(); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Calculates wether a role is within the max. and min. dates
|
* Calculates wether a role is within the max. and min. dates
|
||||||
* for the timeline.
|
* for the timeline.
|
||||||
*
|
*
|
||||||
|
@ -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;
|
||||||
?>
|
?>
|
||||||
|
|
2
page.php
2
page.php
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* The template for displaying pages.
|
* The template for displaying pages.
|
||||||
*
|
*
|
||||||
* @package Omphaloskepsis
|
* @package Omphaloskepsis
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* The template for the sidebar.
|
* The template for the sidebar.
|
||||||
*
|
*
|
||||||
* @package Omphaloskepsis
|
* @package Omphaloskepsis
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* The template for displaying all single Pages.
|
* The template for displaying all single Pages.
|
||||||
*
|
*
|
||||||
* @package Omphaloskepsis
|
* @package Omphaloskepsis
|
||||||
|
|
|
@ -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 ) :
|
||||||
|
|
Reference in a new issue