{include file="$template_path/html/header.html"}
</head>
<body class="">
{include file="$template_path/html/user-header-self.html"}

<div class="space-items clear bg-lgray b-b" id="items">
  <div class="container">
    <div class="row">
      <div class="container m-b-md text-center">
        <ul class="nav navbar-nav space-nav ">
          {include file="$template_path/users/tabsy.html"}
        </ul>

      </div>
    </div>
  </div>
</div>
<section class="clearfix">
  <div class="container pos-rlt p-t-md m-t-sm m-b-lg m-xs-t-none m-xs-b-none">


    <div class="row">

      {$errorMessage}
      <div class="col-xs-12 col-sm-12 col-md-6">



        <div class="m-b-lg m-xs-b h3">
          <a href="/index.php/user/cbook/" data-toggle="ajaxModal" class="btn btn-ghost-danger btn-rounded btn-xs-xs pull-right hidden-md hidden-lg" target="_blank">
            创建书签集
          </a>
          <span class="font-thin h3-xs text-black">我的公开书签集</span>
        </div>
        {if $collections.true}
        <div class="row">
          {foreach from=$collections.true item=c name=foo}
          <div class="col-xs-6 col-sm-6 col-md-6">
            <section class="panel mb-col b-a b-2x no-radius">
              <div class="panel-body no-padder">
                <div class="img-container fx-img-rotate-l">
                  {if $c.photo != ''}
                  <img class="w-full" src="{$data_server}/uploads/collections/{$c.photo}" alt="{$i.name|escape}">
                  {else}
                  <img class="w-full" src="{$template_data}img/default-collection.jpg" alt="{$i.name|escape}">
                  {/if}
                  <div class="img-options">
                    <div class="img-options-content">
                      <a href="/{$languageURL}collections/view/{$c.id}" class="btn btn-danger btn-lg" data-toggle="tooltip" data-placement="bottom" data-original-title="了解详情">
                        <i class="i i-eye"></i>
                      </a>
                    </div>
                  </div>
                </div>
                <div class="cate-bg cates-2">
                  <span class="cate-text">公开</span>
                </div>
              </div>
              <div class="panel-footer bg-white-only b-b no-radius">
                <div class="ss-underline">
                  <a href="/{$languageURL}collections/view/{$c.id}">
                    {$c.name}
                  </a>
                </div>
                <h4 class="m-t-sm"><a href="/{$languageURL}collections/view/{$c.id}" class="height-h4">{$c.text|nl2br}</a></h4>
                <div class="clearfix">
                        <span class="pull-right hidden-xs">
                          <small class="m-r-xs fm-sf text-xlg font-normal">{$c.items}</small>{$lang.items}
                        </span>
                  <a href="/{$languageURL}users/{$users[$c.user_id].username}" class="thumb-sm pull-left m-r">
                    {if $users[$c.user_id].avatar != ''}
                    <img alt="{$users[$c.user_id].username}" class="img-circle m-t-xs" src="{$data_server}uploads/users/{$c.user_id}/A_{$users[$c.user_id].avatar}" />
                    {else}
                    <img alt="{$users[$c.user_id].username}" class="img-circle m-t-xs" src="{$data_server}home/default/img/default-user.jpg" />
                    {/if}
                  </a>
                        <span class="clear m-t-sm text-lg">
                          <a href="/{$languageURL}user/{$users[$fi.user_id].username}">{$users[$c.user_id].username}</a>
                        </span>
                </div>
              </div>
            </section>
          </div>
          {/foreach}
        </div>
        {else}
        <div class="row">
          <div class="col-xs-12 text-center">
            <section class="panel p-t-lg p-b-lg no-shadow no-borders">
              <div class="panel-body no-radius">
                <img src="/mbthemes/images/no-bookmarks.png" class="img-full">
              </div>
            </section>
          </div>
        </div>
        {/if}



      </div>



      <div class="col-xs-12 col-sm-12 col-md-6">



        <div class="m-b-lg m-xs-b h3">
          <a href="/index.php/user/cbook/" data-toggle="ajaxModal" class="btn btn-ghost-danger btn-rounded btn-xs-xs pull-right hidden-xs hidden-sm" target="_blank">
            创建书签集
          </a>
          <span class="font-thin h3-xs text-black">我的私人书签集</span>
        </div>
        {if $collections.false}
        <div class="row">
          {foreach from=$collections.false item=c name=foo}
          <div class="col-xs-6 col-sm-6 col-md-6">
            <section class="panel mb-col b-a b-2x no-radius">
              <div class="panel-body no-padder">
                <div class="img-container fx-img-rotate-l">
                  {if $c.photo != ''}
                  <img class="w-full" src="{$data_server}/uploads/collections/{$c.photo}" alt="{$i.name|escape}">
                  {else}
                  <img class="w-full" src="{$template_data}img/default-collection.jpg" alt="{$i.name|escape}">
                  {/if}
                  <div class="img-options">
                    <div class="img-options-content">
                      <a href="/{$languageURL}collections/view/{$c.id}" class="btn btn-danger btn-lg" data-toggle="tooltip" data-placement="bottom" data-original-title="了解详情">
                        <i class="i i-eye"></i>
                      </a>
                    </div>
                  </div>
                </div>
                <div class="cate-bg cates-1">
                  <span class="cate-text">私人</span>
                </div>
              </div>
              <div class="panel-footer bg-rgbab no-borders no-radius">
                <div class="ss-underline">
                  <a href="/{$languageURL}collections/view/{$c.id}">
                    {$c.name}
                  </a>
                </div>
                <h4 class="m-t-sm"><a href="/{$languageURL}collections/view/{$c.id}" class="height-h4">{$c.text|nl2br}</a></h4>
                <div class="clearfix">
                        <span class="pull-right hidden-xs text-white-only">
                          <small class="m-r-xs fm-sf text-xlg font-normal text-info">{$c.items}</small>{$lang.items}
                        </span>
                  <a href="/{$languageURL}users/{$users[$c.user_id].username}" class="thumb-sm pull-left m-r">
                    {if $users[$c.user_id].avatar != ''}
                    <img alt="{$users[$c.user_id].username}" class="img-circle m-t-xs" src="{$data_server}uploads/users/{$c.user_id}/A_{$users[$c.user_id].avatar}" />
                    {else}
                    <img alt="{$users[$c.user_id].username}" class="img-circle m-t-xs" src="{$data_server}home/default/img/default-user.jpg" />
                    {/if}
                  </a>
                        <span class="clear m-t-sm text-lg">
                          <a href="/{$languageURL}user/{$users[$fi.user_id].username}">{$users[$c.user_id].username}</a>
                        </span>
                </div>
              </div>
            </section>
          </div>
          {/foreach}
        </div>
        {else}
        <div class="row">
          <div class="col-xs-12 text-center">
            <section class="panel p-t-lg p-b-lg no-shadow no-borders">
              <div class="panel-body no-radius">
                <img src="/mbthemes/images/no-bookmark.png" class="img-full">
              </div>
            </section>
          </div>
        </div>
        {/if}



      </div>



    </div>



  </div>
</section>



{include file="$template_path/html/user-footer.html"}
</body>
</html>