imagecms/ImageCMS

View on GitHub
application/modules/wishlist/assets/other_list.tpl

Summary

Maintainability
Test Coverage
<article class="container">
    {if $wishlist != 'empty'}
        <table class="table">
            <input type="hidden" name="WLID" value="{echo $wishlist[0][wish_list_id]}">
            <thead>
                <tr>
                    <td colspan="3">
                        <h1 class="wishListTitle">{$wishlist[0][title]}</h1>
                        {echo $wishlist[0][access]}
                        <div class="wishListDescription" >{$wishlist[0][description]}</div>
                    </td>
                </tr>
                <tr>
                    <th>№</th>
                    <th>{lang('Product', 'wishlist')}</th>
                    <th>{lang('Comment', 'wishlist')}</th>
                </tr>
            </thead>
            <tbody>
                {foreach $wishlist as $key => $w}
                    <tr>
                        <td>{echo $key+1}</td>
                        <td>
                            <a href="{shop_url('product/'.$w[url])}"
                               title="{$w[name]}">
                                {$w[name]}
                            </a>
                        </td>
                        <td>
                            {$w[comment]}
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    {/if}
</article>