DD_Customsitemaintanance - Version 0.1.1

Version Notes

It is stable version

Download this release

Release Info

Developer Magento Core Team
Extension DD_Customsitemaintanance
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

Websiteundermaintenance installationguide.docx ADDED
Binary file
app/code/community/DD/Customsitemaintanance/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
- <version>0.1.0</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
+ <version>0.1.1</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
app/code/community/DD/Customsitemaintanance/etc/config.xml~ ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ -->
11
+ <config>
12
+ <modules>
13
+ <DD_Customsitemaintanance>
14
+ <version>0.1.0</version>
15
+ </DD_Customsitemaintanance>
16
+ </modules>
17
+ <frontend>
18
+ <routers>
19
+ <customsitemaintanance>
20
+ <use>standard</use>
21
+ <args>
22
+ <module>DD_Customsitemaintanance</module>
23
+ <frontName>customsitemaintanance</frontName>
24
+ </args>
25
+ </customsitemaintanance>
26
+ </routers>
27
+ <layout>
28
+ <updates>
29
+ <customsitemaintanance>
30
+ <file>customsitemaintanance.xml</file>
31
+ </customsitemaintanance>
32
+ </updates>
33
+ </layout>
34
+ </frontend>
35
+ <admin>
36
+ <routers>
37
+ <customsitemaintanance>
38
+ <use>admin</use>
39
+ <args>
40
+ <module>DD_Customsitemaintanance</module>
41
+ <frontName>customsitemaintanance</frontName>
42
+ </args>
43
+ </customsitemaintanance>
44
+ </routers>
45
+ </admin>
46
+ <adminhtml>
47
+ <acl>
48
+ <resources>
49
+ <all>
50
+ <title>Allow Everything</title>
51
+ </all>
52
+ <admin>
53
+ <children>
54
+ <DD_Customsitemaintanance>
55
+ <title>Customsitemaintanance Module</title>
56
+ <sort_order>10</sort_order>
57
+ </DD_Customsitemaintanance>
58
+ <system>
59
+ <children>
60
+ <config>
61
+ <children>
62
+ <customsitemaintanance>
63
+ <title>Easymaintanance</title>
64
+ </customsitemaintanance>
65
+ </children>
66
+ </config>
67
+ </children>
68
+ </system>
69
+ </children>
70
+ </admin>
71
+ </resources>
72
+ </acl>
73
+ <layout>
74
+ <updates>
75
+ <customsitemaintanance>
76
+ <file>customsitemaintanance.xml</file>
77
+ </customsitemaintanance>
78
+ </updates>
79
+ </layout>
80
+ </adminhtml>
81
+ <global>
82
+ <helpers>
83
+ <customsitemaintanance>
84
+ <class>DD_Customsitemaintanance_Helper</class>
85
+ </customsitemaintanance>
86
+ </helpers>
87
+ <blocks>
88
+ <customsitemaintanance>
89
+ <class>DD_Customsitemaintanance_Block</class>
90
+ </customsitemaintanance>
91
+ </blocks>
92
+ <models>
93
+ <customsitemaintanance>
94
+ <class>DD_Customsitemaintanance_Model</class>
95
+ </customsitemaintanance>
96
+ </models>
97
+ <resources>
98
+ <customsitemaintanance_setup>
99
+ <setup>
100
+ <module>DD_Customsitemaintanance</module>
101
+ </setup>
102
+ <connection>
103
+ <use>core_setup</use>
104
+ </connection>
105
+ </customsitemaintanance_setup>
106
+ <customsitemaintanance_write>
107
+ <connection>
108
+ <use>core_write</use>
109
+ </connection>
110
+ </customsitemaintanance_write>
111
+ <customsitemaintanance_read>
112
+ <connection>
113
+ <use>core_read</use>
114
+ </connection>
115
+ </customsitemaintanance_read>
116
+ </resources>
117
+ <events>
118
+ <controller_front_send_response_before>
119
+ <observers>
120
+ <customsitemaintanance>
121
+ <type>singleton</type>
122
+ <class>customsitemaintanance/observer</class>
123
+ <method>initFirstLoad</method>
124
+ </customsitemaintanance>
125
+ </observers>
126
+ </controller_front_send_response_before>
127
+ </events>
128
+ </global>
129
+ </config>
app/design/frontend/base/default/template/customsitemaintanance/customsitemaintanance.phtml DELETED
@@ -1,85 +0,0 @@
1
- <?php
2
- /**
3
- * Dynamic Dreamz
4
- * @category design
5
- * @package base_default
6
- * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
7
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
8
- */
9
- $storeId = Mage::app()->getStore()->getStoreId();
10
- $allowedIPs = Mage::getStoreConfig('customsitemaintanance/general/allowedIPs', $storeId);
11
- $bg_image = Mage::getStoreConfig('customsitemaintanance/general/background_image', $storeId);
12
- ?>
13
- <html>
14
- <head>
15
- <title>
16
- <?php
17
- if (Mage::getStoreConfig('customsitemaintanance/general/page_title', $storeId) != '') {
18
- echo strip_tags(Mage::getStoreConfig('customsitemaintanance/general/page_title', $storeId), NULL);
19
- } else {
20
- echo $this->__('Store Maintenance');
21
- }
22
- ?>
23
- </title>
24
- <script type="text/javascript" src="<?php echo $this->getJsUrl(); ?>customsitemaintanance/jquery-1.10.1.min.js"></script>
25
- <script type="text/javascript">
26
- jQuery(document).ready(function () {
27
- jQuery(".wrapper").remove();
28
- });
29
- </script>
30
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/customsitemaintanance.css") ?>">
31
- <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/responsive.css") ?>">
32
- <meta name="viewport" content="width=device-width, initial-scale=1">
33
- </head>
34
- <?php if ($bg_image) { ?>
35
- <body style="background-image: url(<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . Mage::getStoreConfig('customsitemaintanance/general/background_image'); ?>); background-size: cover;height: 600px !important;position: relative;">
36
- <?php } else { ?>
37
- <body style="background-image: url(<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . 'ht-effect.jpg'; ?>) ; background-size: cover; background-size: cover;height: 600px !important;position: relative;">
38
- <?php } ?>
39
- <div id="clearer"></div>
40
- <div class="main-containers">
41
- <div class="comingsoon">
42
- <div class="logo-container">
43
-
44
- <?php if (Mage::getStoreConfig('customsitemaintanance/general/logo')): ?>
45
- <img src="<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . Mage::getStoreConfig('customsitemaintanance/general/logo'); ?>" alt="Customsitemaintanance Logo">
46
- <?php else: ?>
47
- <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'customsitemaintanance/' . 'under-maintenance.png'; ?>">
48
- <?php endif; ?>
49
- </div>
50
- <div class="rest">
51
- <?php
52
- $helper = Mage::helper('cms');
53
- $processor = $helper->getPageTemplateProcessor();
54
- $maintenanceMes = $processor->filter(trim(Mage::getStoreConfig('customsitemaintanance/general/maintenanceHtml', $storeId)));
55
- echo $maintenanceMes;
56
- if (!$maintenanceMes):
57
- ?>
58
- <h2><span><?php echo $this->__('Our website is</span><br/>Coming Soon') ?></h2>
59
- <?php endif; ?>
60
- <?php
61
- $contactDetails_enabled = Mage::getStoreConfig('customsitemaintanance/general/contact_details_enabled');
62
- $phoneNumber = Mage::getStoreConfig('customsitemaintanance/general/phone_number');
63
- $address = Mage::getStoreConfig('customsitemaintanance/general/address');
64
- $emailId = Mage::getStoreConfig('customsitemaintanance/general/email_id');
65
- if ($contactDetails_enabled == '1'):
66
- ?>
67
- <p><?php echo $this->__('In the mean time connect with us with the information provided') ?></p>
68
- <ul class="info">
69
- <?php if ($phoneNumber != ''): ?>
70
- <li ><span class="ph"></span><?php echo $phoneNumber; ?></li>
71
- <?php endif; ?>
72
- <?php if ($address != ''): ?>
73
- <li><span class="ad"></span><?php echo $address; ?></li>
74
- <?php endif; ?>
75
- <?php if ($emailId != ''): ?>
76
- <li><span class="mail"></span><a href="#"><?php echo $emailId; ?></a></li>
77
- <?php endif; ?>
78
- </ul>
79
- <?php endif; ?>
80
- </div>
81
- </div>
82
- </div>
83
- </body>
84
- </html>
85
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/DD_Customsitemaintanance.xml CHANGED
@@ -1,10 +1,19 @@
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <modules>
4
  <DD_Customsitemaintanance>
