Mercurial Hosting > nabble
diff src/nabble/modules/naml/ads_auto.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children | f28caccdec82 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/modules/naml/ads_auto.naml Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,87 @@ +<macro name="auto_ads"> +<script async="true" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> +<script> + var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds); + if(nbl_showAds) { + (adsbygoogle = window.adsbygoogle || []).push({ + google_ad_client: "ca-pub-1691702211255830", + enable_page_level_ads: true + }); + } +</script> +</macro> + +<override_macro name="topic_html" requires="servlet"> + <n.topic_min_html> + <head> + <n.topic_common_head/> + <n.topic_head/> + <n.topic_meta/> + <n.increment_view_count/> + <n.auto_ads/> + </head> + <body> + <table width="100%" cellpadding="0" style="border-collapse:collapse"> + <tr> + <td></td> + <td> + <n.page_node.topic_hardcoded_notices/> + <n.newsflash/> + <n.topic_header/> + <n.topic_controls/> + </td> + </tr> + <tr valign="top"> + <td> + </td> + <td> + <n.topic_contents.view_contents.page_node.topic_rows/> + <n.topic_footer/> + </td> + </tr> + </table> + </body> + </n.topic_min_html> +</override_macro> + +<override_macro name="view_standard_page"> + <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/> + <n.app_html> + <head> + <n.app_title /> + <n.standard_table_stylesheet/> + <n.auto_ads/> + </head> + <body> + <n.new_topic_action_link/> + <n.topics_action_link only_if_has_subapps="true"/> + <n.people_action_link/> + <n.options_action_menu/> + <n.app_child_pagination margin=".8em .3em .5em 0"/> + <n.standard_table.standard_table_columns /> + <n.app_child_pagination margin=".8em .3em .5em 0"/> + <n.forum_footer/> + </body> + </n.app_html> +</override_macro> + +<override_macro name="view_topics_page"> + <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/> + <n.app_html> + <head> + <n.app_title/> + <n.topics_table_stylesheet/> + <n.auto_ads/> + </head> + <body> + <n.new_topic_action_link/> + <n.subapps_action_link/> + <n.people_action_link/> + <n.options_action_menu/> + <n.app_topic_pagination margin=".8em .3em .5em 0"/> + <n.topics_table.topics_table_columns /> + <n.app_topic_pagination margin=".8em .3em .5em 0"/> + <n.forum_footer/> + </body> + </n.app_html> +</override_macro>