Dexxtz_Store_maintenance - Version 1.1.0

Version Notes

Update / Atualização

Download this release

Release Info

Developer Dexxtz
Extension Dexxtz_Store_maintenance
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.3 to 1.1.0

app/code/community/Dexxtz/Storemaintenance/etc/system.xml CHANGED
@@ -52,12 +52,21 @@
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
54
  </title>
 
 
 
 
 
 
 
 
 
55
  <block_static translate="label">
56
  <label>Select the static block</label>
57
  <comment>It is the maintenance page to be displayed</comment>
58
  <frontend_type>select</frontend_type>
59
  <source_model>storemaintenance/blockstatic</source_model>
60
- <sort_order>30</sort_order>
61
  <show_in_default>1</show_in_default>
62
  <show_in_website>0</show_in_website>
63
  <show_in_store>1</show_in_store>
@@ -67,7 +76,7 @@
67
  <comment>Only logged administrators, can they have access</comment>
68
  <frontend_type>select</frontend_type>
69
  <source_model>adminhtml/system_config_source_yesno</source_model>
70
- <sort_order>40</sort_order>
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
  <show_in_store>1</show_in_store>
@@ -77,7 +86,7 @@
77
  <comment>m/d/Y - After the date the frontend can be viewed</comment>
78
  <frontend_type>text</frontend_type>
79
  <frontend_model>storemaintenance/enddate</frontend_model>
80
- <sort_order>50</sort_order>
81
  <show_in_default>1</show_in_default>
82
  <show_in_website>1</show_in_website>
83
  <validate>required-entry</validate>
@@ -87,7 +96,7 @@
87
  <label>Your current IP is</label>
88
  <frontend_type>label</frontend_type>
89
  <frontend_model>storemaintenance/ip</frontend_model>
90
- <sort_order>60</sort_order>
91
  <show_in_default>1</show_in_default>
92
  <show_in_website>1</show_in_website>
93
  <show_in_store>1</show_in_store>
@@ -97,7 +106,7 @@
97
  <comment>IP addresses allowed pair to access the frontend</comment>
98
  <frontend_model>storemaintenance/ipgrid</frontend_model>
99
  <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
100
- <sort_order>70</sort_order>
101
  <show_in_default>1</show_in_default>
102
  <show_in_website>1</show_in_website>
103
  <show_in_store>1</show_in_store>
@@ -107,7 +116,7 @@
107
  <comment>Saves the ip, date and page attempt of access in log</comment>
108
  <frontend_type>select</frontend_type>
109
  <source_model>adminhtml/system_config_source_yesno</source_model>
110
- <sort_order>80</sort_order>
111
  <show_in_default>1</show_in_default>
112
  <show_in_website>1</show_in_website>
113
  <show_in_store>1</show_in_store>
@@ -116,7 +125,7 @@
116
  <label>Name and extension of log</label>
117
  <comment>Example: log.txt to root or var/log/maintenance.txt</comment>
118
  <frontend_type>text</frontend_type>
119
- <sort_order>81</sort_order>
120
  <show_in_default>1</show_in_default>
121
  <show_in_website>1</show_in_website>
122
  <show_in_store>1</show_in_store>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
54
  </title>
55
+ <css translate="label comment">
56
+ <label>CSS</label>
57
+ <comment>Example: css/styles.css</comment>
58
+ <frontend_type>text</frontend_type>
59
+ <sort_order>30</sort_order>
60
+ <show_in_default>1</show_in_default>
61
+ <show_in_website>1</show_in_website>
62
+ <show_in_store>1</show_in_store>
63
+ </css>
64
  <block_static translate="label">
65
  <label>Select the static block</label>
66
  <comment>It is the maintenance page to be displayed</comment>
67
  <frontend_type>select</frontend_type>
68
  <source_model>storemaintenance/blockstatic</source_model>
69
+ <sort_order>40</sort_order>
70
  <show_in_default>1</show_in_default>
71
  <show_in_website>0</show_in_website>
72
  <show_in_store>1</show_in_store>
76
  <comment>Only logged administrators, can they have access</comment>
77
  <frontend_type>select</frontend_type>
78
  <source_model>adminhtml/system_config_source_yesno</source_model>
79
+ <sort_order>50</sort_order>
80
  <show_in_default>1</show_in_default>
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>1</show_in_store>
86
  <comment>m/d/Y - After the date the frontend can be viewed</comment>
