<%~if $config.featured_photos%><%set featured_photo_video_loop = Plugins::UI::fetch_links(ids => $config.featured_photos)%><%endif%>
<%~if featured_photo_video_loop.length%>
<section class="section section-has-widgets clearfix featured-photo-video section-reverse">
<div class="sidebar-b">
    <%~set adsize = '300x250_1'%>
    <%include include_ad.html%>
</div>

<div class="content content-has-widgets">
    <div class="grid">

        <%~loop featured_photo_video_loop%>
        <%~rewrite_detail_url%>
        <div class="featured-content col-6-12">
            <div class="widget widget-fullwidth center">
                <h2><%if Link_Type eq 'photo'%>Photos<%else%>Video<%endif%></h2>
                <a href="<%URL%>" class="label label-category"><%escape_html Name%></a>
                <br/><br/>
                <%if Link_Type eq 'video'%>
                <a href="<%detailed_url%>" class="video-thumb">
                    <%~if thumbnail_url%>
                    <div class="crop-2"><img class="img-responsive" src="<%$thumbnail_url.large || $thumbnail_url.medium || $thumbnail_url.small%>" /></div>
                    <%~else%>
                    <img class="img-responsive" width="300" height="166" src="<%config.build_static_url%>/images/default_300x166.png" />
                    <%~endif%>
                    <i class="sprite-video-play"></i>
                    <div class="excerpt"><%Contact_Name%></div>
                </a>
                <%~else%>
                <a href="<%detailed_url%>">
                    <%~if thumbnail_url%>
                    <div class="crop-2"><img class="img-responsive" src="<%$thumbnail_url.large || $thumbnail_url.medium || $thumbnail_url.small%>" /></div>
                    <%~else%>
                    <img class="img-responsive" width="300" height="166" src="<%config.build_static_url%>/images/default_300x166.png" />
                    <%~endif%>
                    <div class="excerpt">More <%Contact_Name%> pictures</div>
                </a>
                <%~endif%>
            </div>
        </div>
        <%~endloop%>
        
    </div><!-- end grid -->
</div><!-- end content -->
</section><!-- end section -->
<div class="section-divider"></div>
<%~endif%>
