function content_55e44441897a91_94399789($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_date_format')) {
            include '/var/www/includes/smartyv3/plugins/modifier.date_format.php';
        }
        ?>
<!DOCTYPE HTML>

<html>
    <head>
        <?php 
        if (in_dev()) {
            ?>
            <?php 
            if (isset($_smarty_tpl->tpl_vars['cache_buster'])) {
                $_smarty_tpl->tpl_vars['cache_buster'] = clone $_smarty_tpl->tpl_vars['cache_buster'];
                $_smarty_tpl->tpl_vars['cache_buster']->value = microtime(true);
                $_smarty_tpl->tpl_vars['cache_buster']->nocache = null;
                $_smarty_tpl->tpl_vars['cache_buster']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['cache_buster'] = new Smarty_variable(microtime(true), null, 0);
            }
            ?>
        <?php 
        } else {
            ?>
            <?php 
            if (isset($_smarty_tpl->tpl_vars['cache_buster'])) {
                $_smarty_tpl->tpl_vars['cache_buster'] = clone $_smarty_tpl->tpl_vars['cache_buster'];
                $_smarty_tpl->tpl_vars['cache_buster']->value = $_smarty_tpl->tpl_vars['Cbucket']->value->version;
                $_smarty_tpl->tpl_vars['cache_buster']->nocache = null;
                $_smarty_tpl->tpl_vars['cache_buster']->scope = 0;
            } else {
                $_smarty_tpl->tpl_vars['cache_buster'] = new Smarty_variable($_smarty_tpl->tpl_vars['Cbucket']->value->version, null, 0);
            }
            ?>
        <?php 
        }
        ?>

        <script src="//code.jquery.com/jquery-latest.min.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script>
            var loading = '<i class="fa fa-spinner fa-spin"></i> <?php 
        echo smarty_lang(array('code' => "loading"), $_smarty_tpl);
        ?>
...';
            var baseurl = "<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
";
            var imageurl = "<?php 
        echo $_smarty_tpl->tpl_vars['imageurl']->value;
        ?>
";
        </script>
      
          <!-- custom scrollbars plugin -->
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/js/jquery.mCustomScrollbar.concat.min.js"></script>
        <script>
            (function($){
                $(window).load(function(){
                    $("#content_1").mCustomScrollbar({
                        scrollButtons:{
                            enable:true
                        }
                    });
                });
            })(jQuery);
        </script>

        <!-- ClipBucket v<?php 
        echo $_smarty_tpl->tpl_vars['Cbucket']->value->version;
        ?>
 -->
        <meta name="copyright" content="ClipBucket - Integrated Units 2007 - <?php 
        echo smarty_modifier_date_format(time(), "%Y");
        ?>
" />
        <meta name="author" content="Arslan Hassan - http://clip-bucket.com/arslan-hassan" />
        <meta name="author" content="Fawaz Tahir - http://clip-bucket.com/fawaz-tahir" />
        <link rel="shortcut icon" href="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/favicon.ico">
        <link rel="icon" type="image/ico" href="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/favicon.ico" />

        <!-- RSS FEEDS -->
        <?php 
        echo rss_feeds(array('link_tag' => true), $_smarty_tpl);
        ?>


        <meta name="keywords" content="<?php 
        echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['keywords'];
        ?>
" />
        <meta name="description" content="<?php 
        echo $_smarty_tpl->tpl_vars['Cbucket']->value->configs['description'];
        ?>
" />
        <meta name="distribution" content="global" />


        <title><?php 
        echo cbtitle(array(), $_smarty_tpl);
        ?>
</title>


        <link href='//fonts.googleapis.com/css?family=Rambla:400,700|Roboto:400,700|Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>


        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/bootstrap.min.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
" />
        <?php 
        if (this_page('index')) {
            ?>
        <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/css/home.css?cache=<?php 
            echo $_smarty_tpl->tpl_vars['cache_buster']->value;
            ?>
" />
        <?php 
        }
        ?>
        
     
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/main.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
" />
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/ClipBucket.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
" />
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/channel.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
" />
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/groups.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
" />
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/header.css?cache=<?php 
        echo $_smarty_tpl->tpl_vars['cache_buster']->value;
        ?>
">

        

        <link href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
        <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/css/font-awesome.min.css">

        <?php 
        if (this_page('watch_video') || this_page('view_item') || this_page('view_channel')) {
            ?>
        <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/css/watch-video.css">
        
    	<?php 
        }
        ?>

    	<?php 
        if (this_page('view_channel')) {
            ?>
        <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/css/view-channel-header.css">
    	<?php 
        }
        ?>


    	
        <?php 
        if (this_page('photo_upload') || this_page('upload')) {
            ?>
        <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/css/uploader.css">
        <?php 
        }
        ?>
        <?php 
        if (this_page('view_channel')) {
            ?>
         <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/css/view_channel.css">
        <?php 
        }
        ?>

        <?php 
        if (this_page('signup')) {
            ?>
        <link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['baseurl']->value;
            ?>
/styles/global/jquery_ui.css">
        <?php 
        }
        ?>
       
		<?php 
        if (this_page('index')) {
            ?>
			<script src="<?php 
            echo $_smarty_tpl->tpl_vars['theme']->value;
            ?>
/js/custom-elements.js"></script>
		<?php 
        }
        ?>
        <?php 
        echo ANCHOR(array('place' => 'ajax_data'), $_smarty_tpl);
        ?>

        <script type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/js/functions.js"></script>
        <script type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/js/admin_functions.js"></script>
        
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/bootstrap.min.js"></script>
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/masonary.desandro.min.js"></script>
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/js/clipbucket.js"></script>
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/masonary.desandro.min.js"></script>
        <script src='https://www.google.com/recaptcha/api.js'></script



		<!-- Script For Home Page Videos Slider //-->
		<script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/jssor.slider.min.js"></script>

        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/uslider_js/jquery.easing.js"></script>
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/uslider_js/jquery.mousewheel.js"></script>
        <script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme']->value;
        ?>
