DD_Customsitemaintanance - Version 1.0.0

Version Notes

It is stable version

Download this release

Release Info

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


Code changes from version 0.1.1 to 1.0.0

app/code/community/DD/Customsitemaintanance/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
- <version>0.1.1</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
+ <version>1.0.0</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
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>1.0.0</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
app/design/frontend/base/default/template/customsitemaintanance/customsitemaintanance.phtml ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -13,7 +13,7 @@
13
  <DD_Customsitemaintanance>
14
  <active>1</active>
15
  <codePool>community</codePool>
16
- <version>0.1.1</version>
17
  </DD_Customsitemaintanance>
18
  </modules>
19
  </config>
13
  <DD_Customsitemaintanance>
14
  <active>1</active>
15
  <codePool>community</codePool>
16
+ <version>1.0.0</version>
17
  </DD_Customsitemaintanance>
18
  </modules>
19
  </config>
package.xml CHANGED
@@ -1,13 +1,14 @@
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;
13
  4.Bypass specific URL(s)-Admin can allow access to specific URL for his/her customers when site is under maintenance mode.&#xD;
@@ -18,9 +19,9 @@
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DD_Customsitemaintanance</name>
4
+ <version>1.0.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 helps online merchants to put their online store in maintenance mode for specified time span.Hold your website for your maintenance needs!! If you want to keep &#x201C;coming soon page&#x201D; on your website , &#x201C; Website Under Maintenance &#x201D; is the perfect extension for you . With this extension, you can display your website's maintenance page without creating seperate page for it,admin has full access to the website and can also allow access to website for some specific IP(s).This extension also facilitates you(admin) to bypass specific urls for your customers/visitors/cllients. You can also display your custom messages/logo/background-image on the maintenance page.With this extension you can also display your contact information on the maintenance page for easy communication with your site visitors.</summary>
10
+ <description>Hold your website for your maintenance needs!! If you want to keep &#x201C;coming soon page&#x201D; on your website , &#x201C; Website Under Maintenance &#x201D; is the perfect extension for you . With this extension, you can display your website's maintenance page without creating seperate page for it,admin has full access to the website and can also allow access to website for some specific IP(s).This extension also facilitates you(admin) to bypass specific urls for your customers/visitors/cllients. You can also display your custom messages/logo/background-image on the maintenance page.With this extension you can also display your contact information on the maintenance page for easy communication with your site visitors.&#xD;
11
+ 1.No Access to Website-Keeps your website/online store under maintenance mode for any technical reason.&#xD;
12
  2.Full access to admin-Except admin no one else can access site when it is on maintenance mode.&#xD;
13
  3.Access from Limited IP Address -Admin can specify the IPs that can access the site while it being under maintenance.&#xD;
14
  4.Bypass specific URL(s)-Admin can allow access to specific URL for his/her customers when site is under maintenance mode.&#xD;
19
  9.Upload Logo-You can also upload your business logo from backend for the maintenance page to display for your visitors.</description>
20
  <notes>It is stable version</notes>
21
  <authors><author><name>Dynamic Dreamz</name><user>auto-converted</user><email>info@dynamicdreamz.com</email></author></authors>
22
+ <date>2015-10-05</date>
23
+ <time>06:24:25</time>
24
+ <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="f408fc1a10e2cf3439cdd3530808785c"/><file name="config.xml~" hash="f408fc1a10e2cf3439cdd3530808785c"/><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="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="21fa040e8e35b3479f5f1b2dc4cbf880"/></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><dir name="."><file name="Websiteundermaintenance installationguide.docx" hash="06e1afaf92bc86d0bc6b269bd1765c80"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.4</min><max>1.9</max></package></required></dependencies>
27
  </package>
skin/frontend/base/default/customsitemaintanance/css/customsitemaintanance.css ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+