//if ($ad_pathway) {
JoomlaPathway($catid, $id, $func, $sorting);
//}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// GalleryHeader
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function GalleryHeader() {
global $mainframe;
require (JPATH_COMPONENT_ADMINISTRATOR . DS . 'config.datsogallery.php');
$thumbnailpath = JURI::base(). $ad_paththumbs . "/";
$db = & JFactory::getDBO();
$user = & JFactory::getUser();
$id = JRequest::getVar('id', 0, 'get', 'int');
$catid = JRequest::getVar('catid', 0, 'get', 'int');
$Itemid = JRequest::getVar('Itemid', 0, 'get', 'int');
if ($ad_comtitle)
{
$GH_ad_comtitle=_DG_GALLERY;
}
$GH_User_Panel = "";
if ($ad_showpanel) {
if ($user->username) {
if ($ad_userpannel) {
$GH_User_Panel .= "<a href='". JRoute::_("index.php?option=com_datsogallery&func=userpannel&Itemid=" . $Itemid)."'><strong>". _DG_USER_PANEL."</strong></a> |\n";
}
}
if ($ad_special) {
$GH_User_Panel .= "<a href='". JRoute::_("index.php?option=com_datsogallery&func=special&Itemid=" . $Itemid)."'>". _DG_MOST_VIEWED."</a> |\n";
}
if ($ad_rating) {
$GH_User_Panel .= "<a href='".JRoute::_("index.php?option=com_datsogallery&func=special&sorting=rating&Itemid=" . $Itemid)."'>". _DG_TOP_RATED."</a> |\n";
}
if ($ad_lastadd) {
$GH_User_Panel .= "<a href='". JRoute::_("index.php?option=com_datsogallery&func=special&sorting=lastadd&Itemid=" . $Itemid)."'>"._DG_LAST_ADDED."</a> |\n";
}
if ($ad_lastcomment) {
$GH_User_Panel .= "<a href='".JRoute::_("index.php?option=com_datsogallery&func=special&sorting=lastcomment&Itemid=" . $Itemid)."'>". _DG_LAST_COMMENTED."</a>\n";
}
}
$GH_ad_search = "";
if ($ad_search)
{
$GH_ad_search .= "<form action='".JRoute::_('index.php?option=com_datsogallery')."' name='searchgalform' target='_top' method='post'>\n";
$GH_ad_search .= "<input type='hidden' name='func' value='special' />\n";
$GH_ad_search .= "<input type='hidden' name='sorting' value='find' />\n";
$GH_ad_search .= "<input type='text' name='sstring' class='inputbox' onblur=\"if(this.value=='') this.value='';\" onfocus=\"if(this.value=='". _DG_SEARCH."') this.value='';\" value='"._DG_SEARCH."' />\n";
$GH_ad_search .= "</form>\n";
}
$GH_Pathway ="";
if ($catid <> "") { DatsoGalleryPathway($catid);}
if ($ad_pathway)
{
$GH_Pathway .= "<a href='".JRoute::_("index.php?option=com_datsogallery&Itemid=" . $Itemid)."'>\n";
$GH_Pathway .= "<img src='". JURI::base()."components/com_datsogallery/images/dg-home-icon.gif' hspace='6' border='0' align='left' alt='' />". _DG_HOME."</a>\n";
if ($id) {
$db->setQuery("select a.*, cc.name as category " . " from #__datsogallery as a, #__datsogallery_catg as cc " . " where a.catid=cc.cid and a.id=$id " . " and cc.access<='" . $user->get('aid'). "'");
$rows = $db->loadObjectList();
$row = & $rows[0];
$GH_Pathway1 .= '<img src="' . JURI::base(). '/images/M_images/arrow.png" hspace="4" alt="" /> ';
$GH_Pathway1 .= DatsoGalleryPathway($row->catid)."</a>\n";
}
else
{
if ($catid)
{
$GH_Pathway .= '<img src="' . JURI::base(). '/images/M_images/arrow.png" hspace="4" alt="" /> ';
$GH_Pathway .= DatsoGalleryPathway($catid)."</a>\n";
}
}
}
datsogallery_front_html::GalleryHeader($GH_ad_comtitle, $GH_User_Panel, $GH_ad_search, $GH_Pathway);
}
и плюс в заголовке require_once (JPATH_COMPONENT.DS.'datsogallery.datsogalery.html.php');
сам DatsoGallery.datsogalery.html.php :
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// GalleryHeader
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function GalleryHeader($GH_ad_comtitle, $GH_User_Panel, $GH_ad_search, $GH_Pathway)
{
?>
<br />
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr >
<td class='sectiontableheader'> <?php echo $GH_ad_comtitle;?></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td width="51%"> <?php echo $GH_Pathway;?></td>
<td width="49%" align='right'> <div id='dt1'> <?php echo $GH_User_Panel;?></div></td>
</tr>
</table></td>
</tr>
<tr>
<td align='right' class='directorypath' valign='middle' id='dt7'><?php echo $GH_ad_search;?></td>
</tr>
</table>
<p>
<?php
}
}
Возможно это неправильно с точки зрения программирования, но проблему с навигашкой я решил так.