当前位置: 首页>>代码示例>>PHP>>正文


PHP Blog::randomizePosts方法代码示例

本文整理汇总了PHP中Blog::randomizePosts方法的典型用法代码示例。如果您正苦于以下问题:PHP Blog::randomizePosts方法的具体用法?PHP Blog::randomizePosts怎么用?PHP Blog::randomizePosts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Blog的用法示例。


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

示例1: Blog

    $current_page = $_GET['p'];
}
$next_page = $current_page + 1;
$next_page_read = $next_page + 1;
include_once '/kunden/homepages/0/d643120834/htdocs/config/index.php';
$blog = new Blog();
if (isset($_POST['filter']) == false) {
    $feed_filter = '';
} else {
    $feed_filter = $_POST['filter'];
}
if (isset($_POST['site'])) {
}
//print_r($feed_filter);
//$posts = $blog->randomizePosts($current_page,12 , $feed_filter);
$posts = $blog->randomizePosts($current_page, 13, '', $_POST['site']);
//echo 'page: '.$_POST['site'];
//$ads = $blog->getPhotosByUser('admin');
//$ads[0]['image'] = str_replace('server/php/files/', 'server/php/files/thumbnail/', $ads[0]['image']);
if ($_GET['dev'] == 'run') {
    echo '<pre>';
    print_r($_SERVER['SCRIPT_URI']);
    echo '</pre>';
    exit;
}
include_once ROOT . 'AudioPlayer/index.php';
?>
<script type="text/javascript">
$('.load-more-button').click(function(){

  $('.main_display_wrapper').html('Please Wait..');
开发者ID:mayoalexander,项目名称:fl-two,代码行数:31,代码来源:feed.php

示例2: User

<?php

include_once '/kunden/homepages/0/d643120834/htdocs/config/index.php';
$user = new User();
$page_title = 'Magazine';
$blog = new Blog();
$posts = $blog->randomizePosts();
//echo '<pre>';
//print_r();
//exit;
include ROOT . 'AudioPlayer/index.php';
?>
<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="shortcut icon" type="image/x-icon" href="http://freelabel.net/ico/favicon.ico" >
	    <link rel="shortcut icon" href="http://freelabel.net/ico/favicon.ico" type="image/x-icon">
	    <link rel="icon" href="http://freelabel.net/images/favicon.ico" type="image/x-icon">
		<title><?php 
echo $page_title;
?>
 // FREELABEL MAG + RADIO</title>
		<meta name="author" content="FREELABEL">
		<meta name="Description" content="FREELABEL Network is the Leader in Online Showcasing | <?php 
echo $page_desc;
?>
">
		<meta name="Keywords" content="FREELABEL, FREE LABEL, FREE, LABEL, AMR, AMRecords, Rap, Hip Hop, Showcasing, Good Brand, Get That Good, Good Brand Clothing, Dalls Texas, FREELABEL, amradio, am radio live, texas, music, promotion, hip hop, rap">
开发者ID:mayoalexander,项目名称:fl-two,代码行数:31,代码来源:dashboard.php

示例3: Blog

<?php

if (isset($_GET['p']) == false) {
    $current_page = 0;
} else {
    $current_page = $_GET['p'];
}
$next_page = $current_page + 1;
$next_page_read = $next_page + 1;
include_once '/kunden/homepages/0/d643120834/htdocs/config/index.php';
$blog = new Blog();
$posts = $blog->randomizePosts($current_page, 13);
$ads = $blog->getPhotosByUser('admin');
$ads[0]['image'] = str_replace('server/php/files/', 'server/php/files/thumbnail/', $ads[0]['image']);
//include(ROOT.'AudioPlayer/index.php');
?>
<script src="<?php 
echo HTTP;
?>
mag/view/js/classie.js"></script>
<script src="<?php 
echo HTTP;
?>
mag/view/js/main.js"></script>
<script type="text/javascript">
$('.load-more-button').click(function(){
	//$('.main_display_wrapper').html('Please Wait..');
	$(this).hide('fast');
	//$('.dropdown-menu').toggle('fast');
	var page = <?php 
echo "" . $_GET['p'] . "";
开发者ID:mayoalexander,项目名称:fl-two,代码行数:31,代码来源:stream.php


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