topic_html

NAML documentation   Watch a video
Error Found
An error was found in the NAML code of this application – View Details | Go to NAML Editor
no macro found to override
  in (custom_tweak:adbayes_script:1) - <override_macro name="adbayes_script" parameters="params" requires="ad, servlet">
   Usages of this macro
... in ads_manual_1.naml
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<override_macro name="topic_html" requires="servlet">
    <n.topic_min_html
Macro
Requires: servlet
Parameters: head, body
>
        <head>
            <n.topic_common_head
Macro
/>
            <n.topic_head
Macro
Requires: list_view_namespace
/>
            <n.topic_meta
Macro
Requires: node_page, servlet
/>
            <n.increment_view_count
Macro
Requires: node_page, servlet
/>
                        <n.auto_ads
Macro
/>
        </head>
        <body>
                    <div class="ad-responsive-top" style="margin-top:10px;margin-bottom:10px;text-align:center">
                        <n.ad_responsive_top
Macro
/>
                        <script>
                            var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds);
                            if(nbl_showAds) {
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            }
                        </script>
                    </div>
            <table width="100%" cellpadding="0" style="border-collapse:collapse">
                <tr>
                    <td></td>
                    <td>
                        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_hardcoded_notices
Macro
Requires: node_page
/>
                        <n.newsflash
Macro
/>
                        <n.topic_header
Macro
/>
                        <n.topic_controls
Macro
Requires: forum_topic_namespace
/>
                    </td>
                </tr>
                <tr valign="top">
                    <td class="vertical-ad" width="170px" style="padding-top:1em">
                        <n.vertical_ad
Macro
/>
                    </td>
                    <td>
                        <n.topic_contents
Macro
Requires: forum_topic_namespace
Parameters: contents
.view_contents
Macro
Requires: list_view_namespace
Parameters: rows
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_rows
Macro
Requires: node, forum_topic_namespace, list_view_namespace
/>
                        <n.topic_footer
Macro
/>
                    </td>
                </tr>
            </table>
             <script>
                var nbl_showAds = !(window.nbl_canHideAds && window.localStorage && localStorage.nbl_noAds);
                if( window.innerWidth >= 800 && nbl_showAds) {
                    (adsbygoogle = window.adsbygoogle || []).push({});
                } else {
                    document.querySelector('.vertical-ad ins.adsbygoogle').style.width = 0;
                    document.querySelector('td.vertical-ad').style.width = 0;
                }
            </script>
       </body>
    </n.topic_min_html>
</override_macro>
Overrides default macro
... in topic.naml
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<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/>
        </head>
        <body>
            <n.page_node.topic_hardcoded_notices/>
            <n.newsflash/>
            <n.topic_header/>
            <n.topic_controls/>
            <n.topic_contents.view_contents.page_node.topic_rows/>
            <n.topic_footer/>
        </body>
    </n.topic_min_html>
</macro>