5
  <active>1</active>
6
  <codePool>community</codePool>
7
- <version>0.1.0</version>
8
  </DD_Customsitemaintanance>
9
  </modules>
10
  </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Dynamic Dreamz
5
+ * @category DD
6
+ * @package DD_Customsitemaintanance
7
+ * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
9
+ */
10
+ -->
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
  <active>1</active>
15
  <codePool>community</codePool>
16
+ <version>0.1.1</version>
17
  </DD_Customsitemaintanance>
18
  </modules>
19
  </config>
package.xml CHANGED
@@ -1,12 +1,12 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DD_Customsitemaintanance</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This extension provides under maintenance page for your website which is accessible to allowed IP(s) or admin.</summary>
10
  <description>1.No Access to Website-Keeps your website/online store under maintenance mode for any technical reason.&#xD;
11
  2.Full access to admin-Except admin no one else can access site when it is on maintenance mode.&#xD;
12
  3.Access from Limited IP Address -Admin can specify the IPs that can access the site while it being under maintenance.&#xD;
@@ -16,11 +16,11 @@
16
  7. No need to create a separate page or redirect the maintenance page on another page. In addition, admin can also display images.&#xD;
17
  8.Customized Page Title-Admin can also customize the maintenance page title with some personalized message to make it more approachable to his/her visitors.&#xD;
