Merge pull request #148 from stef-k/code-format-loop-templates - Thx again @stef-k

code formatting second batch - Thx again @stef-k
This commit is contained in:
Holger 2016-11-22 08:12:03 +01:00 committed by GitHub
commit 4e26144bcc
10 changed files with 127 additions and 116 deletions

View File

@ -1,9 +1,8 @@
<?php
/**
* The template used for displaying page content in page.php
* Blank content partial template.
*
* @package understrap
*/
?>
<?php the_content(); ?>
the_content();

View File

@ -1,9 +1,8 @@
<?php
/**
* The template used for displaying page content in page.php
* Content empty partial template.
*
* @package understrap
*/
?>
<?php the_content(); ?>
the_content();

View File

@ -4,6 +4,7 @@
*
* @package understrap
*/
$col = get_theme_mod( 'understrap_grid_post_columns' );
?>
<a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark">

View File

@ -8,7 +8,6 @@
*/
?>
<article class="post no-results not-found" id="post-0">
<header class="page-header">
@ -21,16 +20,19 @@
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.',
'understrap' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'understrap' ); ?></p>
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.',
'understrap' ); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'understrap' ); ?></p>
<p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.',
'understrap' ); ?></p>
<?php get_search_form(); ?>

View File

@ -1,11 +1,11 @@
<?php
/**
* The template used for displaying page content in page.php
* Partial template for content in page.php
*
* @package understrap
*/
?>
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">

View File

@ -1,14 +1,17 @@
<?php
/**
* Search results partial template.
*
* @package understrap
*/
?>
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ),
'</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>

View File

@ -1,9 +1,11 @@
<?php
/**
* Single post partial template.
*
* @package understrap
*/
?>
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">

View File

@ -2,13 +2,14 @@
/**
* The template used for displaying page content in a vertical layout
* The template modifies Article's ID by using post's slug to lower case as anchor point.
*
* @package understrap
*/
?>
?>
<?php global $post ?>
<article <?php post_class(); ?> id="<?php echo strtolower( $post->post_title ); ?>">
<article <?php post_class(); ?> id="<?php echo esc_html( strtolower( $post->post_title ) ); ?>">
<header class="entry-header">

View File

@ -1,14 +1,18 @@
<?php
/**
* Post rendering content according to caller of get_template_part.
*
* @package understrap
*/
?>
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ),
'</a></h2>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>