Login  Register

Re: Add locked topic icons?

Posted by Mencey Melgar on Apr 13, 2013; 6:28pm
URL: https://support.nabble.com/Add-locked-topic-icons-tp7584051p7584054.html

Hi GD, here is my own pin_column:

<override_macro name="pin_column">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] pin-column nowrap" style="border-top-left-radius: 1em;border-bottom-left-radius: 1em;width:24px"></td>
        </head>
        <body>
            <n.current_node.>
                <td class="[n.column_default_border/]" style="padding-left:.2em">
                    <n.if.current_node.is_app>
                        <else>
                            <n.if.is_pinned>
                                <then>
                                    <n.if.is_locked_topic>
                                        <then>
                                            <img src="http://static.wix.com/media/f737c2_3f8c179382a606e433441ecdfaeca764.png_srz_125_128_75_22_0.50_1.20_0.00_png_srz" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://static.wix.com/media/f737c2_c5abeb527a5ae06c78e6d9abc4b0b235.png_srz_128_125_75_22_0.50_1.20_0.00_png_srz" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </then>
                                <else>
                                    <n.if.is_locked_topic>
                                        <then>
                                            <img src="http://static.wix.com/media/f737c2_b553b1e847a760ee79dc6b76a4ff1657.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://static.wix.com/media/f737c2_78d0327f8628751dae5ca397a0ffa103.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </else>
                            </n.if.is_pinned>
                        </else>
                    </n.if.current_node.is_app>
                    <n.if.is_app>
                        <then>
                            <n.if.is_pinned>
                                <then><img src="http://cdn1.iconfinder.com/data/icons/Hand_Drawn_Web_Icon_Set/128/folder_empty.png" width="35" height="35" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/></then>
                                <else>
                                    <n.if.is_pinned>
                                        <then>
                                            <n.if.is_locked_topic>
                                                <then>
                                                    <img src="http://static.wix.com/media/f737c2_3f8c179382a606e433441ecdfaeca764.png_srz_125_128_75_22_0.50_1.20_0.00_png_srz" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://static.wix.com/media/f737c2_c5abeb527a5ae06c78e6d9abc4b0b235.png_srz_128_125_75_22_0.50_1.20_0.00_png_srz" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </then>
                                        <else>
                                            <n.if.is_locked_topic>
                                                <then>
                                                    <img src="http://static.wix.com/media/f737c2_b553b1e847a760ee79dc6b76a4ff1657.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://static.wix.com/media/f737c2_78d0327f8628751dae5ca397a0ffa103.png_srz_128_128_75_22_0.50_1.20_0.00_png_srz" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </else>
                                    </n.if.is_pinned>
                                </else>
                            </n.if.is_pinned>
                        </then>
                    </n.if.is_app>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</override_macro>
:) Helper