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
<?php | |
function getCategories(Mage_Catalog_Model_Category $ParentCategory) { | |
$return = array(); | |
foreach(explode(',', $ParentCategory->getChildren()) as $categoryId) { | |
$Category = Mage::getModel('catalog/category')->load($categoryId); | |
$return[$categoryId] = array( | |
'id' => $Category->getId(), | |
'name' => $Category->getName(), | |
'slug' => $Category->getUrlKey(), | |
'url' => $Category->getUrl(), |
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
# | |
# If you want to see svn modifications: | |
# export SVN_SHOWDIRTYSTATE=1 | |
# | |
# Put this in your PS1 like this: | |
# PS1='\u@\h:\W\[\033[01;33m\]$(__git_svn_ps1)\[\033[00m\]$ ' | |
# Git/Subversion prompt function | |
__git_svn_ps1() { |
NewerOlder