<?php
/*
 * ------------------------------------------------------------------------
 * JA Filter Plugin - Docman
 * ------------------------------------------------------------------------
 * Copyright (C) 2004-2016 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
 * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
 * Author: J.O.O.M Solutions Co., Ltd
 * Websites: http://www.joomlart.com - http://www.joomlancers.com
 * This file may not be redistributed in whole or significant part.
 * ------------------------------------------------------------------------
 */

defined('_JEXEC') or die;
?>
{#data}
<div class="item product product-item">
	<div data-container="product-grid" class="product-item-info {?thumbnail}{:else} no-image {/thumbnail} {@eq key=featured value="1"} featured {/eq}">
		<div class="product-item-details item-{id}" data-id="{id}">
			{@info:data}
				<div class="row {._class} {render_class}">
				  {?.key}<div class="col-md-6 {label_render_class}">{.key}</div>{/.key}
				  <div class="col-md-{?.key}6{:else}12{/.key} {.val_class}">
				  {@select key=._class}
				  	{@eq value="name"}
						<h4 class="product-item-name">
							<a href="{url}" class="product-item-link">
								<span class="k-icon-document-{icon|s}"> </span>
								{name|s}
							</a>
						</h4>
					{/eq}
					{@eq value="thumb"}
                        {?cmt_gallery.src}
                        <div id="carousel-example-generic{id}" class="carousel" data-ride="carousel">
                          <div class="carousel-inner" role="listbox">
                            {#cmt_gallery.src}
                            <div class="item {@first}active{/first}">
                                <img src="<?php echo JUri::base(true); ?>/{.|s}" alt="">
                            </div>
                            {/cmt_gallery.src}
                          </div>
                          <a class="left carousel-control" href="#carousel-example-generic{id}" role="button" data-slide="prev">
                            <span class="ion-ios-arrow-round-back" aria-hidden="true"></span>
                            <span class="sr-only">Previous</span>
                          </a>
                          <a class="right carousel-control" href="#carousel-example-generic{id}" role="button" data-slide="next">
                            <span class="ion-ios-arrow-round-forward" aria-hidden="true"></span>
                            <span class="sr-only">Next</span>
                          </a>
                        </div>
                        {:else}
                            {?thumbnail}
                                <a tabindex="-1" class="product-item-photo" href="{url}">
                                    <span class="product-image-container">
                                        <img alt="{name|s}" src="{thumbnail}" class="product-image-photo">
                                    </span>
                                </a>
                            {/thumbnail}
                        {/cmt_gallery.src}
					{/eq}
					{@eq value="desc"}
						{desc|s}
					{/eq}
					{@eq value="author"}
					    {?ucf.avatar}
					        <img src="<?php echo JUri::base(true) ?>/{ucf.avatar}" />
					    {:else}
					        {.value|s}
					    {/ucf.avatar}
					{/eq}
					{@none}
						{.value|s}
					{/none}
				  {/select}
				  </div>
				</div>
			{/info}
		</div>
		<div class="product-item-actions">
			<a class="btn btn-default" href="{url}"><?php echo JText::_('COM_JAMEGAFILTER_VIEW_DETAIL'); ?></a>
		</div>
	</div>
</div>
{/data}