本文整理匯總了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);
}