first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div v-if="module.attributes.url_active == 'buy'" class="form-action-button-container">
<a class="btn btn-primary btn-primary-reverse btn-block btn-outline-primary light-button module_action_menu_go_to_addons" v-bind:href="module.attributes.url" target="_blank">
{l s='Discover' d='Admin.Modules.Feature'}
</a>
</div>
<div v-else class="btn-group form-action-button-container">
<form class="btn-group form-action-button" method="post" v-bind:action="module.attributes.urls.install">
<button type="submit" class="btn btn-primary-reverse btn-outline-primary light-button module_action_menu_install" >
{l s='Install' d='Admin.Modules.Feature'}
</button>
</form>
</div>

View File

@@ -0,0 +1,53 @@
{if isset($from) && $from == 'footer'}
<div class="panel" {if isset($panel_id)}id="{$panel_id}"{/if}>
<h3>
<i class="icon-list-ul"></i>
{if isset($panel_title)}{$panel_title|escape:'html':'UTF-8'}{else}{l s='Modules list'}{/if}
</h3>
{/if}
<div class="modules_list_container_tab row">
<div class="col-lg-12">
{if count($modules_list)}
<table class="table">
{counter start=1 assign="count"}
{foreach from=$modules_list item=module}
{include file='./tab_module_line-legacy.tpl' class_row={cycle values=",row alt"}}
{counter}
{/foreach}
</table>
{if $controller_name == 'AdminPayment' && isset($view_all)}
<div class="panel-footer">
<div class="col-lg-4 col-lg-offset-4">
<a class="btn btn-default btn-block" href="{$link->getAdminLink('AdminPsMboModule', true, [], ['filterCategoryTab' => 'payments_gateways'])|escape:'html':'UTF-8'}">
<i class="process-icon-payment"></i>
{l s='View all available payments solutions'}
</a>
</div>
</div>
{/if}
{else}
<table class="table">
<tr>
<td>
<div class="alert alert-warning">
{if $controller_name == 'AdminPayment'}
{l s='It seems there are no recommended payment solutions for your country.'}<br />
<a class="_blank" href="https://www.prestashop.com/en/contact-us">{l s='Do you think there should be one? Let us know!'}</a>
{else}{l s='No modules available in this section.'}{/if}</div>
</td>
</tr>
</table>
{/if}
</div>
</div>
{if isset($from) && $from == 'footer'}
</div>
{/if}
{if isset($from) && $from == 'tab'}
<div class="alert alert-addons row-margin-top" role="alert">
<p class="alert-text">
<a href="http://addons.prestashop.com/?utm_source=back-office&amp;utm_medium=dispatch&amp;utm_campaign=back-office-en-US&amp;utm_content=download" onclick="return !window.open(this.href);">{l s='More modules on addons.prestashop.com'}</a>
</p>
</div>
{/if}

View File

@@ -0,0 +1,55 @@
{if isset($from) && $from == 'footer'}
<div class="row" {if isset($panel_id)}id="{$panel_id}"{/if}>
<div class="col">
<div class="card">
<h3 class="card-header">
<i class="icon-list-ul"></i>
{if isset($panel_title)}{$panel_title|escape:'html':'UTF-8'}{else}{l s='Modules list'}{/if}
</h3>
{/if}
<div class="card-block">
<div class="module-item-list">
{if count($modules_list)}
{counter start=1 assign="count"}
{foreach from=$modules_list item=module}
{include file='./tab_module_line.tpl' class_row={cycle values=",row alt"}}
{counter}
{/foreach}
{if $controller_name == 'AdminPayment' && isset($view_all)}
<div class="panel-footer">
<div class="col-lg-4 col-lg-offset-4">
<a class="btn btn-default btn-block" href="{$link->getAdminLink('AdminPsMboModule', true, [], ['filterCategoryTab' => 'payments_gateways'])|escape:'html':'UTF-8'}">
<i class="process-icon-payment"></i>
{l s='View all available payments solutions'}
</a>
</div>
</div>
{/if}
{else}
<table class="table">
<tr>
<td>
<div class="alert alert-warning">
{if $controller_name == 'AdminPayment'}
{l s='It seems there are no recommended payment solutions for your country.'}<br />
<a class="_blank" href="https://www.prestashop.com/en/contact-us">{l s='Do you think there should be one? Let us know!'}</a>
{else}{l s='No modules available in this section.'}{/if}</div>
</td>
</tr>
</table>
{/if}
</div>
</div>
{if isset($from) && $from == 'footer'}
</div>
</div>
</div>
{/if}
{if isset($from) && $from == 'tab'}
<div class="alert alert-addons row-margin-top" role="alert">
<p class="alert-text">
<a href="http://addons.prestashop.com/?utm_source=back-office&amp;utm_medium=dispatch&amp;utm_campaign=back-office-en-US&amp;utm_content=download" onclick="return !window.open(this.href);">{l s='More modules on addons.prestashop.com'}</a>
</p>
</div>
{/if}

