Lines Matching refs:opt

52     final public function renderAsHtml(string $layout, $sorted_results, $opt, $count)
54 $this->snippet_cnt = $opt['snippet']['count'];
56 return $this->$render_type($sorted_results, $opt, $count);
95 * @param array $opt all user options/settings
101 final public function buildSortingArray(array $ids, array $opt): array
116 $from_title = isset($opt['sort']['title']);
119 $get_abstract = ($opt['snippet']['type'] !== 'none');
122 $extrakeys = array_diff_key($opt['filter'], $opt['sort']);
123 $col_keys = array_merge($opt['sort'], $extrakeys);
230 $wformat[$key] = ($opt['spelldate']) ? $this->dateFormatWords($dformat[$key]) : '';
244 $display = $opt['display'];
269 $value = utf8_encode(strftime($opt['dformat'], $value));
289 foreach ($opt['sort'] as $key => $value) {
330 if ($opt['casesort']) {
332 $type = ($opt['natsort']) ? self::MSORT_NAT : self::MSORT_STRING;
335 $type = ($opt['natsort']) ? self::MSORT_NAT_CASE : self::MSORT_STRING_CASE;
788 * @param array $opt
792 protected function renderAsHtmltable($sorted_results, $opt, $count): string
800 $multi_col = $opt['cols'] > 1; // single columns are displayed without tables (better for TOC)
801 $col_height = $this->adjustedHeight($sorted_results, $ratios) / $opt['cols'];
803 $width = floor(100 / $opt['cols']);
810 $outer_border = ($opt['border'] === 'outside' || $opt['border'] === 'both') ? 'border' : '';
811 $inner_border = ($opt['border'] === 'inside' || $opt['border'] === 'both') ? 'border' : '';
817 if (!empty($opt['fontsize'])) {
818 $fontsize = 'font-size:' . $opt['fontsize'];
820 if ($opt['bullet'] !== 'none') {
821 $list_style = 'list-style-position:inside;list-style-type:' . $opt['bullet'];
823 $can_indent = $opt['group'];
828 if ($opt['showcount'] === true) {
831 if ($opt['label'] !== '') {
832 $render .= '<h1 class="title">' . $opt['label'] . '</h1>' . DOKU_LF;
849 if ($can_start_col === false && $col < $opt['cols'] && $cur_height >= $col_height) {
888 if ($opt['nstitle'] && !empty($display)) {
891 if ($opt['proper'] === 'header' || $opt['proper'] === 'both') {
895 $heading = $this->htmlWikilink($id, $heading, '', $opt, false, true);
908 if ($opt['proper'] === 'name' || $opt['proper'] === 'both') {
911 $link = $this->htmlWikilink($id, $display, $abstract, $opt);
922 if ($opt['hidejump'] === false) {
964 * @param array $opt
972 array $opt,
978 $type = $opt['snippet']['type'];
987 $short = $this->shorten($abstract, $opt['snippet']['extent']);
1002 $border = ($opt['underline']) ? 'border' : '';
1074 * @param array $opt
1079 protected function renderAsHtmlcolumn(array $sorted_results, array $opt, int $count): string
1087 $fontsize = (empty($opt['fontsize'])) ? '' : 'font-size:' . $opt['fontsize'];
1088 $outer_border = ($opt['border'] === 'outside' || $opt['border'] === 'both') ? 'border' : '';
1089 $inner_border = ($opt['border'] === 'inside' || $opt['border'] === 'both') ? 'inner-border' : '';
1090 $show_count = ($opt['showcount'] === true) ? '<div class="count">' . $count . ' ∞</div>' . DOKU_LF : '';
1091 $label = ($opt['label'] !== '') ? '<h1 class="title">' . $opt['label'] . '</h1>' . DOKU_LF : '';
1092 $show_jump = ($opt['hidejump'] === false) ? '<a class="top" href="#' . $top_id . '">'
1094 $list_style = ($opt['bullet'] !== 'none') ? 'list-style-position:inside;list-style-type:'
1095 . $opt['bullet'] : '';
1098 $can_indent = $opt['group'];
1121 if ($opt['nstitle'] && !empty($display)) {
1124 if ($opt['proper'] === 'header' || $opt['proper'] === 'both') {
1128 $heading = $this->htmlWikilink($id, $heading, '', $opt, false, true);
1141 if ($opt['proper'] === 'name' || $opt['proper'] === 'both') {
1144 $link = $this->htmlWikilink($id, $display, $abstract, $opt);