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
var gulp = require('gulp'), // Gulp | |
jade = require('gulp-jade'), // Jade | |
stylus = require('gulp-stylus'), // Stylus | |
autoprefixer = require('gulp-autoprefixer'), // Autoprefixer | |
csso = require('gulp-csso'), // CSSO | |
imagemin = require('gulp-imagemin'), // Imagemin | |
concat = require('gulp-concat'), // Concat | |
cache = require('gulp-cache'); // Cache | |
browsersync = require('browser-sync'); // Browser-Sync |
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
a { | |
text-indent:-999em; | |
outline:none; | |
background: url(button.jpg) no-repeat 0 0; | |
width:100px; height:50px; | |
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
// => if you know the customer id | |
$customer = Mage::getModel('customer/customer')->load($id); | |
// => if you know the customer email address | |
$customer = Mage::getModel('customer/customer')->loadByEmail('[email protected]'); | |
if($customer->getId()) | |
{ | |
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer); | |
} |
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
git clean -f | |
If you want to also remove directories, run git clean -f -d. | |
If you just want to remove ignored files, run git clean -f -X. | |
If you want to remove ignored as well as non-ignored files, run git clean -f -x. | |
Note the case difference on the X for the two latter commands. | |
Unless you specify -f and clean.requireForce is set to "true" (the default) in your configuration, nothing will actually happen, with a recent enough version of git. |
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
<button class="button" onclick="window.location='/new' "><span><span>Read More</span></span></button></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
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('MYBLOCK')->toHtml() ?> |
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 echo $this->__(Mage::getSingleton('customer/session')->getCustomer()->getName()); ?> |
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 echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_cms_block_identifier')->toHtml() ?> |
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
{{block type="cms/page" page_id="your-cms-page-id" template="cms/content.phtml"}} |
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
<p class="featured-social">{{block type="catalog/product_list" category_id="49" template="catalog/product/featured.phtml"}}</p> |
NewerOlder