orange_rss - Version 0.1.2

Version Notes

Stable release

Download this release

Release Info

Developer Développeurs EnvoiMoinsCher.com
Extension orange_rss
Version 0.1.2
Comparing to
See all releases


Code changes from version 0.1.1 to 0.1.2

app/code/community/Orange/Rss/Model/Rss.php CHANGED
@@ -1,26 +1,30 @@
1
  <?php
 
 
 
 
2
  class Orange_Rss_Model_Rss extends Mage_Core_Model_Abstract
3
  {
4
  function getStoreData($item)
5
  {
6
  return Mage::getStoreConfig('orange_rss/settings/' . $item);
7
  }
8
-
9
  public function getTitle()
10
  {
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');
1
  <?php
2
+ /*
3
+ author: SB
4
+ support: mage.ext@gmail.com
5
+ */
6
  class Orange_Rss_Model_Rss extends Mage_Core_Model_Abstract
7
  {
8
  function getStoreData($item)
9
  {
10
  return Mage::getStoreConfig('orange_rss/settings/' . $item);
11
  }
 
12
  public function getTitle()
13
  {
14
  return $this->getStoreData('title');
15
  }
 
16
  public function isActive()
17
  {
18
  return $this->getStoreData('enable');
19
  }
 
20
  public function showDate()
21
  {
22
  return $this->getStoreData('show_date');
23
  }
24
+ public function showContent()
25
+ {
26
+ return $this->getStoreData('show_content');
27
+ }
28
  public function data()
29
  {
30
  $rssLink = $this->getStoreData('rss_link');
app/code/community/Orange/Rss/etc/config.xml CHANGED
@@ -2,15 +2,15 @@
2
  <config>
3
  <modules>
4
  <Orange_Rss>
5
- <version>1.0.0</version>
6
  </Orange_Rss>
7
  </modules>
8
  <frontend>
9
  <layout>
10
  <updates>
11
- <orange>
12
  <file>orange_rss.xml</file>
13
- </orange>
14
  </updates>
15
  </layout>
16
  </frontend>
@@ -48,6 +48,7 @@
48
  <rss_link>http://</rss_link>
49
  <show_date>1</show_date>
50
  <showposts>3</showposts>
 
51
  </settings>
52
  </orange_rss>
53
  </default>
2
  <config>
3
  <modules>
4
  <Orange_Rss>
5
+ <version>0.1.2</version>
6
  </Orange_Rss>
7
  </modules>
8
  <frontend>
9
  <layout>
10
  <updates>
11
+ <orange_rss>
12
  <file>orange_rss.xml</file>
13
+ </orange_rss>
14
  </updates>
15
  </layout>
16
  </frontend>
48
  <rss_link>http://</rss_link>
49
  <show_date>1</show_date>
50
  <showposts>3</showposts>
51
+ <show_content>1</show_content>
52
  </settings>
53
  </orange_rss>
54
  </default>
app/code/community/Orange/Rss/etc/system.xml CHANGED
@@ -67,6 +67,15 @@
67
  <show_in_store>1</show_in_store>
68
  <show_in_website>1</show_in_website>
69
  </showposts>
 
 
 
 
 
 
 
 
 
70
  </fields>
71
  </settings>
72
  </groups>
67
  <show_in_store>1</show_in_store>
68
  <show_in_website>1</show_in_website>
69
  </showposts>
70
+ <show_content translate="label">
71
+ <label>Show content</label>
72
+ <frontend_type>select</frontend_type>
73
+ <source_model>adminhtml/system_config_source_yesno</source_model>
74
+ <sort_order>6</sort_order>
75
+ <show_in_default>1</show_in_default>
76
+ <show_in_store>1</show_in_store>
77
+ <show_in_website>1</show_in_website>
78
+ </show_content>
79
  </fields>
80
  </settings>
81
  </groups>
app/design/frontend/base/default/template/orange/rss.phtml CHANGED
@@ -27,9 +27,11 @@
27
  </div>
28
  <?php endif ?>
29
  <?php endif ?>
 
30
  <div class="content">
31
  <?php echo strip_tags($post['description']) ?>
32
  </div>
 
33
  </div>
34
  <?php endforeach ?>
35
  <?php else: ?>
27
  </div>
28
  <?php endif ?>
29
  <?php endif ?>
30
+ <?php if($rss->showContent()): ?>
31
  <div class="content">
32
  <?php echo strip_tags($post['description']) ?>
33
  </div>
34
+ <?php endif ?>
35
  </div>
36
  <?php endforeach ?>
37
  <?php else: ?>
app/etc/modules/{Mage_OrangeRss.xml → Orange_Rss.xml} RENAMED
File without changes
package.xml CHANGED
@@ -1,7 +1,7 @@
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>
@@ -10,9 +10,9 @@
10
  <description>Extension for importing and merging RSS and Atom feeds to show on your Magento site.</description>
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>orange_rss</name>
4
+ <version>0.1.2</version>
5
  <stability>stable</stability>
6
  <license>Open Software License</license>
7
  <channel>community</channel>
10
  <description>Extension for importing and merging RSS and Atom feeds to show on your Magento site.</description>
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-15</date>
14
+ <time>18:31:15</time>
15
+ <contents><target name="magecommunity"><dir name="Orange"><dir name="Rss"><dir name="Model"><file name="Rss.php" hash="7b9341c83881770d6c4e2c5d07431ed9"/></dir><dir name="etc"><file name="config.xml" hash="db6706b8fa50d7718961d6ad699e7fff"/><file name="system.xml" hash="b7f4e3fa7853fedbd851291acae6a0b9"/></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="d8f55bfafa9154c8203c01cb6eb113b8"/></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="Orange_Rss.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>