18
  9.Upload Logo-You can also upload your business logo from backend for the maintenance page to display for your visitors.</description>
19
- <notes>It is stable version.</notes>
20
- <authors><author><name>Virag shah</name><user>auto-converted</user><email>info@dynamicdreamz.com</email></author></authors>
21
- <date>2015-09-23</date>
22
- <time>11:10:44</time>
23
- <contents><target name="magecommunity"><dir name="DD"><dir name="Customsitemaintanance"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Date.php" hash="8f1dc84788df4387af1f3269348ed356"/><file name="Editor.php" hash="cc1e2c70bf0bb8c161a551197e553590"/></dir></dir></dir><file name="Index.php" hash="f77c42c32475cf2c297e6cc8bec7270c"/></dir><dir name="Helper"><file name="Data.php" hash="2a2ea38afa268015cff07cdcd4341781"/></dir><dir name="Model"><file name="Observer.php" hash="d880644ef9a92777ec8f3d750f41799a"/></dir><dir name="controllers"><file name="IndexController.php" hash="67050279a276bf36b19987e8d5ff634b"/></dir><dir name="etc"><file name="config.xml" hash="faadcf4419e352d53fe9ef1387a96fb9"/><file name="system.xml" hash="d61c1533e7a49d8944e343598a6903db"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="06abd7e20a53b27572f3d84cbdaf5ad2"/></dir><dir name="template"><dir name="customsitemaintanance"><file name="customsitemaintanance.phtml" hash="cd8755c5f31d0d5d350fb41163ed7abf"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="2ddd803c94f821acc9c8b02c5f01ba25"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Customsitemaintanance.xml" hash="2fbb7915cb23fb42e479fba9f6bfb7fb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="customsitemaintanance"><dir name="css"><file name="customsitemaintanance.css" hash="4e0064feeeeb144ad78f6b4fb6f2a698"/><file name="responsive.css" hash="5bf302ea7cbe86c26a752a6bb66cb386"/></dir><dir name="images"><file name="icons.png" hash="cc7fa73334b7c3e945b7c63c8bebb500"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="customsitemaintanance"><file name="ht-effect.jpg" hash="685615bc710373e2e32cb64b22a57a86"/><file name="under-maintenance.png" hash="39d8da51baf87a405c09bb7351569c28"/></dir></target><target name="mage"><dir name="js"><dir name="customsitemaintanance"><file name="jquery-1.10.1.min.js" hash="d01d03e4e13e9b0433b63e9673526941"/></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.4</min><max>1.9</max></package></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DD_Customsitemaintanance</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This extension helps online merchants to put their online store in maintenance mode for specified time span.</summary>
10
  <description>1.No Access to Website-Keeps your website/online store under maintenance mode for any technical reason.&#xD;
11
  2.Full access to admin-Except admin no one else can access site when it is on maintenance mode.&#xD;
12
  3.Access from Limited IP Address -Admin can specify the IPs that can access the site while it being under maintenance.&#xD;
16
  7. No need to create a separate page or redirect the maintenance page on another page. In addition, admin can also display images.&#xD;
17
  8.Customized Page Title-Admin can also customize the maintenance page title with some personalized message to make it more approachable to his/her visitors.&#xD;
18
  9.Upload Logo-You can also upload your business logo from backend for the maintenance page to display for your visitors.</description>
