diff --git a/local/modules/HookProduitsSaison/Config/config.xml b/local/modules/HookProduitsSaison/Config/config.xml new file mode 100644 index 00000000..d568dc2a --- /dev/null +++ b/local/modules/HookProduitsSaison/Config/config.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/local/modules/HookProduitsSaison/Config/module.xml b/local/modules/HookProduitsSaison/Config/module.xml new file mode 100644 index 00000000..4fecb0bc --- /dev/null +++ b/local/modules/HookProduitsSaison/Config/module.xml @@ -0,0 +1,28 @@ + + + HookProduitsSaison\HookProduitsSaison + + Hook used to display a selection of products + + + Hook permettant d'afficher une sélection des produits de saison + + + en_US + fr_FR + + 1.0 + + + Laurent LE CORRE + laurent@thecoredev.fr + + + classic + 2.3.x + alpha + 0 + 0 + diff --git a/local/modules/HookProduitsSaison/HookProduitsSaison.php b/local/modules/HookProduitsSaison/HookProduitsSaison.php new file mode 100644 index 00000000..ca33eb31 --- /dev/null +++ b/local/modules/HookProduitsSaison/HookProduitsSaison.php @@ -0,0 +1,28 @@ + 'The displayed english string', +); diff --git a/local/modules/HookProduitsSaison/I18n/fr_FR.php b/local/modules/HookProduitsSaison/I18n/fr_FR.php new file mode 100644 index 00000000..37086245 --- /dev/null +++ b/local/modules/HookProduitsSaison/I18n/fr_FR.php @@ -0,0 +1,4 @@ + 'La traduction française de la chaine', +); diff --git a/local/modules/HookProduitsSaison/Readme.md b/local/modules/HookProduitsSaison/Readme.md new file mode 100644 index 00000000..dc2a0359 --- /dev/null +++ b/local/modules/HookProduitsSaison/Readme.md @@ -0,0 +1,55 @@ +# Hook Produits Saison + +Add a short description here. You can also add a screenshot if needed. + +## Installation + +### Manually + +* Copy the module into ```/local/modules/``` directory and be sure that the name of the module is HookProduitsSaison. +* Activate it in your thelia administration panel + +### Composer + +Add it in your main thelia composer.json file + +``` +composer require your-vendor/hook-produits-saison-module:~1.0 +``` + +## Usage + +Explain here how to use your module, how to configure it, etc. + +## Hook + +If your module use one or more hook, fill this part. Explain which hooks are used. + + +## Loop + +If your module declare one or more loop, describe them here like this : + +[loop name] + +### Input arguments + +|Argument |Description | +|--- |--- | +|**arg1** | describe arg1 with an exemple. | +|**arg2** | describe arg2 with an exemple. | + +### Output arguments + +|Variable |Description | +|--- |--- | +|$VAR1 | describe $VAR1 variable | +|$VAR2 | describe $VAR2 variable | + +### Exemple + +Add a complete exemple of your loop + +## Other ? + +If you have other think to put, feel free to complete your readme as you want. diff --git a/local/modules/HookProduitsSaison/composer.json b/local/modules/HookProduitsSaison/composer.json new file mode 100644 index 00000000..bbdc7e17 --- /dev/null +++ b/local/modules/HookProduitsSaison/composer.json @@ -0,0 +1,12 @@ +{ + "name": "your-vendor/hook-produits-saison-module", + "description": "HookProduitsSaison module for Thelia", + "license": "LGPL-3.0-or-later", + "type": "thelia-module", + "require": { + "thelia/installer": "~1.1" + }, + "extra": { + "installer-name": "HookProduitsSaison" + } +} \ No newline at end of file diff --git a/local/modules/HookProduitsSaison/templates/frontOffice/default/home-body.html b/local/modules/HookProduitsSaison/templates/frontOffice/default/home-body.html new file mode 100644 index 00000000..8271ba6e --- /dev/null +++ b/local/modules/HookProduitsSaison/templates/frontOffice/default/home-body.html @@ -0,0 +1,56 @@ +{ifloop rel="produits_saison"} +
+
+

{intl l="Our selection" d="hookproduitssaison"}

+
+
+
    + {loop name="produits_saison" type="selection_container" code="fruits"} +
  • +
    + + COUNT = {$SELECTION_COUNT} +{* + {loop type="image" name="selection_image" lang="$edit_language_id" source="selection" source_id=$SELECTION_CONTAINER_ID width="70" height="50" resize_mode="borders" limit="1" visible="true"} + + {/loop} +*} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
  • + {/loop} +
+
+
+{/ifloop}