Skip to content

Commit

Permalink
+ Add enamad.html file
Browse files Browse the repository at this point in the history
  • Loading branch information
Danoosh committed Jun 19, 2014
1 parent 0027042 commit 1482d3c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inamad.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand All @@ -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))
{

Expand Down
10 changes: 10 additions & 0 deletions views/html/eNamadLogo.htm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<iframe width="125" scrolling="no" height="140" frameborder="0" style="margin: 0;
padding: 0; border: 1px" temp_src="http://enamad.ir/trustseal/symbol.aspx" src="http://enamad.ir/trustseal/symbol.aspx">
</iframe>
</body>
</html>
Expand Down

0 comments on commit 1482d3c

Please sign in to comment.