menu_use_google_analytics

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<macro name="menu_use_google_analytics" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('useGoogleAnalytics', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.use_google_analytics_link
Macro
Parameters: text, title, class
/>', 'display:none');
        </then>
        <else>
            <n.set_local_node
Macro
Parameters: node
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
/>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/]" condition2="[n.local_node
Macro
Parameters: do
.is_root
Binary
Namespace: NodeNamespace
/]">
                <then>
                    NabbleDropdown.show('useGoogleAnalytics');
                </then>
            </n.if.both>
        </else>
    </n.if.is_in_command>
</macro>