87
  <frontend_type>text</frontend_type>
88
  <frontend_model>storemaintenance/enddate</frontend_model>
89
+ <sort_order>60</sort_order>
90
  <show_in_default>1</show_in_default>
91
  <show_in_website>1</show_in_website>
92
  <validate>required-entry</validate>
96
  <label>Your current IP is</label>
97
  <frontend_type>label</frontend_type>
98
  <frontend_model>storemaintenance/ip</frontend_model>
99
+ <sort_order>70</sort_order>
100
  <show_in_default>1</show_in_default>
101
  <show_in_website>1</show_in_website>
102
  <show_in_store>1</show_in_store>
106
  <comment>IP addresses allowed pair to access the frontend</comment>
107
  <frontend_model>storemaintenance/ipgrid</frontend_model>
108
  <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
109
+ <sort_order>80</sort_order>
110
  <show_in_default>1</show_in_default>
111
  <show_in_website>1</show_in_website>
112
  <show_in_store>1</show_in_store>
116
  <comment>Saves the ip, date and page attempt of access in log</comment>
117
  <frontend_type>select</frontend_type>
118
  <source_model>adminhtml/system_config_source_yesno</source_model>
119
+ <sort_order>90</sort_order>
120
  <show_in_default>1</show_in_default>
121
  <show_in_website>1</show_in_website>
122
  <show_in_store>1</show_in_store>
125
  <label>Name and extension of log</label>
126
  <comment>Example: log.txt to root or var/log/maintenance.txt</comment>
127
  <frontend_type>text</frontend_type>
128
+ <sort_order>91</sort_order>
129
  <show_in_default>1</show_in_default>
130
  <show_in_website>1</show_in_website>
131
  <show_in_store>1</show_in_store>
app/design/frontend/base/default/template/dexxtz/store_maintenance.phtml CHANGED
@@ -12,17 +12,20 @@
12
  $page = Mage::getSingleton('Mage_Page_Block_Html');
13
  $head = Mage::getSingleton('Mage_Page_Block_Html_Head');
14
  $title = (Mage::getStoreConfig('storemaintenance/dexxtz/title')) ? Mage::getStoreConfig('storemaintenance/dexxtz/title') : 'Store Maintenance';
 
15
  ?>
16
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
17
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $page->getLang();?>" lang="<?php echo $page->getLang();?>">
 
18
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
19
  <title><?php echo $this->__($title);?></title>
20
  <meta name="description" content="<?php echo htmlspecialchars($head->getDescription()) ?>" />
21
  <meta name="keywords" content="<?php echo htmlspecialchars($head->getKeywords()) ?>" />
22
  <meta name="robots" content="<?php echo htmlspecialchars($head->getRobots()) ?>" />
 
23
  <link rel="icon" href="<?php echo $head->getFaviconFile();?>" type="image/x-icon" />
24
  <link rel="shortcut icon" href="<?php echo $head->getFaviconFile();?>" type="image/x-icon" />
25
- <head>
26
  <body>
27
  <?php
28
  // capturing the identification of the selected static block
12
  $page = Mage::getSingleton('Mage_Page_Block_Html');
13
  $head = Mage::getSingleton('Mage_Page_Block_Html_Head');
14
  $title = (Mage::getStoreConfig('storemaintenance/dexxtz/title')) ? Mage::getStoreConfig('storemaintenance/dexxtz/title') : 'Store Maintenance';
15
+ $css = Mage::getStoreConfig('storemaintenance/dexxtz/css');
16
  ?>
17
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
18
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $page->getLang();?>" lang="<?php echo $page->getLang();?>">
19
+ <head>
20
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
21
  <title><?php echo $this->__($title);?></title>
22
  <meta name="description" content="<?php echo htmlspecialchars($head->getDescription()) ?>" />
23
  <meta name="keywords" content="<?php echo htmlspecialchars($head->getKeywords()) ?>" />
24
  <meta name="robots" content="<?php echo htmlspecialchars($head->getRobots()) ?>" />
25
+ <?php if ($css) { echo '<link type="text/css" rel="stylesheet" href="' . $this->getSkinUrl($css) . '" />' . "\n"; } ?>
26
  <link rel="icon" href="<?php echo $head->getFaviconFile();?>" type="image/x-icon" />
