{if $editor_picks}
{include_template_file file="blocks/editor_pick/video_block.html" video=$editor_picks.0}
{foreach $editor_picks as $video}
{include_template_file file='blocks/editor_pick/index_featured_video.html' video=$video first=$video@first}
{/foreach}
{else}
There is no video in editor's pick, Please Add Videos In Editor's Pick
Videos Manager > Add to editor's pick
{/if}
{$videos=get_videos(['limit'=>16])}
{if $videos}
{$heading='Latest Videos'}
{$more_mode='recent'}
{/if}
{if $videos}
{foreach $videos as $video}
{if $video@first || $open_tag=='true'}
{$open_tag=''}
{/if}
{include_template_file file='blocks/video.html' video=$video display_method='index_videos'}
{if $video@iteration % 4 == 0 || $video@last}
{$open_tag='true'}
{/if}
{/foreach}
‹
›
{/if}
Being Watched
{$last_viewed=get_videos(['limit'=>'8','order'=>' last_viewed DESC'])}
{if $last_viewed}
{/if}
{$featured_videos=get_videos(['limit'=>8,'featured'=>'yes'])}
{if $featured_videos}
{lang code='Featured Videos'} More Videos
{foreach $featured_videos as $ftvideo}
{$vthumbs=get_thumb($ftvideo,'default',true,false,true,true)}
{*get only big from array start*}
{$vvthumbs=array()}
{foreach $vthumbs as $vthumb}
{if strpos($vthumb,'big') !== false}
{$vvthumbs[]=$vthumb}
{/if}
{/foreach}
{$vthumbs=$vvthumbs}
{*get only big from array end*}
{$total_thumbs=count($vthumbs)}
{if $ftvideo@first || $open_tag=='true'}
{$open_tag=''}
{/if}
{/foreach}
‹
›
{/if}
{AD place='ad_468x60'}
{$photos=get_photos(['limit'=>9])}
{if $photos}
{$heading='Latest Photos'}
{$more_mode='recent'}
{/if}
{if $photos}
{foreach $photos as $photo}
{include_template_file file="blocks/photo.html" photo=$photo display_method="index_photos" iteration=$photo@iteration last=$photo@last first=$photo@first}
{/foreach}
{/if}