first commit
This commit is contained in:
121
modules/weglot/views/css/back.css
Normal file
121
modules/weglot/views/css/back.css
Normal file
@@ -0,0 +1,121 @@
|
||||
.mdc_container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mdc_container a {
|
||||
color: #3a4cf2;
|
||||
}
|
||||
|
||||
.mdc_left_block {
|
||||
width: 65%;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.mdc_left_block .control-label.mdc_label {
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
padding: 7px 5px;
|
||||
}
|
||||
|
||||
.mdc_left_block .mdc_outline_button {
|
||||
padding: 10px 25px;
|
||||
border-radius: 15px;
|
||||
box-shadow: none;
|
||||
border: 1px solid #3a4cf2;
|
||||
background-color: white;
|
||||
color: #3a4cf2;
|
||||
}
|
||||
|
||||
.mdc_left_block .mdc_outline_button:hover,
|
||||
.mdc_left_block .mdc_outline_button:focus {
|
||||
color: white;
|
||||
background-color: #3a4cf2;
|
||||
}
|
||||
|
||||
.form-group.mdc_form_group {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mdc_right_block {
|
||||
width: 35%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 1px solid #bdc3c7;
|
||||
box-shadow: 5px 3px 6px #ecf0f1;
|
||||
border-radius: 10px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.mdc_title {
|
||||
font-size: 20px;
|
||||
color: black;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mdc_text {
|
||||
margin: 10px 0;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.mdc_right_block .mdc_button {
|
||||
text-decoration: none;
|
||||
background-color: #3a4cf2;
|
||||
border: 1px solid #3a4cf2;
|
||||
color: white;
|
||||
padding: 15px 25px;
|
||||
border-radius: 25px;
|
||||
width: 60%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mdc_right_block .mdc_button:focus,
|
||||
.mdc_right_block .mdc_button:hover {
|
||||
text-decoration: none;
|
||||
background-color: white;
|
||||
color: #3a4cf2;
|
||||
}
|
||||
|
||||
.mdc_button_position {
|
||||
position: relative;
|
||||
top: -4px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.mdc_container {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mdc_left_block,
|
||||
.mdc_right_block {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mdc_left_block {
|
||||
flex-direction: column;
|
||||
align-items: initial;
|
||||
}
|
||||
|
||||
.mdc_right_block {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.mdc_title {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.mdc_text {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.mdc_right_block .mdc_button {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1025px) and (max-width: 1200px) {
|
||||
.mdc_button_position {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
35
modules/weglot/views/css/index.php
Normal file
35
modules/weglot/views/css/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 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-2017 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;
|
||||
35
modules/weglot/views/index.php
Normal file
35
modules/weglot/views/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 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-2017 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;
|
||||
13
modules/weglot/views/js/front-weglot.js
Normal file
13
modules/weglot/views/js/front-weglot.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* 2019-2020 MDWeb
|
||||
*
|
||||
* @author MDWeb
|
||||
* @copyright 22019-2020 MDWeb
|
||||
* @license Commercial
|
||||
*/
|
||||
|
||||
$(document).ready(function (){
|
||||
Weglot.initialize({
|
||||
api_key: weglotKey
|
||||
});
|
||||
});
|
||||
35
modules/weglot/views/js/index.php
Normal file
35
modules/weglot/views/js/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 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-2017 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;
|
||||
40
modules/weglot/views/templates/admin/configure.tpl
Normal file
40
modules/weglot/views/templates/admin/configure.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{**
|
||||
* 2019-2020 MDWeb
|
||||
*
|
||||
* @author MDWeb
|
||||
* @copyright 2019-2020 MDWeb
|
||||
* @license Commercial
|
||||
*}
|
||||
<div class="content-wrap panel">
|
||||
<form id="configuration_form" class="defaultForm form-horizontal weglot" method="post" enctype="multipart/form-data" novalidate="">
|
||||
<div class="form-group mdc_form_group">
|
||||
<div class='mdc_container'>
|
||||
<div class='mdc_left_block'>
|
||||
<label class="control-label col-lg-1 mdc_label">
|
||||
{l s="Clé API" mod="weglot"}
|
||||
</label>
|
||||
<div class="col-sm-7 col-md-5 col-lg-5">
|
||||
<div class="form-group mdc_form_group">
|
||||
<div class='col-sm-11'>
|
||||
<input type="text" name="api_key" value="{$api_key|escape:'html_all':'utf-8'}">
|
||||
<p>{l s='Sign up to [1]Weglot[/1] to get your API key' tags=['<a href="https://dashboard.weglot.com/register-prestashop" target="_blank">'] mod='weglot'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mdc_button_position">
|
||||
<button type="submit" value="1" id="configuration_form_submit_btn" name="submitWeglotConfigure" class="button mdc_outline_button">
|
||||
{l s='Save' mod='weglot'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class='mdc_right_block'>
|
||||
<span class='mdc_title'>{l s='Manage my translations' mod='weglot'}</span>
|
||||
<span class='mdc_text'>{l s='To edit your translations and your integration of Weglot, go to your Weglot dashboard' mod='weglot'}</span>
|
||||
<a href="https://dashboard.weglot.com" target="_blank" class="mdc_button">
|
||||
{l s='Edit my translations' mod='weglot'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
35
modules/weglot/views/templates/admin/index.php
Normal file
35
modules/weglot/views/templates/admin/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 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-2017 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;
|
||||
35
modules/weglot/views/templates/index.php
Normal file
35
modules/weglot/views/templates/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2017 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-2017 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;
|
||||
Reference in New Issue
Block a user