Activo_Xmlsitemap - Version 1.0.0

Version Notes

Minor enhancements. Creates properly defined XML sitemap files.

Download this release

Release Info

Developer Activo Extensions
Extension Activo_Xmlsitemap
Version 1.0.0
Comparing to
See all releases


Code changes from version 0.5.0 to 1.0.0

app/code/community/Activo/Xmlsitemap/Model/Feed.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Activo Extensions
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Activo Commercial License
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://extensions.activo.com/license_professional
10
+ *
11
+ * @copyright Copyright (c) 2013 Activo Extensions (http://extensions.activo.com)
12
+ * @license OSL 3.0
13
+ */
14
+
15
+ //http://www.nicksays.co.uk/2009/05/magento-custom-admin-notifications/
16
+ class Activo_Xmlsitemap_Model_Feed extends Mage_AdminNotification_Model_Feed
17
+ {
18
+ public function getFeedUrl()
19
+ {
20
+ preg_match('/(.*)_Model_Feed/', get_class($this), $matches);
21
+ $module = isset($matches[1]) ? $matches[1] : "";
22
+
23
+ if (is_null($this->_feedUrl)) {
24
+ $this->_feedUrl = 'http://extensions.activo.com/adminrss.php?s='
25
+ .urlencode(Mage::getStoreConfig(Mage_Core_Model_Url::XML_PATH_UNSECURE_URL))
26
+ .'&m='. $module;
27
+ // Mage::log($this->_feedUrl);
28
+ }
29
+ return $this->_feedUrl;
30
+ }
31
+
32
+ public function observe()
33
+ {
34
+ $model = Mage::getModel('xmlsitemap/feed');
35
+ $model->checkUpdate();
36
+ }
37
+
38
+ // public function getFrequency()
39
+ // {
40
+ // return 1;
41
+ // }
42
+
43
+ }
app/code/community/Activo/Xmlsitemap/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Activo_Xmlsitemap>
5
- <version>0.1.0</version>
6
  </Activo_Xmlsitemap>
7
  </modules>
8
  <global>
@@ -46,4 +46,18 @@
46
  </sitemap_mysql4>
47
  </models>
48
  </global>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  </config>
2
  <config>
3
  <modules>
4
  <Activo_Xmlsitemap>
5
+ <version>1.0.0</version>
6
  </Activo_Xmlsitemap>
7
  </modules>
8
  <global>
46
  </sitemap_mysql4>
47
  </models>
48
  </global>
49
+
50
+ <adminhtml>
51
+ <events>
52
+ <controller_action_predispatch>
53
+ <observers>
54
+ <activo_news_xml>
55
+ <type>singleton</type>
56
+ <class>xmlsitemap/feed</class>
57
+ <method>observe</method>
58
+ </activo_news_xml>
59
+ </observers>
60
+ </controller_action_predispatch>
61
+ </events>
62
+ </adminhtml>
63
  </config>
app/etc/modules/Activo_Xmlsitemap.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Activo_Xmlsitemap>
5
+ <active>false</active>
6
+ <codePool>community</codePool>
7
+ <version>0.1.0</version>
8
+ </Activo_Xmlsitemap>
9
+ </modules>
10
+ </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Activo_Xmlsitemap</name>
4
- <version>0.5.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://extensions.activo.com/license_professional">Commercial</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Updates core Google Sitemap XML generator to use the correct &lt;lastmod&gt; dates. This makes the whole XML Sitemap more usable by search engines.</summary>
10
- <description>Updates core Google Sitemap XML generator to use the correct &lt;lastmod&gt; dates. This makes the whole XML Sitemap more usable by search engines.</description>
11
- <notes>Added support to older Magento versions, including Magento 1.5.x.x.</notes>
12
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
13
- <date>2013-03-27</date>
14
- <time>18:56:07</time>
15
- <contents><target name="magecommunity"><dir name="Activo"><dir name="Xmlsitemap"><dir><dir name="Helper"><file name="Data.php" hash="7e9a738bbd9ee44ae6b4231b9f625a41"/></dir><dir name="Model"><dir name="Sitemap"><dir name="Mysql4"><dir name="Catalog"><file name="Category.php" hash="ff51e0f3c73ad3f49d7f2782ee87d8ef"/><file name="Product.php" hash="6f733786f8bdb588abf2bc458ed16f17"/></dir><dir name="Cms"><file name="Page.php" hash="ff7d48656992bbf15d170ce90cc32629"/></dir></dir><dir name="Resource"><dir name="Catalog"><file name="Category.php" hash="41b7efe21c8a8be7a3b08218a49d7a79"/><file name="Product.php" hash="9da077cb52bc186c11076b9464958b94"/></dir><dir name="Cms"><file name="Page.php" hash="333c87e0ba89c95e18ac90c931371c71"/></dir></dir><file name="Sitemap.php" hash="0a2f094cbe15056326ef530d695acec6"/></dir></dir><dir name="etc"><file name="config.xml" hash="84bf835aad9e9f98ca87c00dcb1aed35"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Xmlsitemap.xml" hash=""/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Activo_Xmlsitemap</name>
4
+ <version>1.0.0</version>
5
  <stability>stable</stability>
6
+ <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Generate a better XML Sitemap and improve your site's SEO.</summary>
10
+ <description>Generate a better XML sitemap: fixes the &lt;lastmod&gt; value in Magento XML sitemaps to the correct one.</description>
11
+ <notes>Minor enhancements. Creates properly defined XML sitemap files.</notes>
12
  <authors><author><name>Activo Extensions</name><user>activo</user><email>extensions@activo.com</email></author></authors>
13
+ <date>2013-06-26</date>
14
+ <time>22:54:19</time>
15
+ <contents><target name="magecommunity"><dir name="Activo"><dir name="Xmlsitemap"><dir><dir name="Helper"><file name="Data.php" hash="7e9a738bbd9ee44ae6b4231b9f625a41"/></dir><dir name="Model"><file name="Feed.php" hash="be4d359d97b82c912093b093e1d8d307"/><dir name="Sitemap"><dir name="Mysql4"><dir name="Catalog"><file name="Category.php" hash="ff51e0f3c73ad3f49d7f2782ee87d8ef"/><file name="Product.php" hash="6f733786f8bdb588abf2bc458ed16f17"/></dir><dir name="Cms"><file name="Page.php" hash="ff7d48656992bbf15d170ce90cc32629"/></dir></dir><dir name="Resource"><dir name="Catalog"><file name="Category.php" hash="41b7efe21c8a8be7a3b08218a49d7a79"/><file name="Product.php" hash="9da077cb52bc186c11076b9464958b94"/></dir><dir name="Cms"><file name="Page.php" hash="333c87e0ba89c95e18ac90c931371c71"/></dir></dir><file name="Sitemap.php" hash="0a2f094cbe15056326ef530d695acec6"/></dir></dir><dir name="etc"><file name="config.xml" hash="979278066c46dcc4067c329c39568c7a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Activo_Xmlsitemap.xml" hash="b53350dff51ba0e2eae3c176aa9e1c0d"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>