function content_55e444535d2684_93246642($_smarty_tpl)
    {
        ?>
<div class="col-md-3 paddingleft0">
  <div class="ad"><?php 
        echo getAd(array('place' => 'ad_320x250'), $_smarty_tpl);
        ?>
</div>
  <div class="left-navbar-collapse"> 
    <div class="navbar-collapse collapse padding-left-right-zero" id="collapsed-navigation">
      <ul class="nav navbar-stacked nopadding">
        <?php 
        echo getSmartyCategoryList(array('type' => $_smarty_tpl->tpl_vars['type']->value, 'echo' => "TRUE", 'list_style' => "collapsed", 'output' => "list", 'with_all' => "TRUE"), $_smarty_tpl);
        ?>

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

<script>
$(document).ready(function (){
$('.CategoryToggler').css({
   'padding-left' : '1px',
     'padding-right' : '1px',
         'cursor' : 'pointer'
});

$('.CategoryToggler').addClass('CategoryToggler2');
$('.CategoryToggler').on("click", function (){

$(this).toggleClass('CategoryToggler2');
if(!$(this).hasClass('CategoryToggler2')) 
{

$('.sub_categories').slideDown();

}
else

{

  $('.sub_categories').slideUp();
}

});

});
</script>
<style type="text/css">
  
  .left-navbar-collapse .navbar-collapse {
    max-height: 100% !important;
    height: auto !important;
  }

</style><?php 
    }
    function content_55e44453514239_17380332($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
            $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
            $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
            $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7);
            $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 7), null, 0);
        }
        ?>

<div class="container marginBottom">
    
    <div class="cb-box row">
        <!-- Listing Categories -->
        <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/category_list.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('type' => 'channels'), 0);
        ?>

        <!-- Listing Categories End -->
        <div class="col-md-9 nopadding">
            <!-- Page Heading -->
            <div class="page-hidding hidden-xs ">
                <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
                <h4 class="smaller lighter pull-left"><?php 
        if ($_GET['cat'] == 'all' || $_GET['cat'] == '') {
            echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl);
            ?>
: 
                <?php 
        } elseif ($_GET['seo_cat_name'] != '') {
            ?>
 Browsing <i><?php 
            echo $_GET['seo_cat_name'];
            ?>
</i> Category <?php 
        } else {
            ?>
 
                Browsing Category <?php 
            echo $_GET['cat'];
            ?>
 <?php 
        }
        ?>
</h4>
                <div class="pull-right">
                    <!--Sorting By View-->
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['sort']) {
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                            <?php 
                if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                            <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                            <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                            <button class="btn btn-default" type="button">
                            Recent
                            </button>
                            <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                                <span class="arrow-drop"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                            </button>
                        <?php 
        }
        ?>
       

                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>



                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div>

                    <!--Sorting By time-->
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <div class="btn-group custom-dropdown">
                        <?php 
        if ($_GET['timing']) {
            ?>

                        <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
            $_smarty_tpl->tpl_vars['name']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                $_smarty_tpl->tpl_vars['name']->iteration++;
                $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
                $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
                ?>
                        <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>

                        <button class="btn btn-default" type="button">
                            <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button><!--<span class="glyphicon glyphicon-sort"></span> Most <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>
-->
                        <?php 
                }
                ?>
                        <?php 
            }
            ?>
                        <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                            All Time
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
        }
        ?>
                        <ul role="menu" class="dropdown-menu">
                            <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['name']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            $_smarty_tpl->tpl_vars['name']->iteration++;
            $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'channels'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <?php 
        }
        ?>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- /Page Heading-->
            <div class="clearfix">
                <div class="time_cont">
                    <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        $_smarty_tpl->tpl_vars['name']->total = $_smarty_tpl->_count($_from);
        $_smarty_tpl->tpl_vars['name']->iteration = 0;
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            $_smarty_tpl->tpl_vars['name']->iteration++;
            $_smarty_tpl->tpl_vars['name']->last = $_smarty_tpl->tpl_vars['name']->iteration === $_smarty_tpl->tpl_vars['name']->total;
            $_smarty_tpl->tpl_vars['smarty']->value['foreach']['times']['last'] = $_smarty_tpl->tpl_vars['name']->last;
            ?>
                    <?php 
            if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['times']['last']) {
            }
            ?>
                    <?php 
        }
        ?>
                </div>
                <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['name'] = 'u_list';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['users']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['u_list']['total'];
                ?>
                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 marginBottom grid_view list_view channels-view">
                    <div class="user-block user-view-home clearfix">
                    	<?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/user.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('user' => $_smarty_tpl->tpl_vars['users']->value[$_smarty_tpl->getVariable('smarty')->value['section']['u_list']['index']], 'block_type' => "groups_show"), 0);
                ?>

                    </div>
                </div>
                <?php 
            }
        } else {
            ?>
                <?php 
            echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl);
            ?>

                <?php 
        }
        ?>
            </div>
            <div align="center">
                <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

            </div>
        </div>
        <div class="col-md-2  paddingright0  hidden-sm hidden-xs visible-md visible-lg">
         
             <div class="ad"><?php 
        echo getAd(array('place' => 'ad_160x600'), $_smarty_tpl);
        ?>
</div>
           <!-- <a href="http://www.arvixe.com/clipbucket_hosting"><img class="banner pull-right" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/ad-box-160x600.jpg"></a>-->
        </div>
    </div>
</div><?php 
    }
                </div>
                <div class="con-menu fr">
                    <?php 
if ($setting['online_kefu']) {
    ?>
                        <a class="service-add fl" href="http://wpa.qq.com/msgrd?v=3&uin=<?php 
    echo $setting['online_kefu'];
    ?>
&site=qq&menu=yes" target="_top" rel="nofollow"></a>
                    <?php 
}
?>
                </div>
            </div>            
            <div class="links"><?php 
$ad = getAd('flink', 99, $adlist);
?>
                <span>友情链接:</span>
                <div class="links_list_box">
                    <ul style="margin-top: 0px;" class="links_list">
                        <?php 
if (is_array($ad)) {
    foreach ($ad as $key => $vo) {
        ?>
<li><a href="<?php 
        echo $vo["url"];
        ?>
" <?php 
        if ($vo['blank']) {
            ?>
target='_blank'<?php 
                <input name="keywords" id="keywords" class="txt" value="请输入想找的宝贝" title="请输入想找的宝贝" type="text" onblur="if (value=='') {value='请输入想找的宝贝'}" onfocus="if(value=='请输入想找的宝贝') {value=''}">
            </span>
            <input value="搜全站" class="smt fr" type="submit">
            </form>
        </div>
    </div>

    <div class="mainNav">
     <div class="nav" style="position:relative">
                <?php 
$allsort = IndexModel::I()->getAllSort();
?>
            <ul id="" class="navigation fl">
           		 <li style="background:#b1191a" class="all_sort_bar"><a href="javascript:;" style="width:114px">全部商品分类</a></li>
                <li class="" id="menu-item-1"><a href="/">首页</a></li><?php 
$ad = getAd('nav', 99, $adlist);
?>
                <?php 
if ($ad) {
    ?>
                <?php 
    if (is_array($ad)) {
        $i = 0;
        $__LIST__ = $ad;
        if (count($__LIST__) == 0) {
            echo "";
        } else {
            foreach ($__LIST__ as $key => $data) {
                $mod = $i % 2;
                ++$i;
                ?>
Exemple #5
0
 per dispense!</li>
        <li><i class='icon-time'></i> Get a dispense every <strong><?php 
echo $dispenseTimeText;
?>
</strong>!</li>
        <li><i class='icon-ok'></i> No work needed - just click!</li>
        <li><i class='icon-bell'></i> <strong>Instant</strong> as soon as you reach cashout threshold of <?php 
echo number_format($cashout);
?>
 <?php 
echo SUB_UNIT_NAME;
?>
</li>
<?php 
if (!empty($wallet)) {
    ?>
        <li><i class='icon-globe'></i> <?php 
    echo $wallet;
    ?>
 - no transaction fees and offchain!</li>
<?php 
}
?>
</div>
<?php 
echo getAd($bannerAds);
echo getAd($textAds);
?>

<?php 
require 'footer.php';
Exemple #6
0
 function showContent($content)
 {
     $content = str_replace('<hr />', "", $content);
     $content = str_replace('<hr>', "", $content);
     $content = str_replace("------", "", $content);
     $content = str_replace('<pre class="prettyprint">', '<pre class="prettyprint linenums">', $content);
     $content = str_replace('<UIKit/UIKit.h>', '&lt;UIKit/UIKit.h&gt;', $content);
     $content = str_replace('<CoreLocation/CoreLocation.h>', '&lt;CoreLocation/CoreLocation.h&gt;', $content);
     $content = str_replace("[Ad:336px]", '<p>' . getAd() . '</p>', $content);
     $content = str_replace("[Ad:728px]", '<p>' . getAd("728px") . '</p>', $content);
     $content = str_replace("[Ad:Block]", '<p>' . getAd() . '</p>', $content);
     $content = str_replace("[Ad:Sky]", '<p>' . getAd("728px") . '</p>', $content);
     $content = str_replace("[ad:336px]", '<p>' . getAd() . '</p>', $content);
     $content = str_replace("[ad:728px]", '<p>' . getAd("728px") . '</p>', $content);
     $content = str_replace("[Ad:block]", '<p>' . getAd() . '</p>', $content);
     $content = str_replace('\\"', '"', $content);
     $content = str_replace("\\'", "'", $content);
     $content = str_replace("<a ", '<a rel="nofollow" ', $content);
     $content = removeRareChars($content);
     return setCode($content);
 }
    function content_55e44443075054_87310853($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_truncate')) {
            include '/var/www/includes/smartyv3/plugins/modifier.truncate.php';
        }
        ?>
<div class="container">
	<div id="fb-root"></div>
	<script>(function(d, s, id) {
	    var js, fjs = d.getElementsByTagName(s)[0];
	    if (d.getElementById(id)) return;
	    js = d.createElement(s); js.id = id;
	    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=120542078043680";
	    fjs.parentNode.insertBefore(js, fjs);
	}(document, 'script', 'facebook-jssdk'));
	</script>
	<div class="row cb-box marginBottom">

		<?php 
        if (isset($_smarty_tpl->tpl_vars['row'])) {
            $_smarty_tpl->tpl_vars['row'] = clone $_smarty_tpl->tpl_vars['row'];
            $_smarty_tpl->tpl_vars['row']->value = $_smarty_tpl->tpl_vars['myquery']->value->Get_Website_Details();
            $_smarty_tpl->tpl_vars['row']->nocache = null;
            $_smarty_tpl->tpl_vars['row']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['row'] = new Smarty_variable($_smarty_tpl->tpl_vars['myquery']->value->Get_Website_Details(), null, 0);
        }
        ?>

	    <!--<div class="alert alert-info margin-bottom-10 ">-->
	    <?php 
        echo ANCHOR(array('place' => 'global'), $_smarty_tpl);
        ?>
 
	    <!--	</div> -->
	    <div class="clearfix"></div>
	       
		<?php 
        if (is_installed('editorspick')) {
            ?>
		<?php 
            if ($_smarty_tpl->tpl_vars['editor_picks']->value) {
                ?>
		<div class="row">
	        <div class="col-md-8">
				<!-- Editor Pick Video Main Container START //-->
				<div id="ep_video_container">
					<?php 
                if (is_installed('editorspick')) {
                    ?>
					<?php 
                    if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list'])) {
                        unset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']);
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['name'] = 'e_list';
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['editor_picks']->value) ? count($_loop) : max(0, (int) $_loop);
                    unset($_loop);
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = (int) 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = true;
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] < 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'];
                    }
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] = 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - 1;
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] + 1) / abs($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max']);
                        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] == 0) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = false;
                        }
                    } else {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = 0;
                    }
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) {
                        for ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']++) {
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'];
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == 1;
                            $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'];
                            ?>
					<?php 
                            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/editor_pick/video_block.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['editor_picks']->value[$_smarty_tpl->getVariable('smarty')->value['section']['e_list']['index']]), 0);
                            ?>

					<?php 
                        }
                    } else {
                        ?>
					There is no video in editor's pick, Please Add Videos In Editor's Pick<br />Videos Manager > Add to editor's pick
					<?php 
                    }
                    ?>
					<?php 
                }
                ?>
				</div>
				
				<!-- Editor Pick Video Main Container END //-->

	        </div>

			<!-- Editor Pick Videos Slider Container START //-->
	        <div class="col-md-4 col-sm-12 col-xs-12 editorpick-holder pull-right custom-elements">
	            <div id="slide" class="scrollable-area">
					<?php 
                if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list'])) {
                    unset($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']);
                }
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['name'] = 'e_list';
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['editor_picks']->value) ? count($_loop) : max(0, (int) $_loop);
                unset($_loop);
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = true;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] = 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'] - 1;
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['loop'];
                    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] == 0) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show'] = false;
                    }
                } else {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'] = 0;
                }
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['show']) {
                    for ($_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration']++) {
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['step'];
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == 1;
                        $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['e_list']['total'];
                        ?>
	            	<?php 
                        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/editor_pick/index_featured_video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['editor_picks']->value[$_smarty_tpl->getVariable('smarty')->value['section']['e_list']['index']]), 0);
                        ?>

					<?php 
                    }
                }
                ?>
	        	</div>
				<div class="next_pre_hold">
					<a href="#" class="col-md-6 btn btn-primary" id="slide_prev">
					<span class="glyphicon glyphicon-chevron-up"></span>
					</a>
					<a href="#" class="col-md-6 btn btn-primary" id="slide_next">
					<span class="glyphicon glyphicon-chevron-down"></span>
					</a>
				</div>
			</div>
	        <!-- Editor Pick Videos Slider Container END //-->
		</div>
		<?php 
            }
            ?>
		<?php 
        }
        ?>
	    <!-- ******************************************* //-->
		<!-- ************ EDITORS BLOCK END ************ //-->
	    <!-- ******************************************* //-->
	       
	    
	         
	   <!-- <div align="center" class="margin-bottom-10">
	    	<a href="http://www.arvixe.com/clipbucket_hosting">
	    		<img class="banner" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/ad-box-728x90.jpg" >

			</a>
		</div>-->
		<div class="ad"><?php 
        echo getAd(array('place' => 'ad_728x90'), $_smarty_tpl);
        ?>
