Skip to content

Commit

Permalink
Merge pull request #82 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release version 3.1.2
  • Loading branch information
SharakPL authored Mar 15, 2023
2 parents ffc0818 + dbc305c commit c5980fe
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 109 deletions.
2 changes: 1 addition & 1 deletion Ps_HomeSlide.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Ps_HomeSlide extends ObjectModel
'description' => ['type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 4000],
'title' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 255],
'legend' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 255],
'url' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isUrl', 'required' => true, 'size' => 255],
'url' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isUrl', 'size' => 255],
'image' => ['type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 255],
],
];
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>ps_imageslider</name>
<displayName><![CDATA[Image slider]]></displayName>
<version><![CDATA[3.1.1]]></version>
<version><![CDATA[3.1.2]]></version>
<description><![CDATA[Adds an image slider to your site.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
Expand Down
Binary file added images/sample-1_rtl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sample-2_rtl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sample-3_rtl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions js/Sortable.min.js

Large diffs are not rendered by default.

223 changes: 120 additions & 103 deletions ps_imageslider.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions views/templates/hook/list.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
</span>
</h3>
<div id="slidesContent">
<div id="slides">
<div id="slides" class="list-group">
{foreach from=$slides item=slide}
<div id="slides_{$slide.id_slide}" class="panel">
<div id="slides_{$slide.id_slide}" class="panel list-group-item" data-id="slides[]={$slide.id_slide}">
<div class="row">
<div class="col-lg-1">
<span><i class="icon-arrows "></i></span>
Expand Down
4 changes: 2 additions & 2 deletions views/templates/hook/slider.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
<ul class="rslides">
{foreach from=$homeslider.slides item=slide}
<li class="slide">
<a href="{$slide.url}">
{if !empty($slide.url)}<a href="{$slide.url}">{/if}
<img src="{$slide.image_url}" alt="{$slide.legend|escape}" />
{if $slide.title || $slide.description }
<span class="caption">
<h2>{$slide.title}</h2>
<div>{$slide.description nofilter}</div>
</span>
{/if}
</a>
{if !empty($slide.url)}</a>{/if}
</li>
{/foreach}
</ul>
Expand Down

0 comments on commit c5980fe

Please sign in to comment.