<name>com.woltlab.wcf.logo</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationLogo</cssclassname>
</type>
<type>
<name>com.woltlab.wcf.header.content</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationHeaderContent</cssclassname>
</type>
<type>
<name>com.woltlab.wcf.footer.content</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationFooterContent</cssclassname>
</type>
<type>
<name>com.woltlab.wcf.sidebar.top</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationSidebarTop</cssclassname>
</type>
<type>
<name>com.woltlab.wcf.sidebar.bottom</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationSidebarBottom</cssclassname>
</type>
<type>
<name>com.woltlab.wcf.footer.bottom</name>
<definitionname>com.woltlab.wcf.adLocation</definitionname>
<categoryname>com.woltlab.wcf.global</categoryname>
+ <cssclassname>wcfAdLocationFooterBottom</cssclassname>
</type>
<!-- /ad locations -->
{if $skipBreadcrumbs|empty}{include file='breadcrumbs' __microdata=false}{/if}
{if MODULE_WCF_AD}
- {hascontent}
- <div class="marginTop">
- {content}
- {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.content')}
- {/content}
- </div>
- {/hascontent}
+ {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.content')}
{/if}
</section>
{event name='copyright'}
</div>
- {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.bottom')}{/if}
+ {if MODULE_WCF_AD}
+ {@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.footer.bottom')}
+ {/if}
</div>
</footer>
</nav>
<div id="logo" class="logo">
+ {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.logo')}{/if}
+
<a href="{link}{/link}">
{if $__wcf->getStyleHandler()->getStyle()->getPageLogo()}
<img src="{$__wcf->getStyleHandler()->getStyle()->getPageLogo()}" alt="" />
{/if}
{event name='headerLogo'}
</a>
-
- {if MODULE_WCF_AD}{@$__wcf->getAdHandler()->getAds('com.woltlab.wcf.logo')}{/if}
</div>
{event name='headerContents'}
$output .= $ad->ad;
}
- return $output;
+ if (!empty($output)) {
+ return '<div class="wcfAdLocation' . ($this->objectTypes[$adLocation]->cssclassname ? (' ' . $this->objectTypes[$adLocation]->cssclassname) : '') . '"><div>' . $output . '</div></div>';
+ }
+
+ return '';
}
/**
}
}
+/* ad locations */
+.wcfAdLocationHeaderContent,
+.wcfAdLocationFooterContent,
+.wcfAdLocationFooterBottom {
+ text-align: center;
+
+ > div {
+ display: inline-block;
+ text-align: left;
+ }
+}
+
+.wcfAdLocationHeaderContent {
+ margin-top: @wcfGapSmall;
+}
+
+.wcfAdLocationFooterContent,
+.wcfAdLocationFooterBottom {
+ margin-top: @wcfGapMedium;
+}
+
+.wcfAdLocationSidebarTop,
+.wcfAdLocationSidebarBottom {
+ padding: 0 @wcfGapMedium @wcfGapMedium;
+ text-align: center;
+
+ > div {
+ display: inline-block;
+ text-align: left;
+ }
+}
+
+.wcfAdLocationLogo {
+ float: right;
+ padding: @wcfGapMedium @wcfGapMedium 0 @wcfGapMedium;
+}
+
/* print version */
@media print {
* {