<?php $__env->startSection("content"); ?>
        <!--start contain -->
    <div class="col-md-12 look_container" style="padding-bottom:100px;">    
        <div class="col-md-10 col-md-offset-1">
            <div class="row">
                <div class="col-md-3 page_title" style="padding-right:40px;">
                    <h2>LOOKER</h2><h2 style="margin-top:-10px;">INFO</h2>
                </div>


                <div class="col-md-6 text-center">
                    <div style="margin:30px 0px;">
                            <a href="#" >
                                <?php echo HTML::image($looker->photo,"",['class'=>"img-circle",'style'=>'width:100px;height:100px']); ?>

                            </a>
                            <h1 style="clear:both;"><?php echo $looker->name; ?></h1>
                            <a class="" style="margin-bottom:15px;" href="#"><img style="margin-bottom: 2px;" height="16" src="<?php echo asset('images/icons/icon_like_on.png'); ?>" /><span class="like_count"><?php echo $looker->like_num; ?></span></a>



                    </div>


                    <div class="col-md-12">
                        <?php echo $looker->description; ?>

                        <br>
                        
                       <div id="buynow" class="col-xs-4" style="margin-top:40px;">
                        <?php if($looker->buy_now != ""): ?>
                        <a class="info_btn" onclick="action('goShop','LOOKER','<?php echo $looker->id; ?>')" href="<?php echo $looker->buy_now; ?>" target="_blank"><img style="margin-bottom: 2px;" height="34" src="<?php echo asset('images/icons/icon_store.png'); ?>" /><span class="like_count_button liked">SERVICE</span></a>   
                        <?php endif; ?>
                       </div>
                       <div id="website" class="col-xs-4" style="margin-top:40px;">
                        <?php if($looker->website != ""): ?>
                        <a class="info_btn" onclick="action('goWeb','LOOKER','<?php echo $looker->id; ?>')" href="<?php echo $looker->website; ?>"target="_blank"><img style="margin-bottom: 2px;" height="34" src="<?php echo asset('images/icons/icon_website.png'); ?>" /><span class="like_count_button">WEBSITE</span></a>                           
                        <?php endif; ?>
                       </div>
                       <div id="location" class="col-xs-4" style="margin-top:40px;">
                        <?php if($looker->location != ""): ?>
                        <a class="info_btn" onclick="action('goStore','LOOKER','<?php echo $looker->id; ?>')" href="<?php echo $looker->location; ?>" target="_blank"><img style="margin-bottom: 2px;" height="34" src="<?php echo asset('images/icons/icon_location.png'); ?>" /><span class="like_count_button">LOCATION</span></a>
                        <?php endif; ?>  
                       </div>

                       <br>
                       <br>
                            <div class="col-md-12" >
                            <?php if($isfollow): ?>
                            <a onclick="return (chk_login());" href="<?php echo URL::to('admin/front/actions/LOOKER/'.$looker->id.'/FOLLOW/'.$looker->id); ?>" class="btn btn-default social_btn actived" style="margin-top:40px;clear:both;">
                               Followed
                            <?php else: ?>    
                            <a onclick="return (chk_login());" href="<?php echo URL::to('admin/front/actions/LOOKER/'.$looker->id.'/FOLLOW/'.$looker->id); ?>" class="btn btn-default social_btn unactive" style="margin-top:40px;clear:both;">
                               + Follow
                            <?php endif; ?>
                            </a>
                            </div>

                            <div class="col-md-12 social_link" style="margin-top:40px;clear:both;">
                                <?php if($looker->Facebook_url != ""): ?>
                                <a href="<?php echo $looker->Facebook_url; ?>"><img src="<?php echo asset('images/icons/icon_fb_02.png'); ?>"></a><?php endif; ?>
                                <?php if($looker->Instagram_url != ""): ?>
                                <a href="<?php echo $looker->Instagram_url; ?>"><img src="<?php echo asset('images/icons/icon_instagram.png'); ?>"></a><?php endif; ?>
                                <?php if($looker->Youtube_url != ""): ?>
                                <a href="<?php echo $looker->Youtube_url; ?>"><img src="<?php echo asset('images/icons/icon_youtube.png'); ?>"></a><?php endif; ?>
                            </div>

                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-12 looker_info_ban">
        <div class="col-md-4 col-md-offset-4 text-center">

            <div class="col-xs-6 left_wave">
                <a href="#post_tab" id ="posts_tab" ><p>Posts</p>
                <h2><?php echo $video_num; ?></h2>
		</a>
            </div>
            <div id="follower" class="col-xs-6">
                <a href="#follow_tab"  id="followers_tab">
		<p>Followers</p>
                <h2><?php echo $looker->follow_num; ?></h2>
		</a>
            </div>

        </div>
    </div>

        <!--end looker contain -->

        <div class="col-md-12 comments look_container">
            <div class="col-md-10 col-md-offset-1">

            <div class="col-md-10 col-md-offset-1 page_title" style="padding-bottom:20px;">
                <!--article-->
	<div id="articles">
        <?php foreach($articles as $article): ?>

            <?php if($_FRONTCONST["COL_COUNT"] % 3 ==1): ?>
            <div class="row">
            <?php endif; ?>

                <div class="window col-md-4">
                          <div class="post">
                            <div>
                                <div class="col-xs-2 narrow">
                                <a href="<?php echo URL::to('admin/front/lookerinfo/'.$article->blogger_id); ?>">
                                     <?php echo HTML::image($article->blogger_img,"",['class' => "media-object img-circle img-responsive",'style'=>'width:50px;height:50px']); ?>

                                    <!--img class="media-object img-circle" src="../../images/head.jpg"-->
                                </a>

                                </div>
                                <div class="col-xs-6 narrow">
                                    <div style="margin-left:7px;">
                                        <p class="looker_name media-heading"><?php echo $article->blogger_name; ?></p>
                                        <p class="post_date"><?php echo date("d M Y",strtotime($article->created_at)); ?></p>
                                    </div>

                                </div>
                                <div class="col-xs-4 narrow">
                                    <a class='like' onclick="oneAction('ARTICLE','<?php echo $article->id; ?>','LIKE','<?php echo $article->blogger_id; ?>');" <?php /* href="<?php echo URL::to('admin/article/like/'.$article->id.'/'.$article->blogger_id); ?>"*/ ?>>
                                    <img id = "ARTICLE_<?php echo $article->id; ?>" style="margin-bottom: 2px;" height="16" onload="islike(<?php echo $article->id; ?>)" src="<?php echo asset('images/icons/icon_like_off.png'); ?>"/>
                                    <span class="like_count" id="like_<?php echo $article->id; ?>"><?php echo $article->likes; ?></span>

                                </div>
                            </div>

                                    <a href="<?php echo URL::to('admin/front/video/'.$article->id); ?>">
                            <h2 class="post_title"><?php echo $article->title; ?></h2>
                                    </a>

                                    <a href="<?php echo URL::to('admin/front/video/'.$article->id); ?>">
                           <div class="screen">
                                <div class="product">
                                    <?php echo HTML::image($article->img_path,"",['style'=>'width:100%;height:100%']); ?>


                                     <img class="newest_post" src="<?php echo asset('images/icons/new_bg.png'); ?>">
                                    <!--img src="../../images/product.jpg"-->
                                </div>
                                <div class="cover">
                                    <img style="margin-top: 45%;" src="<?php echo asset('images/icons/logo_white.png'); ?>" />
                                </div>
                            </div>
                                    </a>
                          </div>
                        </div>