</div>
		<!-- ******************************************* //-->
		<!-- *********** LATEST VIDEOS START *********** //-->
		<!-- ******************************************* //-->
		<div class="row">
			<div class="col-md-12 clearfix">
				<div class="col-md-8 nopadding padding-right-10 featuredvideos-wrapper">
					<h2 class="myHeading theme_color"><?php 
        echo smarty_lang(array('code' => "Featured Videos"), $_smarty_tpl);
        ?>
</h2>
					<?php 
        if (isset($_smarty_tpl->tpl_vars['featured_videos'])) {
            $_smarty_tpl->tpl_vars['featured_videos'] = clone $_smarty_tpl->tpl_vars['featured_videos'];
            $_smarty_tpl->tpl_vars['featured_videos']->value = get_videos(array('featured' => 'yes', 'limit' => 6));
            $_smarty_tpl->tpl_vars['featured_videos']->nocache = null;
            $_smarty_tpl->tpl_vars['featured_videos']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['featured_videos'] = new Smarty_variable(get_videos(array('featured' => 'yes', 'limit' => 6)), null, 0);
        }
        ?>
					<?php 
        if ($_smarty_tpl->tpl_vars['featured_videos']->value) {
            ?>
					<div class="col-md-12 featured-videos nopadding">
						<div class="col-md-12 text-center nopadding ">
							<div class="col-md-8 text-center nopadding mouse_hover featured-imglg">
							
								<?php 
            if (isset($_smarty_tpl->tpl_vars['video_01'])) {
                $_smarty_tpl->tpl_vars['video_01'] = clone $_smarty_tpl->tpl_vars['video_01'];
                $_smarty_tpl->tpl_vars['video_01']->value = $_smarty_tpl->tpl_vars['featured_videos']->value[0];
                $_smarty_tpl->tpl_vars['video_01']->nocache = null;
                $_smarty_tpl->tpl_vars['video_01']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['video_01'] = new Smarty_variable($_smarty_tpl->tpl_vars['featured_videos']->value[0], null, 0);
            }
            ?>
								<div class="col-md-12 text-center nopadding video_thumb_lg">
									<a href="<?php 
            echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_01']->value), $_smarty_tpl);
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['video_01']->value['title'];
            ?>
">
										<span class="play-icon fa fa-play"></span>
										<img class="cb_img_thum" src="<?php 
            echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_01']->value, 'num' => '4', 'size' => 'big'), $_smarty_tpl);
            ?>
" width="500" height="285" border="0" <?php 
            echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_01']->value), $_smarty_tpl);
            ?>
 />
									</a>
									<div class="cbHomeVidTitle cbHomeVidTitle_Big mouse_hover_on"><?php 
            echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_01']->value['title'], 30);
            ?>
</div>
								</div>
					            <div class="cbHomeVidDuration mouse_hover_on">
					            <?php 
            if ($_smarty_tpl->tpl_vars['video_01']->value['duration'] > 1) {
                echo SetTime($_smarty_tpl->tpl_vars['video_01']->value['duration']);
            } else {
                ?>
00:00ewwew<?php 
            }
            ?>
					            </div>
					            <div class="cbHomeVidDuration_left mouse_hover_on">
					            	<?php 
            echo $_smarty_tpl->tpl_vars['video_01']->value['username'];
            ?>

					            </div>
							</div>
							<div class="col-md-4 col-sm-6 hidden-xs text-center nopadding-right pull-right tumb-sm">
							<?php 
            $_smarty_tpl->tpl_vars['video_02'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['video_02']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['featured_videos']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['video_02']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['video_02']->key => $_smarty_tpl->tpl_vars['video_02']->value) {
                $_smarty_tpl->tpl_vars['video_02']->_loop = true;
                $_smarty_tpl->tpl_vars['video_02']->iteration++;
                ?>
								<?php 
                if ($_smarty_tpl->tpl_vars['video_02']->iteration > 1 && $_smarty_tpl->tpl_vars['video_02']->iteration < 4) {
                    ?>
								<div class="col-md-12 text-center nopadding mouse_hover1 featured-video video_thumb" style="<?php 
                    if (!$_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['last']) {
                        ?>
 <?php 
                    }
                    ?>
 " >
									<a href="<?php 
                    echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo $_smarty_tpl->tpl_vars['video_02']->value['title'];
                    ?>
">
										<span class="play-icon fa fa-play"></span>
										<img class="cb_img_thum" src="<?php 
                    echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value, 'size' => '240x133'), $_smarty_tpl);
                    ?>
" width="240" height="133" <?php 
                    echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl);
                    ?>
 />
										<div class="cbHomeVidTitle mouse_hover_on1"><?php 
                    echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_02']->value['title'], 10);
                    ?>
</div>
										<div class="cbHomeVidDuration mouse_hover_on1">
						            		<?php 
                    if ($_smarty_tpl->tpl_vars['video_02']->value['duration'] > 1) {
                        echo SetTime($_smarty_tpl->tpl_vars['video_02']->value['duration']);
                    } else {
                        ?>
00:00<?php 
                    }
                    ?>
						            	</div>
									</a>
								</div>
								<?php 
                }
                ?>

							<?php 
            }
            ?>
							</div>
							<div class="col-lg-12 col-md-12 text-center nopadding">
							<?php 
            $_smarty_tpl->tpl_vars['video_02'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['video_02']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['featured_videos']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            $_smarty_tpl->tpl_vars['video_02']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['video_02']->key => $_smarty_tpl->tpl_vars['video_02']->value) {
                $_smarty_tpl->tpl_vars['video_02']->_loop = true;
                $_smarty_tpl->tpl_vars['video_02']->iteration++;
                ?>
							<?php 
                if ($_smarty_tpl->tpl_vars['video_02']->iteration > 3) {
                    ?>
								<div class="col-lg-4 col-md-4 col-sm-6 hidden-xs video_thumb text-center nopadding-right mouse_hover featured-video <?php 
                    if ($_smarty_tpl->tpl_vars['video_02']->iteration == 4) {
                        ?>
nopadding<?php 
                    }
                    ?>
 ">
									<a href="<?php 
                    echo videoSmartyLink(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo $_smarty_tpl->tpl_vars['video_02']->value['title'];
                    ?>
">
										<span class="play-icon fa fa-play"></span>
										<img class="cb_img_thum" src="<?php 
                    echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video_02']->value, 'size' => '240x133'), $_smarty_tpl);
                    ?>
" width="240" height="133" <?php 
                    echo ANCHOR(array('place' => "video_thumb", 'data' => $_smarty_tpl->tpl_vars['video_02']->value), $_smarty_tpl);
                    ?>
 />
									
										<div class="cbHomeVidTitle mouse_hover_on"><?php 
                    echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['video_02']->value['title'], 10);
                    ?>
</div>

										<div class="cbHomeVidDuration mouse_hover_on">
							            <?php 
                    if ($_smarty_tpl->tpl_vars['video_02']->value['duration'] > 1) {
                        echo SetTime($_smarty_tpl->tpl_vars['video_02']->value['duration']);
                    } else {
                        ?>
00:00<?php 
                    }
                    ?>
							            </div>
									</a>
								</div>
							<?php 
                }
                ?>
							<?php 
            }
            ?>
							</div>
			                
			            </div>
					
		        		<div class="clearfix"></div>    
					</div>
					<?php 
        } else {
            ?>
					<div class="col-md-12 nopadding">No featured Video</div>
					<?php 
        }
        ?>
			        <div class="clearfix"></div>
			        <div class="row nopadding">
			        	<h3 class="myHeading theme_color"><?php 
        echo lang('Recent videos');
        ?>
