http://bacaberita.info/
HOME I NASIONAL I INTERNASIONAL I EKONOMI I OLAHRAGA I HIBURAN I IPTEK I INDEKS

news_details_row

NAML documentation   Watch a video
   Usages of this macro
... in news_details_row.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<override_macro name="news_details_row" requires="node">
    <div class="news-details weak-color">
                 <span class="nowrap"><n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.short_format
Macro
Requires: date
/></span>
        <span>|</span>
        <span class="nowrap"><n.views
Macro
Requires: node
Parameters: show_text
 show_text="true"/></span>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_locked_topic
Macro
Requires: node
>
            <then>
                <span>|</span>
            </then>
        </n.if.not.is_locked_topic>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
            <then><span><img src="/images/pin.png" width="20" height="21" style="margin:0 .5em" align="absmiddle"/></span></then>
        </n.if.is_pinned_in_loop>
    </div>
</override_macro>
Overrides default macro
... in view_news.naml
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<macro name="news_details_row" requires="node">
    <div class="news-details weak-color">
        <span class="nowrap">
            <t>by <t.author.owner.name truncate="20"/></t>
            &bull;
        </span>
        <span class="nowrap"><n.when_created.short_format/></span>
        <span>|</span>
        <span class="nowrap"><n.views show_text="true"/></span>
        <n.if.not.is_locked_topic>
            <then>
                <span>|</span>
                <span class="nowrap">
                    <img src="/images/icon_message.png" align="absmiddle" height="14" width="15"/>
                    <n.if.has_replies>
                        <then><n.comments_link/></then>
                        <else>0 <t>comments</t></else>
                    </n.if.has_replies>
                </span>
            </then>
        </n.if.not.is_locked_topic>
        <n.if.is_pinned_in_loop>
            <then><span><img src="/images/pin.png" width="20" height="21" style="margin:0 .5em" align="absmiddle"/></span></then>
        </n.if.is_pinned_in_loop>
    </div>
</macro>
loading...