示例#1
0
	<div class="page-content">
<?php 
if (CONTRIBOOK) {
    require dirname(__FILE__) . '/../../../contribook/main/contribook/lib_contribook.php';
    if (isset($_GET['user'])) {
        $user = $_GET['user'];
    } else {
        $user = '';
    }
    if (CONTRIBOOK_USER::exist($user)) {
        CONTRIBOOK_PROFILE::show($user);
        $data = CONTRIBOOK_USER::getuser($user);
        // show the blog posts of the user
        if ($data['rssurl'] != '') {
            echo '<br />The latest blogs<br />';
            CONTRIBOOK_BLOG::showuser($user, 0, 10);
        }
        // show the github messages of the user
        if ($data['github'] != '') {
            echo '<br />The latest GitHub messages<br />';
            CONTRIBOOK_GITHUB::show($user, 0, 10);
        }
        // show the twitter posts of the user
        if ($data['twitter'] != '') {
            echo '<br />The latest Twitter posts<br />';
            CONTRIBOOK_MICROBLOG::showuser($user, 0, 10);
        }
    } else {
        echo 'user not found';
    }
}
示例#2
0
<?php

/*
Template Name: Blog Planet RSS Page
*/
?>

<?php 
require '/srv/www/owncloud.org/contribook/main/contribook/lib_contribook.php';
CONTRIBOOK_BLOG::showrss('ownCloud Planet', 'The ownCloud blog planet with posts from all ownCloud contributors', 'https://owncloud.org/news/', 30);
示例#3
0
<div class="row">
	<div class="col-sm-7">
		<div class="page-content">
      <?php 
$url = explode('/', $_SERVER['REQUEST_URI']);
if (isset($url[2])) {
    $page = (int) $url[2];
} else {
    $page = 1;
}
if ($page < 1) {
    $page = 1;
}
echo '<div id="container" class="transitions-enabled infinite-scroll clearfix">';
CONTRIBOOK_BLOG::show(($page - 1) * 5, 5);
echo '</div>';
// If not on ssl, show the page link
$ssl = is_ssl() ? '' : 'style="display: block !important; margin-bottom: 60px;"';
echo '
        <nav id="page-nav" ' . $ssl . '>
          <a href="/news/' . ($page + 1) . '" style="float: right">Next Page</a>
        </nav>
        ';
?>
      <script>
        $(function(){

        var $container = $('#container');

        $container.imagesLoaded(function(){