<xf:if is="$threads is not empty OR ($threads is empty AND $filter != 'latest')">
<div class="block"{{ widget_data($widget) }}>
<div class="block-container">
<xf:if is="$style == 'full'">
<div class="block-header">
<xf:if is="$title == 'Front-end'">
<div class="title-bar">
<xf:button href="/forums/forum-html-et-css.23/?prefix_id=1" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> HTML</xf:button>
<xf:button href="/forums/forum-html-et-css.23/?prefix_id=2" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> CSS</xf:button>
<xf:button href="/forums/forum-html-et-css.23/post-thread" class="ask">Poser une question</xf:button>
</div>
<xf:elseif is="$title == 'Javascript'" />
<div class="title-bar">
<xf:button href="/forums/questions-javascript-et-typescript.25/?prefix_id=3" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> JavaScript</xf:button>
<xf:button href="/forums/questions-javascript-et-typescript.25/?prefix_id=51" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> TypeScript</xf:button>
<xf:button href="/forums/forum-javascript.25/post-thread" class="ask">Poser une question</xf:button>
</div>
<xf:elseif is="$title == 'Back-end'" />
<div class="title-bar">
<xf:button href="/forums/forum-php-sql-et-programmation.6/?prefix_id=13" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> PHP</xf:button>
<xf:button href="/forums/forum-php-sql-et-programmation.6/?prefix_id=14" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> SQL</xf:button>
<xf:button href="/forums/forum-php-sql-et-programmation.6/?prefix_id=38" class="cat"><span class="lang"><i class="fad fa-sort-down"></i></span> Python</xf:button>
<xf:button href="/forums/forum-php-sql-et-programmation.6/post-thread" class="ask">Poser une question</xf:button>
</div>
<xf:elseif is="$title == 'Frameworks et bibliothèques'" />
<div class="title-bar">
<xf:button href="/forums/frameworks-et-bibliotheques.101/" class="cat"><span class="lang"><i class="fad fa-comments-alt"></i></span> Frameworks et Bibliothèques</xf:button>
<xf:button href="/forums/frameworks-et-bibliotheques.101/post-thread" class="ask">Poser une question</xf:button>
</div>
<xf:elseif is="$title == 'Forum général'" />
<div class="title-bar">
<xf:button href="/forums/forum-general.90/" class="cat"><span class="lang"><i class="fad fa-comments-alt"></i></span> Discussions générales</xf:button>
<xf:button href="/forums/forum-general.90/post-thread" class="ask">Créer un nouveau sujet</xf:button>
</div>
<xf:elseif is="$title == 'Ressources'" />
<div class="title-bar">
<xf:button href="/tutoriels/" class="cat"><span class="lang"><i class="fad fa-cog"></i></span> Module Ressources</xf:button>
<xf:button href="/forums/discussions-ressources.107/" class="cat"><span class="lang"><i class="fad fa-comments-alt"></i></span> Forum</xf:button>
<xf:button href="/tutoriels/add" class="ask" overlay="true">Publier une ressource</xf:button>
</div>
<div class="sort-tags">
<span class="tri-res">filtrer:</span>
<a href="/tutoriels/?prefix_id=1"><span class="label label--accent">Vidéo</span></a>
<a href="/tutoriels/?prefix_id=3"><span class="label label--yellow">Documentation</span></a>
<a href="/tutoriels/?prefix_id=2"><span class="label label--lightGreen">Tutoriel</span></a>
</div>
<xf:elseif is="$title == 'Chit-Chat'" />
<div class="title-bar">
<xf:button href="/forums/chit-chat.44/" class="cat"><span class="lang"><i class="fad fa-comments-alt"></i></span> Forum Chit-Chat</xf:button>
<xf:button href="/forums/chit-chat.44/post-thread" class="ask">Créer un nouveau sujet</xf:button>
</div>
<xf:elseif is="$title == 'Suggestions'" />
<div class="title-bar">
<xf:button href="/forums/suggestions.106/" class="cat"><span class="lang"><i class="fad fa-lightbulb-on"></i></span> Forum Suggestions</xf:button>
<xf:button href="/forums/suggestions.106/post-thread" class="ask">Créer un nouveau sujet</xf:button>
</div>
<xf:elseif is="$title == 'Annonces'" />
<div class="title-bar">
<xf:button href="/forums/annonces.57/" class="cat"><span class="lang"><i class="fad fa-bullhorn"></i></span> Annonces officielles Cocori Web</xf:button>
</div>
<xf:else/>
<a href="{$link}" rel="nofollow">{$title}</a>
</xf:if>
</div>
<div class="block-body">
<div class="structItemContainer">
<xf:if is="$threads is not empty">
<xf:foreach loop="$threads" value="$thread">
<xf:macro template="new_post_global" name="global"
arg-allowInlineMod="{{ false }}"
arg-thread="{$thread}" />
</xf:foreach>
<xf:elseif is="$filter == 'unread'" />
<div class="block-row">
{{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }}
</div>
<xf:else />
<div class="block-row">
{{ phrase('no_results_found') }}
</div>
</xf:if>
</div>
</div>
<xf:else />
<h3 class="block-minorHeader">
<a href="{$link}" rel="nofollow">{$title}</a>
</h3>
<ul class="block-body">
<xf:if is="$threads is not empty">
<xf:foreach loop="$threads" value="$thread">
<li class="block-row">
<xf:macro template="thread_list_macros" name="item_new_posts"
arg-thread="{$thread}" />
</li>
</xf:foreach>
<xf:elseif is="$filter == 'unread'" />
<li class="block-row block-row--minor">
{{ phrase('no_unread_posts_view_latest', {'link': link('whats-new/posts', null, {'skip': 1})}) }}
</li>
<xf:else />
<li class="block-row block-row--minor">
{{ phrase('no_results_found') }}
</li>
</xf:if>
</ul>
</xf:if>
</div>
</div>
</xf:if>