On rajoute des paramètres modifiables en BO sur le module mesCategories.
This commit is contained in:
12
modules/eicaptcha/config_fr.xml
Normal file
12
modules/eicaptcha/config_fr.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<module>
|
||||
<name>eicaptcha</name>
|
||||
<displayName><![CDATA[(Re)Captcha]]></displayName>
|
||||
<version><![CDATA[2.0.1]]></version>
|
||||
<description><![CDATA[Add a captcha to your website form]]></description>
|
||||
<author><![CDATA[hhennes]]></author>
|
||||
<tab><![CDATA[front_office_features]]></tab>
|
||||
<is_configurable>1</is_configurable>
|
||||
<need_instance>1</need_instance>
|
||||
<limited_countries></limited_countries>
|
||||
</module>
|
||||
@@ -61,8 +61,6 @@ class MesCategories extends Module
|
||||
*/
|
||||
public function install()
|
||||
{
|
||||
Configuration::updateValue('MESCATEGORIES_LIVE_MODE', false);
|
||||
|
||||
return parent::install() &&
|
||||
$this->registerHook('header') &&
|
||||
$this->registerHook('backOfficeHeader') &&
|
||||
@@ -73,8 +71,6 @@ class MesCategories extends Module
|
||||
|
||||
public function uninstall()
|
||||
{
|
||||
Configuration::deleteByName('MESCATEGORIES_LIVE_MODE');
|
||||
|
||||
return parent::uninstall();
|
||||
}
|
||||
|
||||
@@ -156,6 +152,31 @@ class MesCategories extends Module
|
||||
)
|
||||
),
|
||||
),
|
||||
array(
|
||||
'type' => 'text',
|
||||
'desc' => $this->l('Percent of categorie\' thumbnail opacity (between 0 and 100)'),
|
||||
'name' => 'MESCATEGORIES_IMAGE_OPACITY',
|
||||
'label' => $this->l('Opacity of thumbnails')
|
||||
),
|
||||
array(
|
||||
'type' => 'switch',
|
||||
'desc' => $this->l('Display your subcategories with bold text'),
|
||||
'name' => 'MESCATEGORIES_BOLD_SUBCATEGORIES',
|
||||
'is_bool' => true,
|
||||
'label' => $this->l('Subcategories in bold'),
|
||||
'values' => array(
|
||||
array(
|
||||
'id' => 'active_on',
|
||||
'value' => true,
|
||||
'label' => $this->l('Enabled')
|
||||
),
|
||||
array(
|
||||
'id' => 'active_off',
|
||||
'value' => false,
|
||||
'label' => $this->l('Disabled')
|
||||
)
|
||||
)
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Save'),
|
||||
@@ -171,6 +192,8 @@ class MesCategories extends Module
|
||||
{
|
||||
return array(
|
||||
'MESCATEGORIES_SHOW_IMAGES' => Configuration::get('MESCATEGORIES_SHOW_IMAGES', true),
|
||||
'MESCATEGORIES_IMAGE_OPACITY' => Configuration::get('MESCATEGORIES_IMAGE_OPACITY', 50),
|
||||
'MESCATEGORIES_BOLD_SUBCATEGORIES' => Configuration::get('MESCATEGORIES_BOLD_SUBCATEGORIES', false),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -238,6 +261,8 @@ class MesCategories extends Module
|
||||
$this->smarty->assign(array(
|
||||
'categories' => $my_array,
|
||||
'SHOW_IMAGES' => Configuration::get('MESCATEGORIES_SHOW_IMAGES', true),
|
||||
'IMAGE_OPACITY' => Configuration::get('MESCATEGORIES_IMAGE_OPACITY', true),
|
||||
'BOLD_SUBCATEGORIES' => Configuration::get('MESCATEGORIES_BOLD_SUBCATEGORIES', true),
|
||||
));
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,10 @@ $_MODULE['<{mescategories}prestashop>mescategories_4861c3d5c88af6037e2bfb0d5c309
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_833a6f0f9fb2be7fe8082b41594a8043'] = 'Affiche les images de vos catégories sur la page au lieu de leur titre simplement';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Oui';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_b9f5c797ebbf55adccdd8539a65a0241'] = 'Non';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_d6cc16d06193b759f89e1bd9a0a68cfd'] = 'Pourcentage d\'opacité (entre 0 et 100) pour les vignettes de vos catégories';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_1b6a27028b34a0d2d05402842c9d6eb1'] = 'Opacité des vignettes';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_91d498010c32cd54cdeeaba7c921e6b2'] = 'Affiche vos sous-catégories en gras';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_8b6a7c7c9a604d37a5a6f2277ffb7ea6'] = 'Sous-catégories en gras';
|
||||
$_MODULE['<{mescategories}prestashop>mescategories_c9cc8cce247e49bae79f15173ce97354'] = 'Enregistrer';
|
||||
$_MODULE['<{mescategories}prestashop>configure_464e37a930f5702c14f862ab9497860d'] = 'Module d\'affichage de vos catégories';
|
||||
$_MODULE['<{mescategories}prestashop>configure_0b79795d3efc95b9976c7c5b933afce2'] = 'Bienvenue sur le module d\'affichage de vos catégories !';
|
||||
|
||||
@@ -23,8 +23,10 @@
|
||||
/* Catégorie (image + titre) */
|
||||
.figure img {
|
||||
width: 150px;
|
||||
height: 180px;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
border-radius: 5px;
|
||||
opacity: 0.3;
|
||||
}
|
||||
.figure figcaption {
|
||||
margin-bottom: 10px;
|
||||
@@ -51,7 +53,7 @@
|
||||
font-size: 0.95rem;
|
||||
font-family: "Raleway", sans-serif;
|
||||
color: black;
|
||||
font-weight: normal;
|
||||
/*font-weight: normal;*/
|
||||
}
|
||||
.subcategories-list > a:hover {
|
||||
background-color: rgba(177,194,90,1);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{if $SHOW_IMAGES}
|
||||
<figure class="figure">
|
||||
<figcaption>{$category.category_name}</figcaption>
|
||||
<img src="{$urls.base_url}img/c/{$category.category_id}.jpg" alt="{$category.category_name|escape:'html':'UTF-8'}" />
|
||||
<img src="{$urls.base_url}img/c/{$category.category_id}.jpg" alt="{$category.category_name|escape:'html':'UTF-8'}" style="opacity:{$IMAGE_OPACITY/100}" />
|
||||
</figure>
|
||||
{else}
|
||||
<h2>{$category.category_name}</h2>
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="subcategories-list">
|
||||
{foreach from=$category.subcategories item=subcategory name=subcategory_list}
|
||||
<a href="{$link->getCategoryLink($subcategory.subcategory_id, $subcategory.subcategory_link)|escape:'html':'UTF-8'}"
|
||||
title="{$subcategory.subcategory_name|escape:'html':'UTF-8'}">
|
||||
title="{$subcategory.subcategory_name|escape:'html':'UTF-8'}" {if $BOLD_SUBCATEGORIES}style="font-weight: bold"{/if}>
|
||||
{$subcategory.subcategory_name|escape:'html':'UTF-8'}
|
||||
</a><br />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user