Lines Matching refs:opt
53 final public function renderAsHtml(string $layout, $sorted_results, $opt, $count) argument
55 $this->snippet_cnt = $opt['snippet']['count'];
57 return $this->$render_type($sorted_results, $opt, $count);
93 * @param array $opt all user options/settings
99 final public function buildSortingArray(array $ids, array $opt): array argument
114 $from_title = isset($opt['sort']['title']);
117 $get_abstract = ($opt['snippet']['type'] !== 'none');
120 $extrakeys = array_diff_key($opt['filter'], $opt['sort']);
121 $col_keys = array_merge($opt['sort'], $extrakeys);
228 … $wformat[$key] = ($opt['spelldate']) ? $this->dateFormatWords($dformat[$key]) : '';
242 $display = $opt['display'];
267 $value = utf8_encode(strftime($opt['dformat'], $value));
287 foreach ($opt['sort'] as $key => $value) {
328 if ($opt['casesort']) {
330 $type = ($opt['natsort']) ? self::MSORT_NAT : self::MSORT_STRING;
333 $type = ($opt['natsort']) ? self::MSORT_NAT_CASE : self::MSORT_STRING_CASE;
786 * @param array $opt
790 protected function renderAsHtmltable($sorted_results, $opt, $count): string argument
798 …$multi_col = $opt['cols'] > 1; // single columns are displayed without tables (better for …
799 $col_height = $this->adjustedHeight($sorted_results, $ratios) / $opt['cols'];
801 $width = floor(100 / $opt['cols']);
808 $outer_border = ($opt['border'] === 'outside' || $opt['border'] === 'both') ? 'border' : '';
809 $inner_border = ($opt['border'] === 'inside' || $opt['border'] === 'both') ? 'border' : '';
815 if (!empty($opt['fontsize'])) {
816 $fontsize = 'font-size:' . $opt['fontsize'];
818 if ($opt['bullet'] !== 'none') {
819 $list_style = 'list-style-position:inside;list-style-type:' . $opt['bullet'];
821 $can_indent = $opt['group'];
826 if ($opt['showcount'] === true) {
829 if ($opt['label'] !== '') {
830 $render .= '<h1 class="title">' . $opt['label'] . '</h1>' . DOKU_LF;
852 if ($can_start_col === false && $col < $opt['cols'] && $cur_height >= $col_height) {
891 if ($opt['nstitle'] && !empty($display)) {
894 if ($opt['proper'] === 'header' || $opt['proper'] === 'both') {
898 $heading = $this->htmlWikilink($id, $heading, '', $opt, false, true);
911 if ($opt['proper'] === 'name' || $opt['proper'] === 'both') {
914 $link = $this->htmlWikilink($id, $display, $abstract, $opt);
925 if ($opt['hidejump'] === false) {
967 * @param array $opt
975 array $opt, argument
981 $type = $opt['snippet']['type'];
990 $short = $this->shorten($abstract, $opt['snippet']['extent']);
1005 $border = ($opt['underline']) ? 'border' : '';
1077 * @param array $opt
1082 protected function renderAsHtmlcolumn(array $sorted_results, array $opt, int $count): string argument
1090 $fontsize = (empty($opt['fontsize'])) ? '' : 'font-size:' . $opt['fontsize'];
1091 $outer_border = ($opt['border'] === 'outside' || $opt['border'] === 'both') ? 'border' : '';
1092 … $inner_border = ($opt['border'] === 'inside' || $opt['border'] === 'both') ? 'inner-border' : '';
1093 …$show_count = ($opt['showcount'] === true) ? '<div class="count">' . $count . ' ∞</div>' . DOKU_…
1094 …$label = ($opt['label'] !== '') ? '<h1 class="title">' . $opt['label'] . '</h1>' . DOKU_LF …
1095 $show_jump = ($opt['hidejump'] === false) ? '<a class="top" href="#' . $top_id . '">'
1097 $list_style = ($opt['bullet'] !== 'none') ? 'list-style-position:inside;list-style-type:'
1098 . $opt['bullet'] : '';
1101 $can_indent = $opt['group'];
1124 if ($opt['nstitle'] && !empty($display)) {
1127 if ($opt['proper'] === 'header' || $opt['proper'] === 'both') {
1131 $heading = $this->htmlWikilink($id, $heading, '', $opt, false, true);
1144 if ($opt['proper'] === 'name' || $opt['proper'] === 'both') {
1147 $link = $this->htmlWikilink($id, $display, $abstract, $opt);