</h3>
			        	<?php 
        if (isset($_smarty_tpl->tpl_vars['videos'])) {
            $_smarty_tpl->tpl_vars['videos'] = clone $_smarty_tpl->tpl_vars['videos'];
            $_smarty_tpl->tpl_vars['videos']->value = get_videos(array("order" => "date_added DESC", "limit" => 12));
            $_smarty_tpl->tpl_vars['videos']->nocache = null;
            $_smarty_tpl->tpl_vars['videos']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['videos'] = new Smarty_variable(get_videos(array("order" => "date_added DESC", "limit" => 12)), null, 0);
        }
        ?>
						<div class="clearfix recent-videos row">
				        	<?php 
        $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['video']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['videos']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) {
            $_smarty_tpl->tpl_vars['video']->_loop = true;
            ?>

				        	<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 mbm cb-video-fixed-block">
				        		<!-- <div class="marginBottom grid_view recent-col list_view nopadding-right"> -->
								<?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
            ?>

								<!-- </div> -->
							</div>
				        	<?php 
        }
        ?>
			        	</div>
			        </div>
					
	              	<div class="ad"><?php 
        echo getAd(array('place' => 'ad_468x60'), $_smarty_tpl);
        ?>
</div>
			    	<div class="row nopadding">
			    		<?php 
        if ($_smarty_tpl->tpl_vars['row']->value['photosSection'] == 'yes') {
            ?>
						<div class="col-md-12 clearfix nopadding ">
			        		<h2 class="myHeading theme_color"><?php 
            echo smarty_lang(array('code' => "Photos"), $_smarty_tpl);
            ?>
</h2>
							<?php 
            if (isset($_smarty_tpl->tpl_vars['result_photos1_01'])) {
                $_smarty_tpl->tpl_vars['result_photos1_01'] = clone $_smarty_tpl->tpl_vars['result_photos1_01'];
                $_smarty_tpl->tpl_vars['result_photos1_01']->value = get_photos(array('order' => ' RAND() LIMIT 15 '));
                $_smarty_tpl->tpl_vars['result_photos1_01']->nocache = null;
                $_smarty_tpl->tpl_vars['result_photos1_01']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['result_photos1_01'] = new Smarty_variable(get_photos(array('order' => ' RAND() LIMIT 15 ')), null, 0);
            }
            ?>
		
			        		<?php 
            if ($_smarty_tpl->tpl_vars['result_photos1_01']->value) {
                ?>
	        				<!-- *********** FIRST PHOTOS START ************ //-->
	        				<!-- <div class="row clearfix fill-background lg-img"> -->
							<div class="clearfix featured-images">
								<div class="clearfix">
								<?php 
                $_smarty_tpl->tpl_vars['result_photo1_01'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['result_photo1_01']->_loop = false;
                $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
                $_from = $_smarty_tpl->tpl_vars['result_photos1_01']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['result_photo1_01']->key => $_smarty_tpl->tpl_vars['result_photo1_01']->value) {
                    $_smarty_tpl->tpl_vars['result_photo1_01']->_loop = true;
                    $_smarty_tpl->tpl_vars['i']->value = $_smarty_tpl->tpl_vars['result_photo1_01']->key;
                    ?>
									
								<?php 
                    if ($_smarty_tpl->tpl_vars['i']->value == 0) {
                        ?>
			

									<div class="ft-img col-md-7">
									

						            	<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item');
                        ?>
">
						            	<?php 
                        echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl);
                        ?>

						            	</a>
						            	<div class="hover">
						            		<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item');
                        ?>
">
						            			<span class="photo-title"><?php 
                        echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title'];
                        ?>
</span>
						            			<span class="plus">plus</span>
						            		</a>
						            	</div>
						          
						            </div>
						        <?php 
                    } elseif ($_smarty_tpl->tpl_vars['i']->value < 3) {
                        ?>
    

						           
						            
									
									<div class="ft-img col-md-5">
						            	<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item');
                        ?>
">
						            	<?php 
                        echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl);
                        ?>

						            	</a>
						            	<div class="hover">
						            		<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item');
                        ?>
">
						            			<span class="photo-title"><?php 
                        echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title'];
                        ?>
</span>
						            			<span class="plus">plus</span>
						            		</a>
						            	</div>
						           
						       	    </div>
						           
								<?php 
                    } elseif ($_smarty_tpl->tpl_vars['i']->value < 7) {
                        ?>
						           
									<div class="ft-img col-md-6">
						            	<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item');
                        ?>
">
						            	<?php 
                        echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl);
                        ?>

						            	</a>
						            	<div class="hover">
						            		<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item');
                        ?>
">
						            			<span class="photo-title"><?php 
                        echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title'];
                        ?>
</span>
						            			<span class="plus">plus</span>
						            		</a>
						            	</div>
						            
						       	    </div>
						            
								<?php 
                    } else {
                        ?>
			
						           
									<div class="ft-img col-md-3" style="height:140px;">
						            	<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_08']->value, 'view_item');
                        ?>
">
						            	<?php 
                        echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo1_01']->value, 'output' => 'html', 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl);
                        ?>

						            	</a>
						            	<div class="hover">
						            		<a href="<?php 
                        echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo1_01']->value, 'view_item');
                        ?>
">
						            			<span class="photo-title"><?php 
                        echo $_smarty_tpl->tpl_vars['result_photo1_01']->value['photo_title'];
                        ?>
</span>
						            			<span class="plus">plus</span>
						            		</a>
						            	</div>
						            
						       	    </div>
						         <?php 
                    }
                    ?>
   
						        
						        <?php 
                }
                ?>
						        </div>
								<!-- </div> -->
							</div>
					        <!-- *********** FIRST PHOTOS END ************ //-->
				     		<?php 
            }
            ?>

							<?php 
            if (isset($_smarty_tpl->tpl_vars['result_photos2_08'])) {
                $_smarty_tpl->tpl_vars['result_photos2_08'] = clone $_smarty_tpl->tpl_vars['result_photos2_08'];
                $_smarty_tpl->tpl_vars['result_photos2_08']->value = get_photos(array('order' => '  photo_id ASC LIMIT 4 '));
                $_smarty_tpl->tpl_vars['result_photos2_08']->nocache = null;
                $_smarty_tpl->tpl_vars['result_photos2_08']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['result_photos2_08'] = new Smarty_variable(get_photos(array('order' => '  photo_id ASC LIMIT 4 ')), null, 0);
            }
            ?>
						    
						    <?php 
            if ($_smarty_tpl->tpl_vars['result_photos2_08']->value) {
                ?>
 		
					        <!-- *********** SECOND PHOTOS START ************ //-->
							<!-- <div class="col-md-12 fill-background clearfix lg-img">
						        <div class="col-md-5 nopadding sm-imgs clearfix left-aligned">
								<?php 
                $_smarty_tpl->tpl_vars['result_photo2_08'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['result_photo2_08']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['result_photos2_08']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['result_photo2_08']->key => $_smarty_tpl->tpl_vars['result_photo2_08']->value) {
                    $_smarty_tpl->tpl_vars['result_photo2_08']->_loop = true;
                    ?>
									<div class="col-md-6 col-sm-6">
						        	<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo2_08']->value, 'view_item');
                    ?>
">
						        	<?php 
                    echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo2_08']->value, 'output' => 'html', 'width' => "128", 'height' => "118", 'size' => "l", 'class' => 'photoThumbBox moveL cb_img_thum'), $_smarty_tpl);
                    ?>

						        	</a>
						        <?php 
                    if ($_smarty_tpl->tpl_vars['photos']->iteration > 1) {
                        break 1;
                    }
                    ?>
						   	    </div>
						        <?php 
                }
                ?>
								</div>
								<?php 
                if (isset($_smarty_tpl->tpl_vars['result_photos2_01'])) {
                    $_smarty_tpl->tpl_vars['result_photos2_01'] = clone $_smarty_tpl->tpl_vars['result_photos2_01'];
                    $_smarty_tpl->tpl_vars['result_photos2_01']->value = get_photos(array('order' => '  RAND() LIMIT 1 '));
                    $_smarty_tpl->tpl_vars['result_photos2_01']->nocache = null;
                    $_smarty_tpl->tpl_vars['result_photos2_01']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['result_photos2_01'] = new Smarty_variable(get_photos(array('order' => '  RAND() LIMIT 1 ')), null, 0);
                }
                ?>
								<div class="col-md-7 big_img">
								<?php 
                $_smarty_tpl->tpl_vars['result_photo2_01'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['result_photo2_01']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['result_photos2_01']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['result_photo2_01']->key => $_smarty_tpl->tpl_vars['result_photo2_01']->value) {
                    $_smarty_tpl->tpl_vars['result_photo2_01']->_loop = true;
                    ?>
						        	<a href="<?php 
                    echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['result_photo2_01']->value, 'view_item');
                    ?>
">
						        	<?php 
                    echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['result_photo2_01']->value, 'output' => 'html', 'width' => "420", 'height' => "235", 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl);
                    ?>

						        	</a>
						        <?php 
                }
                ?>
						        </div>
							</div> -->
							<!-- *********** SECOND PHOTOS END ************ //-->
							<?php 
            }
            ?>
						</div>
						<?php 
        } else {
            ?>
						<div class="col-md-12 nopadding">No featured Photo</div>
						<?php 
        }
        ?>
	
					</div>

			        <!-- ******************************************* //-->
			        <!-- *********** PHOTOS END ************ //-->
			        <!-- ******************************************* //-->

				</div>
				<!-- ******************************************* //-->
		        <!-- ******** ADVERTISEMENT BLOCK START ******** //-->
		        <!-- ******************************************* //-->
				<!--<div class="col-md-4" style="background-color:#F2F2F2; padding-top:10px; padding-bottom:10px; margin-bottom:10px;">
				<h2 class="myHeadingBLK" style="margin-top:0;">Advertisement</h2>
					<div class="col-md-12 text-center nopadding" style="font-size:18px; border:1px solid #CCC; background:#FFF; display:block; height: 250px; width: 300px; line-height: 200px; text-align:center; left:7%;">
					Ad Box 300 x 250
					</div>
				</div>-->
				<!-- ******************************************* //-->
		        <!-- ******** ADVERTISEMENT BLOCK END ******** //-->
		        <!-- ******************************************* //-->


				<!-- ******************************************* //-->
		        <!-- ************* USER BLOCK START ************ //-->
		        <!-- ******************************************* //-->
				<?php 
        if (isset($_smarty_tpl->tpl_vars['feature_users'])) {
            $_smarty_tpl->tpl_vars['feature_users'] = clone $_smarty_tpl->tpl_vars['feature_users'];
            $_smarty_tpl->tpl_vars['feature_users']->value = get_users(array('featured' => 'yes', 'limit' => 5));
            $_smarty_tpl->tpl_vars['feature_users']->nocache = null;
            $_smarty_tpl->tpl_vars['feature_users']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['feature_users'] = new Smarty_variable(get_users(array('featured' => 'yes', 'limit' => 5)), null, 0);
        }
        ?>
				<?php 
        if ($_smarty_tpl->tpl_vars['feature_users']->value) {
            ?>
	     		<div class="col-md-4 side_user_home">
					<h2 class="myHeading theme_color"><?php 
            echo smarty_lang(array('code' => "Featured Users"), $_smarty_tpl);
            ?>
</h2>
	               
	               <?php 
            $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['user']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['feature_users']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) {
                $_smarty_tpl->tpl_vars['user']->_loop = true;
                ?>
					
	                <div class="col-md-12 nopadding clearfix user-view-home">
						<div class="col-md-3 nopadding">
							<img src="<?php 
                echo $_smarty_tpl->tpl_vars['userquery']->value->getuserthumb($_smarty_tpl->tpl_vars['user']->value, 'small');
                ?>
" width="56" height="56" class="img-circle" />
						</div>
						<div class="col-md-9 nopadding">
							<h4 class="nopadding "><a href="<?php 
                echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value);
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['user']->value['username'];
                ?>
