Skip to content

Commit 8d12b3e

Browse files
authored
Merge pull request #12 from mcclatchy/sponsored-article
adding sponsored article disclaimer zone
2 parents 17b6ba4 + e28c2de commit 8d12b3e

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

config/story.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@
7777
"type": "query",
7878
"value": ".story-body"
7979
}
80+
},
81+
{
82+
"id": "zone-sponsored-article",
83+
"cue": 277282728,
84+
"filters": [
85+
{
86+
"type": "config",
87+
"name": "zone.sponsoredArticle",
88+
"value": true
89+
}
90+
],
91+
"placement": {
92+
"type": "query",
93+
"value": ".story-body > .header"
94+
},
95+
"classList": ["hidden"]
8096
}
8197
]
8298
}

demo/demo.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Demo supplements
33
*/
44

5-
.card, .zone {
5+
.card {
66
min-height: 300px;
77
}
88

@@ -24,12 +24,12 @@
2424

2525
[id^=zone-] {
2626
display: block !important;
27-
min-height: 300px;
28-
background-color: blue !important;
27+
background-color: blue;
28+
--ad-background: blue;
2929
}
3030

3131
[id^=zone-][data-distributed] {
32-
background-color: green !important;
32+
background-color: green;
3333
}
3434

3535
[id^=zone-]:before {

demo/locker.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ const locker = {
2222
return "miamiherald";
2323
case "marketInfo.taxonomy":
2424
return "News/Sports//";
25-
case "zone.carousel":
26-
return true;
27-
case "zone.zeeto":
28-
return true;
2925
case "zone.moneycom":
3026
return false;
3127
case "zone.communityEvents":
3228
return true;
3329
case "zone.taboolaRecommendations":
3430
return true;
3531
case "zone.siTickets":
36-
return true;
32+
return false;
3733
case "zone.gamecocksNav":
34+
return false;
35+
case "zone.sponsoredArticle":
3836
return true;
3937
default:
4038
return undefined;

demo/section/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
</head>
2424

2525
<body>
26-
<div id="zone-el-1"></div>
27-
<div id="zone-el-2"></div>
26+
<!-- <div id="zone-el-1"></div> -->
27+
<!-- <div id="zone-el-2"></div> -->
2828
<div class="card flag"></div>
2929

3030
<section class="grid">

0 commit comments

Comments
 (0)