/js/uslider_js/jquery.ulslide.js?v=4"></script>
		<!-- Script For Home Page Videos Slider //-->

        <?php 
        if (isset($_smarty_tpl->tpl_vars['quicklist'])) {
            $_smarty_tpl->tpl_vars['quicklist'] = clone $_smarty_tpl->tpl_vars['quicklist'];
            $_smarty_tpl->tpl_vars['quicklist']->value = json_encode($_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist());
            $_smarty_tpl->tpl_vars['quicklist']->nocache = null;
            $_smarty_tpl->tpl_vars['quicklist']->scope = 0;
        } else {
            $_smarty_tpl->tpl_vars['quicklist'] = new Smarty_variable(json_encode($_smarty_tpl->tpl_vars['cbvid']->value->get_quicklist()), null, 0);
        }
        ?>
        
        <script>
            $(document).ready(function(){
                var quicklist_videos = '<?php 
        echo $_smarty_tpl->tpl_vars['quicklist']->value;
        ?>
';
                if (quicklist_videos)
                quicklist_videos_check(quicklist_videos);

                loading = '<i class="fa fa-spinner fa-spin"></i> <?php 
        echo smarty_lang(array('code' => "loading"), $_smarty_tpl);
        ?>
...';
               /* var container = document.querySelector('.the_');
                var msnry = new Masonry( container, {
                    // options

                    itemSelector: '.the-item',
                    stamp : '.ad-box'

                });
    */
    //            less.watch({
    //            poll : 300
    //            });

            // For changing language on Click in footer
            $( 'ul#photos li:visible' ).each( function( i ){
                $( this )[ (1&i) ? 'addClass' : 'removeClass' ]( 'photo-land-no' );
            });

            // Language change select code
            $('#lang_selector').change(function(){
            var optionSelectedValue = $('#lang_selector option:selected').val();
            if(optionSelectedValue)
                {
                    var $currentLocation = window.location.href,
                            matchedElement = $currentLocation.match(/\?/);
                            
                    if(matchedElement == null)
                    {
                        window.location = "?set_site_lang="+optionSelectedValue;    
                    } else {
                        window.location = window.location+"&set_site_lang="+optionSelectedValue;    
                    }
                }
            });
            
            });

        </script>


        <?php 
        echo include_header(array('file' => 'global_header'), $_smarty_tpl);
        ?>


    </head><?php 
    }
コード例 #2
0
ファイル: rss.php プロジェクト: Coding110/cbvideo
</title>
<link><?php 
echo BASEURL;
?>
</link>
    <image> 
        <url><?php 
echo website_logo();
?>
</url>
        <link><?php 
echo BASEURL;
?>
</link>
        <title><?php 
echo cbtitle();
?>
</title>
    </image>
    <description><?php 
echo $Cbucket->configs['description'];
?>
</description>
    <?php 
