Example #1
0
	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);
Example #2
0
?>
/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);