</a></h4>

							<div class=" nopadding col-md-6 min-height-20">
								<div class="pull-left small"><span class="bg-eye"></span>&nbsp;<span><?php 
                echo number_format($_smarty_tpl->tpl_vars['user']->value['profile_hits']);
                ?>
 <?php 
                echo smarty_lang(array('code' => 'views'), $_smarty_tpl);
                ?>
</span></div>
								<div class="pull-right small"><span class="bg-videocam"></span>&nbsp;<span><?php 
                echo number_format($_smarty_tpl->tpl_vars['user']->value['total_videos']);
                ?>
 <?php 
                echo smarty_lang(array('code' => 'Videos'), $_smarty_tpl);
                ?>
</span></div>
							</div>
		                    <br>
		                    <div class="row pull-left" style="margin-left: 0px; width: 99%;">
			                    <div class="progres">
			                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
			                            <span class="sr-only">40% Complete (success)</span>
			                        </div>
			                    </div>
		                    </div>
							<!--<div class="col-md-12 nopadding progress no-border-radius">
			      				<div style="width: 40%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="40" role="progressbar" class="progress-bar progress-bar-success">
			        			<span class="sr-only">40% Complete (success)</span>
			  					</div>
			    			</div>-->
						</div>
						<div class="user_icon">
							<a href="<?php 
                echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['user']->value);
                ?>
">
							<img class="" src="<?php 
                echo $_smarty_tpl->tpl_vars['imageurl']->value;
                ?>
/user_next_icon.png" width="25" height="25" />
							</a>
						</div>
					</div>
					<?php 
            }
            ?>
				</div>
				<?php 
        }
        ?>
				<!-- ******************************************* //-->
		        <!-- ************* USER BLOCK END ************ //-->
		        <!-- ******************************************* //-->
		        <?php 
        if ($_smarty_tpl->tpl_vars['row']->value['collectionsSection'] == 'yes') {
            ?>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['collections'])) {
                $_smarty_tpl->tpl_vars['collections'] = clone $_smarty_tpl->tpl_vars['collections'];
                $_smarty_tpl->tpl_vars['collections']->value = $_smarty_tpl->tpl_vars['cbcollection']->value->get_collections(array('limit' => 5, 'active' => 'yes'));
                $_smarty_tpl->tpl_vars['collections']->nocache = null;
                $_smarty_tpl->tpl_vars['collections']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['collections'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbcollection']->value->get_collections(array('limit' => 5, 'active' => 'yes')), null, 0);
            }
            ?>
				<div class="col-md-4 comment_home side_user_home" >
					<h2 class="myHeading"><?php 
            echo smarty_lang(array('code' => "Top Collections"), $_smarty_tpl);
            ?>
</h2>
					<?php 
            if (isset($_smarty_tpl->tpl_vars['limit'])) {
                $_smarty_tpl->tpl_vars['limit'] = clone $_smarty_tpl->tpl_vars['limit'];
                $_smarty_tpl->tpl_vars['limit']->value = 10;
                $_smarty_tpl->tpl_vars['limit']->nocache = null;
                $_smarty_tpl->tpl_vars['limit']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['limit'] = new Smarty_variable(10, null, 0);
            }
            ?>
		        	<?php 
            if ($_smarty_tpl->tpl_vars['collections']->value) {
                ?>
        
					<?php 
                $_smarty_tpl->tpl_vars['collection'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['collection']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['collections']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['collection']->key => $_smarty_tpl->tpl_vars['collection']->value) {
                    $_smarty_tpl->tpl_vars['collection']->_loop = true;
                    ?>
					<div class="clearfix collection-section">
						<div class="category-header row clearfix">
							<div class="col-sm-6 clearfix"><?php 
                    echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
                    ?>
</div>
							<div class="col-sm-6 clearfix"><span class="total-obj"><?php 
                    echo $_smarty_tpl->tpl_vars['collection']->value['total_objects'];
                    ?>
</span></div>

							<!--  -->
							<!-- <div class="col-sm-6 clearfix"><span class="total-obj"><?php 
                    echo $_smarty_tpl->tpl_vars['limit']->value;
                    ?>
</span></div> -->
						</div>
						<div class="collection-grid clearfix"> 
						<?php 
                    if ($_smarty_tpl->tpl_vars['collection']->value['type'] == 'photos') {
                        ?>
							<?php 
                        if (isset($_smarty_tpl->tpl_vars['items'])) {
                            $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items'];
                            $_smarty_tpl->tpl_vars['items']->value = $_smarty_tpl->tpl_vars['cbphoto']->value->collection->get_collection_items_with_details($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false);
                            $_smarty_tpl->tpl_vars['items']->nocache = null;
                            $_smarty_tpl->tpl_vars['items']->scope = 0;
                        } else {
                            $_smarty_tpl->tpl_vars['items'] = new Smarty_variable($_smarty_tpl->tpl_vars['cbphoto']->value->collection->get_collection_items_with_details($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false), null, 0);
                        }
                        ?>
						<?php 
                    } else {
                        ?>
							<?php 
                        if (isset($_smarty_tpl->tpl_vars['items'])) {
                            $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items'];
                            $_smarty_tpl->tpl_vars['items']->value = get_videos_of_collection($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false);
                            $_smarty_tpl->tpl_vars['items']->nocache = null;
                            $_smarty_tpl->tpl_vars['items']->scope = 0;
                        } else {
                            $_smarty_tpl->tpl_vars['items'] = new Smarty_variable(get_videos_of_collection($_smarty_tpl->tpl_vars['collection']->value['collection_id'], 0, $_smarty_tpl->tpl_vars['limit']->value, false), null, 0);
                        }
                        ?>
						<?php 
                    }
                    ?>
	



						<?php 
                    if ($_smarty_tpl->tpl_vars['items']->value) {
                        ?>
							<?php 
                        $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['item']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['items']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                            $_smarty_tpl->tpl_vars['item']->_loop = true;
                            ?>
								<div class="collection-item">
									<a href="<?php 
                            echo $_smarty_tpl->tpl_vars['cbphoto']->value->photo_links($_smarty_tpl->tpl_vars['item']->value, 'view_item');
                            ?>
">
										<?php 
                            if ($_smarty_tpl->tpl_vars['collection']->value['type'] == 'photos') {
                                ?>
											<?php 
                                echo get_image_file(array('details' => $_smarty_tpl->tpl_vars['item']->value, 'output' => 'html', 'size' => "l", 'class' => "cb_img_thum"), $_smarty_tpl);
                                ?>

										<?php 
                            } else {
                                ?>
											<img alt="<?php 
                                echo $_smarty_tpl->tpl_vars['item']->value['title'];
                                ?>
" title="<?php 
                                echo $_smarty_tpl->tpl_vars['item']->value['title'];
                                ?>
" class="cb_img_thum" id="photo_<?php 
                                echo $_smarty_tpl->tpl_vars['item']->value['ci_id'];
                                ?>
" src="<?php 
                                echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['item']->value), $_smarty_tpl);
                                ?>
">
										<?php 
                            }
                            ?>
									</a>
								</div>
							<?php 
                        }
                        ?>
						<?php 
                    }
                    ?>
						</div>
					</div>

					<?php 
                }
                ?>
					<?php 
            } else {
                ?>
					<div class="col-md-12 nopadding">No Collection</div>
					<?php 
            }
            ?>
		    	</div>
		    	<?php 
        }
        ?>
				
				<?php 
        if (isset($_smarty_tpl->tpl_vars['playlists'])) {
            $_smarty_tpl->tpl_vars['playlists'] = clone $_smarty_tpl->tpl_vars['playlists'];
            $_smarty_tpl->tpl_vars['playlists']->value = get_playlists(array('limit' => 5, 'order' => 'total_items DESC'));
            $_smarty_tpl->tpl_vars['playlists']->nocache = null;
            $_smarty_tpl->tpl_vars['playlists']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['playlists'] = new Smarty_variable(get_playlists(array('limit' => 5, 'order' => 'total_items DESC')), null, 0);
        }
        ?>
                <div class="col-md-4 comment_home side_user_home " >
                	<h2 class="myHeading"><?php 
        echo smarty_lang(array('code' => "Top Playlists"), $_smarty_tpl);
        ?>
