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
<!-- | |
LABEL > set style (warning, success, info, errro, add) | |
EXPAND with float, inline, outline_, grad, in_ or out_ etc.. | |
--> | |
<span class="inline in_tighter outline_round label_warning">Label</span> | |
<span class="inline in_tighter outline_round label_success">Label</span> | |
<span class="inline in_tighter outline_round label_info">Label</span> | |
<span class="inline in_tighter outline_round label_error">Label</span> | |
<span class="inline in_tighter outline_round label_add">Label</span> |
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 TEXT TO BE TRIMMED, SET TRIM LENGTH IN CHARACTERS, BREAK WORD, STRIP HTML // | |
// http://api.joomla.org/cms-3/classes/JHtmlString.html // | |
/////////////////////////////////////////////////////////////////////////////////// | |
echo JHTML::_('string.truncate', $text, $length, true, false ); | |
?> |
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 table1 INNER JOIN table2 ON table1.field_name = table2.field_name SET table1.field_name = table2.field_name |
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 | |
// RESET KEY VALUES TO START FORM 0 AND REMOVE EMPTY/NULL ENTRIES | |
$array =array_values(array_filter($array)); | |
?> |
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 (!empty($attribs->select_banner_image)) { | |
$style = 'html { | |
background-image: url('.$attribs->select_banner_image.') !important; | |
background-size: contain; | |
background-repeat: no-repeat; | |
background-position: center top; | |
}'; | |
$doc->addStyleDeclaration( $style ); | |
} ?> |
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 | |
// http://docs.joomla.org/JDocument/setMetaData | |
$doc =& JFactory::getDocument(); | |
$doc->setMetaData( 'tag-name', 'tag-content', true ); | |
/* | |
*<meta name="tag-name" content="tag-content" /> | |
*/ | |
?> |
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 | |
// useful for multi-column layouts | |
$modulecount = count(JModuleHelper::getModules($attribs['name'])); | |
echo $modulecount; | |
?> |
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
online tools: | |
http://web-sniffer.net/ | |
http://www.stepforth.com/resources/server-header-checker-tool/#.T93mC7UtgZl | |
http://www.rexswain.com/httpview.html | |
http://webtools.live2support.com/header.php | |
articles: | |
http://www.seomoz.org/ugc/responsive-web-design-the-ultimate-guide-for-online-marketers | |
HTACCESS >> add following line |
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 | |
/* | |
* Output for image upload field (original + thumbs x 5) | |
* | |
*/ | |
?> | |
<img src="<?php echo $cck->getValue('fieldname');?>" title="" alt="" /> | |
<img src="<?php echo $cck->getThumb1('fieldname');?>" title="" alt="" /> |
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 | |
// redirect to same page | |
$uri = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
$uri = base64_encode($uri); | |
// replace $return with $uri | |
<input type="hidden" name="return" value="<?php echo $uri; ?>" /> | |
?> |
OlderNewer