From cd4d2217ebbf2b696b852dc0696a8257ea939934 Mon Sep 17 00:00:00 2001 From: Quoc Dat Pham Date: Tue, 20 Jun 2017 12:40:25 +0200 Subject: [PATCH] Version in configuration page --- src/lemonway/lemonway.php | 3 +- .../views/templates/admin/configure.tpl | 32 +++++++++++++------ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/lemonway/lemonway.php b/src/lemonway/lemonway.php index d664e0b..a2b485d 100644 --- a/src/lemonway/lemonway.php +++ b/src/lemonway/lemonway.php @@ -478,8 +478,7 @@ public function getContent() } } - - + $this->context->smarty->assign('module_version', $this->version); $this->context->smarty->assign('module_dir', $this->_path); $this->context->smarty->assign('api_configuration_form', $this->renderForm('API')); diff --git a/src/lemonway/views/templates/admin/configure.tpl b/src/lemonway/views/templates/admin/configure.tpl index 54061a3..b523abb 100644 --- a/src/lemonway/views/templates/admin/configure.tpl +++ b/src/lemonway/views/templates/admin/configure.tpl @@ -24,18 +24,30 @@
-
{include file='./about_us.tpl'}
-
{$api_configuration_form}
-{foreach from=$methodForms item=method key=methodCode} -
{$method['form']}
-{/foreach} +
+ {include file='./about_us.tpl'} +
+ +
+ {$api_configuration_form} +
+ + {foreach from=$methodForms item=method key=methodCode} +
+ {$method['form']} +
+ {/foreach} + +
+ v{$module_version} +