Skip to content

Commit

Permalink
Related Articles description length bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
optimlab committed Jun 13, 2020
1 parent 1ee7e49 commit 3e8f414
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/optimblog.ocmod/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3303,7 +3303,8 @@ $('input[name=\'information\']').autocomplete({
{% endif %}
</div>
{% endif %}
<div class="row"> {% for information in informations %}
<div class="row">
{% for information in informations %}
<div class="information-layout {{ view }} col-xs-12">
<div class="thumbnail media">
{% if information.thumb %}
Expand Down Expand Up @@ -3334,7 +3335,8 @@ $('input[name=\'information\']').autocomplete({
</div>
</div>
</div>
{% endfor %} </div>
{% endfor %}
</div>
<div class="row">
<div class="col-sm-6 text-left">{{ pagination }}</div>
<div class="col-sm-6 text-right">{{ results }}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ public function viewInformationBefore(&$route, &$data) {
'information_id' => $result['information_id'],
'thumb' => $image,
'title' => $result['title'],
'description' => !empty($result['short_description']) ? trim(html_entity_decode($result['short_description'], ENT_QUOTES, 'UTF-8')) : utf8_substr(trim(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'))), 0, $this->config->get('information_optimblog_description_length')) . '..',
'description' => !empty($result['short_description']) ? trim(html_entity_decode($result['short_description'], ENT_QUOTES, 'UTF-8')) : utf8_substr(trim(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'))), 0, $this->config->get('information_optimblog_information_description_length')) . '..',
'user_id' => $result['user_id'],
'author' => $result['author'],
'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
Expand Down

0 comments on commit 3e8f414

Please sign in to comment.