{config_load file="$language.conf" section="shopvoting"}

<h2>{#title#}</h2>
    <!--
<div data-role="navbar">
  <ul>
    <li>
      <a href="{$dashboard_page_link}&view_page=overview" data-role="button" {if $view_page=='overview'} class="ui-btn-active" {/if}>{#title_overview#}</a>
    </li>
    <li>
      <a href="{$dashboard_page_link}&view_page=analytics" data-role="button" {if $view_page=='analytics'} class="ui-btn-active" {/if}>{#title_analytics#}</a>
    </li>
  </ul>
</div>
-->

<br/>

{if $view_page == 'overview'}
<ul data-role="listview" data-filter="true" data-filter-placeholder="{#search#}"  {if !$inline_view}data-inset="true"{/if}>
{if $ratings}
{foreach from=$ratings item=rating}
<li><a href="{$page_link}&view_page={$view_page}&cID={$rating.shopreview_customers_id}&returnpage={$returnpage}" data-transition="slide">
  <h3>{$rating.shopreviews_shoprating}/5 - "{$rating.shopreviews_text}"</h3>  <img src="{$module_path}icon.png" class="icon" style="width: 30px; height: 30px;border-radius: 5px;background-color: {$rating.thumbs_color};padding: 3px;">

  <p class="ui-li-aside">
    {$rating.shopreviews_firstname} {$rating.shopreviews_lastname}
    <br/>
    <abbr class="timeago" title="{$rating.shopreviews_date}">{$rating.shopreviews_date}</abbr>
  </p>

  <p>
    {$rating.shopreviews_firstname}
    {$rating.shopreviews_lastname}
    <br/>
    {#title_delivery#}: {$rating.shopreviews_delivery}/5
    |
    {#title_products#}:{$rating.shopreviews_products}/5
    |
    {#title_service#}:{$rating.shopreviews_service}/5
  </p>
</a>
</li>
{/foreach}
{else}
<li>
  <p><br>{#no_shopvote#}</p>
</li>
{/if}
</ul>

{elseif $view_page == 'analytics'}

{if $analytics}


{else}
<ul data-role="listview" data-filter="false" data-inset="true">
  <li>
    <p><br>{#no_shopvote#}</p>
  </li>
</ul>
{/if}
{/if}