Version Notes
Stable release
Download this release
Release Info
| Developer | Développeurs EnvoiMoinsCher.com |
| Extension | orange_rss |
| Version | 0.1.1 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.0 to 0.1.1
app/code/community/Orange/Rss/Model/Rss.php
CHANGED
|
@@ -11,6 +11,16 @@ class Orange_Rss_Model_Rss extends Mage_Core_Model_Abstract
|
|
| 11 |
return $this->getStoreData('title');
|
| 12 |
}
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
public function data()
|
| 15 |
{
|
| 16 |
$rssLink = $this->getStoreData('rss_link');
|
| 11 |
return $this->getStoreData('title');
|
| 12 |
}
|
| 13 |
|
| 14 |
+
public function isActive()
|
| 15 |
+
{
|
| 16 |
+
return $this->getStoreData('enable');
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
public function showDate()
|
| 20 |
+
{
|
| 21 |
+
return $this->getStoreData('show_date');
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
public function data()
|
| 25 |
{
|
| 26 |
$rssLink = $this->getStoreData('rss_link');
|
app/code/community/Orange/Rss/etc/config.xml
CHANGED
|
@@ -46,6 +46,7 @@
|
|
| 46 |
<enable>1</enable>
|
| 47 |
<title>Rss</title>
|
| 48 |
<rss_link>http://</rss_link>
|
|
|
|
| 49 |
<showposts>3</showposts>
|
| 50 |
</settings>
|
| 51 |
</orange_rss>
|
| 46 |
<enable>1</enable>
|
| 47 |
<title>Rss</title>
|
| 48 |
<rss_link>http://</rss_link>
|
| 49 |
+
<show_date>1</show_date>
|
| 50 |
<showposts>3</showposts>
|
| 51 |
</settings>
|
| 52 |
</orange_rss>
|
app/code/community/Orange/Rss/etc/system.xml
CHANGED
|
@@ -49,11 +49,20 @@
|
|
| 49 |
<show_in_store>1</show_in_store>
|
| 50 |
<show_in_website>1</show_in_website>
|
| 51 |
</rss_link>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
<showposts translate="label">
|
| 53 |
<label>Showposts</label>
|
| 54 |
<frontend_type>text</frontend_type>
|
| 55 |
<validate>validate-number validate-one-required</validate>
|
| 56 |
-
<sort_order>
|
| 57 |
<show_in_default>1</show_in_default>
|
| 58 |
<show_in_store>1</show_in_store>
|
| 59 |
<show_in_website>1</show_in_website>
|
| 49 |
<show_in_store>1</show_in_store>
|
| 50 |
<show_in_website>1</show_in_website>
|
| 51 |
</rss_link>
|
| 52 |
+
<show_date translate="label">
|
| 53 |
+
<label>Show date</label>
|
| 54 |
+
<frontend_type>select</frontend_type>
|
| 55 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 56 |
+
<sort_order>4</sort_order>
|
| 57 |
+
<show_in_default>1</show_in_default>
|
| 58 |
+
<show_in_store>1</show_in_store>
|
| 59 |
+
<show_in_website>1</show_in_website>
|
| 60 |
+
</show_date>
|
| 61 |
<showposts translate="label">
|
| 62 |
<label>Showposts</label>
|
| 63 |
<frontend_type>text</frontend_type>
|
| 64 |
<validate>validate-number validate-one-required</validate>
|
| 65 |
+
<sort_order>5</sort_order>
|
| 66 |
<show_in_default>1</show_in_default>
|
| 67 |
<show_in_store>1</show_in_store>
|
| 68 |
<show_in_website>1</show_in_website>
|
app/design/frontend/base/default/template/orange/rss.phtml
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
$rss = Mage::getModel('orange_rss/rss');
|
| 3 |
$posts = $rss->data();
|
| 4 |
?>
|
|
|
|
| 5 |
<div class="block">
|
| 6 |
<div class="block-title">
|
| 7 |
<strong><span><?php echo $rss->getTitle() ?></span></strong>
|
|
@@ -19,10 +20,12 @@
|
|
| 19 |
<?php endif ?>
|
| 20 |
</div>
|
| 21 |
<?php endif ?>
|
| 22 |
-
<?php if($
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
<?php endif ?>
|
| 27 |
<div class="content">
|
| 28 |
<?php echo strip_tags($post['description']) ?>
|
|
@@ -34,3 +37,4 @@
|
|
| 34 |
<?php endif ?>
|
| 35 |
</div>
|
| 36 |
</div>
|
|
|
| 2 |
$rss = Mage::getModel('orange_rss/rss');
|
| 3 |
$posts = $rss->data();
|
| 4 |
?>
|
| 5 |
+
<?php if($rss->isActive()): ?>
|
| 6 |
<div class="block">
|
| 7 |
<div class="block-title">
|
| 8 |
<strong><span><?php echo $rss->getTitle() ?></span></strong>
|
| 20 |
<?php endif ?>
|
| 21 |
</div>
|
| 22 |
<?php endif ?>
|
| 23 |
+
<?php if($rss->showDate()): ?>
|
| 24 |
+
<?php if($_date = $post['dateModified']): ?>
|
| 25 |
+
<div class="date">
|
| 26 |
+
<?php echo date('d.m.Y', $_date->getTimestamp()) ?>
|
| 27 |
+
</div>
|
| 28 |
+
<?php endif ?>
|
| 29 |
<?php endif ?>
|
| 30 |
<div class="content">
|
| 31 |
<?php echo strip_tags($post['description']) ?>
|
| 37 |
<?php endif ?>
|
| 38 |
</div>
|
| 39 |
</div>
|
| 40 |
+
<?php endif ?>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>orange_rss</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Open Software License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -11,8 +11,8 @@
|
|
| 11 |
<notes>Stable release</notes>
|
| 12 |
<authors><author><name>Mage</name><user>Dev</user><email>mage.ext@gmail.com</email></author></authors>
|
| 13 |
<date>2013-01-02</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Orange"><dir name="Rss"><dir name="Model"><file name="Rss.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>orange_rss</name>
|
| 4 |
+
<version>0.1.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Open Software License</license>
|
| 7 |
<channel>community</channel>
|
| 11 |
<notes>Stable release</notes>
|
| 12 |
<authors><author><name>Mage</name><user>Dev</user><email>mage.ext@gmail.com</email></author></authors>
|
| 13 |
<date>2013-01-02</date>
|
| 14 |
+
<time>16:38:16</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Orange"><dir name="Rss"><dir name="Model"><file name="Rss.php" hash="3aa7691a28b57dae0dcb44d6a3821846"/></dir><dir name="etc"><file name="config.xml" hash="cfcdcdacf7fa7fab2b39ecbe62c097c0"/><file name="system.xml" hash="73bbb95c41d7d24920c091cea4d4b675"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="orange"><file name="rss.phtml" hash="211231faec3a002c243884417de38375"/></dir></dir><dir name="layout"><file name="orange_rss.xml" hash="a2e871dba31dc908deeec6470d2c79e6"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_OrangeRss.xml" hash="4791b52dd59b9e18662f436ae2eebc17"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="orange_rss.css" hash="5fb7273a9a83cbea346d7a4ef7f21349"/></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