27
  <link rel="shortcut icon" href="<?php echo $head->getFaviconFile();?>" type="image/x-icon" />
28
+ </head>
29
  <body>
30
  <?php
31
  // capturing the identification of the selected static block
app/locale/en_US/Dexxtz_Storemaintenance.csv CHANGED
@@ -4,6 +4,8 @@
4
  "Enables or disables the maintenance page","Enables or disables the maintenance page"
5
  "Title of page","Title of page"
6
  "Will be added to the html title tag","Will be added to the html title tag"
 
 
7
  "Store Maintenance","Store Maintenance"
8
  "Select the static block","Select the static block"
9
  "It is the maintenance page to be displayed","It is the maintenance page to be displayed"
4
  "Enables or disables the maintenance page","Enables or disables the maintenance page"
5
  "Title of page","Title of page"
6
  "Will be added to the html title tag","Will be added to the html title tag"
7
+ "CSS","CSS"
8
+ "Example: css/styles.css","Exemplo: css/styles.css"
9
  "Store Maintenance","Store Maintenance"
10
  "Select the static block","Select the static block"
11
  "It is the maintenance page to be displayed","It is the maintenance page to be displayed"
app/locale/pt_BR/Dexxtz_Storemaintenance.csv CHANGED
@@ -4,6 +4,8 @@
4
  "Enables or disables the maintenance page","Ativa ou desativa a página de manutenção"
5
  "Title of page","Título da página"
6
  "Will be added to the html title tag","Será adicionado a tag title do html"
 
 
7
  "Store Maintenance","Loja em Manutenção"
8
  "Select the static block","Selecione um bloco estático"
9
  "It is the maintenance page to be displayed","É a página que será exibida em manutenção"
4
  "Enables or disables the maintenance page","Ativa ou desativa a página de manutenção"
5
  "Title of page","Título da página"
6
  "Will be added to the html title tag","Será adicionado a tag title do html"
7
+ "CSS","CSS"
8
+ "Example: css/styles.css","Exemplo: css/styles.css"
9
  "Store Maintenance","Loja em Manutenção"
10
  "Select the static block","Selecione um bloco estático"
11
  "It is the maintenance page to be displayed","É a página que será exibida em manutenção"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dexxtz_Store_maintenance</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
7
  <channel>community</channel>
@@ -15,10 +15,10 @@ The module saves access logs, controls access by date, ip or administrator user.
15
  Deixe sua loja em manuten&#xE7;&#xE3;o para seus clientes, enquanto voc&#xEA; trabalha melhorando ela ou desenvolvendo sua loja.&lt;br /&gt;&#xD;
16
  Seus clientes n&#xE3;o v&#xE3;o te atrapalhar ou visualizar erros em sua loja.&lt;br /&gt;&#xD;
17
  O m&#xF3;dulo armazena logs de acesso, controla o acesso por data, ip ou por usu&#xE1;rio administrador.</description>
18
- <notes>Fixed installation / Corrigido instala&#xE7;&#xE3;o</notes>
19
  <authors><author><name>Dexxtz</name><user>Dexxtz</user><email>dexxtz@gmail.com</email></author></authors>
20
- <date>2014-08-21</date>
21
- <time>18:00:00</time>
22
  <contents>
23
  <target name="magecommunity">
24
  <dir name="Dexxtz">
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Dexxtz_Store_maintenance</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
7
  <channel>community</channel>
15
  Deixe sua loja em manuten&#xE7;&#xE3;o para seus clientes, enquanto voc&#xEA; trabalha melhorando ela ou desenvolvendo sua loja.&lt;br /&gt;&#xD;
16
  Seus clientes n&#xE3;o v&#xE3;o te atrapalhar ou visualizar erros em sua loja.&lt;br /&gt;&#xD;
17
  O m&#xF3;dulo armazena logs de acesso, controla o acesso por data, ip ou por usu&#xE1;rio administrador.</description>
18
+ <notes>Update / Atualização</notes>
19
  <authors><author><name>Dexxtz</name><user>Dexxtz</user><email>dexxtz@gmail.com</email></author></authors>
20
+ <date>2014-08-22</date>
21
+ <time>12:00:00</time>
22
  <contents>
23
  <target name="magecommunity">
24
  <dir name="Dexxtz">