/** * @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); }
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; }
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(); }
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; }
public static function createWithTitle($title, $content = NULL) { return new static(HTML::esc($title), $content); }
/** * 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; }
protected function doInit() { $this->html = HTML::tag('a', HTML::esc($this->label), array('href' => $this->uri)); }