Source

hackerhub / profile.php

<?php include "left.php" ?>
	<div id="wrap">
		<div id="sidebar">
			<?php if($profile_data->settings->avatar): ?><img width="128" src="<?php echo $profile_data->settings->avatar ?>" id="avatar"><?php endif ?>
			<?php if($profile_data->settings->name): ?><h2><?php echo $profile_data->settings->name ?></h2><?php endif ?>
			<ul>
				<?php foreach($profile_data->content as $key => $val): ?>
					<li>
						<a href="/<?php echo $key ?>"><?php echo $val->title ? $val->title : $key ?></a>
					</li>
				<?php endforeach ?>
			</ul>
			<?php if($profile_data->settings->showtwitter): ?>
			<p>
				<a href="http://twitter.com/<?php echo $profile_data->settings->twitteruser ?>" class="twitter-follow-button" data-button="grey" data-text-color="#FFFFFF" data-link-color="#00AEFF" data-show-count="false">Follow @<?php echo $profile_data->settings->twitteruser ?></a>
				<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
			</p>
			<?php endif ?>
		</div>
		
		<div id="center">
			<?php
			switch($content_data->type){
			
				case "rss": include("rss.php");
				break;
				case "atom": include("atom.php");
				break;
				case "blog":
					if($get_data[1]) include("blog_post.php");
					else include("blog.php");
				break;
				case "twitter":
					include("twitter.php");
				break;
				default: echo getDataFromUrl($content_data->content);
			}
			?>
		</div>
	</div>
<script type="text/javascript">
$(function(){
	$("pre > code").addClass("prettyprint");
	prettyPrint();
});
</script>
<?php include "right.php" ?>