本文整理汇总了PHP中qa_html_theme_base::q_view_content方法的典型用法代码示例。如果您正苦于以下问题:PHP qa_html_theme_base::q_view_content方法的具体用法?PHP qa_html_theme_base::q_view_content怎么用?PHP qa_html_theme_base::q_view_content使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::q_view_content方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: q_view_content
function q_view_content($q_view)
{
if (qa_opt('embed_smileys') && isset($q_view['content'])) {
$q_view['content'] = $this->smiley_replace($q_view['content']);
}
qa_html_theme_base::q_view_content($q_view);
}
示例2: q_view_content
function q_view_content($q_view)
{
if (isset($q_view['content'])) {
$q_view['content'] = $this->embed_replace($q_view['content']);
}
qa_html_theme_base::q_view_content($q_view);
}
示例3: q_view_content
function q_view_content($q_view)
{
$this->signatures = array();
if (qa_opt('signatures_enable')) {
qa_db_query_sub('CREATE TABLE IF NOT EXISTS ^usersignatures (' . 'userid INT(11) NOT NULL,' . 'signature VARCHAR (1000) DEFAULT \'\',' . 'format VARCHAR (20) DEFAULT \'\',' . 'id INT(11) NOT NULL AUTO_INCREMENT,' . 'UNIQUE (userid),' . 'PRIMARY KEY (id)' . ') ENGINE=MyISAM DEFAULT CHARSET=utf8');
$result = qa_db_read_all_assoc(qa_db_query_sub('SELECT BINARY signature AS signature, userid,format FROM ^usersignatures'));
foreach ($result as $user) {
if ($user['signature']) {
$informat = $user['format'];
if (!$informat && qa_opt('signatures_html')) {
$informat = 'html';
}
$viewer = qa_load_viewer($user['signature'], $informat);
global $options;
$signature = $viewer->get_html($user['signature'], $informat, array('blockwordspreg' => @$options['blockwordspreg'], 'showurllinks' => @$options['showurllinks'], 'linksnewwindow' => @$options['linksnewwindow']));
$this->signatures['user' . $user['userid']] = $signature;
}
}
if (qa_opt('signatures_q_enable') && @$this->signatures['user' . $q_view['raw']['userid']]) {
if (!isset($q_view['content'])) {
$q_view['content'] = '';
}
$q_view['content'] .= $this->signature_output($q_view['raw']['userid']);
}
}
qa_html_theme_base::q_view_content($q_view);
}
示例4: q_view_content
function q_view_content($q_view)
{
if (qa_opt('buddypress_integration_enable') && qa_opt('buddypress_mentions') && isset($q_view['content'])) {
$q_view['content'] = bp_activity_at_name_filter($q_view['content']);
}
qa_html_theme_base::q_view_content($q_view);
}