Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Bootstrap 3 vertically centered modal and scroll fixes</title> | |
| <meta name="description" content="Bootstrap 3 vertically centered modal and scroll fixes"> | |
| <!-- include bootstrap --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> | |
| <style id="jsbin-css"> | |
| /* scroll fixes */ |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| function getCategories(Mage_Catalog_Model_Category $ParentCategory, $id_only = false, $active = true) { | |
| $return = array(); | |
| foreach(explode(',', $ParentCategory->getChildren()) as $categoryId) { | |
| $Category = Mage::getModel('catalog/category')->load($categoryId); | |
| if ($Category->getIsActive()) { | |
| if ($id_only) { | |
| $return[] = $categoryId; | |
| } else { | |
| $return[$categoryId] = array( |