• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_videos函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_videos函数的典型用法代码示例。如果您正苦于以下问题:PHP get_videos函数的具体用法?PHP get_videos怎么用?PHP get_videos使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_videos函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: json_encode

             echo json_encode(array("error" => "Nothing Found"));
         }
     }
     break;
 case "channelObjects":
     $contentType = strtolower(mysql_clean($_POST['content']));
     $u = $userquery->get_user_details($_POST['user']);
     $assign = $_POST['assign'];
     if (is_array($assign)) {
         foreach ($assign as $var => $value) {
             assign($var, $value);
         }
     }
     switch ($contentType) {
         case "videos":
             $videos = get_videos(array("user" => $u['userid'], "order" => " date_added DESC", "limit" => config('videos_item_channel_page')));
             if ($videos) {
                 foreach ($videos as $video) {
                     assign('video', $video);
                     assign('channelVideo', true);
                     $content['html'] .= Fetch("/blocks/video.html");
                 }
                 $content['html'] .= '<div align="right" class="clearfix channelAjaxMoreLink videosMoreLink" style="clear:both; display:block;">';
                 $content['html'] .= '<a href="' . cblink(array("name" => "user_videos")) . $u['username'] . '">' . lang('more') . '</a> | <a href="' . cblink(array("name" => "user_favorites")) . $u['username'] . '">' . lang('Favorites') . '</a>';
                 $content['html'] .= '</div>';
             } else {
                 $content['html'] = '<div align="center"><em>' . lang('user_have_no_vide') . '</em></div>';
             }
             break;
         case "photos":
             $photos = get_photos(array("user" => $u['userid'], "order" => " date_added DESC", "limit" => config('photo_channel_page')));
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:ajax.php


示例2: get_videos

        $videos = get_videos(array('limit' => $limit, 'order' => 'last_viewed DESC'));
        $title = "Videos Being Watched";
        break;
    case 'user':
        $user = mysql_clean($_GET['username']);
        //Get userid from username
        $uid = $userquery->get_user_field_only($user, 'userid');
        $uid = $uid ? $uid : 'x';
        $videos = get_videos(array('limit' => $limit, 'user' => $uid, 'order' => 'date_added DESC'));
        //Count Total Videos of this user
        $total_vids = get_videos(array('count_only' => true, 'user' => $uid));
        $title = "Videos uploaded by " . $user;
        break;
    case 'featured':
    default:
        $videos = get_videos(array('limit' => $limit, 'order' => 'featured_date DESC', 'featured' => 'yes'));
        $title = "Featured Videos";
        break;
}
subtitle($title);
?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title><?php 
echo cbtitle();
?>
</title>
<link><?php 
echo BASEURL;
?>
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:rss.php


示例3: e

