55 lines
2.5 KiB
Smarty
55 lines
2.5 KiB
Smarty
{*
|
|
* Copyright ETS Software Technology Co., Ltd
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is not open source! Each license that you purchased is only available for 1 website only.
|
|
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
|
|
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future.
|
|
*
|
|
* @author ETS Software Technology Co., Ltd
|
|
* @copyright ETS Software Technology Co., Ltd
|
|
* @license Valid for 1 website (or project) for each purchase of license
|
|
*}
|
|
|
|
{if $ETS_RV_UPLOAD_PHOTO_ENABLED && $ETS_RV_MAX_UPLOAD_PHOTO|intval > 0}
|
|
<div class="row form-group ets_rv_upload_images" data-photos="{$ETS_RV_MAX_UPLOAD_PHOTO|intval}">
|
|
<label class="form-label col-lg-3" for="upload_photo">{l s='Upload photos' mod='ets_reviews'}</label>
|
|
<div class="col-lg-9">
|
|
<ul class="ets_rv_upload_photos" data-photos="{$ETS_RV_MAX_UPLOAD_PHOTO|intval}">
|
|
<li class="ets_rv_upload_photo_item">
|
|
<input id="image_1" type="file" name="image[1]" style="display: none!important;" accept="image/*"/>
|
|
<div class="ets_rv_upload_photo_wrap">
|
|
<span class="ets_rv_btn_upload"></span>
|
|
<span class="ets_rv_btn_delete_photo"></span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<p class="help-block">{l s='Accepted formats: jpg, jpeg, png, gif. Limit: %s' sprintf=[$PS_ATTACHMENT_MAXIMUM_SIZE] mod='ets_reviews'}</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{if $ETS_RV_UPLOAD_VIDEO_ENABLED && $ETS_RV_MAX_UPLOAD_VIDEO|intval > 0}
|
|
<div class="row form-group ets_rv_upload_images">
|
|
<label class="form-label col-lg-3" for="upload_video">{l s='Upload videos' mod='ets_reviews'}</label>
|
|
<div class="col-lg-9">
|
|
<ul class="ets_rv_upload_videos">
|
|
{for $ik=1 to $ETS_RV_MAX_UPLOAD_VIDEO|intval}
|
|
<li class="ets_rv_upload_video_item">
|
|
<input class="video" id="video_{$ik|intval}" type="file" name="video[{$ik|intval}]" accept="video/mp4,video/webm"/>
|
|
<div class="ets_rv_upload_video_wrap">
|
|
<span class="ets_rv_video"></span>
|
|
<span class="ets_rv_btn_delete_video"></span>
|
|
</div>
|
|
</li>
|
|
{/for}
|
|
</ul>
|
|
<p class="help-block">{l s='Accepted formats: mp4, webm. Limit: %s' sprintf=[$PS_ATTACHMENT_MAXIMUM_SIZE] mod='ets_reviews'}</p>
|
|
</div>
|
|
</div>
|
|
{/if} |