diff --git a/app/code/community/Creare/CreareSeoCore/Model/Observer.php b/app/code/community/Creare/CreareSeoCore/Model/Observer.php index a61bda5..cdb184c 100644 --- a/app/code/community/Creare/CreareSeoCore/Model/Observer.php +++ b/app/code/community/Creare/CreareSeoCore/Model/Observer.php @@ -23,15 +23,12 @@ public function changeRobots($observer) $page = $action->getFullActionName(); $layout = $observer->getEvent()->getLayout(); - switch ($page) - { + switch ($page) { case "catalog_category_view" : - if ($this->helper->getConfig("noindexparams") - && parse_url($action->getRequest()->getRequestUri(), PHP_URL_QUERY)) { + && parse_url($action->getRequest()->getRequestUri(), PHP_URL_QUERY)) { $this->setRobots($layout); } - break; case "catalogsearch_result_index" : @@ -54,6 +51,8 @@ public function changeRobots($observer) case "customer_account_login" : case "customer_account_create" : + case "customer_account_forgotpassword" : + case "customer_account_changeforgotten" : if ($this->helper->getConfig("noindexparamsaccount")) { $this->setRobots($layout); } @@ -116,31 +115,32 @@ public function discontinuedCheck($observer) /* The function to remove the meta keywords tag */ - public function applyTag($observer) { + public function applyTag($observer) + { if ($this->helper->getConfig('metakw')) { $body = $observer->getResponse()->getBody(); if (strpos(strtolower($body), 'meta name="keywords"') !== false) { $body = preg_replace('{(]*?>\n)}i', '', $body); - + } if (strpos(strtolower($body), 'meta name="description" content=""') !== false) { $body = preg_replace('{(]*?>\n)}i', '', $body); } - + $observer->getResponse()->setBody($body); } } /* Replaces category name with heading on category pages */ - public function seoHeading($observer) { - + public function seoHeading($observer) + { + $category = $observer->getEvent()->getCategory(); $category->setOriginalName($category->getName()); if ($this->helper->getConfig("category_h1") - && $category->getData('creareseo_heading')) - { + && $category->getData('creareseo_heading')) { $category->setName($category->getCreareseoHeading()); } } @@ -197,9 +197,9 @@ public function forceProductCanonical(Varien_Event_Observer $observer) return; } // Maintain querystring if one is set (to maintain tracking URLs such as gclid) - $product = $observer->getEvent()->getProduct(); - $query = Mage::app()->getRequest()->getQuery(); - $url = $product->getUrlModel() + $product = $observer->getEvent()->getProduct(); + $query = Mage::app()->getRequest()->getQuery(); + $url = $product->getUrlModel() ->getUrl($product, array('_ignore_category' => true, '_query' => $query)); $escapedUrl = Mage::helper('core/url')->escapeUrl($url); if (Mage::helper('core/url')->getCurrentUrl() != $escapedUrl) { @@ -210,7 +210,7 @@ public function forceProductCanonical(Varien_Event_Observer $observer) } /* Adds the page title and meta description to the contact page's */ - + public function contactsMetaData(Varien_Event_Observer $observer) { $route = $observer->getEvent()->getAction()->getRequest()->getRouteName(); @@ -237,7 +237,7 @@ public function forceHomepageTitle($observer) $actionName = $observer->getEvent()->getAction()->getFullActionName(); if ($actionName !== "cms_index_index" - || !$this->helper->getConfig('forcehptitle')) { + || !$this->helper->getConfig('forcehptitle')) { return false; } @@ -254,13 +254,18 @@ public function forceHomepageTitle($observer) } /* On relevant pages, will override the page title with the fallback if one isn't set in the editor */ - + public function setTitle($observer) { $actionName = $observer->getEvent()->getAction()->getFullActionName(); if ($actionName === "cms_index_index" - || $actionName === "contacts_index_index") { + || $actionName === "contacts_index_index" + || $actionName === "customer_account_login" + || $actionName === "customer_account_create" + || $actionName === "customer_account_forgotpassword" + || $actionName === "customer_account_changeforgotten" + || $actionName === "catalogsearch_result_index") { return false; } @@ -275,7 +280,7 @@ public function setTitle($observer) } /* On relevant pages, will override the meta desc with the fallback if one isn't set in the editor */ - + public function setDescription($observer) { $actionName = $observer->getEvent()->getAction()->getFullActionName(); @@ -287,38 +292,38 @@ public function setDescription($observer) $layout = $observer->getEvent()->getLayout(); $description = $this->getDescription(); - if($description) { + if ($description) { if ($head = $layout->getBlock('head')) { $head->setDescription($description); } } } - - public function getDefaultTitle() + + public function getDefaultTitle() { return Mage::getStoreConfig('design/head/default_title'); } - + public function getTitle() { $pagetype = $this->metaHelper()->getPageType(); - + if ($pagetype !== false) { - + if ($pagetype->_code != "cms") { if (!$pagetype->_model->getMetaTitle()) { $this->_data['title'] = $this->setConfigTitle($pagetype->_code); } else { $this->_data['title'] = $pagetype->_model->getMetaTitle(); } - } else if($pagetype !== false && $pagetype->_code == "cms"){ + } else if ($pagetype !== false && $pagetype->_code == "cms") { $this->_data['title'] = $pagetype->_model->getTitle(); } if (empty($this->_data['title'])) { // check if it's a category or product and default to name. - if($pagetype->_code == "category" || $pagetype->_code == "product"){ + if ($pagetype->_code == "category" || $pagetype->_code == "product") { $this->_data['title'] = $pagetype->_model->getName(); } else { $this->_data['title'] = $this->getDefaultTitle(); @@ -327,29 +332,29 @@ public function getTitle() } else { $this->_data['title'] = $this->getDefaultTitle(); } - + return htmlspecialchars(html_entity_decode(trim($this->_data['title']), ENT_QUOTES, 'UTF-8')); } - + public function setConfigTitle($pagetype) { - if ($this->metaHelper()->config($pagetype.'_title_enabled')) { + if ($this->metaHelper()->config($pagetype . '_title_enabled')) { return $this->metaHelper()->getDefaultTitle($pagetype); } } - + public function setConfigMetaDescription($pagetype) { - if ($this->metaHelper()->config($pagetype.'_metadesc_enabled')) { + if ($this->metaHelper()->config($pagetype . '_metadesc_enabled')) { return $this->metaHelper()->getDefaultMetaDescription($pagetype); } } - - + + public function getDescription() { $pagetype = $this->metaHelper()->getPageType(); - + if ($pagetype !== false) { if (!$pagetype->_model->getMetaDescription()) { $this->_data['description'] = $this->setConfigMetaDescription($pagetype->_code); @@ -357,18 +362,18 @@ public function getDescription() $this->_data['description'] = $pagetype->_model->getMetaDescription(); } } - + if (empty($this->_data['description'])) { $this->_data['description'] = ""; } return $this->_data['description']; } - + public function metaHelper() { return Mage::helper('creareseocore/meta'); } - + public function setMandatoryAltTag($observer) { if ($this->helper->getConfig('mandatory_alt')) { @@ -382,8 +387,7 @@ public function setUA($observer) { $magentoVersion = Mage::getVersion(); - if (Mage::getStoreConfig('creareseocore/googleanalytics/type') && version_compare($magentoVersion, '1.9.1', '<')) - { + if (Mage::getStoreConfig('creareseocore/googleanalytics/type') && version_compare($magentoVersion, '1.9.1', '<')) { $layout = $observer->getEvent()->getLayout(); $layout->getUpdate()->addUpdate(''); $layout->generateXml(); diff --git a/app/code/community/Creare/CreareSeoCore/Model/Sitemap/Sitemap.php b/app/code/community/Creare/CreareSeoCore/Model/Sitemap/Sitemap.php index 723d3ed..a8c038e 100644 --- a/app/code/community/Creare/CreareSeoCore/Model/Sitemap/Sitemap.php +++ b/app/code/community/Creare/CreareSeoCore/Model/Sitemap/Sitemap.php @@ -3,102 +3,263 @@ class Creare_CreareSeoCore_Model_Sitemap_Sitemap extends Mage_Sitemap_Model_Sitemap { protected $_eventPrefix = 'creareseo_xml_sitemap'; - + const ITEM_LIMIT = 5000; + protected $_io; + protected $_subfiles = array(); + public function generateXml() { - $io = new Varien_Io_File(); - $io->setAllowCreateFolders(true); - $io->open(array('path' => $this->getPath())); - - if ($io->fileExists($this->getSitemapFilename()) && !$io->isWriteable($this->getSitemapFilename())) { - Mage::throwException(Mage::helper('sitemap')->__('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->getSitemapFilename(), $this->getPath())); - } - - $io->streamOpen($this->getSitemapFilename()); - - $io->streamWrite('' . "\n"); - $io->streamWrite(''); + $limit = self::ITEM_LIMIT; + $this->fileCreate(); $storeId = $this->getStoreId(); - $date = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); + $date = Mage::getSingleton('core/date')->gmtDate('Y-m-d'); $baseUrl = Mage::app()->getStore($storeId)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); /** * Generate categories sitemap */ - $changefreq = (string)Mage::getStoreConfig('sitemap/category/changefreq', $storeId); - $priority = (string)Mage::getStoreConfig('sitemap/category/priority', $storeId); + $changefreq = (string) Mage::getStoreConfig('sitemap/category/changefreq'); + $priority = (string) Mage::getStoreConfig('sitemap/category/priority'); $collection = Mage::getResourceModel('sitemap/catalog_category')->getCollection($storeId); - $categories = new Varien_Object(); - $categories->setItems($collection); - Mage::dispatchEvent('sitemap_categories_generating_before', array( - 'collection' => $categories - )); - foreach ($categories->getItems() as $item) { - $xml = sprintf( - '%s%s%s%.1f', - htmlspecialchars($baseUrl . $item->getUrl()), - $date, - $changefreq, - $priority - ); - $io->streamWrite($xml); + + /** + * Delete old category files + */ + foreach(glob($this->getPath() . substr($this->getSitemapFilename(), 0, strpos($this->getSitemapFilename(), '.xml')) . '_cat_*.xml') as $f) { + unlink($f); + } + + /** + * Brake to pages + */ + $pages = ceil( count($collection) / $limit ); + $i = 0; + while( $i < $pages ) { + $name = '_cat_' . $i . '.xml'; + $this->subFileCreate($name); + $subCollection = array_slice($collection, $i * $limit, $limit); + foreach ($subCollection as $item) { + $_category = Mage::getModel("catalog/category")->load($item->getId()); + $title = str_replace('&', '', $_category->getName()); + $date_category = date("Y-m-d",strtotime($_category->getData('updated_at'))); + $xmlImg = ''; + $_imgHtml = ''; + if ($_imgUrl = $_category->getImageUrl()) { + $filename = $_category->getImageUrl(); + $xmlImg .= '' . $filename . '' . "\n"; + } + + + $xml = sprintf('%s%s%s%.1f%s' . "\n", + htmlspecialchars($baseUrl . $item->getUrl()), + $date_category, + $changefreq, + $priority, + $xmlImg + ); + $this->sitemapSubFileAddLine($xml, $name); + } + $this->subFileClose($name); + /** + * Add link of the subfile to the main file + */ + $xml = sprintf('%s%s' . "\n", htmlspecialchars( $this->getSubFileUrl($name)), $date); + $this->sitemapFileAddLine($xml); + $i++; } + unset($collection); /** * Generate products sitemap */ - $changefreq = (string)Mage::getStoreConfig('sitemap/product/changefreq', $storeId); - $priority = (string)Mage::getStoreConfig('sitemap/product/priority', $storeId); + $changefreq = (string) Mage::getStoreConfig('sitemap/product/changefreq'); + $priority = (string) Mage::getStoreConfig('sitemap/product/priority'); $collection = Mage::getResourceModel('sitemap/catalog_product')->getCollection($storeId); - $products = new Varien_Object(); - $products->setItems($collection); - Mage::dispatchEvent('sitemap_products_generating_before', array( - 'collection' => $products - )); - foreach ($products->getItems() as $item) { - $xml = sprintf( - '%s%s%s%.1f', - htmlspecialchars($baseUrl . $item->getUrl()), - $date, - $changefreq, - $priority - ); - $io->streamWrite($xml); + + /** + * Delete old products files + */ + + foreach(glob($this->getPath() . substr($this->getSitemapFilename(), 0, strpos($this->getSitemapFilename(), '.xml')) . '_prod_*.xml') as $f) { + unlink($f); + } + + /** + * Brake to pages + */ + $pages = ceil( count($collection) / $limit ); + $i = 0; + while( $i < $pages ) { + $name = '_prod_' . $i . '.xml'; + $this->subFileCreate($name); + $subCollection = array_slice($collection, $i * $limit, $limit); + foreach ($subCollection as $item) { + $_product = Mage::getModel("catalog/product")->load($item->getId()); + $date_product = date("Y-m-d",strtotime($_product->getData('updated_at'))); + $title = str_replace('&', '', $_product->getName()); + $galleryData = $_product->getData('media_gallery'); + $xmlImg = ''; + foreach ($galleryData['images'] as $image) { + $filename = htmlspecialchars(Mage::getBaseUrl('media') . 'catalog/product' . $image['file']); + $xmlImg .= '' . $filename . '' . "\n"; + } + $xml = sprintf( + '%s%s%s%.1f%s' . "\n", + htmlspecialchars($baseUrl . $item->getUrl()), + $date_product, + $changefreq, + $priority, + $xmlImg + ); + $this->sitemapSubFileAddLine($xml, $name); + } + $this->subFileClose($name); + /** + * Add link of the subfile to the main file + */ + $xml = sprintf('%s%s' . "\n", htmlspecialchars($this->getSubFileUrl($name)), $date); + $this->sitemapFileAddLine($xml); + $i++; } + unset($collection); /** * Generate cms pages sitemap */ - $changefreq = (string)Mage::getStoreConfig('sitemap/page/changefreq', $storeId); - $priority = (string)Mage::getStoreConfig('sitemap/page/priority', $storeId); + $changefreq = (string) Mage::getStoreConfig('sitemap/page/changefreq'); + $priority = (string) Mage::getStoreConfig('sitemap/page/priority'); $collection = Mage::getResourceModel('sitemap/cms_page')->getCollection($storeId); - foreach ($collection as $item) { - - /* Remove homepage path, leaving just the base URL */ - $url = (Mage::getStoreConfig('web/default/cms_home_page') == $item->getUrl() - ? $baseUrl : $baseUrl . $item->getUrl()); - - $xml = sprintf( - '%s%s%s%.1f', - htmlspecialchars($url), - $date, - $changefreq, - $priority - ); - $io->streamWrite($xml); + + /** + * Delete old cms pages files + */ + + foreach(glob($this->getPath() . substr($this->getSitemapFilename(), 0, strpos($this->getSitemapFilename(), '.xml')) . '_pages_*.xml') as $f) { + unlink($f); + } + + /** + * Brake to pages + */ + $pages = ceil( count($collection) / $limit ); + $i = 0; + while( $i < $pages ) { + $name = '_cms_' . $i . '.xml'; + $this->subFileCreate($name); + $subCollection = array_slice($collection, $i * $limit, $limit); + foreach ($subCollection as $item) { + $xml = sprintf( + '%s%s%s%.1f' . "\n", + htmlspecialchars($baseUrl . $item->getUrl()), + date("Y-m-d",strtotime(Mage::getModel('cms/page')->load($item->getId())->getUpdateTime())), + $item->getUrl() == 'home' ? 'always' : $changefreq, + $item->getUrl() == 'home' ? '1' : $priority + ); + $this->sitemapSubFileAddLine($xml, $name); + } + $this->subFileClose($name); + /** + * Adding link of the subfile to the main file + */ + $xml = sprintf('%s%s' . "\n", htmlspecialchars($this->getSubFileUrl($name)), $date); + $this->sitemapFileAddLine($xml); + $i++; } unset($collection); - $io->streamWrite(''); - $io->streamClose(); + $this->fileClose(); $this->setSitemapTime(Mage::getSingleton('core/date')->gmtDate('Y-m-d H:i:s')); $this->save(); return $this; } - + + /** + * Create sitemap subfile by name in sitemap directory + * + * @param $name + */ + protected function subFileCreate($name) + { + $io = new Varien_Io_File(); + $io->setAllowCreateFolders(true); + $io->open(array('path' => $this->getPath())); + $io->streamOpen( substr($this->getSitemapFilename(), 0, strpos($this->getSitemapFilename(), '.xml')) . $name); + + $io->streamWrite('' . "\n"); + $io->streamWrite('' . "\n"); + + $this->_subfiles[$name] = $io; + } + + /** + * Add line to sitemap subfile + * + * @param $xml + * @param $name + */ + public function sitemapSubFileAddLine($xml, $name) { + $this->_subfiles[$name]->streamWrite($xml); + } + + /** + * Create main sitemap file + */ + protected function fileCreate() { + $io = new Varien_Io_File(); + $io->setAllowCreateFolders(true); + $io->open(array('path' => $this->getPath())); + $io->streamOpen($this->getSitemapFilename()); + + $io->streamWrite('' . "\n"); + $io->streamWrite('' . "\n"); + $this->_io = $io; + } + + /** + * Add closing tag and close sitemap file + */ + protected function fileClose() { + $this->_io->streamWrite(''); + $this->_io->streamClose(); + } + + /** + * Add closing tag and close sitemap subfile by the name + * + * @param $name + */ + protected function subFileClose($name) { + $this->_subfiles[$name]->streamWrite(''); + $this->_subfiles[$name]->streamClose(); + } + + /** + * Get URL of sitemap subfile by the name + * + * @param $name + * @return string + */ + public function getSubFileUrl($name) + { + $fileName = substr($this->getSitemapFilename(), 0, strpos($this->getSitemapFilename(), '.xml')) . $name; + $filePath = Mage::app()->getStore($this->getStoreId())->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . $this->getSitemapPath(); + $filePath = str_replace('//','/',$filePath); + $filePath = str_replace(':/','://',$filePath); + return $filePath . $fileName; + } + + /** + * Add line to the main file + * + * @param $xml + */ + public function sitemapFileAddLine($xml) + { + $this->_io->streamWrite($xml); + } } \ No newline at end of file diff --git a/app/code/community/Creare/CreareSeoCore/etc/adminhtml.xml b/app/code/community/Creare/CreareSeoCore/etc/adminhtml.xml index 791e3d5..c06eedc 100644 --- a/app/code/community/Creare/CreareSeoCore/etc/adminhtml.xml +++ b/app/code/community/Creare/CreareSeoCore/etc/adminhtml.xml @@ -3,7 +3,7 @@ System 90 - + adminhtml/system CreareSEO diff --git a/app/code/community/Creare/CreareSeoCore/etc/config.xml b/app/code/community/Creare/CreareSeoCore/etc/config.xml index de04f75..a1484a8 100644 --- a/app/code/community/Creare/CreareSeoCore/etc/config.xml +++ b/app/code/community/Creare/CreareSeoCore/etc/config.xml @@ -245,6 +245,7 @@ 0 1 1 + 0 1 1 http:// diff --git a/app/code/community/Creare/CreareSeoCore/etc/system.xml b/app/code/community/Creare/CreareSeoCore/etc/system.xml index 9ee61b3..d95c542 100644 --- a/app/code/community/Creare/CreareSeoCore/etc/system.xml +++ b/app/code/community/Creare/CreareSeoCore/etc/system.xml @@ -128,6 +128,15 @@ 1 1 + + + select + adminhtml/system_config_source_yesno + 55 + 1 + 1 + 1 + select @@ -789,6 +798,25 @@ + + + text + 150 + 1 + 1 + 1 + + + + select + adminhtml/system_config_source_yesno + 10 + 1 + 1 + 1 + + + text diff --git a/app/code/community/Creare/CreareSeoSitemap/Block/Sitemap.php b/app/code/community/Creare/CreareSeoSitemap/Block/Sitemap.php index 6281c23..749ec98 100644 --- a/app/code/community/Creare/CreareSeoSitemap/Block/Sitemap.php +++ b/app/code/community/Creare/CreareSeoSitemap/Block/Sitemap.php @@ -156,15 +156,17 @@ public function buildCategoryTreeHtml($parentId, $isChild = false) $categories = Mage::getModel('catalog/category')->getCollection() ->addAttributeToSelect(array('name')) ->addAttributeToFilter('is_active', 1) - ->addAttributeToFilter('parent_id', array('eq' => $parentId)); + ->addAttributeToFilter('parent_id', array('eq' => $parentId)) + ->addAttributeToSort('position', ASC); if(!$this->isEnabledFlat()) { $categories->addAttributeToSelect('url'); } - $class = ($isChild) ? "subcategories" : "top-level"; + $class = ($isChild) ? "menu vertical nested" : "vertical menu accordion-menu"; + $accordion = ($isChild) ? "" : "data-accordion-menu data-submenu-toggle=\"true\""; + $this->categoryTreeHtml .= '
    '; - $this->categoryTreeHtml .= '
      '; foreach ($categories as $category) { if($this->isEnabledFlat()) { $url = Mage::helper('catalog/category')->getCategoryUrl($category); diff --git a/app/design/frontend/base/default/template/creareseo/category/pagination.phtml b/app/design/frontend/base/default/template/creareseo/category/pagination.phtml index add4881..5f44a73 100644 --- a/app/design/frontend/base/default/template/creareseo/category/pagination.phtml +++ b/app/design/frontend/base/default/template/creareseo/category/pagination.phtml @@ -1,34 +1,34 @@ getProductCollection()->addAttributeToFilter('status', 1)->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH))); - $tool = $this->getLayout()->createBlock('page/html_pager')->setLimit($this->getLayout()->createBlock('catalog/product_list_toolbar')->getLimit())->setCollection($prodCol); - $linkPrev = false; - $linkNext = false; - if ($tool->getCollection()->getSelectCountSql()) { - if ($tool->getLastPageNum() > 1) { - if (!$tool->isFirstPage()) { - $linkPrev = true; - if ($tool->getCurrentPage() == 2) { - $url = explode('?', $tool->getPreviousPageUrl()); - $prevUrl = @$url[0]; +$config = Mage::getStoreConfig('creareseocore/defaultseo/forcerel'); +if($config) { + $category = Mage::registry('current_category'); + if ($category) { + $prodCol = $category->getProductCollection()->addAttributeToFilter('status', 1)->addAttributeToFilter('visibility', array('in' => array(Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH))); + $tool = $this->getLayout()->createBlock('page/html_pager')->setLimit($this->getLayout()->createBlock('catalog/product_list_toolbar')->getLimit())->setCollection($prodCol); + $linkPrev = false; + $linkNext = false; + if ($tool->getCollection()->getSelectCountSql()) { + if ($tool->getLastPageNum() > 1) { + if (!$tool->isFirstPage()) { + $linkPrev = true; + if ($tool->getCurrentPage() == 2) { + $url = explode('?', $tool->getPreviousPageUrl()); + $prevUrl = @$url[0]; + } else { + $prevUrl = $tool->getPreviousPageUrl(); + } } - else { - $prevUrl = $tool->getPreviousPageUrl(); + if (!$tool->isLastPage()) { + $linkNext = true; + $nextUrl = $tool->getNextPageUrl(); } } - if (!$tool->isLastPage()) { - $linkNext = true; - $nextUrl = $tool->getNextPageUrl(); - } } + if ($linkPrev) echo ''; + if ($linkNext) echo ''; } - if ($linkPrev) echo ''; - if ($linkNext) echo ''; } ?> diff --git a/app/design/frontend/base/default/template/creareseo/sitemap/sitemap.phtml b/app/design/frontend/base/default/template/creareseo/sitemap/sitemap.phtml index ddb2e39..ef0af7d 100644 --- a/app/design/frontend/base/default/template/creareseo/sitemap/sitemap.phtml +++ b/app/design/frontend/base/default/template/creareseo/sitemap/sitemap.phtml @@ -2,7 +2,7 @@

      __("Sitemap") ?>

      sitemapHelper()->getConfig('description') ?>

      __("Pages") ?>

      -
        +
          getCmsPages()) : ?>
        • getTitle() ?>
        • @@ -19,10 +19,10 @@ getXmlSitemaps()) : ?>

          __("Sitemaps") ?>

          -
            + diff --git a/composer.json b/composer.json index 90c1fd9..b88d9ae 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "creare/creare-seo", + "name": "sickdaflip/creare-seo", "type": "magento-module", "homepage": "http://www.magentocommerce.com/magento-connect/creare-seo.html", "description": "This extension provides fixes and features to Magento that will help improve its overall SEO performance.", diff --git a/modman b/modman index 9aa4867..0d0b5ba 100644 --- a/modman +++ b/modman @@ -8,4 +8,5 @@ app/design/frontend/base/default/layout/creareseo.xml app/design/frontend/base/d app/design/frontend/base/default/layout/creareseo_sitemap.xml app/design/frontend/base/default/layout/creareseo_sitemap.xml app/design/frontend/base/default/template/creareseo app/design/frontend/base/default/template/creareseo js/creareseo js/creareseo -skin/adminhtml/default/default/creareseo skin/adminhtml/default/default/creareseo \ No newline at end of file +skin/adminhtml/default/default/creareseo skin/adminhtml/default/default/creareseo +skin/frontend/base/default/creareseo skin/frontend/base/default/creareseo \ No newline at end of file diff --git a/skin/frontend/base/default/creareseo/main-sitemap.xsl b/skin/frontend/base/default/creareseo/main-sitemap.xsl new file mode 100644 index 0000000..3c06596 --- /dev/null +++ b/skin/frontend/base/default/creareseo/main-sitemap.xsl @@ -0,0 +1,145 @@ + + + + + + + XML Sitemap + + + + +
            +

            XML Sitemap

            +

            + This sitemap was generated automatically, meant for consumption by search engines.
            + You can find more information about XML sitemaps on sitemaps.org. +

            + +

            + This XML Sitemap Index file contains sitemaps. +

            + + + + + + + + + + + + + + + + + + +
            SitemapLast Modified
            + + + +
            +
            + +

            + This XML Sitemap contains URLs. +

            + + + + + + + + + + + + + + + + + + + +
            URLImagesLast Mod.
            + + + + + + + + + + +
            +
            +
            + + +
            +