<categoryname>com.woltlab.wcf.global</categoryname>
<cssclassname>wcfAdLocationFooterBottom</cssclassname>
</type>
+ <type>
+ <name>com.woltlab.wcf.article.inArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationInArticle</cssclassname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.article.after1stArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationArticleList wcfAdLocationAfter1stArticle</cssclassname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.article.afterEvery2ndArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationArticleList wcfAdLocationAfterEvery2ndArticle</cssclassname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.article.afterEvery3rdArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationArticleList wcfAdLocationAfterEvery3rdArticle</cssclassname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.article.afterEvery5thArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationArticleList wcfAdLocationAfterEvery5thArticle</cssclassname>
+ </type>
+ <type>
+ <name>com.woltlab.wcf.article.afterEvery10thArticle</name>
+ <definitionname>com.woltlab.wcf.adLocation</definitionname>
+ <categoryname>com.woltlab.wcf.article</categoryname>
+ <cssclassname>wcfAdLocationArticleList wcfAdLocationAfterEvery10thArticle</cssclassname>
+ </type>
<!-- /ad locations -->
<!-- ad conditions -->
<type>
<div class="section articleContent" {@$__wcf->getReactionHandler()->getDataAttributes('com.woltlab.wcf.likeableArticle', $article->articleID)}>
<div class="htmlContent">
+ {if MODULE_WCF_AD}
+ {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.inArticle')}
+ {/if}
+
{if $articleContent->teaser}
<p class="articleTeaser">{@$articleContent->getFormattedTeaser()}</p>
{/if}
-
+
{@$articleContent->getFormattedContent()}
{event name='htmlArticleContent'}
+{if !$disableAds|isset}{assign var='disableAds' value=false}{/if}
+
<ul class="articleList">
- {foreach from=$objects item='article'}
+ {foreach from=$objects item='article' name=articles}
<li>
<a href="{$article->getLink()}">
{if $article->getTeaserImage() && $article->getTeaserImage()->hasThumbnail('tiny')}
{event name='articleListEntry'}
</a>
</li>
+
+ {if MODULE_WCF_AD && !$disableAds}
+ {if $tpl[foreach][articles][iteration] === 1}
+ {hascontent}
+ <li>
+ {content}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.after1stArticle')}{/content}
+ </li>
+ {/hascontent}
+ {else}
+ {if $tpl[foreach][articles][iteration] % 2 === 0}
+ {hascontent}
+ <li>
+ {content}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.afterEvery2ndArticle')}{/content}
+ </li>
+ {/hascontent}
+ {/if}
+
+ {if $tpl[foreach][articles][iteration] % 3 === 0}
+ {hascontent}
+ <li>
+ {content}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.afterEvery3rdArticle')}{/content}
+ </li>
+ {/hascontent}
+ {/if}
+
+ {if $tpl[foreach][articles][iteration] % 5 === 0}
+ {hascontent}
+ <li>
+ {content}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.afterEvery5thArticle')}{/content}
+ </li>
+ {/hascontent}
+ {/if}
+
+ {if $tpl[foreach][articles][iteration] % 10 === 0}
+ {hascontent}
+ <li>
+ {content}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.article.afterEvery10thArticle')}{/content}
+ </li>
+ {/hascontent}
+ {/if}
+ {/if}
+ {/if}
{/foreach}
</ul>
{/foreach}
</ul>
{else}
- {include file='articleListItems' objects=$boxArticleList}
+ {include file='articleListItems' objects=$boxArticleList disableAds=true}
{/if}
<item name="wcf.acp.ad.location.com.woltlab.wcf.sidebar.bottom"><![CDATA[Sidebar (unten)]]></item>
<item name="wcf.acp.ad.location.com.woltlab.wcf.footer.bottom"><![CDATA[Seitenende]]></item>
<item name="wcf.acp.ad.showOrder.description"><![CDATA[Legt die Reihenfolge fest, in der die Werbungen angezeigt werden.]]></item>
+ <item name="wcf.acp.ad.location.category.com.woltlab.wcf.article"><![CDATA[Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.after1stArticle"><![CDATA[Nach dem ersten Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery10thArticle"><![CDATA[Nach jedem 10. Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery2ndArticle"><![CDATA[Nach jedem 2. Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery3rdArticle"><![CDATA[Nach jedem 3. Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery5thArticle"><![CDATA[Nach jedem 5. Artikel]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.inArticle"><![CDATA[Innerhalb des Artikels]]></item>
</category>
<category name="wcf.acp.application">
<item name="wcf.acp.application.cookie"><![CDATA[Cookie-Einstellungen]]></item>
<item name="wcf.acp.ad.location.com.woltlab.wcf.sidebar.bottom"><![CDATA[Sidebar (bottom)]]></item>
<item name="wcf.acp.ad.location.com.woltlab.wcf.footer.bottom"><![CDATA[End of Page]]></item>
<item name="wcf.acp.ad.showOrder.description"><![CDATA[Choose display order of ads.]]></item>
+ <item name="wcf.acp.ad.location.category.com.woltlab.wcf.article"><![CDATA[Articles]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.after1stArticle"><![CDATA[After the first article]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery10thArticle"><![CDATA[After every 10. article]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery2ndArticle"><![CDATA[After every 2. article]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery3rdArticle"><![CDATA[After every 3. article]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.afterEvery5thArticle"><![CDATA[After every 5. article]]></item>
+ <item name="wcf.acp.ad.location.com.woltlab.wcf.article.inArticle"><![CDATA[In the article]]></item>
</category>
<category name="wcf.acp.application">
<item name="wcf.acp.application.cookie"><![CDATA[Cookie Settings]]></item>