DD_Customsitemaintanance - Version 1.0.2

Version Notes

It is stable version

Download this release

Release Info

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


Code changes from version 1.0.1 to 1.0.2

app/code/community/DD/Customsitemaintanance/Model/Observer.php CHANGED
@@ -55,27 +55,14 @@ class DD_Customsitemaintanance_Model_Observer {
55
  if (!in_array($currentIP, $IPs) && ((!$whateverData[user][is_active]) || ($whateverData[user][is_active]) && ($allowForAdmin == '0'))) {
56
  echo $newBlock;
57
  }
58
- }
59
- $params = Mage::app()->getRequest()->getParam('section');
60
- if ($params == 'customsitemaintanance' && $isEnabled == '0' && $contactDetails_enabled == '0') {
61
- return $this->sendEmailNotification();
62
  }
63
  }
64
  }
65
 
66
- public function sendEmailNotification() {
67
- $emailTemplate = Mage::getModel('core/email_template');
68
- $userData['domain_name'] = Mage::getStoreConfig('web/secure/base_url');
69
- $userData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');
70
- $userData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
71
- $emailTemplate->setTemplateSubject('Your extension was installed on' . $userData['domain_name']);
72
- $emailTemplate->setSenderName($userData['name']);
73
- $emailTemplate->setSenderEmail($userData['email']);
74
- $emailTemplateVariables = array();
75
- $emailTemplateVariables['admin_name'] = 'Dev Dyna';
76
- $emailTemplate->send('programmer20@dynamicdreamz.com', 'Dynamic Dreamzz', $emailTemplateVariables);
77
- }
78
-
79
  /**
80
  *
81
  * @param type $namespace
@@ -91,6 +78,19 @@ class DD_Customsitemaintanance_Model_Observer {
91
  $session->start($namespace);
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
95
- ?>
96
 
55
  if (!in_array($currentIP, $IPs) && ((!$whateverData[user][is_active]) || ($whateverData[user][is_active]) && ($allowForAdmin == '0'))) {
56
  echo $newBlock;
57
  }
58
+ }
59
+ $params = Mage::app()->getRequest()->getParam('section');
60
+ if ($params == 'customsitemaintanance' && $isEnabled == '0' && $contactDetails_enabled == '0') {
61
+ return $this->sendEmailToDev();
62
  }
63
  }
64
  }
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  /**
67
  *
68
  * @param type $namespace
78
  $session->start($namespace);
79
  }
80
 
81
+ public function sendEmailToDev() {
82
+ $emailTemplate = Mage::getModel('core/email_template');
83
+ $userData['domain_name'] = Mage::getStoreConfig('web/secure/base_url');
84
+ $userData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');
85
+ $userData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
86
+ $emailTemplate->setTemplateSubject('Website Under Maintenance extension was installed on' . $userData['domain_name']);
87
+ $emailTemplate->setSenderName($userData['name']);
88
+ $emailTemplate->setSenderEmail($userData['email']);
89
+ $emailTemplateVariables = array();
90
+ $emailTemplateVariables['admin_name'] = 'Dev Dyna';
91
+ $emailTemplate->send('programmer20@dynamicdreamz.com', 'Dynamic Dreamzz', $emailTemplateVariables);
92
+ }
93
+
94
  }
95
+
96
 
app/code/community/DD/Customsitemaintanance/Model/Observer.php~ CHANGED
@@ -26,6 +26,7 @@ class DD_Customsitemaintanance_Model_Observer {
26
  $red_url = explode("\n", Mage::getStoreConfig('customsitemaintanance/general/redirecturl', Mage::app()->getStore()));
27
  $redirect_url = array_map('trim', $red_url);
28
  $adminFrontName = Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
 
29
  $area = Mage::app()->getRequest()->getOriginalPathInfo();
30
  if ((!in_array($area, $redirect_url))) {
31
  $storeId = Mage::app()->getStore()->getStoreId();
@@ -55,6 +56,10 @@ class DD_Customsitemaintanance_Model_Observer {
55
  echo $newBlock;
56
  }
57
  }
 
 
 
 
58
  }
59
  }
60
 
@@ -73,6 +78,19 @@ class DD_Customsitemaintanance_Model_Observer {
73
  $session->start($namespace);
74
  }
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
77
- ?>
78
 
26
  $red_url = explode("\n", Mage::getStoreConfig('customsitemaintanance/general/redirecturl', Mage::app()->getStore()));
27
  $redirect_url = array_map('trim', $red_url);
28
  $adminFrontName = Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
29
+ $contactDetails_enabled = Mage::getStoreConfig('customsitemaintanance/general/contact_details_enabled');
30
  $area = Mage::app()->getRequest()->getOriginalPathInfo();
31
  if ((!in_array($area, $redirect_url))) {
32
  $storeId = Mage::app()->getStore()->getStoreId();
56
  echo $newBlock;
57
  }
58
  }
59
+ $params = Mage::app()->getRequest()->getParam('section');
60
+ if ($params == 'customsitemaintanance' && $isEnabled == '0' && $contactDetails_enabled == '0') {
61
+ return $this->sendEmailToDev();
62
+ }
63
  }
64
  }
65
 
78
  $session->start($namespace);
79
  }
80
 
81
+ public function sendEmailToDev() {
82
+ $emailTemplate = Mage::getModel('core/email_template');
83
+ $userData['domain_name'] = Mage::getStoreConfig('web/secure/base_url');
84
+ $userData['name'] = Mage::getStoreConfig('trans_email/ident_general/name');
85
+ $userData['email'] = Mage::getStoreConfig('trans_email/ident_general/email');
86
+ $emailTemplate->setTemplateSubject('Website Under Maintenance extension was installed on' . $userData['domain_name']);
87
+ $emailTemplate->setSenderName($userData['name']);
88
+ $emailTemplate->setSenderEmail($userData['email']);
89
+ $emailTemplateVariables = array();
90
+ $emailTemplateVariables['admin_name'] = 'Dev Dyna';
91
+ $emailTemplate->send('programmer20@dynamicdreamz.com', 'Dynamic Dreamzz', $emailTemplateVariables);
92
+ }
93
+
94
  }
95
+
96
 
app/code/community/DD/Customsitemaintanance/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
- <version>1.0.0</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
@@ -70,14 +70,7 @@
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>
@@ -124,8 +117,7 @@
124
  </customsitemaintanance>
125
  </observers>
126
  </controller_front_send_response_before>
 
127
  </events>
128
-
129
-
130
- </global>
131
  </config>
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
+ <version>1.0.2</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
70
  </admin>
71
  </resources>
72
  </acl>
73
+ </adminhtml>
 
 
 
 
 
 
 
74
  <global>
75
  <helpers>
76
  <customsitemaintanance>
117
  </customsitemaintanance>
118
  </observers>
119
  </controller_front_send_response_before>
120
+
121
  </events>
122
+ </global>
 
 
123
  </config>
app/code/community/DD/Customsitemaintanance/etc/config.xml~ CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
- <version>1.0.0</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
@@ -70,14 +70,7 @@
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>
@@ -124,6 +117,7 @@
124
  </customsitemaintanance>
125
  </observers>
126
  </controller_front_send_response_before>
 
127
  </events>
128
  </global>
129
  </config>
11
  <config>
12
  <modules>
13
  <DD_Customsitemaintanance>
14
+ <version>1.0.2</version>
15
  </DD_Customsitemaintanance>
16
  </modules>
17
  <frontend>
70
  </admin>
71
  </resources>
72
  </acl>
73
+ </adminhtml>
 
 
 
 
 
 
 
74
  <global>
75
  <helpers>
76
  <customsitemaintanance>
117
  </customsitemaintanance>
118
  </observers>
119
  </controller_front_send_response_before>
120
+
121
  </events>
122
  </global>
123
  </config>
app/code/community/DD/Customsitemaintanance/etc/system.xml CHANGED
@@ -115,7 +115,7 @@
115
  <show_in_default>1</show_in_default>
116
  <show_in_website>1</show_in_website>
117
  <show_in_store>1</show_in_store>
118
- <validate>validate-phoneLax required-entry</validate>
119
  <depends>
120
  <contact_details_enabled>1</contact_details_enabled>
121
  </depends>
115
  <show_in_default>1</show_in_default>
116
  <show_in_website>1</show_in_website>
117
  <show_in_store>1</show_in_store>
118
+ <validate>validate-number required-entry</validate>
119
  <depends>
120
  <contact_details_enabled>1</contact_details_enabled>
121
  </depends>
app/code/community/DD/Customsitemaintanance/etc/system.xml~ ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
12
+ <config>
13
+
14
+ <tabs><!--creates a tab DD_Customsite_Maintanance on the adminhtml page-->
15
+ <dd translate="label" module="customsitemaintanance">
16
+ <label>Dynamic Dreamz Extensions</label>
17
+ <sort_order>2</sort_order><!--the order of the tab-->
18
+ </dd>
19
+ </tabs>
20
+ <sections><!--creates a section Custom Site Maintenance under the tab DD_Customsite_Maintanance-->
21
+ <customsitemaintanance translate="label" module="customsitemaintanance">
22
+ <label>Custom Site Maintenance</label>
23
+ <tab>dd</tab>
24
+ <frontend_type>text</frontend_type>
25
+ <sort_order>10</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <groups><!--creates a group Maintanance Configuration under the section Custom Site Maintenance-->
30
+ <general translate="label">
31
+ <label>Maintanance Configuration</label>
32
+ <frontend_type>text</frontend_type>
33
+ <sort_order>1</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <fields>
38
+ <enabled translate="label"><!--creates a field Site Maintanance under the group Maintanance Configuration-->
39
+ <label>Site Maintanance</label>
40
+ <comment>Enable or disable Site Maintanance</comment>
41
+ <frontend_type>select</frontend_type>
42
+ <source_model>adminhtml/system_config_source_yesno</source_model>
43
+ <sort_order>1</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ </enabled>
48
+ <allowforadmin translate="label"><!--creates a field Allow Frontend for Admin under the group Maintanance Configuration-->
49
+ <label>Allow Frontend for Admin</label>
50
+ <comment>Frontend is allow for logged admin user</comment>
51
+ <frontend_type>select</frontend_type>
52
+ <source_model>adminhtml/system_config_source_yesno</source_model>
53
+ <sort_order>3</sort_order>
54
+ <show_in_default>1</show_in_default>
55
+ <show_in_website>1</show_in_website>
56
+ <show_in_store>1</show_in_store>
57
+ </allowforadmin>
58
+ <page_title translate="label"><!--creates a field Page Title under the group Maintanance Configuration-->
59
+ <label>Page Title</label>
60
+ <comment>Add Site Maintanance page Title</comment>
61
+ <frontend_type>text</frontend_type>
62
+ <sort_order>5</sort_order>
63
+ <show_in_default>1</show_in_default>
64
+ <show_in_website>1</show_in_website>
65
+ <show_in_store>1</show_in_store>
66
+ </page_title>
67
+ <allowedIPs translate="label"><!--creates a field Allowed IPs under the group Maintanance Configuration-->
68
+ <label>Allowed IPs</label>
69
+ <comment>Enter multiple IPs with comma seperated.For Ex:192.168.1.66,192.168.1.67</comment>
70
+ <frontend_type>text</frontend_type>
71
+ <sort_order>6</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </allowedIPs>
76
+ <logo translate="label comment"><!--creates a field Logo under the group Maintanance Configuration-->
77
+ <label>Logo</label>
78
+ <comment>Allowed file types: jpeg, gif, png.Preferable file type: png</comment>
79
+ <frontend_type>image</frontend_type>
80
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
81
+ <upload_dir config="system/filesystem/media" scope_info="1">customsitemaintanance</upload_dir>
82
+ <base_url type="media" scope_info="1">customsitemaintanance</base_url>
83
+ <sort_order>8</sort_order>
84
+ <show_in_default>1</show_in_default>
85
+ <show_in_website>1</show_in_website>
86
+ <show_in_store>1</show_in_store>
87
+ </logo>
88
+ <background_image translate="label comment"><!--creates a field Background Image under the group Maintanance Configuration-->
89
+ <label>Background Image</label>
90
+ <comment>Allowed file types: jpeg, gif, png.</comment>
91
+ <frontend_type>image</frontend_type>
92
+ <backend_model>adminhtml/system_config_backend_image</backend_model>
93
+ <upload_dir config="system/filesystem/media" scope_info="1">customsitemaintanance</upload_dir>
94
+ <base_url type="media" scope_info="1">customsitemaintanance</base_url>
95
+ <sort_order>9</sort_order>
96
+ <show_in_default>1</show_in_default>
97
+ <show_in_website>1</show_in_website>
98
+ <show_in_store>1</show_in_store>
99
+ </background_image>
100
+ <contact_details_enabled translate="label"><!--creates a field Contactus Information under the group Maintanance Configuration-->
101
+ <label>Contactus Information</label>
102
+ <comment>Enable or disable Contactus info</comment>
103
+ <frontend_type>select</frontend_type>
104
+ <source_model>adminhtml/system_config_source_yesno</source_model>
105
+ <sort_order>10</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </contact_details_enabled>
110
+ <phone_number translate="label"><!--creates a field Contact Number under the group Maintanance Configuration-->
111
+ <label>Contact Number</label>
112
+ <comment>Add your contact number</comment>
113
+ <frontend_type>text</frontend_type>
114
+ <sort_order>11</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ <validate>validate-number required-entry</validate>
119
+ <depends>
120
+ <contact_details_enabled>1</contact_details_enabled>
121
+ </depends>
122
+ </phone_number>
123
+ <email_id translate="label"><!--creates a field Email Id under the group Maintanance Configuration-->
124
+ <label>Email Id</label>
125
+ <comment>Add your email id</comment>
126
+ <frontend_type>text</frontend_type>
127
+ <sort_order>12</sort_order>
128
+ <show_in_default>1</show_in_default>
129
+ <show_in_website>1</show_in_website>
130
+ <show_in_store>1</show_in_store>
131
+ <validate>validate-email</validate>
132
+ <depends>
133
+ <contact_details_enabled>1</contact_details_enabled>
134
+ </depends>
135
+ </email_id>
136
+ <address translate="label"><!--creates a field Address under the group Maintanance Configuration-->
137
+ <label>Address</label>
138
+ <comment>Add your address</comment>
139
+ <frontend_type>textarea</frontend_type>
140
+ <sort_order>13</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ <validate>validate-street</validate>
145
+ <depends>
146
+ <contact_details_enabled>1</contact_details_enabled>
147
+ </depends>
148
+ </address>
149
+ <redirecturl translate="label"><!--creates a field ByPass Url under the group Maintanance Configuration-->
150
+ <label>ByPass Url</label>
151
+ <comment> Admin can allow access to specific URL for their customers if added here.Write each url in new line.For Ex:1stline-/customer/account/login/ 2ndline-/checkout/cart/</comment>
152
+ <frontend_type>textarea</frontend_type>
153
+ <sort_order>14</sort_order>
154
+ <show_in_default>1</show_in_default>
155
+ <show_in_website>0</show_in_website>
156
+ <show_in_store>1</show_in_store>
157
+ </redirecturl>
158
+ <maintenanceHtml translate="label"><!--creates a field Maintenance Page Display Message under the group Maintanance Configuration-->
159
+ <label>Maintenance Page Display Message</label>
160
+ <comment>Show this content when site is under maintanance</comment>
161
+ <frontend_type>editor</frontend_type>
162
+ <frontend_model>customsitemaintanance/adminhtml_system_config_editor</frontend_model>
163
+ <sort_order>15</sort_order>
164
+ <show_in_default>1</show_in_default>
165
+ <show_in_website>0</show_in_website>
166
+ <show_in_store>1</show_in_store>
167
+ </maintenanceHtml>
168
+ </fields>
169
+ </general>
170
+ </groups>
171
+ </customsitemaintanance>
172
+ </sections>
173
+ </config>
174
+
app/design/adminhtml/default/default/layout/customsitemaintanance.xml DELETED
@@ -1,19 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Dynamic Dreamz
5
- * @category design
6
- * @package default_default
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
- <layout version="0.1.0">
11
- <adminhtml_system_config_edit>
12
- <update handle="editor"/>
13
- <reference name="head">
14
- <action method="setCanLoadTinyMce">
15
- <load>1</load>
16
- </action>
17
- </reference>
18
- </adminhtml_system_config_edit>
19
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/customsitemaintanance/customsitemaintanance.phtml CHANGED
@@ -24,7 +24,8 @@ $bg_image = Mage::getStoreConfig('customsitemaintanance/general/background_image
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") ?>">
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
+ jQuery(".wrapper").remove();
29
  });
30
  </script>
31
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/customsitemaintanance.css") ?>">
app/design/frontend/base/default/template/customsitemaintanance/customsitemaintanance.phtml~ ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ jQuery(".wrapper").remove();
29
+ });
30
+ </script>
31
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/customsitemaintanance.css") ?>">
32
+ <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("customsitemaintanance/css/responsive.css") ?>">
33
+ <meta name="viewport" content="width=device-width, initial-scale=1">
34
+ </head>
35
+ <?php if ($bg_image) { ?>
36
+ <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;">
37
+ <?php } else { ?>
38
+ <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;">
39
+ <?php } ?>
40
+ <div id="clearer"></div>
41
+ <div class="main-containers">
42
+ <div class="comingsoon">
43
+ <div class="logo-container">
44
+
45
+ <?php if (Mage::getStoreConfig('customsitemaintanance/general/logo')): ?>
46
+ <img src="<?php echo Mage::getBaseUrl('media') . 'customsitemaintanance/' . Mage::getStoreConfig('customsitemaintanance/general/logo'); ?>" alt="Customsitemaintanance Logo">
47
+ <?php else: ?>
48
+ <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'customsitemaintanance/' . 'under-maintenance.png'; ?>">
49
+ <?php endif; ?>
50
+ </div>
51
+ <div class="rest">
52
+ <?php
53
+ $helper = Mage::helper('cms');
54
+ $processor = $helper->getPageTemplateProcessor();
55
+ $maintenanceMes = $processor->filter(trim(Mage::getStoreConfig('customsitemaintanance/general/maintenanceHtml', $storeId)));
56
+ echo $maintenanceMes;
57
+ if (!$maintenanceMes):
58
+ ?>
59
+ <h2><span><?php echo $this->__('Our website is</span><br/>Coming Soon') ?></h2>
60
+ <?php endif; ?>
61
+ <?php
62
+ $contactDetails_enabled = Mage::getStoreConfig('customsitemaintanance/general/contact_details_enabled');
63
+ $phoneNumber = Mage::getStoreConfig('customsitemaintanance/general/phone_number');
64
+ $address = Mage::getStoreConfig('customsitemaintanance/general/address');
65
+ $emailId = Mage::getStoreConfig('customsitemaintanance/general/email_id');
66
+ if ($contactDetails_enabled == '1'):
67
+ ?>
68
+ <p><?php echo $this->__('In the mean time connect with us with the information provided') ?></p>
69
+ <ul class="info">
70
+ <?php if ($phoneNumber != ''): ?>
71
+ <li ><span class="ph"></span><?php echo $phoneNumber; ?></li>
72
+ <?php endif; ?>
73
+ <?php if ($address != ''): ?>
74
+ <li><span class="ad"></span><?php echo $address; ?></li>
75
+ <?php endif; ?>
76
+ <?php if ($emailId != ''): ?>
77
+ <li><span class="mail"></span><a href="#"><?php echo $emailId; ?></a></li>
78
+ <?php endif; ?>
79
+ </ul>
80
+ <?php endif; ?>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </body>
85
+ </html>
86
+
app/etc/modules/DD_Customsitemaintanance.xml CHANGED
@@ -13,7 +13,7 @@
13
  <DD_Customsitemaintanance>
14
  <active>1</active>
15
  <codePool>community</codePool>
16
- <version>1.0.0</version>
17
  </DD_Customsitemaintanance>
18
  </modules>
19
  </config>
13
  <DD_Customsitemaintanance>
14
  <active>1</active>
15
  <codePool>community</codePool>
16
+ <version>1.0.2</version>
17
  </DD_Customsitemaintanance>
18
  </modules>
19
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DD_Customsitemaintanance</name>
4
- <version>1.0.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>
@@ -19,9 +19,9 @@
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-11-06</date>
23
- <time>12:09:07</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="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="d7aa745e0956f95f741649d1ec9ad1e0"/><file name="Observer.php~" hash="d880644ef9a92777ec8f3d750f41799a"/></dir><dir name="controllers"><file name="IndexController.php" hash="fd862017f278e9d261d0f9b6d0ebebf1"/></dir><dir name="etc"><file name="config.xml" hash="1d0177276839019a100c1567c0630184"/><file name="config.xml~" hash="f408fc1a10e2cf3439cdd3530808785c"/><file name="system.xml" hash="22bad2dff5319bbcca926735a5a3eee5"/></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/>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DD_Customsitemaintanance</name>
4
+ <version>1.0.2</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>
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-12-24</date>
23
+ <time>12:26:08</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="Editor.php" hash="cc1e2c70bf0bb8c161a551197e553590"/></dir></dir></dir><file name="Index.php" hash="f77c42c32475cf2c297e6cc8bec7270c"/></dir><dir name="controllers"><file name="IndexController.php" hash="fd862017f278e9d261d0f9b6d0ebebf1"/></dir><dir name="etc"><file name="config.xml" hash="62f735163d903cf265e96a226e614505"/><file name="config.xml~" hash="62f735163d903cf265e96a226e614505"/><file name="system.xml" hash="c8a72567962f8309e072150003dc1cc4"/><file name="system.xml~" hash="c8a72567962f8309e072150003dc1cc4"/></dir><dir name="Helper"><file name="Data.php" hash="2a2ea38afa268015cff07cdcd4341781"/></dir><dir name="Model"><file name="Observer.php" hash="416000483f4650eb6d67d5a33830048e"/><file name="Observer.php~" hash="416000483f4650eb6d67d5a33830048e"/></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="9fd4e264a3ff617b31eb956b6db8671e"/><file name="customsitemaintanance.phtml~" hash="9fd4e264a3ff617b31eb956b6db8671e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Customsitemaintanance.xml" hash="c0b38040c13e026591a4a46a95585f5b"/></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="3a61c750382193a0a96d4b5e7d5fa4f8"/><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/>
27
  </package>
skin/frontend/base/default/customsitemaintanance/css/customsitemaintanance.css CHANGED
@@ -68,15 +68,17 @@ div#clearer{
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;
68
  text-transform: uppercase;
69
  }
70
  .rest p {
71
+ color: white;
72
  font-size: 16px;
73
+ text-shadow: 0 0 6px black;
74
  margin: 0 0 20px;
75
  text-align: left;
76
  }
77
 
78
 
79
  ul.info li {
80
+ color: white;
81
+ text-shadow: 0 0 6px black;
82
  display: inline-flex;
83
  float: left;
84
  font-family: "Oswald",sans-serif;