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

<script type="text/javascript">	
	$(document).ready(function () {
		$('#contents_nav li').click(function () {
			$('#contents_nav li').removeClass('click');
			
			$('div.tpage').hide();
			$('div.tpage._contents' + $(this).attr('class')).show();
			
			if ($('div.tpage._contents' + $(this).attr('class')).find('ul').html() == '')
			{
				switch ($(this).attr('class'))
				{
					case '_focus':
						mobile_more_load(GET_BASE_URL + '/home/ajax/index_actions/type-all__uid-' +  GET_USER_ID + '__template-mobile__filter-focus', $('#io_focus_more'), $('#c_focus_list'));
					break;
				}
			}
			
			$(this).addClass('click');
		});
		
		mobile_more_load(GET_BASE_URL + '/home/ajax/index_actions/type-all__template-mobile', $('#all-more'), $('#c_all_list'));
	});
</script>

<div class="home">
  
    <div class="h_title">
    <div class="pic"></div>Latest post
    </div>

    <div class="con">
    	<div class="tpage _contents_actions" style="display:block;">
    		<ul id="c_all_list"></ul>
            <div class="more" id="all-more">More</div>
         </div>
         
         <div class="tpage _contents_focus">
	         <ul id="c_focus_list"></ul>
             <div class="more" id="io_focus_more">More</div>
         </div>
         
       <!--  <div class="taste">
	         <div class="title">Possibly interested people or topic</div>
	         <ul>
	         	<?php foreach($this->sidebar_recommend_users_topics AS $key => $val) { ?>
		        <li>
		        <?php if ((isset($val['topic_id'])) && ($val['topic_id'] > 0)) { ?>	
			        <div><a href="mobile/topic/<?php echo rawurlencode($val['topic_title']); ?>"><img src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>" width="30" height="30" /></a></div>
			        <div class="sub" onclick="focus_topic($(this), $(this), <?php echo $val['topic_id']; ?>);">Follow</div>
			        <div class="ti"><a href="mobile/topic/<?php echo rawurlencode($val['topic_title']); ?>"><span class="tag" style="margin:0px;"><?php echo utf8_substr($val['topic_title'], 0, 10, 'UTF-8', '...'); ?></span></a>
			        <?php if ($val['focususers']['user_name']) { ?>
			        <br/><span class="time"><a href="mobile/people/<?php echo rawurlencode($val['focususers']['user_name']);?>"><?php echo $val['focususers']['user_name'];?></a> attention is also the topic</span>
			        <?php } ?>
			        </div>
			     <?php } else { ?>
			        <div><a href="mobile/topic/<?php echo rawurlencode($val['topic_title']); ?>"><img src="<?php echo get_topic_pic_url('mid', $val['topic_pic']); ?>" width="30" height="30" /></a></div>
			        <div class="sub" onclick="follow_people($(this), $(this), <?php echo $val['uid'];?>);">Follow</div>
			        <div class="ti"><a href="mobile/people/<?php echo $val['url_token']; ?>"><span class="name"><?php echo $val['user_name']; ?></span></a>
			        <?php if ($val['rtype']['type'] == 'friend') { ?>
			        	<br/><span class="time"><a href='mobile/people/<?php echo rawurlencode($val['friend_users']['user_name']);?>' onMouseOver="eventsMouseM(this);" rel="<?php echo $val['friend_users']['uid'];?>"><?php echo $val['friend_users']['user_name'];?></a> followed her/him</span>
			        <?php } else if ($val['rtype']['type'] == 'topic') { ?>
			        	<br/><span class="time">She/he also followed &nbsp; <a href='mobile/topic/<?php echo rawurlencode($val['topic_info']['topic_title']);?>'><?php echo $val['topic_info']['topic_title'];?></a></span>
			        <?php } ?>
			        </div>
			        <?php } ?>
			    </li> 
			    <?php } ?>                 
			 </ul>
			 </div>
         </div>
</div>-->

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