/** * This presents the main My Galleries page * @param array Result array with category details for logged in users * @param array Result array with image details for logged in users * @param array Result array with pagenav information */ function viewMyGalleriesPage($rows, $images, $pageNav) { global $rsgConfig, $mainframe; $my = JFactory::getUser(); $database = JFactory::getDBO(); if (!$rsgConfig->get('show_mygalleries')) { $mainframe->redirect($this->myg_url, JText::_('User galleries was disabled by the administrator.')); } ?> <div class="rsg2"> <h2><?php echo JText::_('My galleries'); ?> </h2> <?php //Show User information myGalleries::RSGalleryUSerInfo($my->id); //Start tabs jimport("joomla.html.pane"); $tabs =& JPane::getInstance("Tabs"); echo $tabs->startPane('tabs'); echo $tabs->startPanel(JText::_('My Images'), 'my_images'); myGalleries::showMyImages($images, $pageNav); myGalleries::showImageUpload(); echo $tabs->endPanel(); if ($rsgConfig->get('uu_createCat')) { echo $tabs->startPanel(JText::_('My galleries'), 'my_galleries'); myGalleries::showMyGalleries($rows); myGalleries::showCreateGallery(NULL); echo $tabs->endPanel(); } echo $tabs->endPane(); ?> </div> <div class='rsg2-clr'> </div> <?php }