예제 #1
0
 /**
  * Show the header section of the page
  *
  * Shows a stub page and the bookmark form.
  *
  * @return void
  */
 function showHeader()
 {
     $this->elementStart('div', array('id' => 'header'));
     $this->elementStart('address');
     $this->element('a', array('class' => 'url', 'href' => common_local_url('public')), '');
     $this->elementEnd('address');
     if (common_logged_in()) {
         $form = new BookmarkForm($this, $this->title, $this->url);
         $form->show();
     }
     $this->elementEnd('div');
 }
예제 #2
0
 /**
  * Handler method
  *
  * @param array $args is ignored since it's now passed in in prepare()
  *
  * @return void
  */
 function handle($args = null)
 {
     $this->startHTML('text/xml;charset=utf-8');
     $this->elementStart('head');
     $this->element('title', null, _('Bookmark form'));
     $this->elementEnd('head');
     $this->elementStart('body');
     $bf = new BookmarkForm($this, $this->title, $this->url, null, null, $this->thumbnail);
     $bf->show();
     $this->elementEnd('body');
     $this->elementEnd('html');
 }
예제 #3
0
 /**
  * Show the bookmark form
  *
  * @return void
  */
 function showContent()
 {
     if (!empty($this->error)) {
         $this->element('p', 'error', $this->error);
     }
     $form = new BookmarkForm($this, $this->title, $this->url, $this->tags, $this->description);
     $form->show();
     return;
 }