<!---->
		<?php if($_FRONTCONST["COL_COUNT"] % 3 ==0 || $_FRONTCONST["COL_COUNT"] == count($articles)): ?>
	            </div><br>
		<?php endif; ?>
		<?php $_FRONTCONST["COL_COUNT"]++; ?>
		<?php endforeach; ?>
                <!-- end foreach-->

		<?php if($load_start != 'all'): ?>
	        <div class="col-xs-12 text-center more">
        	    <a href="<?php echo URL::to('admin/front/lookerinfo/'.$looker->id.'/'.$load_start); ?>"><span class="more">LOOOK</span></a>
	        </div>
		<?php endif; ?>
	</div> <!--id = article-->
<!--end all article-->
        
        <!-- follower -->
	<div id="follower" class="col-md-12">
	<div id="follower2">
		<?php foreach($followers as $follower): ?>	
		<div class="follower_list text-center">
			 <a href="#">
			<?php echo HTML::image($follower->img_path,"",['class' => "img-circle",'style'=>'width:100%;']); ?>

			</a>
                </div>
		<?php endforeach; ?>
            </div>
       </div>
        <!-- end follow -->
            </div>

        </div>
            
        </div>
        <!-- stop contain -->
<script>
function action(action,thisObject,object_id){
	location_url = "<?php echo URL::to('admin/front/actions'); ?>"+"/"+thisObject+"/"+object_id+"/"+action+"/"+object_id;
//	window.location.assign(location_url);
	$.get(location_url,{},function(isOK){
		if(isOK ==1)
			return true;
	});	
}
</script>
<script>
$(function(){
$('#follower2').fadeOut();
});
	$("#posts_tab").click(function(){
		$('#articles').fadeIn();
		$('#follower2').fadeOut();
	});	
	$("#followers_tab").click(function(){
		$('#articles').fadeOut();
		$('#follower2').fadeIn();
	});	
</script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('layout.basic_front', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>