Lines Matching refs:renderer
49 public function render($mode, Doku_Renderer $renderer, $data)
61 $renderer->externallink($url, $title);
69 /** @var Doku_Renderer_xhtml $renderer */
70 $this->renderXHTML($publication, $renderer);
72 $this->renderAny($publication, $renderer);
87 * Render the given data on the XHTML renderer
92 * @param Doku_Renderer_xhtml $renderer
95 protected function renderXHTML($data, $renderer)
97 $renderer->doc .= '<div class="plugin_doi ' . hsc($data['type']) . '">';
98 $renderer->externallink($data['url'], $data['title']);
101 $renderer->doc .= ' <span>(' . hsc($data['published']) . ')</span>';
104 $renderer->doc .= '<div class="meta">';
109 $renderer->doc .= '<span class="authors">' . join(', ', $authors) . '</span>';
118 $renderer->doc .= ' <span class="journal">' . $journal . '</span>';
120 $renderer->doc .= '</div>';
122 $renderer->doc .= '<div class="meta">';
124 $renderer->doc .= '<span class="publisher">' . hsc($data['publisher']) . '</span>';
126 $renderer->doc .= ' <code class="id">' . $data['idtype'] . ':' . hsc($data['id']) . '</code>';
127 $renderer->doc .= '</div>';
129 $renderer->doc .= '</div>';
133 * Render the given data on any renderer
135 * Uses renderer methods only
138 * @param Doku_Renderer $renderer
141 protected function renderAny($data, $renderer)
143 $renderer->p_open();
144 $renderer->externallink($data['url'], $data['title']);
147 $renderer->cdata(' (' . hsc($data['published']) . ')');
149 $renderer->linebreak();
154 $renderer->strong_open();
155 $renderer->cdata($data['authors'][$i]);
156 $renderer->strong_close();
158 $renderer->cdata(', ');
165 $renderer->cdata(' ' . $journal);
169 $renderer->cdata(' ');
170 $renderer->emphasis_open();
171 $renderer->cdata('p' . $data['page']);
172 $renderer->emphasis_close();
175 $renderer->linebreak();
178 $renderer->cdata($data['publisher']);
179 $renderer->cdata(' ');
181 $renderer->monospace_open();
182 $renderer->cdata($data['idtype'] . ':' . hsc($data['id']));
183 $renderer->monospace_close();
185 $renderer->p_close();