Esempio n. 1
0
 function run()
 {
     if (!empty($this->publication) && $this->publication->get_value('name')) {
         if (!empty($this->request['story_id']) || !empty($this->request['section_id']) || !empty($this->request['filters']) || !empty($this->request['search'])) {
             $link = carl_construct_link(array(), array('textonly'));
             // preserve only textonly
             $pubname = '<a href="' . $link . '">' . $this->publication->get_value('name') . '</a>';
         } else {
             $pubname = $this->publication->get_value('name');
         }
         echo '<h2 class="pageTitle publicationTitle"><span>' . $pubname . '</span></h2>';
     } elseif (!empty($this->parent->title)) {
         parent::run();
     }
 }
Esempio n. 2
0
 function run()
 {
     if (!empty($this->blog) && $this->blog->get_value('name')) {
         if (!empty($this->request['story_id'])) {
             if ($this->textonly) {
                 $link = '?textonly=1';
             } else {
                 $link = '?';
             }
             $blogname = '<a href="' . $link . '">' . $this->blog->get_value('name') . '</a>';
         } else {
             $blogname = $this->blog->get_value('name');
         }
         echo '<h2 class="pageTitle"><span>' . $blogname . '</span></h2>';
     } elseif (!empty($this->parent->title)) {
         parent::run();
     }
 }