Mercurial Hosting > nabble
comparison src/nabble/modules/naml/ads_manual.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children | f28caccdec82 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 <static> | |
2 ins | |
3 </static> | |
4 | |
5 <macro name="auto_ads"> | |
6 <script async="true" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
7 <script> | |
8 var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); | |
9 if(nbl_showAds) { | |
10 (adsbygoogle = window.adsbygoogle || []).push({ | |
11 google_ad_client: "ca-pub-1691702211255830", | |
12 enable_page_level_ads: true | |
13 }); | |
14 } | |
15 </script> | |
16 </macro> | |
17 | |
18 <macro name="vertical_ad"> | |
19 <script async="true" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
20 <!-- wide skyscraper --> | |
21 <ins class="adsbygoogle" | |
22 style="display:block;width:160px;height:600px" | |
23 data-ad-client="ca-pub-1691702211255830" | |
24 data-ad-slot="4171118808"></ins> | |
25 </macro> | |
26 | |
27 <macro name="ad_responsive_top"> | |
28 <script async="true" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
29 <!-- responsive-top --> | |
30 <ins class="adsbygoogle" | |
31 style="display:block" | |
32 data-ad-client="ca-pub-1691702211255830" | |
33 data-ad-slot="8608207209" | |
34 data-ad-format="horizontal" | |
35 data-full-width-responsive="true"></ins> | |
36 </macro> | |
37 | |
38 <override_macro name="topic_html" requires="servlet"> | |
39 <n.topic_min_html> | |
40 <head> | |
41 <n.topic_common_head/> | |
42 <n.topic_head/> | |
43 <n.topic_meta/> | |
44 <n.increment_view_count/> | |
45 <n.auto_ads/> | |
46 </head> | |
47 <body> | |
48 <div class="ad-responsive-top" style="margin-top:10px;margin-bottom:10px;text-align:center"> | |
49 <n.ad_responsive_top/> | |
50 <script> | |
51 var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); | |
52 if(nbl_showAds) { | |
53 (adsbygoogle = window.adsbygoogle || []).push({}); | |
54 } | |
55 </script> | |
56 </div> | |
57 <table width="100%" cellpadding="0" style="border-collapse:collapse"> | |
58 <tr> | |
59 <td></td> | |
60 <td> | |
61 <n.page_node.topic_hardcoded_notices/> | |
62 <n.newsflash/> | |
63 <n.topic_header/> | |
64 <n.topic_controls/> | |
65 </td> | |
66 </tr> | |
67 <tr valign="top"> | |
68 <td class="vertical-ad" width="170px" style="padding-top:1em"> | |
69 <n.vertical_ad/> | |
70 </td> | |
71 <td> | |
72 <n.topic_contents.view_contents.page_node.topic_rows/> | |
73 <n.topic_footer/> | |
74 </td> | |
75 </tr> | |
76 </table> | |
77 <script> | |
78 var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); | |
79 if( window.innerWidth >= 800 && nbl_showAds) { | |
80 (adsbygoogle = window.adsbygoogle || []).push({}); | |
81 } else { | |
82 document.querySelector('.vertical-ad ins.adsbygoogle').style.width = 0; | |
83 document.querySelector('td.vertical-ad').style.width = 0; | |
84 } | |
85 </script> | |
86 </body> | |
87 </n.topic_min_html> | |
88 </override_macro> | |
89 | |
90 <override_macro name="view_standard_page"> | |
91 <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/> | |
92 <n.app_html> | |
93 <head> | |
94 <n.app_title /> | |
95 <n.standard_table_stylesheet/> | |
96 <n.auto_ads/> | |
97 </head> | |
98 <body> | |
99 <div class="ad-responsive-top" style="margin-top:10px;margin-bottom:10px;text-align:center"> | |
100 <n.ad_responsive_top/> | |
101 </div> | |
102 <n.new_topic_action_link/> | |
103 <n.topics_action_link only_if_has_subapps="true"/> | |
104 <n.people_action_link/> | |
105 <n.options_action_menu/> | |
106 | |
107 <n.app_child_pagination margin=".8em .3em .5em 0"/> | |
108 <n.standard_table.standard_table_columns /> | |
109 <n.app_child_pagination margin=".8em .3em .5em 0"/> | |
110 <n.forum_footer/> | |
111 <script> | |
112 var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); | |
113 if(nbl_showAds) { | |
114 (adsbygoogle = window.adsbygoogle || []).push({}); | |
115 } | |
116 </script> | |
117 </body> | |
118 </n.app_html> | |
119 </override_macro> | |
120 | |
121 <override_macro name="view_topics_page"> | |
122 <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/> | |
123 <n.app_html> | |
124 <head> | |
125 <n.app_title/> | |
126 <n.topics_table_stylesheet/> | |
127 <n.auto_ads/> | |
128 </head> | |
129 <body> | |
130 <div class="ad-responsive-top" style="margin-top:10px;margin-bottom:10px;text-align:center"> | |
131 <n.ad_responsive_top/> | |
132 </div> | |
133 <n.new_topic_action_link/> | |
134 <n.subapps_action_link/> | |
135 <n.people_action_link/> | |
136 <n.options_action_menu/> | |
137 | |
138 <n.app_topic_pagination margin=".8em .3em .5em 0"/> | |
139 <n.topics_table.topics_table_columns /> | |
140 <n.app_topic_pagination margin=".8em .3em .5em 0"/> | |
141 <n.forum_footer/> | |
142 <script> | |
143 var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); | |
144 if(nbl_showAds) { | |
145 (adsbygoogle = window.adsbygoogle || []).push({}); | |
146 } | |
147 </script> | |
148 </body> | |
149 </n.app_html> | |
150 </override_macro> |