Exemplo n.º 1
0
 /**
  * @fixme getTabLabel() (aka das Label für den Tab) von $item bei addLinkable wird nicht benutzt
  */
 public function add($label, $link, $id = NULL)
 {
     // @TODO respect das neue RightContentLinkable und rufe den Tab mit TabLabel auf und so
     $a = HTML::tag('a', HTML::esc($label), array('href' => $link))->addClass('\\Psc\\drop-content-ajax-call');
     $a->guid($id);
     $a->publishGUID();
     $this->html->content[] = HTML::tag('li', $a);
 }
Exemplo n.º 2
0
 public static function hint($text, $br = FALSE)
 {
     $hint = UIHTML::tag('small', nl2br(HTML::esc($text)), array('class' => 'hint'));
     if ($br) {
         $hint->templateAppend('<br />');
     }
     return $hint;
 }
Exemplo n.º 3
0
 public function getInnerHTML()
 {
     $componentTabs = array();
     foreach ($this->components as $lang => $component) {
         $componentTabs[] = new Tab(HTML::esc($lang), $component->getInnerHTML());
         // ein bildchen für lang?
     }
     $tabs = new Tabs($componentTabs);
     $tabs->setAutoLoad(FALSE);
     return $tabs->html();
 }
Exemplo n.º 4
0
 public function addSection($headline, array $content, $index = self::END, $openAllIcon = FALSE)
 {
     $class = \Psc\HTML\HTML::string2class($headline);
     $this->addRow('<a href="#">' . HTML::esc($headline) . '</a>' . ($openAllIcon ? '<span class="ui-icon open-all-list psc-cms-ui-icon-secondary ui-icon-newwin" title="Alle öffnen"></span>' : ''), $content, $index, $class);
     return $this;
 }
Exemplo n.º 5
0
 public static function createWithTitle($title, $content = NULL)
 {
     return new static(HTML::esc($title), $content);
 }
Exemplo n.º 6
0
 /**
  * Fügt einen Tab hinzu
  *
  * Es kann alles angegebenwerden (Low-Level)
  */
 public function add($headline, $content = NULL, $contentLink = NULL, $tabName = NULL, $closeable = NULL)
 {
     $this->init();
     $this->tabsIndex++;
     if (!isset($closeable)) {
         $closeable = $this->closeable;
     }
     if (!isset($tabName)) {
         $tabName = $this->prefix . $this->tabsIndex;
     }
     if (!isset($contentLink)) {
         $contentLink = '#' . $tabName;
     }
     $this->html->content->ul->content[] = HTML::Tag('li', array(HTML::Tag('a', HTML::esc($headline), array('title' => $tabName, 'href' => $contentLink)), $closeable ? '<span class="ui-icon ui-icon-gear options"></span>' : NULL, $closeable ? '<span class="ui-icon ui-icon-close">' . HTML::esc($closeable) . '</span>' : NULL))->setGlueContent('%s');
     if (isset($content)) {
         $this->html->content->{$tabName} = HTML::Tag('div', $content, array('id' => $tabName));
     }
     return $this;
 }
Exemplo n.º 7
0
 protected function doInit()
 {
     $this->html = HTML::tag('a', HTML::esc($this->label), array('href' => $this->uri));
 }