Lines Matching refs:data

25         'title-text-align'              => array('type' => 'choice',    'data'      => array(
30 'subtitle-text-align' => array('type' => 'choice', 'data' => array(
36 'header-text-align' => array('type' => 'choice', 'data' => array(
41 'footer-text-align' => array('type' => 'choice', 'data' => array(
73 public function render_lexer_enter(Doku_Renderer $renderer, $data)
75 $classes = $this->buildClass($data, array('overlay', 'horizontal'));
76 $styles = $this->buildStyle(array('height' => $data['height'], 'width' => $data['width']), true);
80 if($data['horizontal']) { $renderer->doc .= '<div class="' . $this->elemClass . ' ' . $this->classPrefix . 'card-horizontal-image">';
82 if($data['placeholder-text'] != '') {
83 $this->syntaxRender($renderer, 'placeholder', '', $this->arrayRemoveEmpties(array('text' => $data['placeholder-text'], 'color' => $data['placeholder-color'], 'text-color' => $data['placeholder-text-color'], 'height' => $data['placeholder-height'])));
84 } elseif($data['image'] != '') {
86 if($data['image-height'] != '') {
87 $style = 'height:' . $data['image-height'] . ';';
89 $renderer->doc .= '<img src="' . $data['image'] . '" class="' . $this->elemClass . ' ' . $this->classPrefix . 'card-image' . ($data['image-cover'] ? ' ' . $this->classPrefix . 'image-cover' : '') . '" style="' . $style . '">';
91 if($data['horizontal']) { $renderer->doc .= '</div><div class="' . $this->elemClass . ' ' . $this->classPrefix . 'card-horizontal-body">';
94 if($data['header'] != '') {
95 $this->syntaxRender($renderer, 'cardheader', $data['header'], $this->arrayRemoveEmpties(array('text-align' => $data['header-text-align'], 'text-color' => $data['header-text-color'])));
98 if($data['no-body'] == false) { $this->syntaxRender($renderer, 'cardbody', '', $this->arrayRemoveEmpties(array('vertical-align' => $data['vertical-align'], 'text-color' => $data['text-color'])), MIKIO_LEXER_ENTER);
101 if($data['title'] != '') {
102 $this->syntaxRender($renderer, 'cardtitle', $data['title'], $this->arrayRemoveEmpties(array('text-align' => $data['title-text-align'], 'text-color' => $data['title-text-color'])));
105 if($data['subtitle'] != '') {
106 $this->syntaxRender($renderer, 'cardsubtitle', $data['subtitle'], $this->arrayRemoveEmpties(array('text-align' => $data['subtitle-text-align'], 'text-color' => $data['subtitle-text-color'])));
111 public function render_lexer_exit(Doku_Renderer $renderer, $data)
113 if($data['no-body'] == false) { $this->syntaxRender($renderer, 'cardbody', '', null, MIKIO_LEXER_EXIT);
116 if($data['footer'] != '') {
117 $this->syntaxRender($renderer, 'cardfooter', $data['footer'], $this->arrayRemoveEmpties(array('small' => $data['footer-small'], 'text-align' => $data['footer-text-align'], 'text-color' => $data['footer-text-color'])));
120 if($data['footer-placeholder-text'] != '') {
121 $this->syntaxRender($renderer, 'placeholder', '', $this->arrayRemoveEmpties(array('text' => $data['footer-placeholder-text'], 'color' => $data['footer-placeholder-color'], 'text-color' => $data['footer-placeholder-text-color'])));
122 } elseif($data['footer-image'] != '') {
123 $renderer->doc .= '<img src="' . $data['footer-image'] . '" class="' . $this->elemClass . ' ' . $this->classPrefix . 'card-image' . ($data['footer-image-cover'] ? ' ' . $this->classPrefix . 'image-cover' : '') .'">';
126 if($data['horizontal']) { $renderer->doc .= '</div>';