Module Maintenance + création du module Recette
This commit is contained in:
@@ -9,6 +9,15 @@
|
||||
|
||||
{block name="page-title"}{intl l='Edit content'}{/block}
|
||||
|
||||
{assign var="recette" value=false}
|
||||
{loop name="my_folder_path" type="folder-path" visible="*" folder=$folder_id}
|
||||
{if $TITLE|strstr:"recettes"}
|
||||
{assign var="recette" value=true}
|
||||
{/if}
|
||||
{/loop}
|
||||
|
||||
|
||||
|
||||
{block name="main-content"}
|
||||
<div class="content edit-content">
|
||||
<div id="wrapper" class="container">
|
||||
@@ -83,6 +92,9 @@
|
||||
<li><a href="#documents" data-toggle="tab">{intl l="Documents"}</a></li>
|
||||
{$smarty.capture.content_tab_tab nofilter}
|
||||
<li><a href="#modules" data-toggle="tab">{intl l="Modules"}</a></li>
|
||||
{if $recette}
|
||||
<li><a href="#recette" data-toggle="tab">{intl l="Recette"}</a></li>
|
||||
{/if}
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
@@ -212,6 +224,12 @@
|
||||
{* ugly fix : {hook name="content.tab-content" id="{$content_id}" view="content"} *}
|
||||
{include file="includes/module-tab-content.html" hook="content.tab-content" location="content-edit" id="{$content_id}" view="content"}
|
||||
</div>
|
||||
|
||||
{if $recette}
|
||||
<div class="tab-pane fade" id="recette">
|
||||
{hook name="hook-recette" content_id=$content_id}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -158,6 +158,8 @@
|
||||
<a class="{if ! $ACTIVE}disabled {/if} btn {$btnstyle} config-btn-{$ID} btn-area-config" title="{$title}" href="{url path="/admin/configuration/shipping_zones/update/%id" id=$ID}">{$icon nofilter}{intl l="Shipping zones"}</a>
|
||||
{/if}
|
||||
|
||||
{* TheCoreDev le 31/03/2021 : y'avait un bogue sur l'affichage du bouton Configurer *}
|
||||
|
||||
{$buttons = []}
|
||||
{if $EXISTS}
|
||||
{if $CONFIGURABLE == 1 && $ACTIVE}
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://thelia.net/schema/dic/template http://thelia.net/schema/dic/template/template-1_0.xsd">
|
||||
<descriptive locale="fr">
|
||||
<title>Template back office par défaut</title>
|
||||
<title>Template back office personnalisé</title>
|
||||
</descriptive>
|
||||
<descriptive locale="en">
|
||||
<title>Default back-office template</title>
|
||||
<title>Custom back-office template</title>
|
||||
</descriptive>
|
||||
<parent>default</parent>
|
||||
<languages>
|
||||
@@ -33,10 +33,9 @@
|
||||
<version>1.0.0</version>
|
||||
<authors>
|
||||
<author>
|
||||
<name>Thelia team</name>
|
||||
<company>thelia.net</company>
|
||||
<email>contact@thelia.net</email>
|
||||
<website>thelia.net</website>
|
||||
<name>Laurent LE CORRE</name>
|
||||
<company>TheCoreDev</company>
|
||||
<email>laurent@thecoredev.fr</email>
|
||||
</author>
|
||||
</authors>
|
||||
<thelia>2.4.3</thelia>
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{assign var="recette" value=false}
|
||||
|
||||
{* Breadcrumb *}
|
||||
{block name='no-return-functions' append}
|
||||
{if $content_id}
|
||||
@@ -32,6 +34,11 @@
|
||||
{loop type="content" name="content-breadcrumb" id=$content_id limit="1"}
|
||||
{loop name="folder_path" type="folder-path" folder={$DEFAULT_FOLDER}}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
|
||||
{if $TITLE|strstr:"recettes"}
|
||||
{assign var="recette" value=true}
|
||||
{/if}
|
||||
|
||||
{/loop}
|
||||
{$breadcrumbs[] = ['title' => {$TITLE}, 'url'=> {$URL nofilter}]}
|
||||
{/loop}
|
||||
@@ -62,7 +69,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $recette}
|
||||
<img src="{$images[0]['url']}" alt="{$images[0]['title']}" class="recette-image-1" />
|
||||
{/if}
|
||||
|
||||
{if $DESCRIPTION}
|
||||
<div class="description">
|
||||
@@ -70,7 +79,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if $recette}
|
||||
<img src="{$images[1]['url']}" alt="{$images[1]['title']}" class="recette-image-2" />
|
||||
{/if}
|
||||
|
||||
{ifloop rel="blog.document"}
|
||||
<div class="documents">
|
||||
|
||||
Reference in New Issue
Block a user