💄 Meilleur gestion des descriptions
This commit is contained in:
parent
b9318a4427
commit
1d8158e9bb
2 changed files with 15 additions and 3 deletions
|
@ -47,10 +47,17 @@
|
|||
</div>
|
||||
|
||||
<!-- Breaked content -->
|
||||
<div class="p-summary"><?php echo $page->contentBreak(); ?></div>
|
||||
|
||||
<!-- "Read more" button -->
|
||||
<?php if ($page->readMore()) : ?>
|
||||
<div class="p-summary"><?php echo $page->contentBreak(); ?></div>
|
||||
<?php else : ?>
|
||||
<?php if ($page->description()) : ?>
|
||||
<div class="p-summary p"><?php echo $page->description(); ?></div>
|
||||
<?php else : ?>
|
||||
<div class="e-content p"><?php echo $page->contentBreak(); ?></div>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
<!-- "Read more" button -->
|
||||
<?php if ($page->readMore() || $page->description()) : ?>
|
||||
<p class="center">
|
||||
<a class="button-link" href="<?php echo $page->permalink(); ?>"><?php echo $L->get('Read more'); ?></a>
|
||||
</p>
|
||||
|
|
|
@ -22,6 +22,11 @@
|
|||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if ($page->description()) : ?>
|
||||
<div class="p-summary p article-metadata"><?php echo $page->description(); ?></div>
|
||||
<hr />
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Full content -->
|
||||
<div class="article-body e-content">
|
||||
<?php echo $page->content(); ?>
|
||||
|
|
Loading…
Add table
Reference in a new issue