<%~if Widget eq 'poll'%>
<div id="poll_widget" data="<%Forum%>"></div>
<%~elsif Widget eq 'feature_threads'%>
  <%include _widget_threads.html%>
<%~else%>
<div class="widget<%if Widget eq 'feature_article'%> widget-fullwidth<%elsif Widget eq 'collapse'%> collapse widget-full<%endif%>">
    <%if Widget eq 'collapse'%>
    <a rel="hottopic"<%if TitleStyle%> style="<%TitleStyle%>"<%endif%> class="lnk"><%Title%> <i class="sprite-arrow-down-b"></i></a>
    <div class="tagwidget">
        <%~if Subtitle%><%Subtitle%><%endif%>
        <%if Image%><%if URL%><a href="<%URL%>"><%endif%><img width="300" height="166" src="<%config.build_root_url%><%Image_URL%>" class="img-responsive" /><%if URL%></a><%endif%><%endif%>
        <%if Button%><br /><div class="center"><a href="<%URL%>" class="btn"><%Button%></a></div><%endif%>
    </div>
    <%else%>
    <h2<%if TitleStyle%> style="<%TitleStyle%>"<%endif%>><%Title%></h2>
    <%~if Subtitle%><div class="description"><%Subtitle%></div><%endif%>
    <%~if Widget eq 'newsletter'%>
    <%include _widget_newsletter.html%>
    <%~elsif Widget eq 'calculators'%>
    <%include _widget_calculators.html%>
    <%~elsif Widget eq 'local_listings'%>
    <%include _widget_local_listings.html%>
    <%~elsif Widget eq 'category_list'%>
    <%include _widget_category_list.html%>
    <%~elsif Widget eq 'editors_pick'%>
    <%include _widget_editors_pick.html%>
    <%~elsif Widget eq 'feature_article'%>
    <%include _widget_feature_article.html%>
    <%~elsif Widget eq 'most_popular'%>
    <%include _widget_most_popular.html%>
    <%elsif Widget eq 'external'%>
    <%include ../twitch/_widget_external.html%> 
    <%~endif%>
    <%endif%>
</div><!-- end widget -->
<%~endif%>
