Skip to content

Commit

Permalink
Fixed #1. Rename comunity directory to community.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceefour committed May 25, 2011
1 parent 4eaebda commit 9fa2810
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 3 deletions.
@@ -1,6 +1,7 @@
<?php
/**
* Soluvas
* http://www.soluvas.com/
*
* NOTICE OF LICENSE
*
Expand All @@ -17,14 +18,18 @@
*/

/**
* Enhanced Product view Block
* Enhanced Product view Block.
*
* WARNING: FIXME: Patched version that merges changes from Yoast_MetaRobots!!!!
* WARNING: FIXME: Depend on Yoast_MetaRobots to resolve conflict!!!
*
* @category Soluvas
* @package Soluvas_MagentoTweaks
* @author Soluvas Developers <info@soluvas.com>
* @see Mage_Catalog_Block_Product_View
*/
class Soluvas_MagentoTweaks_Block_Productview extends Mage_Catalog_Block_Product_View
class Soluvas_MagentoTweaks_Block_Productview extends /*Mage_Catalog_Block_Product_View*/
Yoast_MetaRobots_Block_Catalog_Product_View
{
/**
* Add meta information from product to head block.
Expand All @@ -34,7 +39,7 @@ class Soluvas_MagentoTweaks_Block_Productview extends Mage_Catalog_Block_Product
*/
protected function _prepareLayout()
{
$this->getLayout()->createBlock('catalog/breadcrumbs');
$this->getLayout()->createBlock('catalog/breadcrumbs');
$headBlock = $this->getLayout()->getBlock('head');
if ($headBlock) {
$product = $this->getProduct();
Expand All @@ -55,6 +60,14 @@ protected function _prepareLayout()
} else {
$headBlock->setDescription($product->getDescription());
}

$robots = $product->getMetaRobots();
if ($robots) {
$headBlock->setRobots($robots);
} else {
$headBlock->setRobots($product->getMetaRobots());
}

if ($this->helper('catalog/product')->canUseCanonicalTag()) {
$params = array(/*'_ignore_category'=>true*/);
if (Mage::getStoreConfig('magentotweaks/catalog/fullproductpath', $this->getStoreId()) == 0)
Expand Down
4 changes: 4 additions & 0 deletions app/etc/modules/Soluvas_MagentoTweaks.xml
Expand Up @@ -21,6 +21,10 @@
<Soluvas_MagentoTweaks>
<active>true</active>
<codePool>community</codePool>
<!-- WARNING: FIXME: Depend on Yoast_MetaRobots to resolve conflict!!! -->
<depends>
<Yoast_MetaRobots />
</depends>
</Soluvas_MagentoTweaks>
</modules>
</config>

0 comments on commit 9fa2810

Please sign in to comment.