Browse Source

Improvements

pull/189/head v2.5.4
Danang Probo Sayekti 10 years ago
parent
commit
c7bf485275
4 changed files with 10 additions and 4 deletions
  1. +1
    -1
      system/includes/functions.php
  2. +3
    -1
      themes/clean/main.html.php
  3. +3
    -1
      themes/default/main.html.php
  4. +3
    -1
      themes/logs/main.html.php

+ 1
- 1
system/includes/functions.php View File

@ -909,7 +909,7 @@ function get_teaser($text)
{
$teaserType = config('teaser.type');
if (strlen(strip_tags($text)) < config('teaser.char') || $teaserType === 'full') {
if ($teaserType === 'full') {
echo $text;
} else {
$string = preg_replace('/\s\s+/', ' ', strip_tags($text));


+ 3
- 1
themes/clean/main.html.php View File

@ -36,7 +36,9 @@
<?php } ?>
<div class="teaser-body" itemprop="articleBody">
<?php echo get_thumbnail($p->body) ?>
<p><?php echo get_teaser($p->body) ?>... <a href="<?php echo $p->url;?>#more">more</a></p>
<p><?php echo get_teaser($p->body) ?>
<?php if (config('teaser.type') === 'trimmed'):?> ... <a href="<?php echo $p->url;?>#more">more</a><?php endif;?>
</p>
</div>
</div>
</div>


+ 3
- 1
themes/default/main.html.php View File

@ -36,7 +36,9 @@
<?php } ?>
<div class="teaser-body" itemprop="articleBody">
<?php echo get_thumbnail($p->body) ?>
<p><?php echo get_teaser($p->body) ?>... <a href="<?php echo $p->url;?>#more">more</a></p>
<p><?php echo get_teaser($p->body) ?>
<?php if (config('teaser.type') === 'trimmed'):?> ... <a href="<?php echo $p->url;?>#more">more</a><?php endif;?>
</p>
</div>
</div>
</div>


+ 3
- 1
themes/logs/main.html.php View File

@ -36,7 +36,9 @@
<?php } ?>
<div class="teaser-body" itemprop="articleBody">
<?php echo get_thumbnail($p->body) ?>
<p><?php echo get_teaser($p->body) ?>... <a href="<?php echo $p->url;?>#more">more</a></p>
<p><?php echo get_teaser($p->body) ?>
<?php if (config('teaser.type') === 'trimmed'):?> ... <a href="<?php echo $p->url;?>#more">more</a><?php endif;?>
</p>
</div>
</div>
</div>


Loading…
Cancel
Save