Skip to content

Commit c699470

Browse files
author
Daniel
committed
Luna Stable
1 parent efb5b23 commit c699470

File tree

99 files changed

+9414
-8766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+9414
-8766
lines changed

app/code/community/Icoders/Banner/etc/system.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0"?>
22
<config>
33
<tabs>
4-
<aion translate="label" module="icoders_banner">
4+
<icoders translate="label" module="icoders_banner">
55
<label>Icoders - Extensions</label>
66
<sort_order>50</sort_order>
7-
</aion>
7+
</icoders>
88
</tabs>
99
<sections>
1010
<icoders_banner>
1111
<class>separator-top</class>
1212
<label>Banner</label>
13-
<tab>aion</tab>
13+
<tab>icoders</tab>
1414
<frontend_type>text</frontend_type>
1515
<sort_order>500</sort_order>
1616
<show_in_default>1</show_in_default>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?php
2+
/**
3+
* Icoders_Cms_Helper_Data
4+
*
5+
* @category Icoders
6+
* @package Icoders_MobileDetect
7+
* @author Kovacs Daniel Akos <kovacs.daniel@icoders.co>
8+
* @copyright 2016 iCoders Ltd.. (http://www.icoders.co)
9+
* @license http://www.magentocommerce.com/license/enterprise-edition GNU General Public License
10+
* @link http://www.icoders.co
11+
*
12+
*/
13+
14+
class Icoders_Cms_Helper_Data extends Mage_Core_Helper_Abstract {
15+
16+
/**
17+
* Icoders_Cms_Helper_Data constructor.
18+
*/
19+
public function __construct()
20+
{
21+
}
22+
23+
/**
24+
* @return mixed
25+
*/
26+
public function isInstagramEnabled() {
27+
return Mage::getStoreConfig('icoders_cms/config/instagram_enabled');
28+
}
29+
30+
/**
31+
* @param $url
32+
* @return bool|string
33+
*/
34+
public function getWpUrl($url) {
35+
$wpDomain = Mage::getStoreConfig('icoders_cms/config/wp_url');
36+
37+
if($url) {
38+
return $wpDomain.'/'.$url;
39+
}
40+
41+
return false;
42+
}
43+
44+
/**
45+
* @return bool|SimpleXMLElement
46+
*/
47+
public function getBlogPosts() {
48+
$wpFeed = Mage::getStoreConfig('icoders_cms/config/wp_feed');
49+
50+
$rssFeed = simplexml_load_file($wpFeed);
51+
if($rssFeed)
52+
return $rssFeed;
53+
54+
return false;
55+
}
56+
57+
/**
58+
* @return bool|SimpleXMLElement
59+
*/
60+
public function getInstaPosts() {
61+
$insta_feed = Mage::getStoreConfig('icoders_cms/config/insta_feed');
62+
63+
$instaFeed = simplexml_load_file($insta_feed);
64+
if($instaFeed)
65+
return $instaFeed;
66+
67+
return false;
68+
}
69+
70+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<config>
3+
<acl>
4+
<resources>
5+
<admin>
6+
<children>
7+
<system>
8+
<children>
9+
<config>
10+
<children>
11+
<icoders_cms translate="title" module="icoders_cms">
12+
<title>CMS Settings</title>
13+
</icoders_cms>
14+
</children>
15+
</config>
16+
</children>
17+
</system>
18+
</children>
19+
</admin>
20+
</resources>
21+
</acl>
22+
</config>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
<?xml version="1.0"?>
22
<config>
3+
<modules>
4+
<Icoders_Cms>
5+
<version>0.1.3</version>
6+
</Icoders_Cms>
7+
</modules>
38
<global>
9+
<helpers>
10+
<icoders_cms>
11+
<class>Icoders_Cms_Helper</class>
12+
</icoders_cms>
13+
</helpers>
414
<page>
515
<layouts>
616
<custom_2column_left_cms>
717
<label>IcodersCmsPage</label>
818
<template>page/custom-2column-left-cms.phtml</template>
919
</custom_2column_left_cms>
20+
21+
<custom_homepage>
22+
<label>HomePage</label>
23+
<template>page/homepage.phtml</template>
24+
</custom_homepage>
1025
</layouts>
1126
</page>
1227
</global>
28+
<adminhtml>
29+
<layout>
30+
<updates>
31+
<adminhtml_index_login>
32+
<file>icoders/cms.xml</file>
33+
</adminhtml_index_login>
34+
</updates>
35+
</layout>
36+
</adminhtml>
37+
<default>
38+
<icoders_cms>
39+
<config>
40+
<instagram_enabled>1</instagram_enabled>
41+
<wp_url>https://panarom.hu</wp_url>
42+
<wp_feed>https://af-blog.delocal.hu/FeedRss.php</wp_feed>
43+
<insta_feed>https://af-blog.delocal.hu/instaFeed.php</insta_feed>
44+
</config>
45+
</icoders_cms>
46+
</default>
1347
</config>
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0"?>
2+
<config>
3+
<tabs>
4+
<icoders translate="label" module="icoders_cms">
5+
<label>Icoders - Extensions</label>
6+
<sort_order>90</sort_order>
7+
</icoders>
8+
</tabs>
9+
<sections>
10+
<icoders_cms>
11+
<class>separator-top</class>
12+
<label>CMS Settings (WordPress, Instagram)</label>
13+
<tab>icoders</tab>
14+
<frontend_type>text</frontend_type>
15+
<sort_order>300</sort_order>
16+
<show_in_default>1</show_in_default>
17+
<show_in_website>1</show_in_website>
18+
<show_in_store>1</show_in_store>
19+
20+
<groups>
21+
<config>
22+
<label>Settings</label>
23+
<frontend_type>text</frontend_type>
24+
<sort_order>10</sort_order>
25+
<show_in_default>1</show_in_default>
26+
<show_in_website>1</show_in_website>
27+
<show_in_store>1</show_in_store>
28+
29+
<fields>
30+
<instagram_enabled translate="label">
31+
<label>Instagram enable (Product page)</label>
32+
<frontend_type>select</frontend_type>
33+
<source_model>adminhtml/system_config_source_yesno</source_model>
34+
<sort_order>10</sort_order>
35+
<show_in_default>1</show_in_default>
36+
<show_in_website>1</show_in_website>
37+
<show_in_store>1</show_in_store>
38+
</instagram_enabled>
39+
40+
<wp_url translate="label">
41+
<label>WordPress url</label>
42+
<frontend_type>text</frontend_type>
43+
<sort_order>20</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+
</wp_url>
48+
49+
<wp_feed translate="label">
50+
<label>WordPress Feed url</label>
51+
<frontend_type>text</frontend_type>
52+
<sort_order>30</sort_order>
53+
<show_in_default>1</show_in_default>
54+
<show_in_website>1</show_in_website>
55+
<show_in_store>10</show_in_store>
56+
</wp_feed>
57+
58+
<insta_feed translate="label">
59+
<label>Instagram Feed url</label>
60+
<frontend_type>text</frontend_type>
61+
<sort_order>40</sort_order>
62+
<show_in_default>1</show_in_default>
63+
<show_in_website>1</show_in_website>
64+
<show_in_store>1</show_in_store>
65+
</insta_feed>
66+
</fields>
67+
</config>
68+
</groups>
69+
</icoders_cms>
70+
</sections>
71+
</config>

app/code/local/Icoders/Luna/etc/config.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@
3434
</icoders_luna_setup>
3535
</resources>
3636
</global>
37+
<frontend>
38+
<translate>
39+
<modules>
40+
<icoders_luna>
41+
<files>
42+
<default>Icoders_Luna.csv</default>
43+
</files>
44+
</icoders_luna>
45+
</modules>
46+
</translate>
47+
</frontend>
3748
<default>
3849
<luna>
3950
<view>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0"?>
2+
<config>
3+
<modules>
4+
<Icoders_Page>
5+
<version>0.1.0</version>
6+
</Icoders_Page>
7+
</modules>
8+
<global>
9+
<page>
10+
<layouts>
11+
<empty module="page" translate="label">
12+
<label>Empty</label>
13+
<template>page/empty.phtml</template>
14+
<layout_handle>page_empty</layout_handle>
15+
</empty>
16+
<one_column module="page" translate="label">
17+
<label>1 column</label>
18+
<template>page/1column.phtml</template>
19+
<layout_handle>page_one_column</layout_handle>
20+
<is_default>1</is_default>
21+
</one_column>
22+
<two_columns_left module="page" translate="label">
23+
<label>2 columns with left bar</label>
24+
<template>page/2columns-left.phtml</template>
25+
<layout_handle>page_two_columns_left</layout_handle>
26+
</two_columns_left>
27+
<two_columns_right module="page" translate="label">
28+
<label>2 columns with right bar</label>
29+
<template>page/2columns-right.phtml</template>
30+
<layout_handle>page_two_columns_right</layout_handle>
31+
</two_columns_right>
32+
<three_columns module="page" translate="label">
33+
<label>3 columns</label>
34+
<template>page/2columns-left.phtml</template>
35+
<layout_handle>page_three_columns</layout_handle>
36+
</three_columns>
37+
</layouts>
38+
</page>
39+
</global>
40+
</config>

app/design/frontend/luna/default/layout/catalog.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ Supported layout update handles (special):
5656
<!--<action method="setLinkUrl"><url>checkout/cart</url></action>-->
5757
<!--</block>-->
5858
</reference>
59-
<reference name="right">
60-
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
61-
<!--<block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml">-->
62-
<!--<action method="setImgSrc"><src>images/media/col_right_callout.jpg</src></action>-->
63-
<!--<action method="setImgAlt" translate="alt" module="catalog"><alt>Keep your eyes open for our special Back to School items and save A LOT!</alt></action>-->
64-
<!--</block>-->
65-
</reference>
6659
<reference name="footer_links">
6760
<action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action>
6861
</reference>

app/design/frontend/luna/default/layout/local.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</action>
4141
<action method="addItem">
4242
<type>skin_css</type>
43-
<name>icoders/css/nila.css</name>
43+
<name>icoders/css/luna.css</name>
4444
<params/>
4545
</action>
4646
<action method="removeItem">

app/design/frontend/luna/default/layout/page.xml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,10 @@
3232

3333
<default translate="label" module="page">
3434
<label>All Pages</label>
35-
<block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">
35+
<block type="page/html" name="root" output="toHtml" template="page/2columns-left.phtml">
3636

3737
<block type="page/html_head" name="head" as="head">
3838
<action method="addJs"><script>prototype/prototype.js</script></action>
39-
<action method="addItem">
40-
<type>skin_js</type>
41-
<name>vendor/jquery/jquery-1.12.0.min.js</name>
42-
<params/>
43-
</action>
44-
<action method="addItem">
45-
<type>skin_js</type>
46-
<name>vendor/jquery/noconflict.js</name>
47-
<params/>
48-
</action>
4939
<action method="addJs"><script>lib/ccard.js</script></action>
5040
<action method="addJs"><script>prototype/validation.js</script></action>
5141
<action method="addJs"><script>scriptaculous/builder.js</script></action>

0 commit comments

Comments
 (0)