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
#!/bin/bash | |
# cmd='diff -qur -I ".*2006.*"' | |
# cmd='diff' | |
# cmd='git diff' | |
cmd='diff -q' | |
# cmd='cp' | |
# cmd='rm' | |
# cmd='echo diff' | |
# cmd='ls -alh' |
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
{ | |
"rules": { | |
"indentation": 4, | |
"block-opening-brace-space-before": "always", | |
"block-opening-brace-newline-after": "always", | |
"block-closing-brace-newline-before": "always", | |
"selector-list-comma-newline-after": "always", | |
"string-quotes": "single", | |
"selector-combinator-space-after": "always", | |
"selector-combinator-space-before": "always", |
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 $_nutritional_info = $this->getProduct()->getNutritional_info(); ?> | |
<?php if ($_nutritional_info): ?> | |
<div class="std"> | |
<?php echo $this->helper('catalog/output')->productAttribute($this->getProduct(), $_nutritional_info, 'usage') ?> | |
</div> | |
<?php endif; ?> |
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
<!-- http://magento-code-snippets.tumblr.com/ --> | |
<!-- Getting Images --> | |
<img src="<?php echo $this->getSkinUrl('images/helo.png');?>" alt="helo"/> <!-- From Skin Folder --> | |
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA). 'subfolder/image.png'; ?>" /> <!-- From Media Folder --> | |
<!-- note: Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) returns a path of www.yourwebsite.com/media --> | |
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK). 'media/subfolder/image.png'; ?>" /> <!-- From Media Folder --> | |
<!-- note: Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) returns a path of www.yourwebsite.com --> |
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
// makes images & tables responsive in cms pages | |
body.cms-page-view .main{ | |
@media screen and (max-width: $bp-s) { | |
img { | |
float: none !important; | |
text-align: center; | |
min-width: 65%; | |
} | |
table, thead, tbody, th, td, tr { | |
display: block; |
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(){ | |
// http://underscorejs.org/ for lots of useful functions | |
var jQuery = jQuery.noConflict(); // resolve jQuery conflict | |
// back previous URL on blog post page | |
$('#browse-back-btn').click(function(){ | |
window.history.back(); | |
}); | |
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
<?xml version="1.0"?> | |
<layout> | |
<default> | |
<!--Root/Default Layouts--> | |
<reference name="root"> | |
<!--Appending Block--> | |
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> | |
</reference> | |
<!--CSS and JS Files--> |