This file contains hidden or 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 | |
//This will detect the Home Page of Joomla and perfom whatever code you tell it to | |
$menu = & JSite::getMenu(); | |
if ($menu->getActive() == $menu->getDefault()) { | |
//This code will be executed on the home page | |
} else { | |
//This code will be executed on every page except the home page |
This file contains hidden or 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 | |
defined('_JEXEC') or die; | |
/* The following line loads the MooTools JavaScript Library */ | |
JHTML::_('behavior.mootools'); | |
/* The following line gets the application object for things like displaying the site name */ | |
$app = JFactory::getApplication(); | |
/* Get the document object */ |
This file contains hidden or 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
// Copy /modules/mod_menu/tmpl/default.php to /templates/MYTEMPLATE/html/mod_menu/default.php | |
// Around line 34, find: | |
if ($item->deeper) { | |
$class .= 'deeper '; | |
} | |
// Replace this with: | |
$currentitemcount ++; |
This file contains hidden or 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
$(document).ready(function(){ | |
$("input[type=text]:first").focus(); | |
}); |
NewerOlder