<?php /* Smarty version 2.6.22, created on 2015-12-30 03:54:07
         compiled from E:/xampp/htdocs/templates/home/default%5Cusers%5Cbookmarks.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\\users\\bookmarks.html', 40, false),array('modifier', 'nl2br', 'E:/xampp/htdocs/templates/home/default\\users\\bookmarks.html', 55, 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/space.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">

    <div ui-view class="app-body" id="view">
      <!-- ############ PAGE START-->

      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['template_path'])."/html/user-top.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

      <div class="clearfix white">
        <div class="container">
          <?php echo $this->_tpl_vars['errorMessage']; ?>

          <div class="row-col">
            <div class="col-sm b-r b-l">
              <div class="box edit pos-rlt m-b-0">
                <div class="p-a-md">
                  <div class="clearfix">
                    <h3 class="pull-left p-t-xs">公开书签集</h3>
                    <a data-toggle="modal" data-target="#cbook" class="btn btn-outline b-skin text-skin btn-sm pull-right" >
                      创建书签集
                    </a>
                  </div>


                  <?php if ($this->_tpl_vars['collections']['true']): ?>
                  <div class="row text-skin-hover m-t">
                    <?php $_from = $this->_tpl_vars['collections']['true']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['foo']['iteration']++;
?>
                    <div class="col-xs-6">
                      <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 else: ?>
                  <div class="row">
                    <div class="col-xs-12 text-center">
                      <section class="box p-y-lg no-shadow no-borders">
                        <div class="box-body h4 p-y-lg text-muted no-radius">
                          还没有公开的书签集
                        </div>
                      </section>
                    </div>
                  </div>
                  <?php endif; ?>



                </div>
              </div>
            </div>
            <div class="col-sm b-r">

              <div class="box edit pos-rlt m-b-0">
                <div class="p-a-md">
                  <div class="clearfix">
                    <h3 class="pull-left p-t-xs">私人书签集</h3>
                    <a data-toggle="modal" data-target="#cbook" class="btn btn-outline b-danger text-danger btn-sm pull-right">
                      创建私人书签集
                    </a>
                  </div>

                  <?php if ($this->_tpl_vars['collections']['false']): ?>
                  <div class="row text-danger-hover m-t">
                    <?php $_from = $this->_tpl_vars['collections']['false']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['c']):
        $this->_foreach['foo']['iteration']++;
?>
                    <div class="col-xs-6">
                      <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 btn-danger 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 else: ?>
                  <div class="row">
                    <div class="col-xs-12 text-center">
                      <section class="box p-y-lg no-shadow no-borders">
                        <div class="box-body h4 p-y-lg text-muted no-radius">
                          还没有私人书签集
                        </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>
  .h-1x{
    height: 21px;
    line-height: 21px;
    overflow: hidden;
  }
</style>
'; ?>


<?php if (check_login_bool ( )): ?>


<div id="cbook" class="modal black-overlay in" data-backdrop="true">
  <div class="modal-dialog modal-sm">


    <form action="" enctype="multipart/form-data" id="new_collection" method="post">
      <div class="modal-content black lt">

        <fieldset>

        <div class="modal-header">
          <h4 class="modal-title">新建书签集</h4>
        </div>
        <div class="modal-body">

          <div class="form-group text-left">
            <label for="name">书签名称</label>
            <input id="collection_name" class="form-control" name="name" type="text" />
          </div>
          <div class="form-group text-left">
            <label for="description"><?php echo $this->_tpl_vars['lang']['description']; ?>
</label>
            <textarea class="form-control" id="collection_description" name="description" rows="6"></textarea>
          </div>
          <div class="form-group text-left">
            <label for="file_upload">书签封面图</label>
            <input id="file_upload" name="file_upload" class="form-control" type="file">
            <span class="help-block m-b-none">(260 x 140px)</span>
          </div>
          <label class="md-switch" for="collection_publically_visible">
            <input id="collection_publically_visible" name="publically_visible" type="checkbox" checked="" value="1">
            <i class="skin"></i>
            是否为公开书签集?
          </label>
        </div>
        </fieldset>
        <div class="modal-footer" href="javascript: void(0);">
          <button type="button" class="btn white btn-sm" data-dismiss="modal">关闭</button>
          <input type="hidden" name="add" value="yes" />
          <button type="submit" class="btn skin btn-sm p-x-md"><?php echo $this->_tpl_vars['lang']['create']; ?>
</button>
        </div>
      </div>
    </form>
  </div>
</div>

<?php endif; ?>

</body>
</html>