chore(single.php): put only the title and content on the "article" tag
This commit is contained in:
parent
7037021187
commit
6cefb84c91
1 changed files with 34 additions and 35 deletions
69
single.php
69
single.php
|
@ -20,43 +20,42 @@
|
|||
<div class="article-entry">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
|
||||
<section class="card card-noheader">
|
||||
<div class="author-area">
|
||||
<? echo get_avatar( get_the_author_meta('user_email'), $size = '120'); ?>
|
||||
<div class="author-metadata">
|
||||
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space"><?php the_author() ?></a></div>
|
||||
<small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$custom_fields = get_post_custom();
|
||||
$my_custom_field = $custom_fields['description'];
|
||||
if ($my_custom_field != null) {
|
||||
foreach ( $my_custom_field as $key => $value ) {
|
||||
echo " <div class='card-body'> " . $value . "</div>";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="article-category">
|
||||
<?php $categories = get_the_category();
|
||||
foreach( $categories as $category ) {
|
||||
echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-folder'></i> " . $category->cat_name . "</a>";
|
||||
} ?>
|
||||
<?php $tags = get_the_tags();
|
||||
if ($tags) {
|
||||
foreach( $tags as $tag ) {
|
||||
echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary'><i class='fa fa-tag'></i> " . $tag->name . "</a>";
|
||||
}
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
<section class="card card-noheader">
|
||||
<div class="author-area">
|
||||
<? echo get_avatar( get_the_author_meta('user_email'), $size = '120'); ?>
|
||||
<div class="author-metadata">
|
||||
<div class="author-pseudo">Écrit par <a href="https://kazhnuz.space"><?php the_author() ?></a></div>
|
||||
<small class="author-date">Le <?php the_time('l j F Y à H:i') ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$custom_fields = get_post_custom();
|
||||
$my_custom_field = $custom_fields['description'];
|
||||
if ($my_custom_field != null) {
|
||||
foreach ( $my_custom_field as $key => $value ) {
|
||||
echo " <div class='card-body'> " . $value . "</div>";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="article-category">
|
||||
<?php $categories = get_the_category();
|
||||
foreach( $categories as $category ) {
|
||||
echo "<a href= '" . esc_url( get_category_link( $category->term_id ) ) . "' class='btn-small btn-info'><i class='fa fa-folder'></i> " . $category->cat_name . "</a>";
|
||||
} ?>
|
||||
<?php $tags = get_the_tags();
|
||||
if ($tags) {
|
||||
foreach( $tags as $tag ) {
|
||||
echo "<a href= '" . esc_url( get_tag_link( $tag->term_id ) ) . "' class='btn-small btn-primary'><i class='fa fa-tag'></i> " . $tag->name . "</a>";
|
||||
}
|
||||
} ?>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php comments_template(); ?>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
|
Reference in a new issue