Lines Matching refs:renderer
76 * @param Doku_Renderer $renderer The renderer
82 public function render($mode, Doku_Renderer $renderer, $data)
86 call_user_func([$this, $method], $renderer, $data);
95 * @param Doku_Renderer $renderer The renderer
98 public function renderMetadata(Doku_Renderer $renderer, $params)
101 $renderer->meta['plugin'][$plugin_name] = [];
103 $renderer->meta['plugin'][$plugin_name]['dynamic_approver'] = $params['approver'] == '$USER$';
104 $renderer->meta['plugin'][$plugin_name]['approve_table'] = true;
116 public function renderXhtml(Doku_Renderer $renderer, $params)
131 $renderer->doc .= '<table><tr>';
132 $renderer->doc .= '<th>' . $this->getLang('hdr_page') . '</th>';
133 $renderer->doc .= '<th>' . $this->getLang('hdr_state') . '</th>';
134 $renderer->doc .= '<th>' . $this->getLang('hdr_updated') . '</th>';
135 $renderer->doc .= '<th>' . $this->getLang('hdr_approver') . '</th>';
136 $renderer->doc .= '</tr>';
162 $renderer->doc .= '<tr><td colspan="4"><a href="';
163 $renderer->doc .= wl($curNS);
164 $renderer->doc .= '">';
165 $renderer->doc .= $curNS;
166 $renderer->doc .= '</a> ';
167 $renderer->doc .= '</td></tr>';
192 $renderer->doc .= '<tr class="'.$class.'">';
193 $renderer->doc .= '<td><a href="';
194 $renderer->doc .= wl($id);
195 $renderer->doc .= '">';
199 $renderer->doc .= $heading;
201 $renderer->doc .= $id;
204 $renderer->doc .= $id;
207 $renderer->doc .= '</a></td><td>';
208 $renderer->doc .= '<strong>'.$state. '</strong> ';
212 $renderer->doc .= $this->getLang('by'). ' ' . $user['name'];
214 $renderer->doc .= '</td><td>';
215 $renderer->doc .= '<a href="' . wl($id) . '">' . dformat($date) . '</a>';;
216 $renderer->doc .= '</td><td>';
220 $renderer->doc .= $user['name'];
222 $renderer->doc .= $approver;
225 $renderer->doc .= '---';
227 $renderer->doc .= '</td></tr>';
232 $renderer->doc .= '<tr><td><strong>';
233 $renderer->doc .= $this->getLang('all_approved_ready');
234 $renderer->doc .= '</strong></td>';
236 $renderer->doc .= '<td colspan="3">';
241 $renderer->doc .= $all_approved_ready . ' / ' . $all . sprintf(" (%.0f%%)", $percent);
242 $renderer->doc .= '</td></tr>';
245 $renderer->doc .= '<tr><td><strong>';
246 $renderer->doc .= $this->getLang('all_approved');
247 $renderer->doc .= '</strong></td>';
249 $renderer->doc .= '<td colspan="3">';
254 $renderer->doc .= $all_approved . ' / ' . $all . sprintf(" (%.0f%%)", $percent);
255 $renderer->doc .= '</td></tr>';
258 $renderer->doc .= '</table>';