Exemplo n.º 1
0
 /**
  * Shows the comments screen
  */
 function _showComments()
 {
     global $mainframe, $mainframe, $rsgConfig;
     if ($rsgConfig->get('comment')) {
         $gallery = rsgGalleryManager::get();
         $item = $gallery->getItem();
         $id = $item->id;
         $css = "<link rel=\"stylesheet\" href=\"" . JURI_SITE . "/components/com_rsgallery2/lib/rsgcomments/rsgcomments.css\" type=\"text/css\" />";
         $mainframe->addCustomHeadTag($css);
         $comment = new rsgComments();
         $comment->showComments($id);
         $comment->editComment($id);
     } else {
         echo JText::_('Commenting is disabled');
     }
 }