</h2>
                	<?php 
        if ($_smarty_tpl->tpl_vars['playlists']->value) {
            ?>
					<?php 
            $_smarty_tpl->tpl_vars['playlist'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['playlist']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['playlists']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['playlist']->key => $_smarty_tpl->tpl_vars['playlist']->value) {
                $_smarty_tpl->tpl_vars['playlist']->_loop = true;
                ?>

						<div class="clearfix collection-section">
							<div class="category-header row clearfix">
								<div class="col-sm-6 clearfix"><span class=""><?php 
                echo $_smarty_tpl->tpl_vars['playlist']->value['playlist_name'];
                ?>
</span></div>
								<div class="col-sm-6 clearfix">
									<span class="total-obj">
										<?php 
                echo number_format($_smarty_tpl->tpl_vars['cbvid']->value->action->count_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id']));
                ?>

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

							<div class="collection-grid clearfix"> 
							<?php 
                if (isset($_smarty_tpl->tpl_vars['items'])) {
                    $_smarty_tpl->tpl_vars['items'] = clone $_smarty_tpl->tpl_vars['items'];
                    $_smarty_tpl->tpl_vars['items']->value = get_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id']);
                    $_smarty_tpl->tpl_vars['items']->nocache = null;
                    $_smarty_tpl->tpl_vars['items']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['items'] = new Smarty_variable(get_playlist_items($_smarty_tpl->tpl_vars['playlist']->value['playlist_id']), null, 0);
                }
                ?>
								<?php 
                $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['item']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['items']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value) {
                    $_smarty_tpl->tpl_vars['item']->_loop = true;
                    ?>
								    <div class="collection-item">
										    <?php 
                    if (isset($_smarty_tpl->tpl_vars['videoid'])) {
                        $_smarty_tpl->tpl_vars['videoid'] = clone $_smarty_tpl->tpl_vars['videoid'];
                        $_smarty_tpl->tpl_vars['videoid']->value = $_smarty_tpl->tpl_vars['item']->value['videoid'];
                        $_smarty_tpl->tpl_vars['videoid']->nocache = null;
                        $_smarty_tpl->tpl_vars['videoid']->scope = 0;
                    } else {
                        $_smarty_tpl->tpl_vars['videoid'] = new Smarty_variable($_smarty_tpl->tpl_vars['item']->value['videoid'], null, 0);
                    }
                    ?>
										    <?php 
                    if ($_smarty_tpl->tpl_vars['videoid']->value) {
                        ?>
		                                    <?php 
                        if (isset($_smarty_tpl->tpl_vars['videos'])) {
                            $_smarty_tpl->tpl_vars['videos'] = clone $_smarty_tpl->tpl_vars['videos'];
                            $_smarty_tpl->tpl_vars['videos']->value = get_videos(array('videoid' => $_smarty_tpl->tpl_vars['videoid']->value, 'limit' => '4'));
                            $_smarty_tpl->tpl_vars['videos']->nocache = null;
                            $_smarty_tpl->tpl_vars['videos']->scope = 0;
                        } else {
                            $_smarty_tpl->tpl_vars['videos'] = new Smarty_variable(get_videos(array('videoid' => $_smarty_tpl->tpl_vars['videoid']->value, 'limit' => '4')), null, 0);
                        }
                        ?>
											    <?php 
                        $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable();
                        $_smarty_tpl->tpl_vars['video']->_loop = false;
                        $_from = $_smarty_tpl->tpl_vars['videos']->value;
                        if (!is_array($_from) && !is_object($_from)) {
                            settype($_from, 'array');
                        }
                        foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) {
                            $_smarty_tpl->tpl_vars['video']->_loop = true;
                            ?>
				                                    <a href="<?php 
                            echo videoLink($_smarty_tpl->tpl_vars['video']->value);
                            ?>
">
														<?php 
                            if (isset($_smarty_tpl->tpl_vars['thumb'])) {
                                $_smarty_tpl->tpl_vars['thumb'] = clone $_smarty_tpl->tpl_vars['thumb'];
                                $_smarty_tpl->tpl_vars['thumb']->value = get_thumb($_smarty_tpl->tpl_vars['video']->value);
                                $_smarty_tpl->tpl_vars['thumb']->nocache = null;
                                $_smarty_tpl->tpl_vars['thumb']->scope = 0;
                            } else {
                                $_smarty_tpl->tpl_vars['thumb'] = new Smarty_variable(get_thumb($_smarty_tpl->tpl_vars['video']->value), null, 0);
                            }
                            ?>
				                                        <img src="<?php 
                            echo $_smarty_tpl->tpl_vars['thumb']->value;
                            ?>
" />
						                            </a>
												<?php 
                        }
                        ?>
											<?php 
                    } else {
                        ?>
											<span class="label label-default">no items</span>
											<?php 
                    }
                    ?>
                                    </div>
								<?php 
                }
                ?>
							</div>
						</div>	

                    <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
						<div class="col-md-12 nopadding">No Playlists</div>
					<?php 
        }
        ?>
				</div>

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

<div style="height:20px;"></div>
<script type="text/javascript">
	$(function() {
				
	    $('#slide').ulslide({
	        width: 350,
	        height: 88,
			effect: {
				type: 'carousel', // slide or fade
	            axis: 'y',        // x, y
				showCount: 5
			},
	        nextButton: '#slide_next',
	        prevButton: '#slide_prev',
	        duration: 800,
	        /*autoslide: 2000*/
			easing: 'easeOutBounce'
	    });
	    $('#slide1').ulslide({
	        width: 150,
	        height: 80,
			effect: {
				type: 'carousel', // slide or fade
	            axis: 'x',        // x, y
				showCount: 5
			},
	        nextButton: '#slide_next1',
	        prevButton: '#slide_prev1',
	        duration: 800,
	        autoslide: 2000
			/*easing: 'easeOutBounce'*/
	    });
	    $('#slide3').ulslide({
	        width: 150,
	        height: 80,
			effect: {
				type: 'carousel', // slide or fade
	            axis: 'x',        // x, y
				showCount: 5
			},
	        nextButton: '#slide_next3',
	        prevButton: '#slide_prev3',
	        duration: 800,
	        autoslide: 2000,
			easing: 'easeOutBounce'
	    });
	});
</script>

<!--<style>

.ad{
    background: none repeat scroll 0 0 #F3F3F3;
    border: 1px solid #CCCCCC;
    font-size: 15px;
    height: 90px;
    margin: 0 auto 25px;
    padding: 0;
    text-align: center;
    width: 728px;
}
</style>--><?php 
    }
Exemple #8
0
<?php

include "mysql.php";
include "defines.php";
include "classes/main.php";
$board->switchActProfile();
$board->getInfo('profile');
$content = '';
// SillexLab edit
if (!$board->getAdmin()) {
    if (getUserId()['id'] != getAd($_GET['id'])['user_id']) {
        /*header("Location: http://www.i-market.com.ua/profile/");*/
        $content .= '<script type="text/javascript">
		  location="' . HOME . 'profile/";
		  document.location.href="' . HOME . 'profile/";
		  location.replace("' . HOME . 'profile/");
		  window.location.reload("' . HOME . 'profile/");
		  document.location.replace("' . HOME . 'profile/");
		</script>';
        exit;
    }
}
function getAd($id)
{
    $query = "SELECT A.title as header, A.href as board_id, A.id as b_id, A.user_id,\n\t\tB.name as category, C.name as root_category, B.href as category_href,\n\t\tB.href as cat_href, C.href as root_href, D.name as city_name,\n\t\tA.*, B.*, C.*, D.* FROM\n\t\tboard as A,\n\t\tcategories as B,\n\t\tcategories as C,\n\t\tregion as D\n\t\tWHERE\n\t\tB.id = A.id_category and C.id = B.root_id and D.href = A.city\n\t\tand A.id = '" . $id . "' LIMIT 1";
    return mysql_fetch_assoc(mysql_query($query));
}
function getUserId()
{
    return mysql_fetch_assoc(mysql_query("SELECT id FROM users WHERE email='" . $_SESSION['email'] . "' and pass='******'pass'] . "'"));
}
    function content_56afda72c37094_74986900($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['video'])) {
            $_smarty_tpl->tpl_vars['video'] = clone $_smarty_tpl->tpl_vars['video'];
            $_smarty_tpl->tpl_vars['video']->value = $_smarty_tpl->tpl_vars['vdo']->value;
            $_smarty_tpl->tpl_vars['video']->nocache = null;
            $_smarty_tpl->tpl_vars['video']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['video'] = new Smarty_variable($_smarty_tpl->tpl_vars['vdo']->value, null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['type'])) {
            $_smarty_tpl->tpl_vars['type'] = clone $_smarty_tpl->tpl_vars['type'];
            $_smarty_tpl->tpl_vars['type']->value = 'video';
            $_smarty_tpl->tpl_vars['type']->nocache = null;
            $_smarty_tpl->tpl_vars['type']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['type'] = new Smarty_variable('video', null, 0);
        }
        ?>
<div class="container">
    <div class="row">
        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 html5_player_enlarge nopadding-right ">
            <div class="cb-box pad-bottom-sm">
                <div id="cb_player" class="no-pad cb_player">
                    <?php 
        echo flashPlayer(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value, 'width' => '100%', 'height' => '100%'), $_smarty_tpl);
        ?>

                </div>
                <!-- cb_player end -->

                <div class="watch-vid-title  mbm">
                    <h1><?php 
        echo $_smarty_tpl->tpl_vars['video']->value['title'];
        ?>
