From 1482d3c423c7573af571ccd176a880f23025023a Mon Sep 17 00:00:00 2001 From: danoosh Date: Thu, 19 Jun 2014 15:55:09 +0430 Subject: [PATCH] + Add enamad.html file --- inamad.php | 8 ++++++-- views/html/eNamadLogo.htm | 10 ++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 views/html/eNamadLogo.htm diff --git a/inamad.php b/inamad.php index e795dfa..d1e7372 100644 --- a/inamad.php +++ b/inamad.php @@ -9,7 +9,7 @@ public function __construct() { $this->name = 'inamad'; $this->tab = 'payment_security'; - $this->version = '1.0'; + $this->version = '1.2.0'; $this->author = 'PSI - ipresta.ir'; $this->need_instance = 0; @@ -40,6 +40,8 @@ public function install() || !$this->registerHook('displayFooter') ) return false; + if (!@copy($this->getLocalPath().'/views/html/eNamadLogo.htm',_PS_ROOT_DIR_)) + $this->adminDisplayWarning($this->l('Please copy eNamadLogo.htm file to the root of your shop')); return true; } @@ -51,7 +53,9 @@ public function uninstall() public function getContent() { $output = ''; - $iframe = ''; + //$iframe = ''; + if (!file_exists(_PS_ROOT_DIR_.'/eNamadLogo.htm')) + $this->adminDisplayWarning($this->l('Please copy eNamadLogo.htm file to the root of your shop')); if (Tools::getValue('submit'.$this->name)) { diff --git a/views/html/eNamadLogo.htm b/views/html/eNamadLogo.htm new file mode 100644 index 0000000..7c63160 --- /dev/null +++ b/views/html/eNamadLogo.htm @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file