forked from gurjyot/Welcome-Widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqa-welcome-widget.php
39 lines (32 loc) · 1.41 KB
/
qa-welcome-widget.php
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
<?php
class qa_welcome_widget {
function allow_template($template)
{
return true;
}
function allow_region($region)
{
return ($region == 'full');
}
function output_widget($region, $place, $themeobject, $template, $request, $qa_content)
{
$themeobject->output('<div class="ww-wrapper">
<div class="ww-icons-wrapper">
<p id="ww-heading">'.qa_opt('ww_header_message').'</p>
<table class="ww-box">
<tr>
<td class="ww-first-block"><i class="fa fa-question-circle" aria-hidden="true"></i>
<p>'.qa_opt('ww_first_button_message').'</p>
<p><a href="'.qa_opt('site_url').'ask" class="ww-button">'.qa_lang_html('plugin_ww/first_button').'</a></p></td>
<td class="ww-second-block"><i class="fa fa-comment" aria-hidden="true"></i>
<p>'.qa_opt('ww_second_button_message').'</p>
<p><a href="'.qa_opt('site_url').'questions" class="ww-button">'.qa_lang_html('plugin_ww/second_button').'</a></p></td>
<td class="ww-third-block"><i class="fa fa-thumbs-up" aria-hidden="true"></i>
<p>'.qa_opt('ww_thrid_button_message').'</p>
<p><a href="'.qa_opt('site_url').'hot" class="ww-button">'.qa_lang_html('plugin_ww/third_button').'</a></p></td>
</tr>
</table>
</div>
</div>');
}
}