View File

@@ -0,0 +1,53 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="ps-dropdown dropdown btn-group bordered mb-1">
<div id="catDropdown" class="dropdown-label" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="js-selected-item selected-item module-category-selector-label">
{l s='Categories'}
</span>
<i class="material-icons arrow-down float-right">keyboard_arrow_down</i>
</div>
<div class="ps-dropdown-menu dropdown-menu module-category-selector" aria-labelledby="catDropdown">
<ul class="items-list js-items-list">
<li class="module-category-reset">
<a class="dropdown-item" href="#">
{l s='All Categories' d='Admin.Modules.Feature'}
</a>
</li>
<li class="module-category-menu"
v-for="category in categories.subMenu"
v-bind:data-category-tab="category.tab"
v-bind:data-category-id="category.id_category"
v-bind:data-category-display-ref="category.name"
v-bind:data-category-display-name="category.name"
v-bind:data-category-display-ref-menu="category.refMenu"
>
<a class="dropdown-item" href="#">
[[ category.name ]]<span class="float-right">[[ category.modules.length ]]</span>
</a>
</li>
</ul>
</div>
</div>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,71 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="module-top-menu">
<div class="row">
<div class="col-md-8">
<div class="input-group" id="search-input-group">
<input type="text" id="module-search-bar" class="form-control" style="display: none;">
{* <div class="pstaggerWrapper "><div class="pstaggerTagsWrapper "></div><div class="pstaggerAddTagWrapper "><input class="pstaggerAddTagInput "></div></div>*}
<div class="input-group-btn">
<button class="btn btn-primary float-right search-button" id="module-search-button">
<i class="material-icons">search</i>
{l s='Search' d='Admin.Actions'}
</button>
</div>
</div>
</div>
<div class="col-md-4 module-menu-item">
{include file="./dropdown_categories.tpl"}
</div>
</div>
</div>
<hr class="top-menu-separator"/>
<div class="module-sorting-menu">
<div class="row">
<div class="col-lg-6">
<div class="module-sorting-search-wording">
<span id="selected_modules" class="module-search-result-wording"><span v-html="visibleModules()"></span> {l s='%nbModules% modules and services selected for you' d='Admin.Modules.Feature' sprintf=['%nbModules%' => '']}</span>
<span class="help-box" data-toggle="popover"
data-title="{l s='Selection' d='Admin.Modules.Feature'}"
data-content="{l s='Customize your store with this selection of modules recommended for your shop, based on your country, language and version of PrestaShop. It includes the most popular modules from our Addons marketplace, and free partner modules.' d='Admin.Modules.Help'}">
</span>
</div>
</div>
<div class="col-lg-6">
<div class="module-sorting module-sorting-author float-right">
<select id="sort_module" class="custom-select sort-component">
<option value="" disabled selected>- {l s='Sort by' d='Admin.Actions'} -</option>
<option value="displayName">{l s='Name' d='Admin.Global'}</option>
<option value="price">{l s='Increasing Price' d='Admin.Modules.Feature'}</option>
<option value="price-desc">{l s='Decreasing Price' d='Admin.Modules.Feature'}</option>
<option value="scoring-desc">{l s='Popularity' d='Admin.Modules.Feature'}</option>
</select>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,107 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $addons_connect['connected'] === false}
<div id="module-modal-addons-connect" class="modal modal-vcenter fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title module-modal-title">{l s='Connect to Addons marketplace' d='Admin.Modules.Feature'}</h4>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
{* {% if level <= constant('PrestaShopBundle\\Security\\Voter\\PageVoter::LEVEL_UPDATE') %}
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger" role="alert">
<p class="alert-text">
{{ errorMessage }}
</p>
</div>
</div>
</div>
{% else %}*}
<div class="row">
<div class="col-md-12">
<p>
{l s='Link your shop to your Addons account to automatically receive important updates for the modules you purchased. Don\'t have an account yet?' d='Admin.Modules.Feature'}
<a href="https://addons.prestashop.com/authentication.php" target="_blank">{l s='Sign up now' d='Admin.Modules.Feature'}</a>
</p>
{* /prestashop17/admin-dev/index.php/addons/login?_token=4xDZLkW-GyILZheADOFUaFc64RW5FrgiYbJLIpPlWXQ *}
<form id="addons-connect-form" action="{$addons_connect['login_url']}" method="POST">
<div class="form-group">
<label for="module-addons-connect-email">{l s='Email address' d='Admin.Global'}</label>
<input name="username_addons" type="email" class="form-control" id="module-addons-connect-email" placeholder="Email">
</div>
<div class="form-group">
<label for="module-addons-connect-password">{l s='Password' d='Admin.Global'}</label>
<input name="password_addons" type="password" class="form-control" id="module-addons-connect-password" placeholder="Password">
</div>
<div class="checkbox">
<label>
<input name="addons_remember_me" type="checkbox"> {l s='Remember me' d='Admin.Global'}
</label>
</div>
<button type="submit" class="btn btn-primary">{l s='Let\'s go!' d='Admin.Actions'}</button>
<div id="addons_login_btn" class="spinner" style="display:none;"></div>
</form>
<p>
<a href="https://addons.prestashop.com/password.php" target="_blank">{l s='Forgot your password?' d='Admin.Global'}</a>
</p>
</div>
</div>
{* {% endif %}*}
</div>
</div>
</div>
</div>
{else}
<div id="module-modal-addons-logout" class="modal modal-vcenter fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title module-modal-title">{l s='Confirm logout' d='Admin.Modules.Feature'}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<p>
{l s='You are about to log out your Addons account. You might miss important updates of Addons you\'ve bought.' d='Admin.Modules.Notification'}
</p>
</div>
</div>
</div>
<div class="modal-footer">
<input type="button" class="btn btn-default uppercase" data-dismiss="modal" value="{l s='Cancel' d='Admin.Actions'}">
{* path('admin_addons_logout') *}
<a class="btn btn-primary uppercase" href="{$addons_connect['logout_url']}" id="module-modal-addons-logout-ack">{l s='Yes, log out' d='Admin.Modules.Feature'}</a>
</div>
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,48 @@
<div id="modal-prestatrust" class="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{l s='Module verification' d='Admin.Modules.Feature'}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-2 text-sm-center">
<img id="pstrust-img" src="" alt=""/>
</div>
<div class="col-md-10">
<dl class="row">
<dt class="col-sm-3">{l s='Module' d='Admin.Global'}</dt>
<dd class="col-sm-9">
<strong id="pstrust-name"></strong>
</dd>
<dt class="col-sm-3">{l s='Author' d='Admin.Modules.Feature'}</dt>
<dd class="col-sm-9" id="pstrust-author"></dd>
<dt class="col-sm-3">{l s='Status' d='Admin.Global'}</dt>
<dd class="col-sm-9"><strong><span class="text-info" id="pstrust-label"></span></strong></dd>
</dl>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-info" id="pstrust-message" role="alert">
<p class="alert-text"></p>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<div id="pstrust-btn-property-ok">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{l s='Back to modules list' d='Admin.Modules.Feature'}</button>
<button type="submit" class="btn btn-primary pstrust-install">{l s='Proceed with the installation' d='Admin.Modules.Feature'}</button>
</div>
<div id="pstrust-btn-property-nok">
<button type="submit" class="btn btn-outline-secondary pstrust-install">{l s='Proceed with the installation' d='Admin.Modules.Feature'}</button>
<a href="" class="btn btn-primary" id="pstrust-buy" target="_blank">{l s='Buy module' d='Admin.Modules.Feature'}</a>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,94 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div id="module-modal-import" class="modal modal-vcenter fade" role="dialog" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title module-modal-title">{l s='Upload a module' d='Admin.Modules.Feature'}</h4>
<button id="module-modal-import-closing-cross" type="button" class="close">&times;</button>
</div>
<div class="modal-body">
{* {% if level <= constant('PrestaShopBundle\\Security\\Voter\\PageVoter::LEVEL_UPDATE') %}
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger" role="alert">
<p class="alert-text">
{{ errorMessage }}
</p>
</div>
</div>
</div>
{% else %}*}
<div class="row">
<div class="col-md-12">
<form action="#" class="dropzone" id="importDropzone">
<div class="module-import-start">
<i class="module-import-start-icon material-icons">cloud_upload</i><br/>
<p class=module-import-start-main-text>
{l s='Drop your module archive here or' d='Admin.Modules.Feature'}
<a href="#" class="module-import-start-select-manual">{l s='select file' d='Admin.Modules.Feature'}</a>
</p>
<p class=module-import-start-footer-text>
{l s='Please upload one file at a time, .zip or tarball format (.tar, .tar.gz or .tgz).' d='Admin.Modules.Help'}
{l s='Your module will be installed right after that.' d='Admin.Modules.Help'}
</p>
</div>
<div class='module-import-processing'>
<!-- Loader -->
<div class="spinner"></div>
<p class=module-import-processing-main-text>
{l s='Installing module...' d='Admin.Modules.Notification'}
</p>
<p class=module-import-processing-footer-text>
{l s='It will close as soon as the module is installed. It won\'t be long!' d='Admin.Modules.Notification'}
</p>
</div>
<div class='module-import-success'>
<i class="module-import-success-icon material-icons">done</i><br/>
<p class='module-import-success-msg'>{l s='Module installed!' d='Admin.Modules.Notification'}</p>
<p class="module-import-success-details"></p>
<a class="module-import-success-configure btn btn-primary-reverse btn-outline-primary light-button" href='#'>{l s='Configure' d='Admin.Actions'}</a>
</div>
<div class='module-import-failure'>
<i class="module-import-failure-icon material-icons">error</i><br/>
<p class='module-import-failure-msg'>{l s='Oops... Upload failed.' d='Admin.Modules.Notification'}</p>
<a href="#" class="module-import-failure-details-action">{l s='What happened?' d='Admin.Modules.Help'}</a>
<div class='module-import-failure-details'></div>
<a class="module-import-failure-retry btn btn-tertiary" href='#'>{l s='Try again' d='Admin.Actions'}</a>
</div>
<div class='module-import-confirm'>
</div>
<input type="file" multiple="multiple" class="dz-hidden-input" accept=".zip, .tar" style="visibility: hidden; position: absolute; top: 0px; left: 0px; height: 0px; width: 0px;">
</form>
</div>
</div>
{* {% endif %}*}
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,111 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<tr>
<td class="fixed-width-sm center">
<img class="img-thumbnail" alt="{$module->name}" src="{if isset($module->image)}{$module->image}{else}{$smarty.const._MODULE_DIR_}{$module->name}/{$module->logo}{/if}" />
</td>
<td>
<div id="anchor{$module->name|ucfirst}" title="{$module->displayName}">
<div class="module_name">
<span style="display:none">{$module->name}</span>
{$module->displayName}
<small class="text-muted">v{$module->version} - by {$module->author}</small>
{if isset($module->type) && $module->type == 'addonsBought'}
- <span class="module-badge-bought help-tooltip text-warning" data-title="{l s="You bought this module on PrestaShop Addons. Thank You."}"><i class="icon-pushpin"></i> <small>{l s="Bought"}</small></span>
{elseif isset($module->type) && $module->type == 'addonsMustHave'}
- <span class="module-badge-popular help-tooltip text-primary" data-title="{l s="This module is available on PrestaShop Addons"}"><i class="icon-group"></i> <small>{l s="Popular"}</small></span>
{elseif isset($module->type) && $module->type == 'addonsPartner'}
- <span class="module-badge-partner help-tooltip text-warning" data-title="{l s="This module is available for free thanks to our partner."}"><i class="icon-pushpin"></i> <small>{l s="Official"}</small></span>
{elseif isset($module->id) && $module->id gt 0}
{if isset($module->version_addons) && $module->version_addons}
<span class="label label-warning">{l s='Need update'}</span>
{/if}
{/if}
</div>
<p class="module_description">
{if isset($module->description) && $module->description ne ''}
{$module->description}
{/if}
{if isset($module->show_quick_view) && $module->show_quick_view}
<br><a href="{if isset($admin_module_ajax_url_psmbo)}{$admin_module_ajax_url_psmbo}{/if}" class="controller-quick-view" data-name="{$module->name|escape:'html':'UTF-8'}"><i class="icon-search"></i> {l s='Read more'}</a>
{/if}
</p>
{if isset($module->message) && (empty($module->name) !== false) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">&times;</button>{$module->message}</div>{/if}
</div>
</td>
{if isset($module->type) && $module->type == 'addonsMustHave'}
<td>&nbsp;</td>
<td style="text-align: right;">
<p>
<a href="{$module->addons_buy_url|replace:' ':'+'|escape:'html':'UTF-8'}" target="_blank" class="button updated _blank">
<span class="btn btn-default">
<i class="icon-shopping-cart"></i>{if isset($module->price)}{if $module->price|floatval == 0}{l s='Free'}{elseif isset($module->id_currency)} &nbsp;&nbsp;{displayPrice price=$module->price currency=$module->id_currency}{/if}{/if}
</span>
</a>
</p>
</td>
{elseif !isset($module->not_on_disk)}
<td>&nbsp;</td>
<td class="actions">
<div class="btn-group-action">
{if $module->optionsHtml|count > 0}
<div class="btn-group">
{assign var=option value=$module->optionsHtml[0]}
{$option}
{if $module->optionsHtml|count > 1}
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" >
<span class="caret">&nbsp;</span>
</button>
<ul class="dropdown-menu pull-right">
{foreach $module->optionsHtml key=key item=option}
{if $key != 0}
{if strpos($option, 'title="divider"') !== false}
<li class="divider"></li>
{else}
<li>{$option}</li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>
{/if}
</div>
</td>
{else}
<td>&nbsp;</td>
<td style="text-align: right;">
<p>
<form method="POST" action="{$module->options.install_url|escape:'html':'UTF-8'}">
<a href="{$module->options.install_url|escape:'html':'UTF-8'}" class="btn btn-success">
<i class="icon-plus-sign-alt"></i>
{l s='Install'}
</a>
</form>
</p>
</td>
{/if}
</tr>

View File

@@ -0,0 +1,108 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="row module-item-wrapper-list border-bottom mb-sm-3">
<div class="col-12 col-sm-2 col-md-1 col-lg-1">
<div class="module-logo-thumb-list text-center">
<img alt="{$module->name}" src="{if isset($module->image)}../../../{$module->image}{else}{$smarty.const._MODULE_DIR_}{$module->name}/{$module->logo}{/if}" />
</div>
</div>
<div class="col-12 col-sm-6 col-md-8 col-lg-9 pl-0">
<p class="mb-0">
<span style="display:none">{$module->name}</span>
{$module->displayName}
<span class="text-muted">v{$module->version} - by {$module->author}</span>
{if isset($module->type) && $module->type == 'addonsBought'}
- <span class="module-badge-bought help-tooltip text-warning" data-title="{l s="You bought this module on PrestaShop Addons. Thank You."}"><i class="icon-pushpin"></i> <small>{l s="Bought"}</small></span>
{elseif isset($module->type) && $module->type == 'addonsMustHave'}
- <span class="module-badge-popular help-tooltip text-primary" data-title="{l s="This module is available on PrestaShop Addons"}"><i class="icon-group"></i> <small>{l s="Popular"}</small></span>
{elseif isset($module->type) && $module->type == 'addonsPartner'}
- <span class="module-badge-partner help-tooltip text-warning" data-title="{l s="This module is available for free thanks to our partner."}"><i class="icon-pushpin"></i> <small>{l s="Official"}</small></span>
{elseif isset($module->id) && $module->id gt 0}
{if isset($module->version_addons) && $module->version_addons}
<span class="label label-warning">{l s='Need update'}</span>
{/if}
{/if}
</p>
<p class="text-muted">
{if isset($module->description) && $module->description ne ''}
{$module->description}
{/if}
{if isset($module->show_quick_view) && $module->show_quick_view}
<br><a href="{if isset($admin_module_ajax_url_psmbo)}{$admin_module_ajax_url_psmbo}{/if}" class="controller-quick-view" data-name="{$module->name|escape:'html':'UTF-8'}"><i class="icon-search"></i> {l s='Read more'}</a>
{/if}
</p>
{if isset($module->message) && (empty($module->name) !== false) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert alert-success"><button type="button" class="close" data-dismiss="alert">&times;</button>{$module->message}</div>{/if}
</div>
{if isset($module->type) && $module->type == 'addonsMustHave'}
<div class="col-12 col-sm-4 col-md-3 col-lg-2 mb-3">
<div class="text-center">
<a href="{$module->addons_buy_url|replace:' ':'+'|escape:'html':'UTF-8'}" onclick="return !window.open(this.href, '_blank');" class="btn btn-primary-reverse btn-outline-primary light-button _blank">
<span>
<i class="icon-shopping-cart"></i>{if isset($module->price)}{if $module->price|floatval == 0}{l s='Free'}{elseif isset($module->id_currency)} &nbsp;&nbsp;{displayPrice price=$module->price currency=$module->id_currency}{/if}{/if}
</span>
</a>
</div>
</div>
{elseif !isset($module->not_on_disk)}
<div class="col-12 col-sm-4 col-md-3 col-lg-2 mb-3">
<div class="text-center">
{if $module->optionsHtml|count > 0}
<div class="btn-group">
{assign var=option value=$module->optionsHtml[0]}
{$option}
{if $module->optionsHtml|count > 1}
<button type="button" class="btn btn-primary-reverse btn-outline-primary light-button dropdown-toggle" data-toggle="dropdown" >
<span class="caret">&nbsp;</span>
</button>
<ul class="dropdown-menu pull-right">
{foreach $module->optionsHtml key=key item=option}
{if $key != 0}
{if strpos($option, 'title="divider"') !== false}
<li class="divider">BB</li>
{else}
<li>AAA{$option}</li>
{/if}
{/if}
{/foreach}
</ul>
{/if}
</div>
{/if}
</div>
</div>
{else}
<div class="col-12 col-sm-4 col-md-3 col-lg-2 mb-3">
<div class="text-center">
<form method="POST" action="{$module->options.install_url|escape:'html':'UTF-8'}">
<a href="{$module->options.install_url|escape:'html':'UTF-8'}" class="btn btn-primary-reverse btn-outline-primary light-button ">
<i class="icon-plus-sign-alt"></i>
{l s='Install'}
</a>
</form>
</div>
</div>
{/if}
</div>