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
<reference name="content"> | |
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> | |
<action method="setCategoryId"><category_id>8</category_id></action> | |
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> | |
<block type="page/html_pager" name="product_list_toolbar_pager"/> | |
</block> | |
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action> | |
</block> | |
</reference> |
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
Security -> Manage Users -> "Specific user" -> Settings (tab) | |
Key: | |
use_editor | |
Type: | |
Textfield | |
Descr: | |
setting_use_editor_desc |
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 | |
/* | |
simplx.dompdf | |
*/ | |
$filename = isset($filename) ? $filename : false; | |
$outputto = isset($outputto) ? $outputto : 'file'; |
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
[[[[*page-image:notempty=`$wrapImgThumb? &src=`*page-image` &alt=`[[*pagetitle]]` &thumbOpts=`w=480&h=320``]]]] |
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
$(document).ready(function() { | |
$('a[href^="mailto"]').click(function(){ | |
_gaq.push(['_trackEvent', 'email', 'send', this.href.replace(/^mailto:/i,'') + ' /Page = ' + location.href,,true]); | |
}); | |
}); |
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 $_helper = Mage::helper('catalog/category'); | |
$children = Mage::getModel('catalog/category')->getCategories(CATETGORY_ID_HERE); | |
foreach ($children as $category): | |
$category = Mage::getModel('catalog/category')->load($category->getId()); | |
echo '<li class="level1"><a href="' . $category->getUrl() . '">' . $category->getName() . '</a>'; | |
$category = Mage::getModel('catalog/category')->load($category->getId()); | |
$_subcategories = $category->getChildrenCategories(); | |
if (count($_subcategories) > 0): ?> | |
<ul> | |
<?php foreach($_subcategories as $_subcategory): ?> |
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 fileExists($path){ | |
return (@fopen($path,"r")==true); | |
} | |
?> |
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
<div class="row"> | |
<div class="large-8 column"> | |
My Content | |
</div> | |
<div class="large-4 column full-height"> | |
<aside class="sidebar"> | |
My Sidebar | |
</aside> | |
</div> | |
</div> |
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
//CALL THIS IN THE FOOTER, AFTER THE DOM HAS BEEN LOADED AND ANY OTHER DOM MANIPULATING JS HAS BEEN EXECUTED | |
function updateSidebar() { | |
var $width = document.documentElement.clientWidth, | |
$height = document.documentElement.clientHeight, | |
$main = jQuery('#main').height(); | |
$sidebar = jQuery('#sidebar').height(); | |
if($width > 755) { | |
if($main > $sidebar) { | |
jQuery('#sidebar').css({'min-height': $main}); |
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
Snippet: [[SnippetName]] | |
Chunk: [[$ChunkName]] | |
System Setting: [[++SettingName]] | |
TV: [[*fieldName/TvName]] | |
Link tag: [[~PageId? ¶mName=`value`]] | |
Placeholder: [[+PlaceholderName]] | |
<?php |
OlderNewer