view src/nabble/modules/naml/ads_auto.naml @ 9:f28caccdec82

change ads account
author raven <mazdarulez@hotmail.com>
date Mon, 29 Jul 2019 22:50:05 +1000
parents 7ecd1a4ef557
children 3b057845e2a7
line wrap: on
line source

<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-6750305871516672",
			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>