本文整理汇总了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);