Filtr8-EzMagazine - Version 1.0.0

Version Notes

First release

Download this release

Release Info

Developer Filtr8
Extension Filtr8-EzMagazine
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/code/community/Filtr8/EzMagazine/Block/Index.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class Filtr8_EzMagazine_Block_Index extends Mage_Core_Block_Template{
3
+
4
+ }
app/code/community/Filtr8/EzMagazine/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Filtr8_EzMagazine_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Filtr8/EzMagazine/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Filtr8_EzMagazine_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Magazine"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("magazine", array(
15
+ "label" => $this->__("Magazine"),
16
+ "title" => $this->__("Magazine")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Filtr8/EzMagazine/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <ezmagazineopts translate="title" module="ezmagazine">
12
+ <title>Options Section</title>
13
+ <sort_order>0</sort_order>
14
+ </ezmagazineopts>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Filtr8/EzMagazine/etc/config.xml ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Filtr8_EzMagazine>
5
+ <version>1.0.0</version>
6
+ </Filtr8_EzMagazine>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <ezmagazine>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Filtr8_EzMagazine</module>
14
+ <frontName>ezmagazine</frontName>
15
+ </args>
16
+ </ezmagazine>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <ezmagazine>
21
+ <file>ezmagazine.xml</file>
22
+ </ezmagazine>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <ezmagazine>
29
+ <class>Filtr8_EzMagazine_Helper</class>
30
+ </ezmagazine>
31
+ </helpers>
32
+ <blocks>
33
+ <ezmagazine>
34
+ <class>Filtr8_EzMagazine_Block</class>
35
+ </ezmagazine>
36
+ </blocks>
37
+ </global>
38
+ <default>
39
+ <ezmagazineopts>
40
+ <ezmagazinegrp>
41
+ <magazinecode>http://filtr8.com/magazine?5401a824708c8&amp;embed=1&amp;filtr8_demo=1</magazinecode>
42
+ <magazinewidth>100</magazinewidth>
43
+ <magazineheight>800</magazineheight>
44
+ <marginleft>0</marginleft>
45
+ </ezmagazinegrp>
46
+ </ezmagazineopts>
47
+ </default>
48
+ </config>
app/code/community/Filtr8/EzMagazine/etc/system.xml ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <ezmagazine translate="label" module="ezmagazine">
5
+ <label>EZ MAGAZINE</label>
6
+ <sort_order>1000</sort_order>
7
+ </ezmagazine>
8
+ </tabs>
9
+ <sections>
10
+ <ezmagazineopts translate="label" module="ezmagazine">
11
+ <label>Options</label>
12
+ <tab>ezmagazine</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>0</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>0</show_in_website>
17
+ <show_in_store>0</show_in_store>
18
+ <groups>
19
+ <ezmagazinegrp translate="label">
20
+ <label>Ez Magazine Settings</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>0</show_in_website>
25
+ <show_in_store>0</show_in_store>
26
+ <comment>
27
+ <![CDATA[
28
+ <p>Please get the <b>embed link</b> for your magazine from your <a href="http://filtr8.com/discover" target="_blank">Filtr8 Newsroom</a>.
29
+ <br/>
30
+ Don't have Filtr8 Newsroom? <a href="https://filtr8.com/join" target="_blank">Sign up</a> for free now!
31
+ </p>
32
+ <hr style="margin: 10px 0px;">
33
+ <p>The magazine page will be available at <b>http://&lt;your_domain&gt;/ezmagazine</b>.</p>
34
+ <hr style="margin: 10px 0px;">
35
+ <p>Got questions? See our <a href="http://filtr8.uservoice.com/knowledgebase/articles/605733" target="_blank">quick guide</a> for more information
36
+ or <a href="mailto:contact@filtr8.com?Subject=I%20got%20a%20question (Magento)">drop us an email</a> anytime!
37
+ </p>
38
+ <hr style="margin: 10px 0px;">
39
+ <br/>
40
+ ]]>
41
+ </comment>
42
+
43
+ <fields>
44
+
45
+ <magazinecode translate="label">
46
+ <label>Magazine embed link</label>
47
+ <frontend_type>text</frontend_type>
48
+ <sort_order>0</sort_order>
49
+ <comment>
50
+ <![CDATA[Get your own magazine embed link at your Filtr8 account. Click <a href="http://filtr8.com/discover" target="_blank">here</a> to sign in to your Filtr8 Newsroom]]>
51
+ </comment>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>0</show_in_website>
54
+ <show_in_store>0</show_in_store>
55
+ </magazinecode>
56
+
57
+ <magazinewidth translate="label">
58
+ <label>Magazine width (screen %)</label>
59
+ <frontend_type>text</frontend_type>
60
+ <validate>validate-number</validate>
61
+ <sort_order>1</sort_order>
62
+ <comment>
63
+ <![CDATA[Set the width of the magazine area. This will also control the number of columns in your magazine.]]>
64
+ </comment>
65
+ <show_in_default>1</show_in_default>
66
+ <show_in_website>0</show_in_website>
67
+ <show_in_store>0</show_in_store>
68
+ </magazinewidth>
69
+
70
+ <magazineheight translate="label">
71
+ <label>Magazine height (pixels)</label>
72
+ <frontend_type>text</frontend_type>
73
+ <validate>validate-number</validate>
74
+ <sort_order>2</sort_order>
75
+ <comment>
76
+ <![CDATA[Set the height of the magazine area. This controls how many articles are visible until users need to scroll.]]>
77
+ </comment>
78
+ <show_in_default>1</show_in_default>
79
+ <show_in_website>0</show_in_website>
80
+ <show_in_store>0</show_in_store>
81
+ </magazineheight>
82
+
83
+ <marginleft translate="label">
84
+ <label>Margin to left (pixels)</label>
85
+ <frontend_type>text</frontend_type>
86
+ <validate>validate-number</validate>
87
+ <sort_order>3</sort_order>
88
+ <comment>
89
+ <![CDATA[Position the magazine area if it takes less than 100% of the screen]]>
90
+ </comment>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>0</show_in_website>
93
+ <show_in_store>0</show_in_store>
94
+ </marginleft>
95
+
96
+ </fields>
97
+ </ezmagazinegrp>
98
+ </groups>
99
+ </ezmagazineopts>
100
+ </sections>
101
+ </config>
app/design/frontend/base/default/layout/ezmagazine.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="1.0.0">
3
+ <ezmagazine_index_index>
4
+ <reference name="root">
5
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
6
+ </reference>
7
+ <reference name="content">
8
+ <block type="ezmagazine/index" name="ezmagazine_index" template="ezmagazine/index.phtml"/>
9
+ </reference>
10
+ </ezmagazine_index_index>
11
+ </layout>
12
+
app/design/frontend/base/default/template/ezmagazine/index.phtml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $token = Mage::getStoreConfig('ezmagazineopts/ezmagazinegrp/magazinecode');
3
+ $width = Mage::getStoreConfig('ezmagazineopts/ezmagazinegrp/magazinewidth');
4
+ $height = Mage::getStoreConfig('ezmagazineopts/ezmagazinegrp/magazineheight');
5
+ $mleft = Mage::getStoreConfig('ezmagazineopts/ezmagazinegrp/marginleft');
6
+
7
+ if ($width == "")
8
+ $width = "100";
9
+
10
+ if ($height == "")
11
+ $height = "800";
12
+
13
+ if ($mleft == "")
14
+ $mleft = "0";
15
+
16
+ ?>
17
+
18
+ <iframe src='<?php echo $token;?>' scrolling='no' style='width: <?php echo $width;?>%; height: <?php echo $height;?>px; margin-left: <?php echo $mleft;?>px; overflow: hidden; border: 0;' seamless></iframe>
app/etc/modules/Filtr8_EzMagazine.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Filtr8_EzMagazine>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ <version>1.0.0</version>
8
+ </Filtr8_EzMagazine>
9
+ </modules>
10
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>Filtr8-EzMagazine</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Add a beautiful business magazine to engage and convert your visitors with smart content recommendations</summary>
10
+ <description>Captivate your audience with a stunning magazine on your web site. Effortlessly discover and publish smart, engaging stories and news to make your visitors stay longer, come back more often, and convert to subscribers and customers.</description>
11
+ <notes>First release</notes>
12
+ <authors><author><name>Filtr8</name><user>filtr8</user><email>contact@filtr8.com</email></author></authors>
13
+ <date>2015-05-27</date>
14
+ <time>13:24:28</time>
15
+ <contents><target name="magecommunity"><dir name="Filtr8"><dir name="EzMagazine"><dir name="Block"><file name="Index.php" hash="41ac0ed47b3f00f7e576140f30973c40"/></dir><dir name="Helper"><file name="Data.php" hash="3f7f62d55204ac74d7eeac2fda46734f"/></dir><dir name="controllers"><file name="IndexController.php" hash="e88c5765e49a5a42fe3fc89d9050e548"/></dir><dir name="etc"><file name="adminhtml.xml" hash="18a3c8897ad73fe703efc629ddcb861d"/><file name="config.xml" hash="ec792d57b81033f9920d29f7506f834d"/><file name="system.xml" hash="deb61b223c2584ee1035cb1c4162aaab"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Filtr8_EzMagazine.xml" hash="9c03c46f763ca9a286fb539bc40989e0"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ezmagazine.xml" hash="e0126236959531bb0fed88ba030e9dd8"/></dir><dir name="template"><dir name="ezmagazine"><file name="index.phtml" hash="6344201064698f5d52e33d2633d139c2"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>