Last active
September 12, 2016 09:21
-
-
Save luis-pinheiro/427c61547f8080b96483 to your computer and use it in GitHub Desktop.
Joomla Snippets
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 print_r($this);?> |
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
# T3-Framework | |
## Docs | |
* [T3-Framework](http://www.t3-framework.org/documentation/) - t3-framework documentation | |
## Define Path variable in T3 Framework | |
* $ncPath = T3_TEMPLATE_URL . '/'; | |
## Add module position to block | |
* <jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" /> | |
## Count Modules | |
<?php if ($this->countModules('nc-wat-p')): ?> | |
<jdoc:include type="modules" name="<?php $this->_p('your_module_position_name') ?>" /> | |
<?php endif?> | |
Add CSS style sheets | |
<?php | |
// CUSTOM CSS | |
if(is_file(T3_TEMPLATE_PATH . '/css/custom.css')) { | |
$this->addStyleSheet(T3_TEMPLATE_URL.'/css/custom.css'); | |
} | |
?> | |
Add Javascripts | |
<?php | |
if(is_file(T3_TEMPLATE_PATH . '/templates/your-temp-name/js/slider/lofslidernews.mt11.js')) { | |
$this->addScript(T3_TEMPLATE_URL.'/templates/your-temp-name/js/slider/lofslidernews.mt11.js'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment