diff --git a/src/optimblog.ocmod/install.xml b/src/optimblog.ocmod/install.xml index 39fd3d4..d5ea9e6 100644 --- a/src/optimblog.ocmod/install.xml +++ b/src/optimblog.ocmod/install.xml @@ -3303,7 +3303,8 @@ $('input[name=\'information\']').autocomplete({ {% endif %} {% endif %} -
{% for information in informations %} +
+ {% for information in informations %}
{% if information.thumb %} @@ -3334,7 +3335,8 @@ $('input[name=\'information\']').autocomplete({
- {% endfor %}
+ {% endfor %} +
{{ pagination }}
{{ results }}
diff --git a/src/optimblog.ocmod/upload/catalog/controller/extension/information/optimblog.php b/src/optimblog.ocmod/upload/catalog/controller/extension/information/optimblog.php index 43bd83c..28cab0a 100644 --- a/src/optimblog.ocmod/upload/catalog/controller/extension/information/optimblog.php +++ b/src/optimblog.ocmod/upload/catalog/controller/extension/information/optimblog.php @@ -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'])),