提交 3063e7cb 编写于 作者: 智布道's avatar 智布道 👁

💡 优化广告位,增加【首页顶部】广告位

上级 4046d225
...@@ -19,6 +19,10 @@ import java.util.Map; ...@@ -19,6 +19,10 @@ import java.util.Map;
@AllArgsConstructor @AllArgsConstructor
public enum AdPositionEnum { public enum AdPositionEnum {
/**
* 首页顶部
*/
HOMEPAGE_TOP("首页顶部"),
/** /**
* 每次刷新页面都弹窗显示,AdType 必须为 POP * 每次刷新页面都弹窗显示,AdType 必须为 POP
*/ */
......
...@@ -3609,8 +3609,8 @@ img { ...@@ -3609,8 +3609,8 @@ img {
/* 广告 */ /* 广告 */
.ad-mark { .ad-mark {
padding: 8px;
position: relative; position: relative;
margin-bottom: 10px;
} }
.ad-mark:after { .ad-mark:after {
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
</div> </div>
</div> </div>
<#-- 广告位 --> <#-- 广告位 -->
<div class="blog-body ad-mark" id="ARTICLE_BOTTOM" style="display: none"></div> <div class="ad-mark" id="ARTICLE_BOTTOM" style="display: none"></div>
<div class="blog-body prev-next"> <div class="blog-body prev-next">
<nav class="nav-single wow" data-wow-delay="0.3s"> <nav class="nav-single wow" data-wow-delay="0.3s">
<#if other.prev> <#if other.prev>
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<#-- 广告位 --> <#-- 广告位 -->
<div class="blog-body ad-mark" id="COMMENT_BOX_TOP" style="display: none"></div> <div class="ad-mark" id="COMMENT_BOX_TOP" style="display: none"></div>
<#if !article.requiredAuth> <#if !article.requiredAuth>
<#--评论--> <#--评论-->
<#if article.comment> <#if article.comment>
......
...@@ -45,9 +45,7 @@ ...@@ -45,9 +45,7 @@
</div> </div>
</#if> </#if>
<#-- 广告位 --> <#-- 广告位 -->
<div class="col-sm-12 blog-main"> <div class="col-sm-12 ad-mark" id="COMMENT_BOX_TOP" style="display: none"></div>
<div class="blog-body ad-mark" id="COMMENT_BOX_TOP" style="display: none"></div>
</div>
<#if config.comment! && config.comment == 1> <#if config.comment! && config.comment == 1>
<div class="col-sm-12 blog-main"> <div class="col-sm-12 blog-main">
<div class="blog-body expansion"> <div class="blog-body expansion">
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
</@header> </@header>
<div class="container custome-container"> <div class="container custome-container">
<#-- 广告位 -->
<div class="ad-mark" id="HOMEPAGE_TOP" style="display: none;margin-bottom: 10px"></div>
<@prompt></@prompt> <@prompt></@prompt>
<nav class="breadcrumb"> <nav class="breadcrumb">
<div class="notify"><i class="fa fa-bullhorn fa-fw"></i></div> <div class="notify"><i class="fa fa-bullhorn fa-fw"></i></div>
......
<div class="col-sm-3 blog-sidebar"> <div class="col-sm-3 blog-sidebar">
<#-- 广告位 --> <#-- 广告位 -->
<div class="sidebar-module ad-mark" id="SIDEBAR_TOP" style="display: none"></div> <div class="ad-mark" id="SIDEBAR_TOP" style="display: none"></div>
<#if articleDetail??> <#if articleDetail??>
<div class="sidebar-module"> <div class="sidebar-module">
<h5 class="custom-title"><i class="fa fa-hand-peace-o fa-fw icon"></i><strong>说给你听</strong><small></small></h5> <h5 class="custom-title"><i class="fa fa-hand-peace-o fa-fw icon"></i><strong>说给你听</strong><small></small></h5>
...@@ -181,5 +181,5 @@ ...@@ -181,5 +181,5 @@
</ul> </ul>
</div> </div>
<#-- 广告位 --> <#-- 广告位 -->
<div class="sidebar-module ad-mark" id="SIDEBAR_BOTTOM" style="display: none"></div> <div class="ad-mark" id="SIDEBAR_BOTTOM" style="display: none"></div>
</div> </div>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册