This file contains hidden or 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
<customer_logged_out> | |
<reference name="top.links"> | |
<!-- Removes 'Log In' link - Default position: 60 | |
<action method="removeLinkByUrl"><url helper="customer/getLoginUrl"/></action>--> | |
<action method="removeLinkByUrl"><url helper="customer/getAccountUrl"/></action> | |
<action method="addLink" translate="label title" module="customer"><label>Registration</label><url helper="customer/getRegisterUrl"/><title>Registration</title><prepare/><urlParams/><position>10</position></action> | |
<remove name="wishlist_link"/> | |
</reference> | |
</customer_logged_out> |
This file contains hidden or 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
<script type="text/javascript"> | |
// <![CDATA[ | |
// ]]> | |
</script> |
This file contains hidden or 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 | |
$document = JFactory::getDocument(); | |
$document->addScript(JURI::base().'templates/your_template_name/js/your.custom.js'); | |
?> |
This file contains hidden or 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="right"> | |
<block type="cms/block" name="new_block" after="cart_sidebar"> | |
<action method="setBlockId"><block_id>new_block</block_id></action> | |
</block> | |
</reference> |
This file contains hidden or 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
/***** Selector Hacks ******/ | |
/* IE6 and below */ | |
* html #uno { color: red } | |
/* IE7 */ | |
*:first-child+html #dos { color: red } | |
/* IE7, FF, Saf, Opera */ | |
html>body #tres { color: red } |
This file contains hidden or 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
/* will be red only in google chrome */ | |
@media screen and (-webkit-min-device-pixel-ratio:0) { | |
#test1{color:red;} | |
} | |
/* will be red only in opera and google chrome */ | |
#test2 { | |
color:green; | |
-bracket-:hack(; | |
color:red; |
This file contains hidden or 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 if(JFactory::getApplication()->getMessageQueue()) : ?> | |
<jdoc:include type="message" /> | |
<?php endif; ?> |
This file contains hidden or 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
<? $tracking = preg_replace("#(.*?)\(.*?\)(.*?)#is", "\\1\\3", $tracking); ?> |
This file contains hidden or 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 | |
//Drupal 7 URL variables | |
$GLOBALS['base_url'] => http://example.com/drupal | |
base_path() => /drupal/ | |
request_uri() => /drupal/documentation?page=1 | |
request_path() => documentation | |
current_path() => node/26419 | |
?> |
This file contains hidden or 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 MYTHEME_preprocess_node(&$vars) { | |
if($vars['view_mode'] == 'teaser') { | |
$vars['theme_hook_suggestions'][] = 'node__' . $vars['node']->type . '__teaser'; | |
$vars['theme_hook_suggestions'][] = 'node__' . $vars['node']->nid . '__teaser'; | |
} | |
} | |
?> |
OlderNewer