<?php /* Smarty version 2.6.22, created on 2016-01-10 01:28:02
         compiled from E:/xampp/htdocs/templates/home/default%5Ccollections%5Cindex.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'E:/xampp/htdocs/templates/home/default\\collections\\index.html', 68, false),array('modifier', 'nl2br', 'E:/xampp/htdocs/templates/home/default\\collections\\index.html', 83, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/js/arc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/jstemplate.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script src="/mbthemes/scripts/canvas/animation.js"></script>
</head>
<body>
<div class="app" id="app">
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mobile-nav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- content -->
  <div id="content" class="app-content box-shadow-z4" role="main">

    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/pagenav.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <div ui-view class="app-body" id="view">
      <!-- ############ PAGE START-->

      <div class="white b-t">
        <div class="container">
          <div class="row-col">


            <div class="col-sm box b-l b-r">

              <div class="box edit pos-rlt m-b-0">


                <div class="p-x-md p-t-md">

                  <form action="" id="sortbyform" method="get" style="z-index:3;">
                    <input id="order-type" name="order" type="hidden" value="<?php if ($_GET['order'] == 'asc'): ?>desc<?php else: ?>asc<?php endif; ?>" />
                    <input type="hidden" id="sort_by" name="sort_by" />
                    <div class="btn-group">



                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='average_rating';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'average_rating'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin" <?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按评分排序">
                      评分
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>
                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='name';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'name'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> title="" data-toggle="tooltip" data-placement="bottom" data-original-title="按标题排序">
                      标题
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>
                      <a href="javascript: void(0);" onclick="document.getElementById('sort_by').value='published_at';document.getElementById('sortbyform').submit();"<?php if ($_GET['sort_by'] == 'published_at'): ?> class="btn p-l-md p-r p-y-xs btn-outline skin" <?php else: ?> class="btn p-l-md p-r p-y-xs btn-outline b-skin text-skin"<?php endif; ?> data-toggle="tooltip" data-placement="bottom" data-original-title="按日期排序">
                      日期
                      <i class="icon-xjt1 m-l-xs"></i>
                      </a>


                    </div>
                  </form>


                </div>



                <div class="p-a-md">


                  <?php if ($this->_tpl_vars['collections']): ?>
                  <div class="row">
                    <?php $_from = $this->_tpl_vars['collections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
                    <div class="col-xs-6 col-md-3">
                      <div class="box mb-co-b b-a">
                        <div class="item dark">
                          <div class="img-container fx-img-rotate-l fx-opt-zoom-out">
                            <?php if ($this->_tpl_vars['c']['photo'] != ''): ?>
                            <img class="w-full" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/collections/<?php echo $this->_tpl_vars['c']['photo']; ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
                            <?php else: ?>
                            <img class="w-full" src="<?php echo $this->_tpl_vars['template_data']; ?>
img/default-collection.jpg" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
                            <?php endif; ?>
                            <div class="img-options">
                              <div class="img-options-content">
                                <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
" target="_blank" class="btn skin text-white">
                                  <i class="icon-magnifier-add"></i>
                                </a>
                              </div>
                            </div>
                          </div>
                        </div>
                        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
" target="_blank" class="md-btn md-raised md-fab md-mini m-r pos-rlt md-fab-offset pull-right white"><i class="icon-plus2 md-24"></i></a>
                        <div class="p-a">
                          <p class="h-1x m-b-0 text-grey"><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['text'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>
                          <div class="h-2xx"><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
" target="_blank" class="h6"><?php echo $this->_tpl_vars['c']['name']; ?>
</a></div>
                          <div class="clearfix m-t-xs">
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-r-sm">
                              <span class="w-32 avatar">
                                <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['avatar'] != ''): ?>
                                <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['c']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['avatar']; ?>
" />
                                <?php else: ?>
                                <span class="circle skin _100 w-32 fs-80">
                                  NP
                                </span>
                                <?php endif; ?>
                              </span>
                            </a>
                            <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" target="_blank" class="pull-left m-t-sm clear">
                              <?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['nickname']; ?>

                            </a>
                            <div class="pull-right">
                              <div class="h-32"><a class="price text-grey"><?php echo $this->_tpl_vars['lang']['items']; ?>
<span class="text-lg"> <?php echo $this->_tpl_vars['c']['items']; ?>
</span></a></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <?php endforeach; endif; unset($_from); ?>
                  </div>
                  <?php echo $this->_tpl_vars['paging']; ?>

                  <?php else: ?>
                  <div class="row">
                    <div class="col-xs-12 text-center">
                      <section class="panel no-radius p-t-lg p-b-lg panel-shadow">
                        <div class="panel-body bg-white-only no-radius">
                          <h3><?php echo $this->_tpl_vars['lang']['no_collections']; ?>
</h3>
                        </div>
                      </section>
                    </div>
                  </div>
                  <?php endif; ?>


                </div>




              </div>

            </div>


          </div>
        </div>
      </div>


    </div>
    <!-- ############ PAGE END-->
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/backtop.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/mb-settings.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <!-- ############ LAYOUT END-->
</div>
<?php echo '
<style>
  .box.edit{
    min-height: 744px;
  }
</style>
'; ?>

</body>
</html>