/** * @param \Template $template * @return $this */ public function render(\Template $template) { $template->attributes = parent::generate(); $template->closeButton = $this->closeButton; $template->title = $this->title; $template->content = $this->content; $template->footer = $this->footer; $template->size = $this->size ? ' ' . $this->size : ''; return $this; }
/** * Generate the divider. * * @return string */ public function generate() { return sprintf('<li %s></li>', parent::generate()); }
/** * @return string */ public function generate() { return sprintf('<li %s>%s%s</li>', parent::generate(), PHP_EOL, $this->getButton()->generate()); }
/** * Generate the attributes. * * @return string */ protected function generateAttributes() { return parent::generate(); }
/** * Generate the button. * * @return string */ public function generate() { return sprintf('<%s %s>%s</%s>%s', $this->tag, parent::generate(), $this->label, $this->tag, PHP_EOL); }
/** * @return string */ public function generateAttributes() { return parent::generate(); }
/** * @return string */ public function generate() { return sprintf('<li %s>%s</li>', parent::generate(), $this->label); }