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 | |
// Render modules inside this html override | |
$doc = JFactory::getDocument(); | |
$renderer = $doc->loadRenderer('modules'); | |
$raw = array('style' => 'xhtml'); | |
?> | |
<!-- remove the whole div if no module assigned in this position--> |
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
switch ($this->item->catid) | |
{ | |
case('9'): | |
case('11'): | |
echo $this->loadTemplate('inset'); | |
break; | |
case('10'): | |
echo $this->loadTemplate('news'); | |
break; | |
default: |
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 | |
// Pull in and use FieldsAttach component helper file for getting extra fields id's | |
JLoader::register('fieldattach', 'components/com_fieldsattach/helpers/fieldattach.php'); | |
?> | |
<!-- order articles in blog view by fieldsattach id dependant on array --> | |
<?php foreach ($this->intro_items as $key => &$item) | |
{ | |
$team = fieldattach::getValue($item->id, 1, 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
<?php | |
$templateName = JFactory::getApplication()->getTemplate(); | |
if ( !file_exists(JPATH_SITE.'/templates/'.$templateName.'/images/Map_marker.png') ) | |
StarTekHelper::getInstance()->addScriptDelayed('window.__noMarkers = true;'); | |
$location = JRequest::getVar('location'); | |
//$location = count($location) ? $location[0] : 'London'; | |
// Search results variables | |
//$resultsWord = ($this->pagination->total == 1) ? 'Result' : 'Results'; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |