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 | |
/* add a class to define odd and even output from an array */ | |
echo ($key%2) ? " even" : " odd"; | |
?> |
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 | |
/* define the first or last element in an array */ | |
if($key == "0") echo ' first'; | |
if(count($myVar)==$key+1) echo ' last'; | |
?> |
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 if(count(JModuleHelper::getModules('module_position_here'))) :?> | |
<!-- only show if modules assigned --> | |
<?php | |
// define module position | |
jimport( 'joomla.application.module.helper' ); | |
$modules = &JModuleHelper::getModules( 'module_position_here' ); | |
foreach ($modules as $module) { //loop through the array and render their output | |
$_options = array( 'style' => 'raw' ); | |
echo JModuleHelper::renderModule( $module,$_options ); | |
} |
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 | |
// define module by type / name | |
jimport( 'joomla.application.module.helper' ); | |
$module = JModuleHelper::getModule( 'menu', 'Main' ); | |
$_options = array( 'style' => 'module' ); | |
echo JModuleHelper::renderModule( $module,$_options ); | |
?> | |
OR USE NO-NUMBER PLUGIN - e.g. {module xxx|module} |
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
/* to fix bug in chrome rendering 1px less than Firefox */ | |
.wide_third { | |
max-width: 33.334%; | |
min-width: 33.333%; | |
/* IE conditional */ | |
=width: 33.333%; | |
} |
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
https://github.com/Schepp/box-sizing-polyfill | |
Preface and Credits | |
This box-sizing polyfill is based on previous work done by Erik Arvidsson, which he published in 2002 on WebFX. | |
Since there were some edge/heavy usage cases where it broke I started pushing it further. And since the original was not aware of IE8 I also added feature-detection for box-sizing, to do nothing when detected positive. | |
During that I also borrowed dimension measuring techniques from Dean Edwards' IE7.js script. | |
Usage |
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
https://code.google.com/p/ie7-js/ | |
IE7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6. |
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
The new xx-XX.override.ini file has been created to avoid this issue. Instead of changing the original file, one can add in a file tagged to the language chosen (en-GB.override.ini for example) any key already existing somewhere among all ini files and a specific value. | |
The file has to be placed in: | |
administrator/languages/overrides/en-GB.override.ini | |
or | |
languages/overrides/en-GB.override.ini for frontend. | |
For example, if you add the following value to the override.ini file: |
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
<? | |
// add to from module code to avoid submission issues | |
if ( ( JCck::getConfig_Param( 'validation', 2 ) > 1 ) && $config['validation'] != '' ) { | |
} | |
;?> |
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
div[style] { | |
background: yellow !important; | |
} |