Lines Matching refs:conf

247     public function xhtml_list($conf, &$renderer=null, $templatetype='list'){  argument
248 $posts = $this->get_posts($conf);
256 if($conf['listwrap']) echo "<ul class=\"blogtng_$templatetype\">";
259 $this->tpl_content($conf['tpl'], $templatetype);
261 if($conf['listwrap']) echo '</ul>';
275 public function xhtml_tagsearch($conf, &$renderer=null){ argument
276 if (count($conf['tags']) == 0) {
280 return $this->xhtml_list($conf, $renderer, 'tagsearch');
288 public function xhtml_pagination($conf){ argument
292 $this->sqlitehelper->getDB()->quote_and_join($conf['blog'],
295 if(count($conf['tags'])){
297 $this->sqlitehelper->getDB()->quote_and_join($conf['tags'],
311 if($count <= $conf['limit']) return '';
317 $lastpage = ceil($count/$conf['limit']);
318 $currentpage = floor($conf['offset']/$conf['limit'])+1;
343 $out .= '<a href="'.wl($conf['target'],
344 ['pagination-start'=>$conf['limit']*($currentpage-2),
345 'post-tags'=>join(',',$conf['tags'])]).
357 $out .= '<a href="'.wl($conf['target'],
358 ['pagination-start'=>$conf['limit']*($page-1),
359 'post-tags'=>join(',',$conf['tags'])]).
366 $out .= '<a href="'.wl($conf['target'],
367 ['pagination-start'=>$conf['limit']*($currentpage),
368 'post-tags'=>join(',',$conf['tags'])]).
382 public function xhtml_related($conf){ argument
384 $this->tpl_related($conf['limit'],$conf['blog'],$conf['page'],$conf['tags']);
396 public function xhtml_newform($conf){ argument
403 $new = $this->toolshelper->mkpostid($conf['format'],'dummy');
407 if ($conf['title']) {
409 $form->addElement(hsc($conf['title']));
412 if (isset($conf['select'])) {
413 …enuField('new-title', helper_plugin_blogtng_tools::filterExplodeCSVinput($conf['select']), '', $th…
417 if ($conf['tags']) {
418 …if($conf['tags'][0] == '?') $conf['tags'] = helper_plugin_blogtng_tools::filterExplodeCSVinput($th…
419 …$form->addElement(form_makeTextField('post-tags', implode(', ', $conf['tags']), $this->getLang('ta…
421 if ($conf['type']) {
422 if($conf['type'][0] == '?') $conf['type'] = $this->getConf('default_commentstatus');
423 …m_makeMenuField('post-commentstatus', ['enabled', 'closed', 'disabled'], $conf['type'], $this->get…
428 $form->addHidden('new-format', hsc($conf['format']));
429 $form->addHidden('post-blog', hsc($conf['blog'][0]));
774 * @param array $conf
784 public function get_posts($conf) { argument
787 $sortkey = ($conf['sortby'] == 'random') ? 'Random()' : $conf['sortby'];
790 if(count($conf['blog']) > 0) {
791 …$blog_query = '(blog = ' . $this->sqlitehelper->getDB()->quote_and_join($conf['blog'], ' OR blog =…
795 if(count($conf['tags'])) {
797 if(count($conf['blog']) > 0) {
800 …$tag_query .= ' (tag = ' . $this->sqlitehelper->getDB()->quote_and_join($conf['tags'], ' OR tag = …
812 ORDER BY '.$sortkey.' '.$conf['sortorder'].
813 ' LIMIT '.$conf['limit'].
814 ' OFFSET '.$conf['offset'];
844 global $ID, $TOC, $conf;
862 $backupTocminheads = $conf['tocminheads'];
863 $conf['tocminheads'] = 1; // let the renderer always generate a toc
875 $conf['tocminheads'] = $backupTocminheads;