-
Notifications
You must be signed in to change notification settings - Fork 13
Adds 39 and several other WordPress templates. #50
Conversation
inc/template-functions.php
Outdated
* @return string $title | ||
*/ | ||
function ampconf_get_the_archive_title( $title ) { | ||
$parts = explode( ':', $title ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some languages may translate “:” differently for the strings found in get_the_archive_title()
so this won't always work.
// If comments are open or we have at least one comment, load up the comment template. | ||
if ( comments_open() || get_comments_number() ) : | ||
comments_template(); | ||
endif; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since comments are never shown on pages, I'll add remove_post_type_support( 'page', 'comments' );
templates/entry/full.php
Outdated
?> | ||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'entry entry--featured' ); ?>> | ||
<figure class="entry__thumbnail"> | ||
<a href="<?php esc_url( the_permalink() ); ?>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: the_permalink()
echoes, so the esc_url()
here will run on null
, which won't get printed anyway. I'll change this to just the_permalink()
, as the return goes through esc_url()
already.
templates/entry/full.php
Outdated
<figure class="entry__thumbnail"> | ||
<a href="<?php esc_url( the_permalink() ); ?>"> | ||
<?php the_post_thumbnail( 'ampconf-375x225' ); ?> | ||
<?php the_post_thumbnail( 'ampconf-1040x400' ); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also: * Fix usage of the_permalink(). * Add some more phpdoc. * Add translation for share label.
templates/entry/full.php
Outdated
|
||
?> | ||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'entry entry--featured' ); ?>> | ||
<figure class="entry__thumbnail"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kopepasah should all instances of <figure class="entry__thumbnail">
be wrapped with <?php if ( has_post_thumbnail() ) : ?>
?
Branched off and dependent onBranchadd/34
.add/34
has been merged intodevelop
.