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
magento transaction email insert block | |
cms/content.phtml == just returt cms block content! | |
{{block type="cms/block" block_id="blockIdHere" 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
<reference name="content"> | |
<block type="webforms/webforms" name="rfq" template="webforms/default.phtml"> | |
<action method="setData"> | |
<key>webform_id</key> | |
<value>1</value> | |
</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
.navbar | |
.caret | |
.label | |
.table | |
.img-responsive | |
.img-rounded | |
.img-thumbnail | |
.img-circle | |
.sr-only | |
.lead |
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 | |
//----------------------------------------------------------/ | |
// responsive images [ 1) add img-responsive class 2) remove dimensions ] | |
//----------------------------------------------------------/ | |
function bootstrap_responsive_images( $html ){ | |
$classes = 'img-responsive'; // separated by spaces, e.g. 'img image-link' | |
// check if there are already classes assigned to the anchor | |
if ( preg_match('/<img.*? class="/', $html) ) { |
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
<VirtualHost *:80> | |
ServerName www.some-host.io | |
SetEnv ENV "mk" | |
DocumentRoot /home/path/html | |
</VirtualHost> |
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
<!-- BEGIN website switcher --> | |
<select id="website-changer" onChange="document.location=this.options[selectedIndex].value"> | |
<?php | |
$websites = Mage::getModel('core/website')->getCollection(); | |
foreach($websites as $website) | |
{ | |
$default_store = $website->getDefaultStore(); | |
$url_obj = new Mage_Core_Model_Url(); | |
$default_store_path = $url_obj->getBaseUrl(array('_store'=> $default_store->getCode())); | |
?> |
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
Using a pre-existing subdirectory install | |
If you already have WordPress installed in its own folder (e.g., http://example.com/wordpress), then the steps are as follows: | |
Go to the General panel. | |
In the box for Site address (URL): change the address to the root directory's URL. Example: http://example.com | |
Click Save Changes. (Do not worry about the error message and do not try to see your blog at this point! You will probably get a message about file not found.) | |
Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the root directory of your site—the latter is probably named something like www or public_html. The .htaccess file is invisible, so you may have to set your FTP client to show hidden files. If you are not using pretty permalinks, then you may not have a .htaccess file. If you are running WordPress on a Windows (IIS) server and are using pretty permalinks, you'll have a web.config rather than a .htaccess file in your WordPress directory. | |
Edit |
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
(function(d,s){s=d.createElement('script');s.src='//cdn.pubnub.com/pubnub.min.js';(d.head||d.documentElement).appendChild(s)})(document); |
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
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"detect_slow_plugins": false, | |
"font_face": "Inconsolata", | |
"font_size": 12, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Nettuts+ Fetch", |
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
<?// guarded pages! | |
Route::group(array('before' => 'auth'), function() | |
{ | |
Route::get('/', ['as' => 'home', function() { return View::make('home'); }]); | |
Route::get('/table_info', function() { return View::make('news/table_info'); }); | |
Route::get('/logout', 'SessionsController@logoff'); | |
Route::resource('news', 'NewsController'); // get, post, delete, patch, | |
}); | |
// open loged out pages! |