imagecms/ImageCMS

View on GitHub
application/modules/gallery/assets/index.tpl

Summary

Maintainability
Test Coverage
{widget('path')}

<div class="frame-inside without-crumbs">
    <div class="container">
        <h1>{lang('Галерея','gallery')}</h1>
        <h4>{lang('Категории','gallery')}:</h4>

        {if is_array($categories)}
            <ul class="items items-galleries">
                {foreach $categories as $category}     
                    <li>
                        <a href="{site_url('gallery/category/' . $category.id)}" class="frame-photo-title">
                            <span class="frame-title d_b"><span class="title">{$category.name}</span></span>
                        </a>
                        {if trim($category.description) != ''}
                            <div class="description" style="max-width: 150px; word-wrap: break-word;">
                                <span class="s-t">{lang('Описание','gallery')}:</span>
                                {$category.description}
                            </div>
                        {/if}
                    </li>
                {/foreach}
            </ul>
        {else:}
            <div class="msg">
                <div class="info">
                    {lang('There are no categories.','gallery')}.
                </div>
            </div>
        {/if}

        {if $albums}
            <div class="msg">
                <div class="info">
                    <a href="{site_url('gallery/albums/')}" class="frame-photo-title">
                        <span class="frame-title d_b"><span class="title">{lang('All albums','gallery')}</span></span>
                    </a>                
                </div>
            </div>
        {/if}
    </div>
</div>