本文整理匯總了PHP中SiteHelper::content_html方法的典型用法代碼示例。如果您正苦於以下問題:PHP SiteHelper::content_html方法的具體用法?PHP SiteHelper::content_html怎麽用?PHP SiteHelper::content_html使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SiteHelper
的用法示例。
在下文中一共展示了SiteHelper::content_html方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
share_links = '<?php
echo SiteHelper::share_links("'+obj_json.urn+'", "'+obj_json.title+'");
?>
';
$('#subject_voting').html( '<?php
echo SiteHelper::subject_vote("'+obj_json.subject_id+'", "'+obj_json.likes+'", "'+obj_json.dislikes+'");
?>
');;
$('#share_links').html(share_links);
$('#submit_info').html(submit_info);
$('#perma_link').html('<a id="urn_link" title="' +obj_json.title +'" href="'+obj_json.permalink+'">[permalink]</a>');
$('#content_div_1').empty();//some times iframes or object elements stay inside, so clean it just in those rare cases
$('#content_div_1').html('<?php
echo SiteHelper::content_html("'+obj_json.content_html+'", "'+obj_json.user_comment+'");
?>
');
current_info = '<b>'+obj_json.country_name+'</b> | ';
//$("#comments_board").html("Waiting for comments");
$("#comments_title").attr("style", "");
$("#comments_title").html('Latest user comments:');
$("#comment_timer").attr("style", "");
$("#comment_timer").html('.. ..');
$('#frame_box').hide();
$("#header_title h1").html(current_title);
示例2:
?>
/mysub/'+obj_json.username_2+'">' + obj_json.username_2 + '</a> at '
+time_submitted.getHours()+':'+time_submitted.getMinutes()+' UTC';
share_html = '<?php
echo SiteHelper::share_links("'+obj_json.urn_2+'", "'+obj_json.title_2+'");
?>
';
cache_div_title = obj_json.title_2;
if($("#content_div_1").css("display") == 'none'){
$("#content_div_1").html( '<?php
echo SiteHelper::content_html("'+obj_json.content_html_2+'", "'+obj_json.user_comment_2+'", "'+submit_info+'", "'+share_html+'");
?>
');
}else{
$("#content_div_2").html( '<?php
echo SiteHelper::content_html("'+obj_json.content_html_2+'", "'+obj_json.user_comment_2+'", "'+submit_info+'", "'+share_html+'");
?>
');
}
cache_div_info = '<b>'+obj_json.country_name_2+'</b> UTC | ';
cache_display_time = obj_json.display_time_2;
}
if(reset_page == true){
$("#header_title h1").html(current_title);
$("#header_info").html(current_info);
$("#comment_textarea").attr('disabled',false);