-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
742 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
app/code/core/Mage/Catalog/Model/Category/Attribute/Source/Robots.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
/** | ||
* Magento | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magento.com for more information. | ||
* | ||
* @category Mage | ||
* @package Mage_Catalog | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* Catalog category robots attribute source | ||
* | ||
* @category Mage | ||
* @package Mage_Catalog | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
class Mage_Catalog_Model_Category_Attribute_Source_Robots extends Mage_Eav_Model_Entity_Attribute_Source_Abstract | ||
{ | ||
/** | ||
* @return array | ||
*/ | ||
public function getAllOptions() | ||
{ | ||
return array( | ||
Mage_Catalog_Model_Category::META_ROBOTS_INDEX_FOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_INDEX_FOLLOW, | ||
'label' => Mage::helper('cms')->__('INDEX,FOLLOW') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_INDEX_NOFOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_INDEX_NOFOLLOW, | ||
'label' => Mage::helper('cms')->__('INDEX,NOFOLLOW') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_FOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_FOLLOW, | ||
'label' => Mage::helper('cms')->__('NOINDEX,FOLLOW') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_NOFOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_NOFOLLOW, | ||
'label' => Mage::helper('cms')->__('NOINDEX,NOFOLLOW') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_INDEX_FOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_INDEX_FOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('INDEX,FOLLOW,NOARCHIVE') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_INDEX_NOFOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_INDEX_NOFOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('INDEX,NOFOLLOW,NOARCHIVE') | ||
), | ||
Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_NOFOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Category::META_ROBOTS_NOINDEX_NOFOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('NOINDEX,NOFOLLOW,NOARCHIVE') | ||
), | ||
); | ||
} | ||
|
||
/** | ||
* @param int $key | ||
* @return string | ||
*/ | ||
public function getOptionLabel($key) { | ||
$options = $this->getAllOptions(); | ||
|
||
return $options[$key]['label']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
app/code/core/Mage/Catalog/Model/Product/Attribute/Source/Robots.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
/** | ||
* Magento | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is bundled with this package in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* If you did not receive a copy of the license and are unable to | ||
* obtain it through the world-wide-web, please send an email | ||
* to license@magento.com so we can send you a copy immediately. | ||
* | ||
* DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade Magento to newer | ||
* versions in the future. If you wish to customize Magento for your | ||
* needs please refer to http://www.magento.com for more information. | ||
* | ||
* @category Mage | ||
* @package Mage_Catalog | ||
* @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
|
||
/** | ||
* Catalog product robots attribute source | ||
* | ||
* @category Mage | ||
* @package Mage_Catalog | ||
* @author Magento Core Team <core@magentocommerce.com> | ||
*/ | ||
class Mage_Catalog_Model_Product_Attribute_Source_Robots extends Mage_Eav_Model_Entity_Attribute_Source_Abstract | ||
{ | ||
/** | ||
* @return array | ||
*/ | ||
public function getAllOptions() | ||
{ | ||
return array( | ||
Mage_Catalog_Model_Product::META_ROBOTS_INDEX_FOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_INDEX_FOLLOW, | ||
'label' => Mage::helper('cms')->__('INDEX,FOLLOW') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_INDEX_NOFOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_INDEX_NOFOLLOW, | ||
'label' => Mage::helper('cms')->__('INDEX,NOFOLLOW') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_FOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_FOLLOW, | ||
'label' => Mage::helper('cms')->__('NOINDEX,FOLLOW') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_NOFOLLOW => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_NOFOLLOW, | ||
'label' => Mage::helper('cms')->__('NOINDEX,NOFOLLOW') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_INDEX_FOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_INDEX_FOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('INDEX,FOLLOW,NOARCHIVE') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_INDEX_NOFOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_INDEX_NOFOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('INDEX,NOFOLLOW,NOARCHIVE') | ||
), | ||
Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_NOFOLLOW_NOARCHIVE => | ||
array( | ||
'value' => Mage_Catalog_Model_Product::META_ROBOTS_NOINDEX_NOFOLLOW_NOARCHIVE, | ||
'label' => Mage::helper('cms')->__('NOINDEX,NOFOLLOW,NOARCHIVE') | ||
), | ||
); | ||
} | ||
|
||
/** | ||
* @param int $key | ||
* @return string | ||
*/ | ||
public function getOptionLabel($key) { | ||
$options = $this->getAllOptions(); | ||
|
||
return $options[$key]['label']; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.