Beispiel #1
0
 /**
  * Output the html for a single blog post
  * Handle comment actions
  */
 function ShowPost()
 {
     if (common::LoggedIn()) {
         gpPlugin_incl('Admin/SimpleBlogPage.php');
         $blog_page = new AdminSimpleBlogPage($this->post_id);
     } else {
         gpPlugin_incl('SimpleBlogPage.php');
         $blog_page = new SimpleBlogPage($this->post_id);
     }
     $blog_page->ShowPost();
 }
 function ShowPost()
 {
     $cmd = common::GetCommand();
     switch ($cmd) {
         // inline editing
         case 'inlineedit':
             $this->InlineEdit();
             die;
         case 'save_inline':
         case 'save':
             $this->SaveInline();
             break;
             //close comments
         //close comments
         case 'closecomments':
             $this->ToggleComments(true, $this->post_id);
             break;
         case 'opencomments':
             $this->ToggleComments(false, $this->post_id);
             break;
             //commments
         //commments
         case 'delete_comment':
             $this->DeleteComment();
             break;
     }
     parent::ShowPost();
 }