-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathqa-admanager-layer.php
More file actions
69 lines (55 loc) · 1.66 KB
/
qa-admanager-layer.php
File metadata and controls
69 lines (55 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
class qa_html_theme_layer extends qa_html_theme_base {
//ad after question, just before answers
function q_view($q_view)
{
qa_html_theme_base::q_view($q_view);
if (qa_opt('pt_q2a_ad_after_question'))
{
$this->output(qa_opt('pt_q2a_ad_after_question_codebox'));
}
}
// End of q_view()
//ad after menu navigation bar, just after horizontal line.
function header()
{
qa_html_theme_base::header();
if (qa_opt('pt_q2a_ad_after_menu_bar'))
{
$this->output(qa_opt('pt_q2a_ad_after_menu_bar_codebox'));
}
}
// End of header()
//ad after all answers, just before related questions
function a_list($a_list)
{
qa_html_theme_base::a_list($a_list);
if (qa_opt('pt_q2a_ad_after_all_answers'))
{
$this->output(qa_opt('pt_q2a_ad_after_all_answers_codebox'));
}
}
// end of a_list()
//ad after all questions
function q_list_and_form($q_list)
{
qa_html_theme_base::q_list_and_form($q_list);
if (qa_opt('pt_q2a_ad_after_all_questions'))
{
$this->output(qa_opt('pt_q2a_ad_after_all_questions_codebox'));
}
}
// end of q_list_and_form()
function sidebar()
{
qa_html_theme_base::sidebar();
if (qa_opt('pt_q2a_ad_sidebar'))
{
$this->output(qa_opt('pt_q2a_ad_sidebar_codebox'));
}
}
// End of sidebar()
}
/*
Omit PHP closing tag to help avoid accidental output
*/