nabble_shared_scripts

NAML documentation   Watch a video
   Usages of this macro
... in configuration.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<override_macro name="nabble_shared_scripts">
                    <n.overridden/>
                    <script type="text/javascript">
                      var _gaq = _gaq || [];
                      _gaq.push(['_setAccount', 'UA-27370835-1']);
                      _gaq.push(['_trackPageview']);
 
                      (function() {
                        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                      })();
                    </script>
                </override_macro>
Overrides default macro
... in utilities.naml
88
89
90
91
92
93
94
95
96
<macro name="nabble_shared_scripts">
    <script type="text/javascript">
        Nabble.setFontSize();
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.request_method_is_post
Macro
Requires: servlet
>
            <then>var loginNextUrl = '/';</then>
        </n.if.request_method_is_post>
    </script>
    <n.nabble_analytics
Macro
/>
</macro>