</h1> 
                </div>
                <div class="vid-detail-sec">
                    <div class="watch-vid-thumb">    
                        <img src="<?php 
        echo $_smarty_tpl->tpl_vars['userquery']->value->avatar($_smarty_tpl->tpl_vars['video']->value);
        ?>
" class="img-circle"/>
                    </div> 
                    <div class="watch-vid-user-sec">
                        <div class="watch-vid-user-name mtm">
                            <a href="<?php 
        echo $_smarty_tpl->tpl_vars['userquery']->value->profile_link($_smarty_tpl->tpl_vars['video']->value);
        ?>
"> <?php 
        echo $_smarty_tpl->tpl_vars['video']->value['username'];
        ?>
</a>
                        </div>
                        <?php 
        if ($_smarty_tpl->tpl_vars['video']->value['userid'] != userid()) {
            ?>
                        <a id="subscribeUser" class="btn btn-xs btn-primary" href="javascript:void(0)">
                        <?php 
            echo lang('Subscribe');
            ?>

                        </a><?php 
        }
        ?>
                    </div>
                    <div class="watch-vid-rating-sec">
                        <div class="watch-vid-rating-view">
                            <?php 
        echo number_format($_smarty_tpl->tpl_vars['vdo']->value['views']);
        ?>

                            <span class="small font18"><?php 
        echo lang('View');
        if ($_smarty_tpl->tpl_vars['vdo']->value['views'] > 1) {
            echo lang('s');
        }
        ?>
</span>
                        </div>
                        <div class="watch-vid-thumbsupdown-sec" id="rating_container">
                            <?php 
        echo show_video_rating(array('rating' => $_smarty_tpl->tpl_vars['vdo']->value['rating'], 'ratings' => $_smarty_tpl->tpl_vars['vdo']->value['rated_by'], 'total' => '10', 'id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl);
        ?>

                        </div>    
                    </div>         
                </div>
                <!-- vid-detail-sec end -->




                
                <div class="cb-item-desc-container clearfix grey-tabs">

                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#cb-item-info" data-toggle="tab"><i class="fa fa-info"></i>&nbsp;<?php 
        echo lang('Info');
        ?>
</a>
                        </li>
                        <li>
                            <a href="#cb-item-share" data-toggle="tab"><i class="fa fa-share-square-o"></i>&nbsp;<?php 
        echo lang('Share');
        ?>
</a>
                        </li>
                        <li>
                            <a href="#cb-item-addto" data-toggle="tab"><i class="fa fa-plus"></i>&nbsp;<?php 
        echo lang('Add to');
        ?>
</a>
                        </li>
                        <li>
                            <a id="reportVideo" href="#cb-item-report" data-toggle="tab"><i class="fa fa-flag"></i>&nbsp;<?php 
        echo lang('Report');
        ?>
</a>
                        </li>
                    </ul>

                    <div class="tab-content">
                        <div class="tab-pane active" id="cb-item-info">
                            <div class="col-lg-9 col-md-9 col-sm-9 col-xs-7 no-padding">
                            	<p><?php 
        echo description(description($_smarty_tpl->tpl_vars['video']->value['description']));
        ?>
</p>
                                <div class="watch-vid-tag">
                                    <strong ><?php 
        echo lang('Category:');
        ?>
&nbsp;</strong>
                                    <span ><?php 
        echo categories($_smarty_tpl->tpl_vars['vdo']->value['category'], 'video');
        ?>
</span>
                                </div>
                                <div class="watch-vid-tag">
                                    <strong ><?php 
        echo lang('Tags:');
        ?>
&nbsp;</strong>
                                    <span ><?php 
        echo tags($_smarty_tpl->tpl_vars['vdo']->value['tags'], 'videos');
        ?>
</span>
                                </div>
                                <div class="watch-vid-tag">
                                    <strong >Published:&nbsp;</strong>
                                    <span ><?php 
        echo niceTime($_smarty_tpl->tpl_vars['video']->value['date_added']);
        ?>
</span>
                                </div>
                                <!-- view sec hide on told arslan bhai -->
                                <!-- <div class="mtm">
                                        <strong><?php 
        echo smarty_lang(array('code' => 'views'), $_smarty_tpl);
        ?>
</strong> : <?php 
        echo number_format($_smarty_tpl->tpl_vars['vdo']->value['views']);
        ?>
 &ndash;
                                        <strong><?php 
        echo smarty_lang(array('code' => 'duration'), $_smarty_tpl);
        ?>
</strong> : <?php 
        echo SetTime($_smarty_tpl->tpl_vars['vdo']->value['duration']);
        ?>
 &ndash;
                                        <strong><?php 
        echo smarty_lang(array('code' => 'comments'), $_smarty_tpl);
        ?>
</strong> : <?php 
        echo number_format($_smarty_tpl->tpl_vars['vdo']->value['comments_count']);
        ?>

                                </div> -->
                        	</div>

                      
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-5 no-padding" style="margin-top:25px;">
                                 <div class="watch-vid-social-sec col-lg-12 pull-right no-padding">
                                    <a class="cb-item-social-icon twitter" href="https://twitter.com/share" target="_blank">
                                        <i class="fa fa-twitter"></i>
                                    </a>
                                    <a class="cb-item-social-icon googlep" href="https://plus.google.com/share?url=<?php 
        echo urlencode(videolink($_smarty_tpl->tpl_vars['video']->value));
        ?>
" target="_blank">
                                        <i class="fa fa-google-plus"></i>

                                    </a>
                                    <a class="cb-item-social-icon facebook" href="http://www.facebook.com/sharer/sharer.php?s=100&p[url]=<?php 
        echo urlencode(videoLink($_smarty_tpl->tpl_vars['video']->value));
        ?>
&p[images][0]=<?php 
        echo getSmartyThumb(array('vdetails' => $_smarty_tpl->tpl_vars['video']->value), $_smarty_tpl);
        ?>
&p[title]=<?php 
        echo urlencode(title($_smarty_tpl->tpl_vars['video']->value['title']));
        ?>
&p[summary]=<?php 
        echo urlencode(description($_smarty_tpl->tpl_vars['video']->value['description']));
        ?>
" target="_blank">
                                        <i class="fa fa-facebook"></i>
                                          
                                    </a>
                                </div> 
                                <?php 
        if ($_smarty_tpl->tpl_vars['Cbucket']->value->configs['video_download'] == 1 && $_smarty_tpl->tpl_vars['cbvid']->value->downloadable($_smarty_tpl->tpl_vars['vdo']->value)) {
            ?>
                                <div class="dropdown col-lg-12 pull-right no-padding text-right">
                                  <button class="btn btn-success dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true" style="margin-top: 10px;">
                                    Download
                                        <span class="caret"></span>
                                  </button>
                                  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                                  <?php 
            if (isset($_smarty_tpl->tpl_vars['files'])) {
                $_smarty_tpl->tpl_vars['files'] = clone $_smarty_tpl->tpl_vars['files'];
                $_smarty_tpl->tpl_vars['files']->value = get_video_files($_smarty_tpl->tpl_vars['vdo']->value, true, true);
                $_smarty_tpl->tpl_vars['files']->nocache = null;
                $_smarty_tpl->tpl_vars['files']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['files'] = new Smarty_variable(get_video_files($_smarty_tpl->tpl_vars['vdo']->value, true, true), null, 0);
            }
            ?>
                                  <?php 
            $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['file']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['files']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['file']->key => $_smarty_tpl->tpl_vars['file']->value) {
                $_smarty_tpl->tpl_vars['file']->_loop = true;
                ?>
                                  <?php 
                if (isset($_smarty_tpl->tpl_vars['quality'])) {
                    $_smarty_tpl->tpl_vars['quality'] = clone $_smarty_tpl->tpl_vars['quality'];
                    $_smarty_tpl->tpl_vars['quality']->value = explode('-', $_smarty_tpl->tpl_vars['file']->value);
                    $_smarty_tpl->tpl_vars['quality']->nocache = null;
                    $_smarty_tpl->tpl_vars['quality']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable(explode('-', $_smarty_tpl->tpl_vars['file']->value), null, 0);
                }
                ?>
                                  <?php 
                if (isset($_smarty_tpl->tpl_vars['quality'])) {
                    $_smarty_tpl->tpl_vars['quality'] = clone $_smarty_tpl->tpl_vars['quality'];
                    $_smarty_tpl->tpl_vars['quality']->value = explode('.', $_smarty_tpl->tpl_vars['quality']->value[1]);
                    $_smarty_tpl->tpl_vars['quality']->nocache = null;
                    $_smarty_tpl->tpl_vars['quality']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['quality'] = new Smarty_variable(explode('.', $_smarty_tpl->tpl_vars['quality']->value[1]), null, 0);
                }
                ?>
                                  <?php 
                if (isset($_smarty_tpl->tpl_vars['file_quality'])) {
                    $_smarty_tpl->tpl_vars['file_quality'] = clone $_smarty_tpl->tpl_vars['file_quality'];
                    $_smarty_tpl->tpl_vars['file_quality']->value = $_smarty_tpl->tpl_vars['quality']->value[0];
                    $_smarty_tpl->tpl_vars['file_quality']->nocache = null;
                    $_smarty_tpl->tpl_vars['file_quality']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['file_quality'] = new Smarty_variable($_smarty_tpl->tpl_vars['quality']->value[0], null, 0);
                }
                ?>
                                    <li role="presentation">
                                        <a role="menuitem" tabindex="-1" href="<?php 
                echo $_smarty_tpl->tpl_vars['file']->value;
                ?>
"  download>
                                        <span class="glyphicon glyphicon-download-alt"></span><?php 
                echo $_smarty_tpl->tpl_vars['file_quality']->value;
                ?>
</a>
                                        
                                    </li>
                                  <?php 
            }
            ?>
                                  </ul>
                                </div>
                                <?php 
        }
        ?>
  
                           </div>
                           <br>
                                 
                        </div>

                        <div class="tab-pane" id="cb-item-share">
                            <?php 
        echo show_share_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl);
        ?>

                        </div>

                        <div class="tab-pane" id="cb-item-addto">
                            <div class="clearfix visible-xs-block" style="margin-bottom:25px;">
                                <div id="video_action_result_cont" style="display:none;"></div>   
                                <a  class="btn mtm btn-block btn-primary" href="javascript:void(0)" onclick="add_to_fav('video','<?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['videoid'];
        ?>
