本文整理汇总了PHP中qa_html_theme_base::main方法的典型用法代码示例。如果您正苦于以下问题:PHP qa_html_theme_base::main方法的具体用法?PHP qa_html_theme_base::main怎么用?PHP qa_html_theme_base::main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::main方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main
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();
}
}
示例2: 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();
}
示例3: 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();
}
}