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
<!-- START - class decalaration as well as check itemID, frontpage, etc - Max Lynam | @MaxOnTheHill --> | |
<?php | |
/* get current active page */ | |
$active = JFactory::getApplication()->getMenu()->getActive(); | |
?> | |
<body | |
<?php if ($itemId): ?> id="item<?php echo $itemId; ?>" <?php endif; ?> | |
class="<?php echo $active->alias; ?> | |
<?php if ($isFrontpage): ?>frontpage <?php endif; ?>" | |
> |
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 create a new module position within content, so a module can be assigned to display in that exact position, simply put into the text (in a P tag is ok): | |
{loadposition slideshow} with slideshow being the new module position in this example. |
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
UPDATE my_table SET my_field = 'my url or other entry' |
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
upload_max_filesize = 10M | |
magic_quotes_gpc = Off | |
magic_quotes_runtime = Off | |
magic_quotes_sybase = Off |
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
/* reset first left margin when styled within a containing span */ | |
[class*="span"] > [class*="span"] { | |
margin-left: 0; | |
} |
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 (isset($images->image_intro) and !empty($images->image_intro)) | |
{ | |
$timage= htmlspecialchars(JURI::root().$images->image_intro); | |
} | |
elseif (isset($images->image_fulltext) and !empty($images->image_fulltext)) | |
{ | |
$timage= htmlspecialchars(JURI::root().$images->image_fulltext); | |
} | |
else | |
{ |
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 following section should be placed somewhere high up in your index.php of your template. | |
Note that some templates will not use the index.php for the main file --> | |
<!-- ********** CODE START ********** --> | |
<?php | |
$active = JFactory::getApplication()->getMenu()->getActive(); | |
?> | |
<?php | |
$menu = &JSite::getMenu(); | |
$active = $menu->getActive(); | |
$menuname = $active->title; |
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
element img { | |
filter: alpha(opacity=100); | |
opacity: 1.0; | |
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */ | |
filter: gray; /* IE6-9 */ | |
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ | |
} | |
element img:hover, element img:focus { | |
filter: alpha(opacity=100); | |
opacity: 1.0; |
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
.rsform .formControlLabel { | |
float: left; | |
width: 25%; | |
} | |
.rsform input, .rsform textarea, .rsform .uneditable-input { | |
margin-right: 4%; | |
width: 65%; | |
} |
OlderNewer