19
+ <notes>It is stable version</notes>
20
+ <authors><author><name>Dynamic Dreamz</name><user>auto-converted</user><email>info@dynamicdreamz.com</email></author></authors>
21
+ <date>2015-09-30</date>
22
+ <time>05:19:30</time>
23
+ <contents><target name="magecommunity"><dir name="DD"><dir name="Customsitemaintanance"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Date.php" hash="8f1dc84788df4387af1f3269348ed356"/><file name="Editor.php" hash="cc1e2c70bf0bb8c161a551197e553590"/></dir></dir></dir><file name="Index.php" hash="f77c42c32475cf2c297e6cc8bec7270c"/></dir><dir name="controllers"><file name="IndexController.php" hash="67050279a276bf36b19987e8d5ff634b"/></dir><dir name="etc"><file name="config.xml" hash="7dc435f706c370a9d2e0f3784cab762d"/><file name="config.xml~" hash="faadcf4419e352d53fe9ef1387a96fb9"/><file name="system.xml" hash="d61c1533e7a49d8944e343598a6903db"/></dir><dir name="Helper"><file name="Data.php" hash="2a2ea38afa268015cff07cdcd4341781"/></dir><dir name="Model"><file name="Observer.php" hash="d880644ef9a92777ec8f3d750f41799a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="06abd7e20a53b27572f3d84cbdaf5ad2"/></dir><dir name="template"><dir name="customsitemaintanance"><file name="customsitemaintanance.phtml" hash=""/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="customsitemaintanance.xml" hash="2ddd803c94f821acc9c8b02c5f01ba25"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Customsitemaintanance.xml" hash="e7c9c2af51b37db6c8aac8751856cf64"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="customsitemaintanance"><dir name="css"><file name="customsitemaintanance.css" hash=""/><file name="responsive.css" hash="5bf302ea7cbe86c26a752a6bb66cb386"/></dir><dir name="images"><file name="icons.png" hash="cc7fa73334b7c3e945b7c63c8bebb500"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="customsitemaintanance"><file name="ht-effect.jpg" hash="685615bc710373e2e32cb64b22a57a86"/><file name="under-maintenance.png" hash="39d8da51baf87a405c09bb7351569c28"/></dir></target><target name="mage"><dir name="js"><dir name="customsitemaintanance"><file name="jquery-1.10.1.min.js" hash="d01d03e4e13e9b0433b63e9673526941"/></dir></dir><dir name="."><file name="Websiteundermaintenance installationguide.docx" hash="06e1afaf92bc86d0bc6b269bd1765c80"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.4</min><max>1.9</max></package></required></dependencies>
26
  </package>
skin/frontend/base/default/customsitemaintanance/css/customsitemaintanance.css DELETED
@@ -1,135 +0,0 @@
1
- /**
2
- * Dynamic Dreamz
3
- * @category design
4
- * @package base_default
5
- * @copyright Copyright (c) 2014-2015 Dynamic Dreamz. (http://www.dynamicdreamz.com/)
6
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
7
- */
8
-
9
- *{ margin:0px auto;
10
- padding: 0;
11
- font-size:17px;
12
- font-family:Arial, Helvetica, sans-serif;
13
- font-weight: bold;
14
- font-style: italic;
15
- text-align:center;
16
-
17
- }
18
-
19
-
20
- body {
21
- background-size: cover;
22
- background-repeat: no-repeat;
23
- position: fixed;
24
- }
25
-
26
-
27
- .logo-container {
28
- float: left;
29
- margin: 20px 20px 0 50px;
30
- width: 41%;
31
- }
32
-
33
- .rest{width:50%; float:left; text-align:left;}
34
-
35
-
36
- div#clearer{
37
- visibility: hidden;
38
- width: 100%;
39
- height: 50%;
40
- margin-top: -250px;
41
- float: left;
42
- }
43
- @media (min-width: 0px) {
44
-
45
- .main-containers{ position: fixed; height:100%; width:100%; margin-top: -142px;top: 40%;}
46
-
47
- }
48
-
49
-
50
- .comingsoon{
51
-
52
- margin: 0 auto;
53
- top: -250px;
54
- width: 960px;
55
-
56
- }
57
- .comingsoon img { display: block; max-width: 100%;width: 100%;}
58
-
59
- .rest h2 {
60
- color: #396f90;
61
- font-family: "Oswald",sans-serif;
62
- font-size: 60px;
63
- font-weight: 700;
64
- letter-spacing: 0;
65
- line-height: 55px;
66
- margin-bottom: 20px;
67
- text-align: left;
68
- text-transform: uppercase;
69
- }
70
- .rest p {
71
- color: brown;
72
- font-size: 16px;
73
- margin: 0 0 20px;
74
- text-align: left;
75
- }
76
-
77
-
78
- ul.info li {
79
- color: brown;
80
- display: inline-flex;
81
- float: left;
82
- font-family: "Oswald",sans-serif;
83
- font-size: 14px;
84
- letter-spacing: 1px;
85
- margin-bottom: 10px;
86
- text-align: left;
87
- vertical-align: middle;
88
- }
89
-
90
-
91
- ul.info li span.ph, ul.info li span.mail, ul.info li span.ad {
92
- display: inline-block;
93
- height: 24px;
94
- padding-top: 0;
95
- vertical-align: middle;
96
- width: 30px;
97
- }
98
-
99
- ul.info li span.ph {
100
- background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll 0 0px;
101
-
102
- }
103
-
104
- ul.info li span.mail {
105
- background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll left -101px;
106
-
107
- }
108
-
109
- ul.info li span.ad {
110
- background: rgba(0, 0, 0, 0) url("../images/icons.png") no-repeat scroll left -208px;
111
-
112
- }
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-