if ($total_vids) {
    ?>
    <total_videos><?php 
    echo $total_vids;
    ?>
</total_videos>
    <?php 
    function content_56afd771f0ba60_43988601($_smarty_tpl)
    {
        ?>
<meta charset="UTF-8">
<title><?php 
        echo cbtitle(array(), $_smarty_tpl);
        ?>
</title>

<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/assets/css/font-awesome.min.css" />
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/css/styles.css" />

<!--[if IE 7]>
  <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/assets/css/font-awesome-ie7.min.css" />
<![endif]-->

<!-- page specific plugin styles -->

<!-- fonts -->

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,300" />

<!-- ace styles -->
<?php 
        if (!this_page('admin_login')) {
            ?>
 <!-- these css file not includes in admin area login.html -->
<link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme_url']->value;
            ?>
/assets/css/ace.min.css" />
<link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme_url']->value;
            ?>
/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="<?php 
            echo $_smarty_tpl->tpl_vars['theme_url']->value;
            ?>
/assets/css/ace-skins.min.css" />
<?php 
        }
        ?>

<!--[if lte IE 8]>
  <link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/assets/css/ace-ie.min.css" />
<![endif]-->

<!-- inline styles related to this page -->

<script type="text/javascript">
    var baseurl = "<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
";
    var imageurl = "<?php 
        echo $_smarty_tpl->tpl_vars['imageurl']->value;
        ?>
";
</script>





<!-- ace settings handler -->

<script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/assets/js/ace-extra.min.js"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/js/clipbucket.js"></script>



<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

<!--[if lt IE 9]>
<script src="assets/js/html5shiv.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/../../../../js/functions.js"></script>
<script type="text/javascript" src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/../../../../js/admin_functions.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<!-- for bootstrap wysiwyg -->
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/css/summernote.css" />


<script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/js/editor.js"></script>
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/js/main.js"></script>

<!-- for bootstrap wysiwyg -->

        <!-- for popovers -->
<script>
    $(function (){
        $(".popoverButton").popover();
    });

</script>

<!-- bootstrap x-editable -->
<link rel="stylesheet" href="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/bootstrap-editable/css/bootstrap-editable.css" />
<script src="<?php 
        echo $_smarty_tpl->tpl_vars['theme_url']->value;
        ?>
/bootstrap-editable/js/bootstrap-editable.min.js"></script>


<script type="text/javascript">
    $(document).ready(function() {
        $('.xedit').editable({
            mode: 'inline',
            url:baseurl+'/admin_area/index.php?mode=update_pharse',
            pk: function(){
                var id = $(this).attr("id");
                
                id = id.match(/([0-9]+)$/g);
               return id.pop();
            },
        });
    });



</script>
<script>
$(document).ready(function() {
             $('.edit_lang').editable(baseurl+'/actions/update_phrase.php', {  alert('yu');
            // cancel    : 'Cancel',
            // submit    : 'OK',
             indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
             tooltip   : 'Click to edit...',
            });
        });
    $(document).ready(function(){
        $(".drop").on({
            click: function(e){
                var ele = $(this).parent().nextAll("#content").get(0);
                $(ele).toggle();
            }
        });
    });


</script>

<script>
    $(document).ready(function() {
        $('#desc').summernote();
    });
</script>





<script>
    $(function(){


        $(".saveTodo").click(function(e){
            var self = this;
             var newVal = $(this).parent().parent().find("input[name='todo']").val();
             if(newVal.length){
                var ajaxCall = $.ajax({
                    url: "<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
" + "/admin_area/index.php",
                    type: "post",
                    data: {
                        val: newVal,
                        mode: "add_todo",
                    },
                });
                ajaxCall.success(function(data){
                    data = $.parseJSON(data);
                    var p = document.createElement("p");
                    p.className = "xedit editable editable-click";
                    var input = document.createElement("input");
                    input.type = "hidden";
                    input.name = "todoid";
                    input.value = data.id;
                    var b = document.createElement("b");
                    b.innerHTML = data.todo;
                    p.appendChild(input);
                    p.appendChild(b);
                    console.log(p);
                    $(self).parents("form").after(p);
                });
             }else{
                alert("Please enter a valid value");
             }
        });


    $("#todolist").on("click", ".editable-clear-x", function(e){
        e.preventDefault();
            var self = this;
            var id = $(this).parents(".editable-container").prev().attr("id");
            id = id.match(/([0-9]+)$/g);
            id = id.pop();
            var ajaxCall = $.ajax({
                url: "<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
" + "/admin_area/index.php",
                type: "post",
                data: {
                    id: id,
                    mode: "delete_todo",
                },
            });
            ajaxCall.success(function(data){
                $(self).parents("p").remove();
                $(self).parents(".editable-container").remove();
            });
            e.stopPropagation();
    });

    });
</script>

<?php 
        if ($_smarty_tpl->tpl_vars['Cbucket']->value->AdminJSArray) {
            ?>
<!-- Including JS Files-->
<?php 
            $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['type']->_loop = false;
            $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->AdminJSArray;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
                $_smarty_tpl->tpl_vars['type']->_loop = true;
                $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key;
                ?>
    <?php 
                if ($_smarty_tpl->tpl_vars['curActive']->value == $_smarty_tpl->tpl_vars['type']->value || $_smarty_tpl->tpl_vars['type']->value == 'global') {
                    ?>
        <?php 
                    echo include_js(array('type' => $_smarty_tpl->tpl_vars['type']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl);
                    ?>

    <?php 
                }
            }
            ?>
<!-- Including JS Files-->
<?php 
        }
        ?>

<?php 
        if ($_smarty_tpl->tpl_vars['Cbucket']->value->admin_header_files) {
            ?>
    <!-- Including Headers -->
    <?php 
            $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['type']->_loop = false;
            $_smarty_tpl->tpl_vars['file'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['Cbucket']->value->admin_header_files;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['type']->key => $_smarty_tpl->tpl_vars['type']->value) {
                $_smarty_tpl->tpl_vars['type']->_loop = true;
                $_smarty_tpl->tpl_vars['file']->value = $_smarty_tpl->tpl_vars['type']->key;
                ?>
        <?php 
                echo include_header(array('type' => $_smarty_tpl->tpl_vars['type']->value, 'file' => $_smarty_tpl->tpl_vars['file']->value), $_smarty_tpl);
                ?>

    <?php 
            }
            ?>
    <!-- Ending Headers -->
<?php 
        }
    }