');" style="color:white;">Add to My Favorites</a>
                            </div>

                            <div class="alert ">
                            <?php 
        echo show_playlist_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl);
        ?>

                            </div>
                            <?php 
        if (userid()) {
            ?>
                            <div class="alert ">
                                <div class="clearfix"></div>
                                <div align="right"><a href="javascript:void(0)"
                                     onclick="$('#addCollectionCont').toggle()"
                                        style="text-decoration:none"><strong>+ <?php 
            echo smarty_lang(array('code' => 'add_to_my_collection'), $_smarty_tpl);
            ?>
</strong></a>
                                </div>
                                <div id="addCollectionCont" style="display:none"><?php 
            echo show_collection_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'Video'), $_smarty_tpl);
            ?>
</div>
                            </div>
                            <?php 
        }
        ?>
    
                        </div>

                        <div class="tab-pane" id="cb-item-report">
                            <?php 
        echo show_flag_form(array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'video'), $_smarty_tpl);
        ?>

                        </div>

                    </div>
                </div>
                
                <div id="messageFav" class="alert alert-info marginTop" style="display:none"></div>
                <div id="test1"></div>
	    		<div id="reply" class="clearfix"> 
	    		    <div class="pad-bottom">
	                    <div  class="addComment clearfix">
                            <div class="com_count" id="com_count"><span><?php 
        echo smarty_lang(array('code' => 'comments'), $_smarty_tpl);
        ?>
 </span> <?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['comments_count'];
        ?>
</div>
	                        <?php 
        if ($_smarty_tpl->tpl_vars['myquery']->value->is_commentable($_smarty_tpl->tpl_vars['vdo']->value, 'v')) {
            ?>
	                            <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/comments/add_comment.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['vdo']->value['videoid'], 'type' => 'v'), 0);
            ?>

	                        <?php 
        } else {
            ?>
	                        <div class="alert alert-warning"><?php 
            echo smarty_lang(array('code' => 'comm_disabled_for_vid'), $_smarty_tpl);
            ?>
</div>
	                        <?php 
        }
        ?>
	                    </div>
	                   	<div id="userCommentsList">
	           			</div>
	    		    </div>
	    		</div> 
            </div>
        </div>
        
		<!--Side bar start--> 
        <div class="col-lg-4 col-md-4 visible-lg visible-md side-video pull-right">
            <div class="cb-box">
                 <div class="ad"><?php 
        echo getAd(array('place' => 'ad_320x250'), $_smarty_tpl);
        ?>
</div>
                <!-- <a href="http://www.arvixe.com/clipbucket_hosting?utm_campaign=300x250_Demo&utm_medium=banner&utm_source=clipbucket.com"><img class="banner" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/add320x250.png" style="margin-bottom: 10px; width: 100%;" >
                </a>-->
                <!-- <h3><?php 
        echo smarty_lang(array('code' => "Most Popular"), $_smarty_tpl);
        ?>
</h3> -->
    <?php 
        if ($_GET['play_list'] == '') {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['video'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['video']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['videos']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) {
                $_smarty_tpl->tpl_vars['video']->_loop = true;
                ?>
                 <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/videos/video_popular.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

                <?php 
            }
            ?>
                <?php 
        } else {
            ?>

        <?php 
            if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['plist'])) {
                unset($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']);
            }
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['name'] = 'plist';
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['items']->value) ? count($_loop) : max(0, (int) $_loop);
            unset($_loop);
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show'] = true;
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'];
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'] = 1;
            $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'] - 1;
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show']) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['loop'];
                if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] == 0) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show'] = false;
                }
            } else {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'] = 0;
            }
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['show']) {
                for ($_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration']++) {
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['step'];
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] == 1;
                    $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['plist']['total'];
                    ?>
                  <?php 
                    echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/manage/account_video.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('video' => $_smarty_tpl->tpl_vars['items']->value[$_smarty_tpl->getVariable('smarty')->value['section']['plist']['index']], 'control' => "onWatch", 'pid' => $_smarty_tpl->tpl_vars['playlist']->value['playlist_id']), 0);
                    ?>

        <?php 
                }
            }
            ?>

        <?php 
        }
        ?>
            </div>
        </div>


        <!-- /Side bar-->
	</div>
</div>

<div style="height:20px"> </div>
<script>
    //var aspect_ratio = 1.77778
    var aspect_ratio = 2.2
    var $cb_player = $("#cb_player");

    $(document).ready(function(){
        $cb_player.height( $cb_player.width() / aspect_ratio );

        var videoInfo = $("#videoDescription").text();
        var newInfo = videoInfo.replace(/(((https?:\/\/)|([\s\t]))(www.)?([a-z0-9]+)\.[a-z]+)/g, '<a href="$1">$1</a>');
        $("#videoDescription").html(newInfo);

        comments_voting = '<?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['comment_voting'];
        ?>
';
        _cb.getAllComments(
            '<?php 
        echo $_smarty_tpl->tpl_vars['type']->value;
        ?>
',
            '<?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['videoid'];
        ?>
',
            '<?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['last_commented'];
        ?>
',1,
            '<?php 
        echo $_smarty_tpl->tpl_vars['vdo']->value['comments_count'];
        ?>
',
            '<?php 
        echo $_smarty_tpl->tpl_vars['object_type']->value;
        ?>
'
        );


        // $('.cb-item-description').readmore({
        //     speed: 75,
        //     maxHeight: 120,
        //     moreLink : '<a href="#" class="btn btn-min btn-block btn-primary"><i class="glyphicon glyphicon-arrow-down"></i> <?php 
        echo lang("Read more");
        ?>
</a>',
        //     lessLink : '<a href="#" class="btn btn-min btn-block btn-default"><?php 
        echo lang("Close");
        ?>
</a>'
        // });
        $("#reportVideo").on({
            click : function(e){
                e.preventDefault();
                $("#flag_item").show();
            }
        });

        $("#subscribeUser").on({
            click: function(e){
                e.preventDefault();
                _cb.subscribeToChannel('<?php 
        echo $_smarty_tpl->tpl_vars['video']->value['userid'];
        ?>
','subscribe_user','video_detail_result_cont');
            }
        });
    });

    var resizePlayer =  _cb.debounce(function() {
        $cb_player.height( $cb_player.width() / aspect_ratio );
    }, 500, false);

    $(window).resize(resizePlayer);

</script>

<style type="text/css">
footer{
     position: relative;
    top: 65px;
}
</style><?php 
    }
    function content_55e4454d54e731_02331131($_smarty_tpl)
    {
        if (isset($_smarty_tpl->tpl_vars['myAccountLinks'])) {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = clone $_smarty_tpl->tpl_vars['myAccountLinks'];
            $_smarty_tpl->tpl_vars['myAccountLinks']->value = $_smarty_tpl->tpl_vars['userquery']->value->my_account_links();
            $_smarty_tpl->tpl_vars['myAccountLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['myAccountLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['myAccountLinks'] = new Smarty_variable($_smarty_tpl->tpl_vars['userquery']->value->my_account_links(), null, 0);
        }
        if (isset($_smarty_tpl->tpl_vars['leftMenuLinks'])) {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = clone $_smarty_tpl->tpl_vars['leftMenuLinks'];
            $_smarty_tpl->tpl_vars['leftMenuLinks']->value = array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6);
            $_smarty_tpl->tpl_vars['leftMenuLinks']->nocache = null;
            $_smarty_tpl->tpl_vars['leftMenuLinks']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['leftMenuLinks'] = new Smarty_variable(array_slice($_smarty_tpl->tpl_vars['myAccountLinks']->value, 6), null, 0);
        }
        ?>
<div class="container">
    
    <!--<div class="cb-box row">
        <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
        <h4 class="smaller lighter pull-left"><?php 
        echo smarty_lang(array('code' => "Browsing All Photos"), $_smarty_tpl);
        ?>
: </h4>
        <div class="photopadding col-md-6">
            <div class="btn-group">
                <?php 
        if ($_GET['sorting']) {
            ?>
                <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
                <button class="btn btn-default" type="button">
                    <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
        } else {
            ?>
                <button class="btn btn-default" type="button">
                    Recent
                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
        }
        ?>
                <ul role="menu" class="dropdown-menu">
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                    <li><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                    <?php 
        }
        ?>
                </ul>
            </div>

            
            <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
            <div class="btn-group">
                <?php 
        if ($_GET['timing']) {
            ?>

                <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>

                <button class="btn btn-default" type="button">
                    <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
                }
                ?>
                <?php 
            }
            ?>
                <?php 
        } else {
            ?>
                <button class="btn btn-default" type="button">
                    All Time
                </button>
                <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                    <span class="caret"></span>
                    <span class="sr-only">Toggle Dropdown</span>
                </button>
                <?php 
        }
        ?>
                <ul role="menu" class="dropdown-menu">
                    <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                    <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected"<?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                    <?php 
        }
        ?>
                </ul>
            </div>
        </div>
        <div class="col-md-3 photopaddin1 pull-right">
            <div class="pull-right" style="margin-right: 25px; margin-top: 4px;">
                    <div class="btn-group">
                      <button class="btn btn-primary" type="button"><?php 
        echo smarty_lang(array('code' => "Collections"), $_smarty_tpl);
        ?>
