Source

hackerhub / blog.php

<?php 
if(!$content_data->content || !is_object($content_data->content)) {
	echo "This blog has no posts yet.";
	exit;
}
foreach($content_data->content as $key => $val):
?>
	<div>
		<small style='float:right; padding-top:4px;'><a href="<?php echo "$get_data[0]/$key" ?>"><?php echo $val->created ?></a></small>
		<?php
		switch($val->type){
			default: echo getDataFromUrl($val->content,true,true,"/$key");
			break;
		}
		?>
	</div>
	<small style='text-align:center;display:block;'><a href="http://<?php echo "$_SERVER[SERVER_NAME]/$get_data[0]/$key" ?>#disqus_thread" data-disqus-identifier="<?php echo str_replace("/", "_", "$get_data[0]/$key") ?>"></a></small>
	<hr>
<?php endforeach; ?>

<?php if($profile_data->settings->disqus_shortname): ?>
	<script type="text/javascript">
		/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
		var disqus_shortname = '<?php echo $profile_data->settings->disqus_shortname ?>'; // required: replace example with your forum shortname

		/* * * DON'T EDIT BELOW THIS LINE * * */
		(function () {
			var s = document.createElement('script'); s.async = true;
			s.type = 'text/javascript';
			s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
			(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
		}());
	</script>
<?php endif ?>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.