Version Notes
Professional, Customizable, and High-Converting Designs Popup Box
Download this release
Release Info
Developer | smartpopupbox |
Extension | Zota_SmartPopupBox |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Zota/SmartPopupBox/Block/Adminhtml/Source/System/Config/Button.php +18 -0
- app/code/community/Zota/SmartPopupBox/Block/Script.php +22 -0
- app/code/community/Zota/SmartPopupBox/Helper/Data.php +5 -0
- app/code/community/Zota/SmartPopupBox/etc/adminhtml.xml +25 -0
- app/code/community/Zota/SmartPopupBox/etc/config.xml +50 -0
- app/code/community/Zota/SmartPopupBox/etc/system.xml +73 -0
- app/design/frontend/base/default/layout/smartpopupbox.xml +11 -0
- app/design/frontend/base/default/template/smartpopupbox/script.phtml +6 -0
- app/etc/modules/Zota_SmartPopupBox.xml +9 -0
- package.xml +18 -0
app/code/community/Zota/SmartPopupBox/Block/Adminhtml/Source/System/Config/Button.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Zota_SmartPopupBox_Block_Adminhtml_Source_System_Config_Button extends Mage_Adminhtml_Block_System_Config_Form_Field
|
3 |
+
{
|
4 |
+
|
5 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
6 |
+
{
|
7 |
+
$this->setElement($element);
|
8 |
+
$homeUrl = "http://smartpopupbox.com";
|
9 |
+
$html = $this->getLayout()->createBlock('adminhtml/widget_button')
|
10 |
+
->setType('button')
|
11 |
+
->setClass('btn-getcode')
|
12 |
+
->setLabel('Create Yours Popup Box')
|
13 |
+
->setOnClick("window.open('$homeUrl', '_create_spb');return false;")
|
14 |
+
->toHtml();
|
15 |
+
return $html;
|
16 |
+
}
|
17 |
+
}
|
18 |
+
?>
|
app/code/community/Zota/SmartPopupBox/Block/Script.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Zota_SmartPopupBox_Block_Script extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
const XML_PATH_SMARTPOPUPBOX_AVAILABILITY = 'smartpopupbox/settings/availability';
|
5 |
+
const XML_PATH_SMARTPOPUPBOX_SCRIPT_CODE = 'smartpopupbox/settings/code_pool';
|
6 |
+
|
7 |
+
public function isEnable() {
|
8 |
+
$is_enabled = Mage::getStoreConfig(self::XML_PATH_SMARTPOPUPBOX_AVAILABILITY);
|
9 |
+
if ($is_enabled) {
|
10 |
+
return true;
|
11 |
+
}
|
12 |
+
return false;
|
13 |
+
}
|
14 |
+
|
15 |
+
public function getScript() {
|
16 |
+
$script = Mage::getStoreConfig(self::XML_PATH_SMARTPOPUPBOX_SCRIPT_CODE);
|
17 |
+
if (isset($script) && !empty($script)) {
|
18 |
+
return $script;
|
19 |
+
}
|
20 |
+
return false;
|
21 |
+
}
|
22 |
+
}
|
app/code/community/Zota/SmartPopupBox/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Zota_SmartPopupBox_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
}
|
5 |
+
?>
|
app/code/community/Zota/SmartPopupBox/etc/adminhtml.xml
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<acl>
|
4 |
+
<resources>
|
5 |
+
<all>
|
6 |
+
<title>Allow Everything</title>
|
7 |
+
</all>
|
8 |
+
<admin>
|
9 |
+
<children>
|
10 |
+
<system>
|
11 |
+
<children>
|
12 |
+
<config>
|
13 |
+
<children>
|
14 |
+
<smartpopupbox translate="title" module="smartpopupbox">
|
15 |
+
<title>SmartPopupBox Section</title>
|
16 |
+
</smartpopupbox>
|
17 |
+
</children>
|
18 |
+
</config>
|
19 |
+
</children>
|
20 |
+
</system>
|
21 |
+
</children>
|
22 |
+
</admin>
|
23 |
+
</resources>
|
24 |
+
</acl>
|
25 |
+
</config>
|
app/code/community/Zota/SmartPopupBox/etc/config.xml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Zota_SmartPopupBox>
|
5 |
+
<version>1.1.1</version>
|
6 |
+
</Zota_SmartPopupBox>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<blocks>
|
11 |
+
<smartpopupbox>
|
12 |
+
<class>Zota_SmartPopupBox_Block</class>
|
13 |
+
</smartpopupbox>
|
14 |
+
</blocks>
|
15 |
+
<helpers>
|
16 |
+
<smartpopupbox>
|
17 |
+
<class>Zota_SmartPopupBox_Helper</class>
|
18 |
+
</smartpopupbox>
|
19 |
+
</helpers>
|
20 |
+
</global>
|
21 |
+
<adminhtml>
|
22 |
+
<translate>
|
23 |
+
<modules>
|
24 |
+
<Zota_SmartPopupBox>
|
25 |
+
<files>
|
26 |
+
<default>Zota_SmartPopupBox.csv</default>
|
27 |
+
</files>
|
28 |
+
</Zota_SmartPopupBox>
|
29 |
+
</modules>
|
30 |
+
</translate>
|
31 |
+
</adminhtml>
|
32 |
+
<frontend>
|
33 |
+
<translate>
|
34 |
+
<modules>
|
35 |
+
<Zota_SmartPopupBox>
|
36 |
+
<files>
|
37 |
+
<default>Zota_SmartPopupBox.csv</default>
|
38 |
+
</files>
|
39 |
+
</Zota_SmartPopupBox>
|
40 |
+
</modules>
|
41 |
+
</translate>
|
42 |
+
<layout>
|
43 |
+
<updates>
|
44 |
+
<smartpopupbox>
|
45 |
+
<file>smartpopupbox.xml</file>
|
46 |
+
</smartpopupbox>
|
47 |
+
</updates>
|
48 |
+
</layout>
|
49 |
+
</frontend>
|
50 |
+
</config>
|
app/code/community/Zota/SmartPopupBox/etc/system.xml
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<zotasoft translate="label">
|
5 |
+
<label>Zotasoft</label>
|
6 |
+
<sort_order>200</sort_order>
|
7 |
+
</zotasoft>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<smartpopupbox translate="label" module="smartpopupbox">
|
11 |
+
<label>Smart Popup Box</label>
|
12 |
+
<tab>zotasoft</tab>
|
13 |
+
<frontend_type>text</frontend_type>
|
14 |
+
<sort_order>1</sort_order>
|
15 |
+
<show_in_default>1</show_in_default>
|
16 |
+
<show_in_website>1</show_in_website>
|
17 |
+
<show_in_store>1</show_in_store>
|
18 |
+
<groups>
|
19 |
+
<settings translate="label">
|
20 |
+
<label>SmartPopupBox Settings</label>
|
21 |
+
<expanded>1</expanded>
|
22 |
+
<sort_order>2</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
<fields>
|
27 |
+
<availability translate="label comment">
|
28 |
+
<label>Enabled</label>
|
29 |
+
<comment>Select to enable or disable SmartPopupBox.</comment>
|
30 |
+
<frontend_type>select</frontend_type>
|
31 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
+
<sort_order>1</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
</availability>
|
37 |
+
<code_pool translate="label comment">
|
38 |
+
<label>Embedded Code</label>
|
39 |
+
<comment>Put your SmartPopupBox embedded code here.</comment>
|
40 |
+
<frontend_type>textarea</frontend_type>
|
41 |
+
<sort_order>2</sort_order>
|
42 |
+
<show_in_default>1</show_in_default>
|
43 |
+
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
+
</code_pool>
|
46 |
+
<getcode translate="comment">
|
47 |
+
<comment>If your don't have a SmartPopupBox code yet, please click "Create Yours Popup Box".</comment>
|
48 |
+
<frontend_model>smartpopupbox/adminhtml_source_system_config_button</frontend_model>
|
49 |
+
<sort_order>3</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
</getcode>
|
54 |
+
</fields>
|
55 |
+
</settings>
|
56 |
+
<copyright translate="label">
|
57 |
+
<label>Support</label>
|
58 |
+
<comment><![CDATA[
|
59 |
+
<div style="text-align: left;">
|
60 |
+
<span>This extension is developed by <a target="Smart Popup Box" href="http://smartpopupbox.com" target="_blank" title="Smart Popup Box">smartpopupbox.com</a>. </span>
|
61 |
+
<span>If you have any questions or comments, please <a target="_discussion" href="http://smartpopupbox.com/discussion" title="Click to send a question">leave your feedback here</a>.</span>
|
62 |
+
</div>
|
63 |
+
]]></comment>
|
64 |
+
<expanded>1</expanded>
|
65 |
+
<sort_order>4</sort_order>
|
66 |
+
<show_in_default>1</show_in_default>
|
67 |
+
<show_in_website>1</show_in_website>
|
68 |
+
<show_in_store>1</show_in_store>
|
69 |
+
</copyright>
|
70 |
+
</groups>
|
71 |
+
</smartpopupbox>
|
72 |
+
</sections>
|
73 |
+
</config>
|
app/design/frontend/base/default/layout/smartpopupbox.xml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="before_body_end">
|
5 |
+
<block type="smartpopupbox/script" name="spb_script" as="spb_script" translate="label">
|
6 |
+
<label>Smart Popup Box Script</label>
|
7 |
+
<action method="setTemplate"><template>smartpopupbox/script.phtml</template></action>
|
8 |
+
</block>
|
9 |
+
</reference>
|
10 |
+
</default>
|
11 |
+
</layout>
|
app/design/frontend/base/default/template/smartpopupbox/script.phtml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ($this->isEnable()) {
|
3 |
+
echo $this->getScript();
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<script type="text/javascript">var _e = document.getElementById('smartpopupbox-trigger');if (typeof _e !== 'undefined') { _e.parentNode.removeChild(_e); };</script>
|
app/etc/modules/Zota_SmartPopupBox.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Zota_SmartPopupBox>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Zota_SmartPopupBox>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Zota_SmartPopupBox</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>OSL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Professional, Customizable, and High-Converting Designs Popup Box</summary>
|
10 |
+
<description>Double or Tripple Your Audience List In Just 5 Minutes. Smart Popup Box works on ALL website platform and ALL devices with responsive design</description>
|
11 |
+
<notes>Professional, Customizable, and High-Converting Designs Popup Box</notes>
|
12 |
+
<authors><author><name>smartpopupbox</name><user>spb</user><email>support@smartpopupbox.com</email></author></authors>
|
13 |
+
<date>2014-04-15</date>
|
14 |
+
<time>08:55:02</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Zota_SmartPopupBox.xml" hash="318a690cdccc5098c508165aaeb2038e"/></dir></target><target name="magecommunity"><dir name="Zota"><dir name="SmartPopupBox"><dir name="Block"><dir name="Adminhtml"><dir name="Source"><dir name="System"><dir name="Config"><file name="Button.php" hash="261ecf4d044dce2915057ba7366b0efa"/></dir></dir></dir></dir><file name="Script.php" hash="0a0f8f61b453e755ddb44d24080bbb1c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3801ba76cd54d202d1d40ba5e0b9afe1"/><file name="config.xml" hash="216011e5ecacbdda3bf96a3ac1c96168"/><file name="system.xml" hash="ce901eb1de3f540482ac666fc65c54f2"/></dir><dir name="Helper"><file name="Data.php" hash="500d0d006465e3c94720c51bcab0b934"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="smartpopupbox.xml" hash="85c85d8daba86623b20484832104c736"/></dir><dir name="template"><dir name="smartpopupbox"><file name="script.phtml" hash="26c38aafe8a6a2eb3bdcaafa71ad6522"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.7.8</max></php></required></dependencies>
|
18 |
+
</package>
|