</button>
                      <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                      </button>
                      <ul role="menu" class="dropdown-menu">
                       <?php 
        $_smarty_tpl->tpl_vars['collection'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['collection']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['collections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['collection']->key => $_smarty_tpl->tpl_vars['collection']->value) {
            $_smarty_tpl->tpl_vars['collection']->_loop = true;
            ?>
                    <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['baseurl']->value;
            ?>
/view_collection.php?cid=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_id'];
            ?>
&type=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['type'];
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
</a></li>
                    <?php 
        }
        if (!$_smarty_tpl->tpl_vars['collection']->_loop) {
            ?>
                    <li><a href="#"><?php 
            echo smarty_lang(array('code' => "No Collection Found"), $_smarty_tpl);
            ?>
</a></li>
                    <?php 
        }
        ?>
                      </ul>
                    </div>
                </div>
            
        </div>
    </div>-->
    <div class="cb-box row">
    <!-- Page Heading -->
        <div class="page-hidding margin-bottom-10">
            <?php 
        if (isset($_smarty_tpl->tpl_vars['sorting_links'])) {
            $_smarty_tpl->tpl_vars['sorting_links'] = clone $_smarty_tpl->tpl_vars['sorting_links'];
            $_smarty_tpl->tpl_vars['sorting_links']->value = sorting_links();
            $_smarty_tpl->tpl_vars['sorting_links']->nocache = null;
            $_smarty_tpl->tpl_vars['sorting_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['sorting_links'] = new Smarty_variable(sorting_links(), null, 0);
        }
        ?>
            <h4 class="smaller lighter pull-left"><?php 
        echo smarty_lang(array('code' => "Browsing All Categories"), $_smarty_tpl);
        ?>
: </h4>
            <div class="pull-left">

                <!--Sorting By View-->
                <div class="btn-group custom-dropdown">
                    <?php 
        if ($_GET['sort']) {
            ?>
                    <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                        <?php 
                if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['sort'])) {
                    ?>
 
                        <button class="btn btn-default" type="button">
                        <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
                }
                ?>
                    <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                        Recent
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                    <?php 
        }
        ?>
    

                    <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                        <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&sorting=dkfs" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" <?php 
            }
            ?>
>li <?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                        <?php 
        }
        ?>
                    </ul>



                    <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['sorting_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                        <li <?php 
            if ($_GET['sort'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="active selected"  <?php 
            }
            ?>
><a href="<?php 
            echo cblink(array('name' => 'sort', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                        <li role="presentation" class="divider"></li>
                        <?php 
        }
        ?>
                    </ul>
                </div>

                <!--Sorting By time-->
                <?php 
        if (isset($_smarty_tpl->tpl_vars['time_links'])) {
            $_smarty_tpl->tpl_vars['time_links'] = clone $_smarty_tpl->tpl_vars['time_links'];
            $_smarty_tpl->tpl_vars['time_links']->value = time_links();
            $_smarty_tpl->tpl_vars['time_links']->nocache = null;
            $_smarty_tpl->tpl_vars['time_links']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['time_links'] = new Smarty_variable(time_links(), null, 0);
        }
        ?>
                <div class="btn-group custom-dropdown">
                    <?php 
        if ($_GET['time']) {
            ?>
 

                    <?php 
            $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['name']->_loop = false;
            $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['time_links']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
                $_smarty_tpl->tpl_vars['name']->_loop = true;
                $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
                ?>
                        <?php 
                if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value && isset($_GET['time'])) {
                    ?>
 
                        
                        <button class="btn btn-default" type="button">
                        <?php 
                    echo $_smarty_tpl->tpl_vars['name']->value;
                    ?>

                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                        <?php 
                }
                ?>
                    <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <button class="btn btn-default" type="button">
                        All Time
                        </button>
                        <button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
                            <span class="arrow-drop"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                        </button>
                    <?php 
        }
        ?>
  
                      <ul role="menu" class="dropdown-menu">
                        <?php 
        $_smarty_tpl->tpl_vars['name'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['name']->_loop = false;
        $_smarty_tpl->tpl_vars['sort'] = new Smarty_Variable();
        $_from = $_smarty_tpl->tpl_vars['time_links']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['name']->key => $_smarty_tpl->tpl_vars['name']->value) {
            $_smarty_tpl->tpl_vars['name']->_loop = true;
            $_smarty_tpl->tpl_vars['sort']->value = $_smarty_tpl->tpl_vars['name']->key;
            ?>
                            <li><a href="<?php 
            echo cblink(array('name' => 'time', 'sort' => $_smarty_tpl->tpl_vars['sort']->value, 'type' => 'photos'), $_smarty_tpl);
            ?>
&timing=time" <?php 
            if ($_GET['time'] == $_smarty_tpl->tpl_vars['sort']->value) {
                ?>
 class="selected" style="color: #fff; background-color: #428bca;" <?php 
            }
            ?>
><?php 
            echo $_smarty_tpl->tpl_vars['name']->value;
            ?>
</a></li>
                            <li role="presentation" class="divider"></li>
                        <?php 
        }
        ?>
                      </ul>
                </div>
            </div>
            <!--
				NOTE : This collection sorting will be added in Future
 			-->
			<!-- <div class="collection-menu">
                <div class="btn-group">
                    <button class="btn btn-primary" type="button"><?php 
        echo smarty_lang(array('code' => "Collections"), $_smarty_tpl);
        ?>
</button>
                    <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                        <span class="caret"></span>
                        <span class="sr-only">Toggle Dropdown</span>
                    </button>
                    <ul role="menu" class="dropdown-menu pull-right">
            
                        <?php 
        $_smarty_tpl->tpl_vars['collection'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['collection']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['collections']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['collection']->key => $_smarty_tpl->tpl_vars['collection']->value) {
            $_smarty_tpl->tpl_vars['collection']->_loop = true;
            ?>
                        <li><a href="<?php 
            echo $_smarty_tpl->tpl_vars['baseurl']->value;
            ?>
/view_collection.php?cid=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_id'];
            ?>
&type=<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['type'];
            ?>
" title="<?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
"><?php 
            echo $_smarty_tpl->tpl_vars['collection']->value['collection_name'];
            ?>
</a></li>
                        <?php 
        }
        if (!$_smarty_tpl->tpl_vars['collection']->_loop) {
            ?>
                        <li><a href="#"><?php 
            echo smarty_lang(array('code' => "No Collection Found"), $_smarty_tpl);
            ?>
</a></li>
                        <?php 
        }
        ?>
                  </ul>
                </div>
            </div> -->
        </div>

        <!-- /Page Heading -->
        <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 clearfix photos pull-left">

            <?php 
        if (isset($_smarty_tpl->tpl_vars['counter'])) {
            $_smarty_tpl->tpl_vars['counter'] = clone $_smarty_tpl->tpl_vars['counter'];
            $_smarty_tpl->tpl_vars['counter']->value = 0;
            $_smarty_tpl->tpl_vars['counter']->nocache = null;
            $_smarty_tpl->tpl_vars['counter']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(0, null, 0);
        }
        ?>
            <ul class="list-unstyled " id="photos"> <!-- remove photos id to remove photo land styling --></ul>
            <?php 
        if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list'])) {
            unset($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']);
        }
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['name'] = 'p_list';
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['photos']->value) ? count($_loop) : max(0, (int) $_loop);
        unset($_loop);
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show'] = true;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'];
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'] = 1;
        $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'] - 1;
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show']) {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['loop'];
            if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] == 0) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show'] = false;
            }
        } else {
            $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'] = 0;
        }
        if ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['show']) {
            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration']++) {
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['step'];
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] == 1;
                $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['p_list']['total'];
                ?>
            
            <?php 
                $_smarty_tpl->createLocalArrayVariable('photos', null, 0);
                $_smarty_tpl->tpl_vars['photos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p_list']['index']]['counter'] = $_smarty_tpl->tpl_vars['counter']->value;
                ?>
            <div class="">
            <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/photo.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('photo' => $_smarty_tpl->tpl_vars['photos']->value[$_smarty_tpl->getVariable('smarty')->value['section']['p_list']['index']]), 0);
                ?>

            </div>
            <?php 
                if (isset($_smarty_tpl->tpl_vars['counter'])) {
                    $_smarty_tpl->tpl_vars['counter'] = clone $_smarty_tpl->tpl_vars['counter'];
                    $_smarty_tpl->tpl_vars['counter']->value = $_smarty_tpl->tpl_vars['counter']->value + 1;
                    $_smarty_tpl->tpl_vars['counter']->nocache = null;
                    $_smarty_tpl->tpl_vars['counter']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable($_smarty_tpl->tpl_vars['counter']->value + 1, null, 0);
                }
                ?>
            <?php 
            }
        } else {
            ?>
            <div class="col-md-10 "><?php 
            echo smarty_lang(array('code' => 'no_results_found'), $_smarty_tpl);
            ?>
</div>
            <?php 
        }
        ?>
        
            <!--Pagination-->
             
            <!-- /Pagination-->
        </div>
        <!--<div class="col-md-2 pull-right paddingright0">
            <div class="ad"><?php 
        echo getAd(array('place' => 'ad_160x600'), $_smarty_tpl);
        ?>
</div>-->
            <!--<img src="http://www.ryangiggs.cc/system/files/banner-160x600-pride-tee_0.jpg">
            <a href="http://www.arvixe.com/clipbucket_hosting"><img class="banner pull-right" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/assets/images/ad-box-160x600.jpg" ></a>-->
        <!--</div>-->
        <div align="center" class="col-md-12 clearfix pull-left">
                <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['style_dir']->value . "/blocks/pagination.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>

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

<div style="height:20px"> </div>
<script>
    jQuery(function() {                                              // <== Doc ready

        jQuery(".avatar1_file").hide();                  // Initially hide all buttons

        jQuery('.show-image').hover(function() {
            jQuery(this).find('#avatar1_file').fadeIn(1500);
        }, function() {
            jQuery(this).find('#avatar1_file').fadeOut(1500);
        });
    });
</script>
<?php 
    }
Exemple #11
0
<?php 
} else {
    ?>
        <button type='button' disabled='disabled' class='btn btn-success'>Cash out all</button><br />
<?php 
}
?>
    <b>Server Balance:</b> <?php 
echo $serverbalance;
?>
 <?php 
echo SUB_UNIT_NAME;
?>
</div>
<div class='well'><?php 
echo getAd($bannerAds);
?>
</div>
<div class='well'>
    <strong>Get a Dispense: </strong>
<?php 
if ($canclaim) {
    ?>
    <form action='<?php 
    echo urlFor("claim");
    ?>
' method='post'>
        <div style='margin: 0 auto; width: 318px'>
            <?php 
    echo $recaptcha;
    ?>
Exemple #12
0
if (!$isAdmin) {
    ?>
                <div class='span3'>
                    <h4>Earn More <?php 
    echo UP_COIN_NAME;
    ?>
s</h4>
                    <p><?php 
    echo $links;
    ?>
</p>
                    <?php 
    echo getAd($squareAds);
    ?>
                    <?php 
    echo getAd($textAds);
    ?>
                    <?php 
    echo getAd($squareAds);
    ?>
                </div>
<?php 
}
?>
            </div>
            <strong style='font-size: 125%'>Powered by <a href='https://github.com/earth-faucet/faucet'>EarthFaucet v0.1</a>Based on MiniFaucet!</strong>
            <br />
        </div>
    </body>
</html>