if (!$details) {
    e(lang("grp_exist_error"));
} elseif (!$cbgroup->is_viewable($details)) {
    $Cbucket->show_page = false;
} elseif (!$cbgroup->is_member(userid(), $details['group_id'])) {
    e(lang("you_not_allowed_add_grp_vids"));
} else {
    ///Getting User Videos
    $page = mysql_clean($_GET['page']);
    $get_limit = create_query_limit($page, 28);
    $array = array('user' => userid(), 'limit' => $get_limit);
    $usr_vids = get_videos($array);
    //echo $db->db_query;
    assign('usr_vids', $usr_vids);
    $array['count_only'] = true;
    $total_rows = get_videos($array);
    $total_pages = count_pages($total_rows, 28);
    //Pagination
    $pages->paginate($total_pages, $page);
    //Adding videos to group
    if (isset($_POST['add_videos'])) {
        $total = count($usr_vids);
        for ($i = 0; $i < $total; $i++) {
            $videoid = $usr_vids[$i]['videoid'];
            if ($_POST['check_video_' . $videoid] == 'yes') {
                $cbgroup->add_group_video($videoid, $details['group_id'], false);
            } else {
                $cbgroup->remove_group_video($videoid, $details['group_id'], false);
            }
        }
        //Update Group Total Videos
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:add_group_videos.php


示例4: p_r

function p_r($array)
{
    echo "<pre>";
    print_r($array);
    echo "</pre>";
}
$start_index = $_GET['start_index'] ? $_GET['start_index'] : 0;
$loop_size = $_GET['loop_size'];
$loop_size = $loop_size ? $loop_size : 5;
assign('loop_size', $loop_size);
$next_index = $start_index + $loop_size;
assign('next_index', $next_index);
//Reindex Videos
if (isset($_GET['index_vids'])) {
    $videos = get_videos(array("active" => "yes", "status" => "Successful", "limit" => $start_index . "," . $loop_size));
    $total_videos = get_videos(array("count_only" => true, "active" => "yes", "status" => "Successful"));
    $percent = number_format(50 * $total_videos / 100);
    $i = 0;
    assign('total', $total_videos);
    assign('from', $start_index + 1);
    $to = $start_index + $loop_size;
    if ($to > $total_videos) {
        $to = $total_videos;
        e($total_videos . " videos have been reindexed successfully.", "m");
        assign("stop_loop", "yes");
    }
    assign('to', $to);
    while ($i < $total_videos) {
        if ($videos[$i]['videoid']) {
            $params = array("video_id" => $videos[$i]['videoid'], "video_comments" => true, "favs_count" => true, "playlist_count" => true);
            $indexes = $cbindex->count_index("vid", $params);
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:reindex_cb.php


示例5: get_text

<div id="gallery" class="row">
    <div id="content" class="row">
        <header class="content">
            <h3><?php 
get_text($gallery_title);
?>
</h3>
            <p><?php 
get_text($gallery_description);
?>
</p>
        </header>
        
        <div id="thumbs" class="content grid">
            <?php 
get_videos('gallery', 'content-gallery-item');
?>
        </div>
    </div>
    
    <footer id="footer" class="row">
        <div class="content">
            <div class="left">
                <span><?php 
get_text($footer_text);
?>
</span><br>
                <a class="cinematico" href="http://cinemati.co" target="_blank">Powered by Cinematico</a>
            </div>
            
            <div class="right">
开发者ID:cristianoiglesias,项目名称:cinematico,代码行数:31,代码来源:content-gallery.php


示例6: mysql_clean

$u = mysql_clean($u);
$udetails = $userquery->get_user_details($u);
$page = mysql_clean($_GET['page']);
if ($udetails) {
    assign("u", $udetails);
    $mode = $_GET['mode'];
    assign("u", $udetails);
    assign('p', $userquery->get_user_profile($udetails['userid']));
    switch ($mode) {
        case 'uploads':
        case 'videos':
        default:
            $get_limit = create_query_limit($page, config('videos_items_uvid_page'));
            assign("the_title", $udetails['username'] . " videos");
            $videos = get_videos(array('user' => $udetails['userid'], 'limit' => $get_limit));
            $total_rows = get_videos(array('user' => $udetails['userid'], 'count_only' => true));
            subtitle(sprintf(lang("users_videos"), $udetails['username']));
            $total_pages = count_pages($total_rows, config('videos_items_uvid_page'));
            break;
        case 'favorites':
            $get_limit = create_query_limit($page, config('videos_items_ufav_page'));
            assign("the_title", $udetails['username'] . " favorites");
            $params = array('userid' => $udetails['userid'], 'limit' => $get_limit);
            $videos = $cbvid->action->get_favorites($params);
            $params['count_only'] = "yes";
            $total_rows = $cbvid->action->get_favorites($params);
            subtitle(sprintf(lang("title_usr_fav_vids"), $udetails['username']));
            $total_pages = count_pages($total_rows, config('videos_items_ufav_page'));
            //pr($total_pages,true);
            break;
        case 'playlists':
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:user_videos.php


示例7: count

    $total = count($_POST['check_queue']);
    for ($i = 0; $i <= $total; $i++) {
        $myquery->queue_action("delete", $_POST['check_queue'][$i]);
    }
    e("Selected items have been deleted", "m");
}
if (isset($_POST['processed'])) {
    $total = count($_POST['check_queue']);
    for ($i = 0; $i <= $total; $i++) {
        $myquery->queue_action("processed", $_POST['check_queue'][$i]);
    }
    e("Selected items have been set changed to processed", "m");
}
if (isset($_POST['pending'])) {
    $total = count($_POST['check_queue']);
    for ($i = 0; $i <= $total; $i++) {
        $myquery->queue_action("pending", $_POST['check_queue'][$i]);
    }
    e("Selected items have been set changed to processed", "m");
}
//Getting List of Conversion Queue
$page = mysql_clean($_GET['page']);
$get_limit = create_query_limit($page, RESULTS);
$queue_list = $myquery->get_conversion_queue(NULL, $get_limit);
assign('queues', $queue_list);
$total_rows = get_videos($vcount);
$total_pages = count_pages($db->count(tbl('conversion_queue'), "cqueue_id"), RESULTS);
$pages->paginate($total_pages, $page);
subtitle("Conversion Queue Manager");
template_files("cb_conversion_queue.html");
display_it();
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:cb_conversion_queue.php


示例8: error_list

            $msg = $msg[0];
        }
        if (error()) {
            $err = error_list();
            $err = $err[0];
        }
        $ajax['msg'] = $msg;
        $ajax['err'] = $err;
        echo json_encode($ajax);
        break;
}
/////////////////////////ending notes
if (!$array['order']) {
    $result_array['order'] = " views DESC LIMIT 8 ";
}
$videos = get_videos($result_array);
Assign('videos', $videos);
$comments = getComments($comment_cond);
assign("comments", $comments);
$get_limit = create_query_limit($page, 5);
$videos = $cbvid->action->get_flagged_objects($get_limit);
Assign('flaggedVideos', $videos);
$get_limit = create_query_limit($page, 5);
$users = $userquery->action->get_flagged_objects($get_limit);
Assign('flaggedUsers', $users);
$get_limit = create_query_limit($page, 5);
$photos = $cbphoto->action->get_flagged_objects($get_limit);
assign('flaggedPhotos', $photos);
$numbers = array(100, 1000, 15141, 3421);
function format_number($number)
{
开发者ID:reactvideos,项目名称:Website,代码行数:31,代码来源:index.php


示例9: content_56afd78d1fea15_55283541


//.........这里部分代码省略.........
							<?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 
        }
        ?>
						</ul>
						<input tabindex="-1" type="submit" name="cbsearch" id="cbsearch" value="<?php 
        echo smarty_lang(array('code' => 'Go'), $_smarty_tpl);
        ?>
" class="btn btn-default minus-marginLeft" />
					</div>
				</div>
			</form>
		</div>

		<ul class="nav navbar-nav main-nav navbar-collapse collapse manual-height left-margin-xero pad-left-xero" id="khulja-sim-sim">
			<li class="dropdown hidden-xs mega-dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-bars"></i>&nbsp;Menu <span class="caret"></span></a>
				<ul class="dropdown-menu clearfix mega-dropdown-menu noclose">
					<li class="col col-lg-3 col-md-3 col-sm-4 col-xs-12">
						<div id="menCollection" class="carousel slide clearfix" data-ride="carousel">
							<div class="carousel-inner">
							<?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" => 4, "featured" => "yes"));
            $_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" => 4, "featured" => "yes")), null, 0);
        }
        ?>
							<?php 
        if ($_smarty_tpl->tpl_vars['videos']->value) {
            ?>
				        	<?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');
            }
            $_smarty_tpl->tpl_vars['video']->iteration = 0;
            foreach ($_from as $_smarty_tpl->tpl_vars['video']->key => $_smarty_tpl->tpl_vars['video']->value) {
                $_smarty_tpl->tpl_vars['video']->_loop = true;
                $_smarty_tpl->tpl_vars['video']->iteration++;
                ?>
				        	<?php 
                if ($_smarty_tpl->tpl_vars['video']->iteration == 1) {
                    ?>
				        	<div class="item active">
				        	<?php 
                } else {
                    ?>
				        	<div class="item">
				        	<?php 
                }
                ?>
开发者ID:reactvideos,项目名称:Website,代码行数:67,代码来源:0bb2b4a7950177c772107f1dddb828f9cbf5f716.file.header.html.php


示例10: json_encode

                $data[$i]['options']['type'] = 'projectMarker';
                $data[$i]['options']['actionType'] = "linkToProject";
            }
            $marker_data['markers'] = $data;
        } else {
            $marker_data['error'] = 'permission denied';
        }
    } else {
        $marker_data['error'] = 'permission denied';
    }
    echo json_encode($marker_data, JSON_NUMERIC_CHECK);
}
//get videos of a project
if ($_GET['req'] == "getVideos") {
    $project_id = $_GET['data']['projectId'];
    $video_rows = get_videos($project_id);
    //chage data form for client side
    $videos = array();
    for ($i = 0; $i < count($video_rows); $i++) {
        $video = $video_rows[$i];
        $videos[] = array('id' => $video['video_id'], 'url' => $video['url'], 'name' => $video['name']);
    }
    echo json_encode($videos, JSON_NUMERIC_CHECK);
}
if ($_GET['req'] == "getPolylines") {
    $project_id = $_GET['data']['projectId'];
    $polyline_rows = get_polylines($project_id);
    //get polylines of a project
    $polylines = array();
    for ($i = 0; $i < count($polyline_rows); $i++) {
        $polyline = $polyline_rows[$i];
开发者ID:nextben,项目名称:PVR_editor,代码行数:31,代码来源:getData.php


示例11: header

<?php

include '../../../../includes/config.inc.php';
header('Content-Type: text/xml');
$title = mysql_clean($_GET['title']);
$tags = mysql_clean($_GET['tags']);
$videoid = mysql_clean($_GET['vid']);
$related_videos = get_videos(array('title' => $title, 'tags' => $tags, 'exclude' => $videoid, 'show_related' => 'yes', 'limit' => 8, 'order' => 'date_added DESC'));
if (!$related_videos) {
    $related_videos = get_videos(array('exclude' => $videoid, 'limit' => 12, 'order' => 'date_added DESC'));
}
?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
	<?php 
if ($related_videos) {
    foreach ($related_videos as $video) {
        ?>
    <item>
        <title><?php 
        echo $video['title'];
        ?>
</title>
        <link><?php 
        echo videoLink($video);
        ?>
</link>
        <media:thumbnail url="<?php 
        echo get_thumb($video);
        ?>
" height="90" width="120" time="<?php 
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:related_videos.php


示例12: is_video

function is_video($record)
{
    $videos = get_videos();
    foreach ($videos as $video) {
        if (strstr(strtolower($record['type']), $video)) {
            return true;
        }
    }
    return false;
}
开发者ID:phillipmadsen,项目名称:noidea-shopify,代码行数:10,代码来源:import_functions.php


示例13: content_56afd77ab2a977_56293857


//.........这里部分代码省略.........
                                </div>

                                <div class="col-md-7">
                                    <label class="label label-danger">Last Active  <?php 
                echo niceTime($_smarty_tpl->tpl_vars['u']->value['last_active']);
                ?>
</label>
                                    <label class="label label-primary"> <?php 
                echo smarty_lang(array('code' => 'Flags'), $_smarty_tpl);
                ?>
 : <?php 
                echo $_smarty_tpl->tpl_vars['u']->value['flag_type'];
                ?>
</label>

                                </div>
                            </div>
                            <?php 
            }
            ?>
                        <?php 
        }
        ?>
                    </div>
                </div>
           
                <div class="widget-main">
                    <hr>
                    <table class="table table-stripped table-bordered">
                        <tr>
                            <td>
                                <div class="stats_subitem_d">Total Videos : <strong><?php 
        ob_start();
        echo get_videos(array('count_only' => 'yes'), $_smarty_tpl);
        echo number_format(ob_get_clean());
        ?>
</strong> </div>
                            </td>
                            <td>
                                <div class="stats_subitem_d">Total Groups : <strong><?php 
        echo get_groups(array('count_only' => 'yes'), $_smarty_tpl);
        ?>
</strong> </div>
                            </td>
                            <td>
                                <div class="stats_subitem_d">Total Collection : <strong><?php 
        echo get_collections(array('count_only' => 'yes'), $_smarty_tpl);
        ?>
</strong> </div>
                            </td>
                            <td>
                                <div class="stats_subitem_d">Total Users : <strong><?php 
        echo get_users(array('count_only' => 'yes'), $_smarty_tpl);
        ?>
</strong> </div>
                            </td>
                            <td>
                                <div class="stats_subitem_d">Total Photos: <strong><?php 
        echo get_photos(array('count_only' => 'yes'), $_smarty_tpl);
        ?>
</strong> </div>
                            </td>
                    </table>
                </div>

            </div>
开发者ID:reactvideos,项目名称:Website,代码行数:67,代码来源:49fc3041a368292de3fa784c18e159751f38aa9b.file.index.html.php


示例14: foreach

                    <video height="480" autobuffer="1" preload="metadata">

                    </video>
                </div>
            </div>
        </div>
        <div id="container">
            <ul class='cams'>
                <?php 
if ($list === false) {
    foreach ($cams as $cam) {
        if (isset($cam_dir[$cam])) {
            if (count($cams) <= 1 || $detail) {
                echo "<li><h4>" . htmlentities($cam_dir[$cam]['section']['title']) . " : " . htmlentities($cam_dir[$cam]['data'][0]) . "</h4>\n";
                echo "<ul class='dates'>";
                $videos = get_videos($cam, $all ? false : RECENT_DEFAULT);
                foreach ($videos as $video) {
                    $date = preg_replace('/.*-(20\\d\\d-\\d\\d-\\d\\d).*/', '\\1', $video);
                    $url = sprintf($vurltmpl, $video);
                    $path = sprintf($vpathtmpl, $video);
                    $htmldate = htmlentities($date);
                    echo "<li><a class='play-link' href='#{$url}' data-video='{$path}'><i class='fa fa-play'></i> {$htmldate}</a></li>";
                }
                if (!$all) {
                    echo "<li><a href='?cam=" . htmlentities($cam) . "&all=1'>more</a></li>\n";
                }
                echo "</ul>";
            } else {
                echo "<li><h4><a href='?cam=" . htmlentities($cam) . "'>" . htmlentities($cam_dir[$cam]['section']['title']) . " : " . htmlentities($cam_dir[$cam]['data'][0]) . "\n";
                echo "</a></h4><ul>";
            }
开发者ID:mscalora,项目名称:utah-cams,代码行数:31,代码来源:videos.php


示例15: array

            $userquery->removeProfileItem();
        }
        //Getting Video List
        $vid_array = array('user' => $udetails['userid'], 'limit' => $get_limit);
        if (get('query') != '') {
            $vid_array['title'] = mysql_clean(get('query'));
            $vid_array['tags'] = mysql_clean(get('query'));
        }
        if (get('order') == 'oldest') {
            $vid_array['order'] = ' date_added ASC ';
        } else {
            $vid_array['order'] = ' date_added DESC ';
        }
        if (get('broadcast') && is_valid_broadcast(get('broadcast'))) {
            $vid_array['broadcast'] = mysql_clean(get('broadcast'));
        }
        $videos = get_videos($vid_array);
        Assign('uservids', $videos);
        Assign('videos', $videos);
        //Collecting Data for Pagination
        $vid_array['count_only'] = true;
        $total_rows = get_videos($vid_array);
        assign('total_videos', $total_rows);
        $total_pages = count_pages($total_rows, VLISTPP);
        //Pagination
        $pages->paginate($total_pages, $page);
        subtitle(lang("vdo_manage_vdeos"));
        break;
}
template_files('manage_videos.html');
display_it();
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:manage_videos.php


示例16: delete_user_vids

 /**
  * Function used to delete user videos
  */
 function delete_user_vids($uid)
 {
     global $cbvid, $eh;
     $vids = get_videos(array('user' => $uid));
     if (is_array($vids)) {
         foreach ($vids as $vid) {
             $cbvid->delete_video($vid['videoid']);
         }
     }
     $eh->flush_msg();
     e(lang("user_vids_hv_deleted"), "m");
 }
开发者ID:yukisky,项目名称:clipbucket,代码行数:15,代码来源:user.class.php


示例17: Copyright

<?php

/* 
 *****************************************************************
 | Copyright (c) 2007-2010 Clip-Bucket.com. All rights reserved.	
 | @ Author : tangi											
 | @ Software : ClipBucket , &#169; PHPBucket.com						
 ******************************************************************
*/
require 'includes/config.inc.php';
header("Content-Type: text/xml charset=utf-8");
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
$limit = 100;
$videos = get_videos(array('limit' => $limit, 'active' => 'yes', 'order' => 'date_added DESC'));
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<!-- by fjulio ( tangi @ clipbucket dev. ) -->
<?php 
foreach ($videos as $video) {
    ?>
<url>
<loc><?php 
    echo video_link($video);
    ?>
</loc>
<video:video>
<video:content_loc><?php 
    echo get_video_file($video);
    ?>
</video:content_loc>
<video:player_loc allow_embed="yes"><?php 
开发者ID:yukisky,项目名称:clipbucket,代码行数:31,代码来源:sitemap.php


示例18: content_55e44443075054_87310853


//.........这里部分代码省略.........
        ?>
	    <!-- ******************************************* //-->
		<!-- ************ 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>
开发者ID:abhinay100,项目名称:clipbucket_app,代码行数:67,代码来源:6091a37f1725c8cc15d4e51776cf84df17604838.file.index.html.php


示例19: get_videos

    case 'rating':
        $videos = get_videos(array('limit' => $limit, 'order' => 'rating DESC'));
        $title = "Top Rated Videos";
        break;
    case 'watching':
        $videos = get_videos(array('limit' => $limit, 'order' => 'last_viewed DESC'));
        $title = "Videos Being Watched";
        break;
    case 'user':
        $user = mysql_clean($_GET['username']);
        //Get userid from username
        $uid = $userquery->get_user_field_only($user, 'userid');
        $uid = $uid ? $uid : 'x';
        $videos = get_videos(array('limit' => $limit, 'user' => $uid, 'order' => 'date_added DESC'));
        //Count Total Videos of this user
        $total_vids = get_videos(array('count_only' => true, 'user' => $uid));
        $title = "Videos uploaded by " . $user;
        break;
}
subtitle($title);
?>

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title><?php 
echo cbtitle();
?>
</title>
<link><?php 
echo BASEURL;
?>
开发者ID:Coding110,项目名称:cbvideo,代码行数:31,代码来源:rss.php


示例20: content_56afd77a9b3d52_38469325

    function content_56afd77a9b3d52_38469325($_smarty_tpl)
    {
        if (!is_callable('smarty_function_math')) {
            include '/var/www/html/includes/smartyv3/plugins/function.math.php';
        }
        ?>
<div id="navbar" class="navbar navbar-default">
	<div id="navbar" class="navbar-container container">
		<div class="navbar-header pull-left">
            <div class="logoContainer clearfix">
    			<a class="navbar-brand" href="<?php 
        echo $_smarty_tpl->tpl_vars['baseurl']->value;
        ?>
/admin_area">
                    <img class="pull-left" src="<?php 
        echo $_smarty_tpl->tpl_vars['imageurl']->value;
        ?>
/login_logo.png" height="30">                   
                </a>
            </div>
		   </div>
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="purple">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-bell-alt icon-animated-bell"></i>
                                <span class="badge badge-important"><?php 
        ob_start();
        echo get_videos(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        $_tmp1 = ob_get_clean();
        ob_start();
        echo get_groups(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        $_tmp2 = ob_get_clean();
        ob_start();
        echo get_users(array('count_only' => 'yes', 'status' => 'ToActivate'), $_smarty_tpl);
        $_tmp3 = ob_get_clean();
        echo smarty_function_math(array('equation' => "x + a + b + c + d + e", 'x' => $_tmp1, 'a' => $_tmp2, 'b' => $_smarty_tpl->tpl_vars['cbgroup']->value->action->count_flagged_objects(), 'c' => $_smarty_tpl->tpl_vars['cbvid']->value->action->count_flagged_objects(), 'd' => $_smarty_tpl->tpl_vars['userquery']->value->action->count_flagged_objects(), 'e' => $_tmp3), $_smarty_tpl);
        ?>
</span>
                            </a>

                            <ul class="dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close pull-right">
                                <li class="dropdown-header">
                                    <i class="icon-warning-sign"></i>
                                    <?php 
        ob_start();
        echo get_videos(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        $_tmp4 = ob_get_clean();
        ob_start();
        echo get_groups(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        $_tmp5 = ob_get_clean();
        ob_start();
        echo get_users(array('status' => 'ToActivate', 'count_only' => true), $_smarty_tpl);
        $_tmp6 = ob_get_clean();
        echo smarty_function_math(array('equation' => "x + a + b + c + d + e", 'x' => $_tmp4, 'a' => $_tmp5, 'b' => $_smarty_tpl->tpl_vars['cbgroup']->value->action->count_flagged_objects(), 'c' => $_smarty_tpl->tpl_vars['cbvid']->value->action->count_flagged_objects(), 'd' => $_smarty_tpl->tpl_vars['userquery']->value->action->count_flagged_objects(), 'e' => $_tmp6), $_smarty_tpl);
        ?>
 Notifications
                                </li>
                                <li>
                                    <a href="video_manager.php?search=search&active=no">
                                        <div class="clearfix">
                                            <span class="pull-left">
                                                <i class="btn btn-xs no-hover btn-pink icon-facetime-video"></i>
                                                Approve Videos
                                            </span>
                                            <span class="badge badge-info pull-right"><?php 
        echo get_videos(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        ?>
 </span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="members.php?search=yes&amp;status=ToActivate">
                                        <div class="clearfix">
                                            <span class="pull-left">
                                                <i class="btn btn-xs no-hover btn-success icon-user"></i>
                                                Approve Members
                                            </span>
                                            <span class="badge badge-success pull-right"><?php 
        echo get_users(array('status' => 'ToActivate', 'count_only' => true), $_smarty_tpl);
        ?>
</span>
                                        </div>
                                    </a>
                                </li>

                                <li>
                                    <a href="groups_manager.php?active=no&amp;search=yes">
                                        <div class="clearfix">
                                            <span class="pull-left">
                                                <i class="btn btn-xs no-hover btn-info icon-group"></i>
                                                Approve Groups 
                                            </span>
                                            <span class="badge badge-info pull-right"><?php 
        echo get_groups(array('active' => 'no', 'count_only' => true), $_smarty_tpl);
        ?>
</span>
                                        </div>
//.........这里部分代码省略.........
开发者ID:reactvideos,项目名称:Website,代码行数:101,代码来源:b856bb577c1cf2b78172b43d90be42440b9725cc.file.header.html.php



注:本文中的get_videos函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_view函数代码示例发布时间:2022-05-15
下一篇:
PHP get_video函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap