function main() { if ($this->request == 'widgets') { $content = $this->content; $this->output('<div class="qa-main theme-widgets clearfix"><div class="col-sm-12">'); $this->output('<h1 class="page-title">', $this->content['title'], '</h1>'); $this->main_parts($content); $this->output('</div></div> <!-- END qa-main -->', ''); } else { qa_html_theme_base::main(); } }
public function main() { foreach ($this->content as $key => $part) { if (strpos($key, 'q_list') === 0) { $this->queue_raw_posts_voters_flaggers(@$part['qs']); } elseif (strpos($key, 'q_view') === 0) { $this->queue_post_voters_flaggers($part['raw']); $this->queue_raw_posts_voters_flaggers($part['c_list']['cs']); } elseif (strpos($key, 'a_list') === 0) { if (!empty($part)) { $this->queue_raw_posts_voters_flaggers($part['as']); foreach ($part['as'] as $a_item) { $this->queue_raw_posts_voters_flaggers(@$a_item['c_list']['cs']); } } } } qa_html_theme_base::main(); }
function main() { if ($this->is_print_view) { unset($this->content['favorite']); $content = $this->content; $this->output('<DIV CLASS="qa-main' . (@$this->content['hidden'] ? ' qa-main-hidden' : '') . '">'); if (function_exists('qa_register_plugin_phrases')) { $this->page_title_error(); } else { $this->page_title(); } if (isset($content['main_form_tags'])) { $this->output('<FORM ' . $content['main_form_tags'] . '>'); } $this->main_parts($content); if (isset($content['main_form_tags'])) { $this->output('</FORM>'); } $this->output('</DIV> <!-- END qa-main -->', ''); } else { qa_html_theme_base::main(); } }