Version Notes
- Bugfix: Configuration tab always first open when viewing system configuration
- Created uninstall script
- General housekeeping
Download this release
Release Info
Developer | Martin Dines |
Extension | gpmd_seopack |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- app/code/community/GPMD/SEOPack/Helper/Data.php +1 -4
- app/code/community/GPMD/SEOPack/Model/Attribute/Source/Robots.php +4 -4
- app/code/community/GPMD/SEOPack/Model/Observer.php +11 -20
- app/code/community/GPMD/SEOPack/Model/Paginator.php +14 -14
- app/code/community/GPMD/SEOPack/Model/Product/Visibility.php +17 -13
- app/code/community/GPMD/SEOPack/Model/Resource/Eav/Mysql4/Setup.php +4 -4
- app/code/community/GPMD/SEOPack/etc/config.xml +1 -1
- app/code/community/GPMD/SEOPack/etc/system.xml +1 -1
- app/code/community/GPMD/SEOPack/sql/seopack_setup/mysql4-uninstall.php +10 -0
- app/etc/modules/GPMD_SEOPack.xml +3 -3
- package.xml +13 -12
app/code/community/GPMD/SEOPack/Helper/Data.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* GPMD SEOPack V0.1.1
|
5 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
@@ -10,6 +9,4 @@
|
|
10 |
*
|
11 |
* @author Adrian Duke
|
12 |
*/
|
13 |
-
class GPMD_SEOPack_Helper_Data extends Mage_Core_Helper_Abstract {
|
14 |
-
|
15 |
-
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* GPMD SEOPack V0.1.1
|
4 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
9 |
*
|
10 |
* @author Adrian Duke
|
11 |
*/
|
12 |
+
class GPMD_SEOPack_Helper_Data extends Mage_Core_Helper_Abstract {}
|
|
|
|
app/code/community/GPMD/SEOPack/Model/Attribute/Source/Robots.php
CHANGED
@@ -9,9 +9,10 @@
|
|
9 |
*
|
10 |
* @author Adrian Duke
|
11 |
*/
|
12 |
-
class GPMD_SEOPack_Model_Attribute_Source_Robots extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
|
13 |
-
|
14 |
-
public function getAllOptions()
|
|
|
15 |
if (!$this->_options) {
|
16 |
$this->_options = array(
|
17 |
array(
|
@@ -34,6 +35,5 @@ class GPMD_SEOPack_Model_Attribute_Source_Robots extends Mage_Eav_Model_Entity_A
|
|
34 |
}
|
35 |
return $this->_options;
|
36 |
}
|
37 |
-
|
38 |
}
|
39 |
|
9 |
*
|
10 |
* @author Adrian Duke
|
11 |
*/
|
12 |
+
class GPMD_SEOPack_Model_Attribute_Source_Robots extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
|
13 |
+
{
|
14 |
+
public function getAllOptions()
|
15 |
+
{
|
16 |
if (!$this->_options) {
|
17 |
$this->_options = array(
|
18 |
array(
|
35 |
}
|
36 |
return $this->_options;
|
37 |
}
|
|
|
38 |
}
|
39 |
|
app/code/community/GPMD/SEOPack/Model/Observer.php
CHANGED
@@ -1,17 +1,11 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
* To change this template, choose Tools | Templates
|
5 |
-
* and open the template in the editor.
|
6 |
-
*/
|
7 |
-
|
8 |
/**
|
9 |
* Observer for custom meta robots. Better than rewriting.
|
10 |
*
|
11 |
* @author Adrian Duke <adrian@gpmd.co.uk>, Martin Dines <mdines@gpmd.co.uk>
|
12 |
*/
|
13 |
-
class GPMD_SEOPack_Model_Observer
|
14 |
-
|
15 |
const XML_PATH_METAROBOTS_SITEENABLED = 'seopack/activated/site_enabled';
|
16 |
const XML_PATH_METAROBOTS_FILTERENABLED = 'seopack/activated/filter_enabled';
|
17 |
const XML_PATH_METAROBOTS_PRODUCTENABLED = 'seopack/activated/product_enabled';
|
@@ -28,8 +22,8 @@ class GPMD_SEOPack_Model_Observer {
|
|
28 |
),
|
29 |
);
|
30 |
|
31 |
-
public function setMetaRobots(Varien_Event_Observer $observer)
|
32 |
-
|
33 |
if (empty($this->_siteEnabled)) {
|
34 |
$this->_siteEnabled = Mage::getStoreConfig(self::XML_PATH_METAROBOTS_SITEENABLED);
|
35 |
}
|
@@ -44,8 +38,8 @@ class GPMD_SEOPack_Model_Observer {
|
|
44 |
$this->_setGAIgnore($layout);
|
45 |
}
|
46 |
|
47 |
-
protected function _setGAIgnore($layout)
|
48 |
-
|
49 |
if (empty($this->_gaIgnoreEnabled)) {
|
50 |
$this->_gaIgnoreEnabled = Mage::getStoreConfig(self::XML_PATH_GA_IGNORE);
|
51 |
}
|
@@ -66,8 +60,8 @@ class GPMD_SEOPack_Model_Observer {
|
|
66 |
}
|
67 |
}
|
68 |
|
69 |
-
protected function _setMetaRobots($layout, $action)
|
70 |
-
|
71 |
if (empty($this->_productEnabled)) {
|
72 |
$this->_productEnabled = Mage::getStoreConfig(self::XML_PATH_METAROBOTS_PRODUCTENABLED);
|
73 |
}
|
@@ -111,18 +105,16 @@ class GPMD_SEOPack_Model_Observer {
|
|
111 |
}
|
112 |
}
|
113 |
}
|
114 |
-
|
115 |
}
|
116 |
|
117 |
/**
|
118 |
-
* doPagination() - kick off the process of adding the next and prev
|
119 |
-
* rel links to category pages where necessary
|
120 |
*
|
121 |
* @return GPMD_SEOPack_Model_Observer
|
122 |
* @author Drew Hunter <drewdhunter@gmail.com>
|
123 |
*/
|
124 |
-
public function doPagination()
|
125 |
-
|
126 |
if (empty($this->_relPaginationEnabled)) {
|
127 |
$this->_relPaginationEnabled = Mage::getStoreConfig(self::XML_PATH_RELPAGINATION_ENABLED);
|
128 |
}
|
@@ -138,5 +130,4 @@ class GPMD_SEOPack_Model_Observer {
|
|
138 |
|
139 |
return $this;
|
140 |
}
|
141 |
-
|
142 |
}
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
* Observer for custom meta robots. Better than rewriting.
|
4 |
*
|
5 |
* @author Adrian Duke <adrian@gpmd.co.uk>, Martin Dines <mdines@gpmd.co.uk>
|
6 |
*/
|
7 |
+
class GPMD_SEOPack_Model_Observer
|
8 |
+
{
|
9 |
const XML_PATH_METAROBOTS_SITEENABLED = 'seopack/activated/site_enabled';
|
10 |
const XML_PATH_METAROBOTS_FILTERENABLED = 'seopack/activated/filter_enabled';
|
11 |
const XML_PATH_METAROBOTS_PRODUCTENABLED = 'seopack/activated/product_enabled';
|
22 |
),
|
23 |
);
|
24 |
|
25 |
+
public function setMetaRobots(Varien_Event_Observer $observer)
|
26 |
+
{
|
27 |
if (empty($this->_siteEnabled)) {
|
28 |
$this->_siteEnabled = Mage::getStoreConfig(self::XML_PATH_METAROBOTS_SITEENABLED);
|
29 |
}
|
38 |
$this->_setGAIgnore($layout);
|
39 |
}
|
40 |
|
41 |
+
protected function _setGAIgnore($layout)
|
42 |
+
{
|
43 |
if (empty($this->_gaIgnoreEnabled)) {
|
44 |
$this->_gaIgnoreEnabled = Mage::getStoreConfig(self::XML_PATH_GA_IGNORE);
|
45 |
}
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
protected function _setMetaRobots($layout, $action)
|
64 |
+
{
|
65 |
if (empty($this->_productEnabled)) {
|
66 |
$this->_productEnabled = Mage::getStoreConfig(self::XML_PATH_METAROBOTS_PRODUCTENABLED);
|
67 |
}
|
105 |
}
|
106 |
}
|
107 |
}
|
|
|
108 |
}
|
109 |
|
110 |
/**
|
111 |
+
* doPagination() - kick off the process of adding the next and prev rel links to category pages where necessary
|
|
|
112 |
*
|
113 |
* @return GPMD_SEOPack_Model_Observer
|
114 |
* @author Drew Hunter <drewdhunter@gmail.com>
|
115 |
*/
|
116 |
+
public function doPagination()
|
117 |
+
{
|
118 |
if (empty($this->_relPaginationEnabled)) {
|
119 |
$this->_relPaginationEnabled = Mage::getStoreConfig(self::XML_PATH_RELPAGINATION_ENABLED);
|
120 |
}
|
130 |
|
131 |
return $this;
|
132 |
}
|
|
|
133 |
}
|
app/code/community/GPMD/SEOPack/Model/Paginator.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* SeoPagination Paginator
|
5 |
* - Responsible for creating the rel="next" and rel="prev" links where necessary
|
@@ -8,11 +7,11 @@
|
|
8 |
* @package GPMD_SEOPack
|
9 |
* @author Drew Hunter <drewdhunter@gmail.com>
|
10 |
*/
|
11 |
-
class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract
|
|
|
12 |
/*
|
13 |
* @var Mage_Catalog_Model_Resource_Product_Collection $_productCollection
|
14 |
*/
|
15 |
-
|
16 |
protected $_productCollection;
|
17 |
|
18 |
/*
|
@@ -20,7 +19,8 @@ class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract {
|
|
20 |
*/
|
21 |
protected $_toolbar;
|
22 |
|
23 |
-
public function _construct()
|
|
|
24 |
$this->_initProductCollection();
|
25 |
parent::_construct();
|
26 |
}
|
@@ -31,7 +31,8 @@ class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract {
|
|
31 |
*
|
32 |
* @return GPMD_SEOPack_Model_Paginator
|
33 |
*/
|
34 |
-
protected function _initProductCollection()
|
|
|
35 |
if ($layer = Mage::getSingleton('catalog/layer')) {
|
36 |
$this->_productCollection = $layer->getProductCollection();
|
37 |
|
@@ -44,7 +45,8 @@ class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract {
|
|
44 |
return $this;
|
45 |
}
|
46 |
|
47 |
-
protected function _getToolbar()
|
|
|
48 |
if (is_null($this->_toolbar)) {
|
49 |
$this->_toolbar = Mage::app()->getLayout()->createBlock('catalog/product_list_toolbar');
|
50 |
}
|
@@ -57,31 +59,30 @@ class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract {
|
|
57 |
*
|
58 |
* @return Mage_Page_Block_Html_Pager
|
59 |
*/
|
60 |
-
protected function _getPager()
|
|
|
61 |
return Mage::app()->getLayout()->createBlock('page/html_pager')
|
62 |
->setLimit($this->_getToolbar()->getLimit())
|
63 |
->setCollection($this->_productCollection);
|
64 |
}
|
65 |
|
66 |
/**
|
67 |
-
* Create the next and prev rel links. There are 3 possible scenarios
|
68 |
* 1. Both next and Prev to be output
|
69 |
* 2. Only next to be output
|
70 |
* 3. Only prev to be output
|
71 |
-
*
|
72 |
-
* So, decide here what should be output
|
73 |
*
|
74 |
* @return GPMD_SEOPack_Model_Paginator
|
75 |
*/
|
76 |
-
public function createLinks()
|
|
|
77 |
$pager = $this->_getPager();
|
78 |
$numPages = count($pager->getPages());
|
79 |
|
80 |
//Need this to add the links to later on
|
81 |
$headBlock = Mage::app()->getLayout()->getBlock('head');
|
82 |
|
83 |
-
//Determine exactly what needs to be output and
|
84 |
-
//add to the head block
|
85 |
if (!$pager->isFirstPage() && !$pager->isLastPage() && $numPages > 2) {
|
86 |
$headBlock->addLinkRel('prev', $pager->getPreviousPageUrl());
|
87 |
$headBlock->addLinkRel('next', $pager->getNextPageUrl());
|
@@ -93,5 +94,4 @@ class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract {
|
|
93 |
|
94 |
return $this;
|
95 |
}
|
96 |
-
|
97 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* SeoPagination Paginator
|
4 |
* - Responsible for creating the rel="next" and rel="prev" links where necessary
|
7 |
* @package GPMD_SEOPack
|
8 |
* @author Drew Hunter <drewdhunter@gmail.com>
|
9 |
*/
|
10 |
+
class GPMD_SEOPack_Model_Paginator extends Mage_Core_Model_Abstract
|
11 |
+
{
|
12 |
/*
|
13 |
* @var Mage_Catalog_Model_Resource_Product_Collection $_productCollection
|
14 |
*/
|
|
|
15 |
protected $_productCollection;
|
16 |
|
17 |
/*
|
19 |
*/
|
20 |
protected $_toolbar;
|
21 |
|
22 |
+
public function _construct()
|
23 |
+
{
|
24 |
$this->_initProductCollection();
|
25 |
parent::_construct();
|
26 |
}
|
31 |
*
|
32 |
* @return GPMD_SEOPack_Model_Paginator
|
33 |
*/
|
34 |
+
protected function _initProductCollection()
|
35 |
+
{
|
36 |
if ($layer = Mage::getSingleton('catalog/layer')) {
|
37 |
$this->_productCollection = $layer->getProductCollection();
|
38 |
|
45 |
return $this;
|
46 |
}
|
47 |
|
48 |
+
protected function _getToolbar()
|
49 |
+
{
|
50 |
if (is_null($this->_toolbar)) {
|
51 |
$this->_toolbar = Mage::app()->getLayout()->createBlock('catalog/product_list_toolbar');
|
52 |
}
|
59 |
*
|
60 |
* @return Mage_Page_Block_Html_Pager
|
61 |
*/
|
62 |
+
protected function _getPager()
|
63 |
+
{
|
64 |
return Mage::app()->getLayout()->createBlock('page/html_pager')
|
65 |
->setLimit($this->_getToolbar()->getLimit())
|
66 |
->setCollection($this->_productCollection);
|
67 |
}
|
68 |
|
69 |
/**
|
70 |
+
* Create the next and prev rel links. There are 3 possible scenarios to determine output
|
71 |
* 1. Both next and Prev to be output
|
72 |
* 2. Only next to be output
|
73 |
* 3. Only prev to be output
|
|
|
|
|
74 |
*
|
75 |
* @return GPMD_SEOPack_Model_Paginator
|
76 |
*/
|
77 |
+
public function createLinks()
|
78 |
+
{
|
79 |
$pager = $this->_getPager();
|
80 |
$numPages = count($pager->getPages());
|
81 |
|
82 |
//Need this to add the links to later on
|
83 |
$headBlock = Mage::app()->getLayout()->getBlock('head');
|
84 |
|
85 |
+
//Determine exactly what needs to be output and add to the head block
|
|
|
86 |
if (!$pager->isFirstPage() && !$pager->isLastPage() && $numPages > 2) {
|
87 |
$headBlock->addLinkRel('prev', $pager->getPreviousPageUrl());
|
88 |
$headBlock->addLinkRel('next', $pager->getNextPageUrl());
|
94 |
|
95 |
return $this;
|
96 |
}
|
|
|
97 |
}
|
app/code/community/GPMD/SEOPack/Model/Product/Visibility.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* GPMD SEOPack V0.1.1
|
5 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
@@ -10,8 +9,8 @@
|
|
10 |
*
|
11 |
* @author Adrian Duke
|
12 |
*/
|
13 |
-
class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_Visibility
|
14 |
-
|
15 |
const VISIBILITY_ORPHANED = 5;
|
16 |
|
17 |
/**
|
@@ -19,7 +18,8 @@ class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_V
|
|
19 |
*
|
20 |
* @return array
|
21 |
*/
|
22 |
-
public function getVisibleInSiteIds()
|
|
|
23 |
return array(self::VISIBILITY_IN_SEARCH, self::VISIBILITY_IN_CATALOG, self::VISIBILITY_BOTH, self::VISIBILITY_ORPHANED);
|
24 |
}
|
25 |
|
@@ -28,13 +28,14 @@ class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_V
|
|
28 |
*
|
29 |
* @return array
|
30 |
*/
|
31 |
-
static public function getOptionArray()
|
|
|
32 |
return array(
|
33 |
-
self::VISIBILITY_NOT_VISIBLE=> Mage::helper('catalog')->__('Not Visible Individually'),
|
34 |
-
|
35 |
-
self::VISIBILITY_IN_CATALOG
|
36 |
-
self::VISIBILITY_IN_SEARCH
|
37 |
-
self::VISIBILITY_BOTH
|
38 |
);
|
39 |
}
|
40 |
|
@@ -43,7 +44,8 @@ class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_V
|
|
43 |
*
|
44 |
* @return array
|
45 |
*/
|
46 |
-
static public function getAllOption()
|
|
|
47 |
$options = self::getOptionArray();
|
48 |
array_unshift($options, array('value'=>'', 'label'=>''));
|
49 |
return $options;
|
@@ -54,7 +56,8 @@ class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_V
|
|
54 |
*
|
55 |
* @return array
|
56 |
*/
|
57 |
-
static public function getAllOptions()
|
|
|
58 |
$res = array();
|
59 |
$res[] = array('value'=>'', 'label'=> Mage::helper('catalog')->__('-- Please Select --'));
|
60 |
foreach (self::getOptionArray() as $index => $value) {
|
@@ -72,7 +75,8 @@ class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_V
|
|
72 |
* @param int $optionId
|
73 |
* @return string
|
74 |
*/
|
75 |
-
static public function getOptionText($optionId)
|
|
|
76 |
$options = self::getOptionArray();
|
77 |
return isset($options[$optionId]) ? $options[$optionId] : null;
|
78 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* GPMD SEOPack V0.1.1
|
4 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
9 |
*
|
10 |
* @author Adrian Duke
|
11 |
*/
|
12 |
+
class GPMD_SEOPack_Model_Product_Visibility extends Mage_Catalog_Model_Product_Visibility
|
13 |
+
{
|
14 |
const VISIBILITY_ORPHANED = 5;
|
15 |
|
16 |
/**
|
18 |
*
|
19 |
* @return array
|
20 |
*/
|
21 |
+
public function getVisibleInSiteIds()
|
22 |
+
{
|
23 |
return array(self::VISIBILITY_IN_SEARCH, self::VISIBILITY_IN_CATALOG, self::VISIBILITY_BOTH, self::VISIBILITY_ORPHANED);
|
24 |
}
|
25 |
|
28 |
*
|
29 |
* @return array
|
30 |
*/
|
31 |
+
static public function getOptionArray()
|
32 |
+
{
|
33 |
return array(
|
34 |
+
self::VISIBILITY_NOT_VISIBLE => Mage::helper('catalog')->__('Not Visible Individually'),
|
35 |
+
self::VISIBILITY_ORPHANED => Mage::helper('catalog')->__('Orphaned'),
|
36 |
+
self::VISIBILITY_IN_CATALOG => Mage::helper('catalog')->__('Catalog'),
|
37 |
+
self::VISIBILITY_IN_SEARCH => Mage::helper('catalog')->__('Search'),
|
38 |
+
self::VISIBILITY_BOTH => Mage::helper('catalog')->__('Catalog, Search')
|
39 |
);
|
40 |
}
|
41 |
|
44 |
*
|
45 |
* @return array
|
46 |
*/
|
47 |
+
static public function getAllOption()
|
48 |
+
{
|
49 |
$options = self::getOptionArray();
|
50 |
array_unshift($options, array('value'=>'', 'label'=>''));
|
51 |
return $options;
|
56 |
*
|
57 |
* @return array
|
58 |
*/
|
59 |
+
static public function getAllOptions()
|
60 |
+
{
|
61 |
$res = array();
|
62 |
$res[] = array('value'=>'', 'label'=> Mage::helper('catalog')->__('-- Please Select --'));
|
63 |
foreach (self::getOptionArray() as $index => $value) {
|
75 |
* @param int $optionId
|
76 |
* @return string
|
77 |
*/
|
78 |
+
static public function getOptionText($optionId)
|
79 |
+
{
|
80 |
$options = self::getOptionArray();
|
81 |
return isset($options[$optionId]) ? $options[$optionId] : null;
|
82 |
}
|
app/code/community/GPMD/SEOPack/Model/Resource/Eav/Mysql4/Setup.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* GPMD SEOPack V0.1.1
|
5 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
@@ -10,15 +9,16 @@
|
|
10 |
*
|
11 |
* @author Adrian Duke
|
12 |
*/
|
13 |
-
class GPMD_SEOPack_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
|
14 |
-
|
15 |
/**
|
16 |
* Install a new entity
|
17 |
*
|
18 |
* @return array entities to install
|
19 |
* @access public
|
20 |
*/
|
21 |
-
public function getDefaultEntities()
|
|
|
22 |
return array(
|
23 |
'catalog_category' => array(
|
24 |
'entity_model' => 'catalog/category',
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* GPMD SEOPack V0.1.1
|
4 |
* @copyright Copyright (c) 2012 GPMD Ltd (http://www.gpmd.co.uk)
|
9 |
*
|
10 |
* @author Adrian Duke
|
11 |
*/
|
12 |
+
class GPMD_SEOPack_Model_Resource_Eav_Mysql4_Setup extends Mage_Eav_Model_Entity_Setup
|
13 |
+
{
|
14 |
/**
|
15 |
* Install a new entity
|
16 |
*
|
17 |
* @return array entities to install
|
18 |
* @access public
|
19 |
*/
|
20 |
+
public function getDefaultEntities()
|
21 |
+
{
|
22 |
return array(
|
23 |
'catalog_category' => array(
|
24 |
'entity_model' => 'catalog/category',
|
app/code/community/GPMD/SEOPack/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<GPMD_SEOPack>
|
13 |
-
<version>1.2.
|
14 |
</GPMD_SEOPack>
|
15 |
</modules>
|
16 |
<default>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<GPMD_SEOPack>
|
13 |
+
<version>1.2.2</version>
|
14 |
</GPMD_SEOPack>
|
15 |
</modules>
|
16 |
<default>
|
app/code/community/GPMD/SEOPack/etc/system.xml
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<label>SEOPack</label>
|
20 |
<tab>GPMD</tab>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
-
<sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
19 |
<label>SEOPack</label>
|
20 |
<tab>GPMD</tab>
|
21 |
<frontend_type>text</frontend_type>
|
22 |
+
<sort_order>100</sort_order>
|
23 |
<show_in_default>1</show_in_default>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
app/code/community/GPMD/SEOPack/sql/seopack_setup/mysql4-uninstall.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* GPMD SEOPack V1.2.2
|
4 |
+
* @copyright Copyright (c) 2013 GPMD Ltd (http://www.gpmd.co.uk)
|
5 |
+
*/
|
6 |
+
|
7 |
+
$installer = $this;
|
8 |
+
$installer->startSetup();
|
9 |
+
$installer->run("DELETE FROM `{$installer->getTable('eav_attribute')}` WHERE `source_model` = 'seopack/attribute_source_robots'");
|
10 |
+
$installer->endSetup();
|
app/etc/modules/GPMD_SEOPack.xml
CHANGED
@@ -5,9 +5,9 @@
|
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
<depends>
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
</depends>
|
12 |
</GPMD_SEOPack>
|
13 |
</modules>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
<depends>
|
8 |
+
<Mage_GoogleAnalytics />
|
9 |
+
<Mage_Catalog />
|
10 |
+
<Mage_Core />
|
11 |
</depends>
|
12 |
</GPMD_SEOPack>
|
13 |
</modules>
|
package.xml
CHANGED
@@ -1,20 +1,21 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>gpmd_seopack</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>The
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<
|
16 |
-
<
|
17 |
-
<
|
|
|
18 |
<compatible/>
|
19 |
-
<dependencies><required><php><min>5.
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>gpmd_seopack</name>
|
4 |
+
<version>1.2.2</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Our SEOPack is designed to improve the on-page optimisation of your website. Features include: custom meta robots tags, meta robots rules for filter pages, rel meta tags for pagination, product orphaning and top sites protection.</summary>
|
10 |
+
<description>The SEOPack module will help to improve your search engine rankings by allowing you to assign custom meta robots tags, enable rel meta tags for paginated pages, orphaning / discontinuing products (products only available via direct URL) and assigning meta robots rules to filtered category pages / layered navigation pages. This gives you added control over the indexation of product pages, category pages and filter pages.
|
11 |
+
This module will eliminate several often fatal ecommerce SEO issues.</description>
|
12 |
+
<notes>- Bugfix: Configuration tab always first open when viewing system configuration
|
13 |
+
- Created uninstall script
|
14 |
+
- General housekeeping</notes>
|
15 |
+
<authors><author><name>Martin Dines</name><user>martindines</user><email>martin.dines@live.co.uk</email></author><author><name>Adrian Duke</name><user>aduke</user><email>adrian@gpmd.co.uk</email></author></authors>
|
16 |
+
<date>2013-07-09</date>
|
17 |
+
<time>14:38:06</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="GPMD"><dir name="SEOPack"><dir name="Helper"><file name="Data.php" hash="146ff6630ae9e18910701ca0daf3752e"/></dir><dir name="Model"><dir name="Attribute"><dir name="Source"><file name="Robots.php" hash="25f1ca9357c3673776b0da47f68c727b"/></dir></dir><file name="Observer.php" hash="07a50d82e173275c003bc32eb16f7ee7"/><file name="Paginator.php" hash="b4a213182e32f081ceff8f00517147d7"/><dir name="Product"><file name="Visibility.php" hash="00e6e01cb45334fe5917073fb633ed48"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="3e0d7b2033d5f67e49c592aa3df9cc4f"/></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="7ca8816f7b2e2d9a94d040edce145a3f"/><file name="system.xml" hash="e657a83c2c49c603f91f6764973377c2"/></dir><dir name="sql"><dir name="seopack_setup"><file name="mysql4-install-0.1.1.php" hash="b87ea79a6da95e8782731d4d8d8ea52b"/><file name="mysql4-uninstall.php" hash="5dee05c1406e6ff20b987bb45811a3b7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="GPMD_SEOPack.xml" hash="531cc530057281a087027c5b5af8145f"/></dir></target></contents>
|
19 |
<compatible/>
|
20 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|