<?php TPL::output('global/header.tpl.htm'); ?>

  <div class="tny-basic main tny-clear allbg">
    <div class="tny-left lsidebar">
         
      <!--New notificationsSTART-->
      <div class="new_notice" id="index_notification"<?php if (!$this->user_info['notification_unread']) { ?> style="display:none"<?php } ?>>
        <h3><span class="tny-right p_sx" style="margin:0; line-height:15px;"><a href="account/setting/privacy/#notifications" class="p_set tny-small" title="Notification setting">Notification setting</a></span>New notifications<em class="mtooltipb" name="notification_unread_num"><?php echo $this->user_info['notification_unread'];?></em></h3>
        <ul class="new_ls" id="notification_list"></ul>
        <ul class="new_ls">
          <li><a href="notifications/" class="btn-blue tny-right">View all</a><a href="javascript:;" onclick="read_notification(0, false, false);" class="btn-gray">I know</a></li>
        </ul>
      </div>
      <!--New notificationsEND-->

	  <!-- Latest post -->
	  <a name="c_contents"></a>
	  <div class="b_restrain">
        <h4  class="tny-gloCor trends-H3 content-H3"><a class="default_gray_but v_more tny-right btn-blue x" id="delete_draft" href="javascript:;" style="display:none;" onclick="if (confirm('Confirm all drafts you empty?')) { $.each($('.delete_draft'), function (i, e) { $(e).click(); }); }" >Clear all</a><b><span id="c_title">Latest post</span></b></h4>
	    <div id="c_list"></div>

	    <p id="io_more"><a class="ajax-more" href="javascript:;">Show More</a></p>
	  </div>
	</div>

    <div class="rsidebar tny-index">

		<!--Notice START-->
		<?php TPL::output('block/sidebar_announce.tpl.htm'); ?>	
		<!--Notice START-->

		<?php TPL::output('block/sidebar_menu.tpl.htm'); ?>	
		
		<div class="rightMain">
        <!--Invite friends to site-->
        <p class="unityjoin">Invite friends to site<?php if ($this->user_info['invitation_available']) { ?><em class="mtooltips"><?php echo $this->user_info['invitation_available']; ?></em><?php } ?> <a href="invitation/" class="btn-blue" title="Send invitation »">Send invitation</a> </p>
        
        <!-- People may be interested in the topic or sidebar -->
		<?php TPL::output('block/sidebar_recommend_users_topics.tpl.htm'); ?>
      </div>
    </div>
  </div>

<?php if ($_GET['first_login']) { ?>
<style type="text/css">
	@import url('<?php echo GET_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/indexInfo.css');
</style>

<script type="text/javascript">
$(document).ready(function () {
	$.get(GET_BASE_URL+'/account/ajax/welcome_message_template/', function (template) {
		$('#ajax_data').html(template);
		
		welcome_step_1_load();
	});
});
</script>
<?php } ?>

<?php TPL::output('global/footer.tpl.htm'); ?>