示例#1
0
        the_post();
        ?>

<?php 
        the_content();
        ?>
	
<?php 
    }
}
?>

<?php 
echo '<table width="100%" border="0" cellpadding="10"><tr><td valign="top">';
echo '<h2><i class="icon-twitter"></i> The latest twitter posts</h2>';
CONTRIBOOK_MICROBLOG::show(0, 10);
echo '</td><td valign="top">';
echo '<h2><i class="icon-comment"></i> The latest from the forum</h2>';
CONTRIBOOK_FORUM::show(0, 10);
echo '<h2><i class="icon-cloud"></i> ownCloud.com news</h2>';
CONTRIBOOK_NEWS::show(0, 10);
echo '</td></tr></table>';
?>



<?php 
get_footer();
?>

示例#2
0
<div class="wrap container pad-bottom">
	<div class="row">
		<div class="col-md-6 col-md-offset-3 text-center">
		<!-- Constant Contact Email List Form Button -->
		    <a href="http://visitor.r20.constantcontact.com/d.jsp?llr=ixens9uab&amp;p=oi&amp;m=1121878184680&amp;sit=mf4qye7jb&amp;f=cc4cd13f-acdf-45d3-b132-75252542c37d" class="btn btn-block btn-primary btn-lg join-button">Subscribe to our<br />monthly newsletter!</a><br />
		</div>
	</div>
</div>


<div class="row 3-column-lg-md-sm">
	<div class="col-lg-4 col-md-4 col-xs-12 col-sm-4">
		<h2><i class="icon-twitter"></i> The latest <a href="https://twitter.com/ownclouders">twitter posts</a></h2>
		<?php 
if (CONTRIBOOK) {
    CONTRIBOOK_MICROBLOG::show(0, 3);
}
?>
	</div>
	<div class="col-lg-4 col-md-4 col-xs-12 col-sm-4">
		<h2><i class="icon-comment"></i> The latest <a href="https://forum.owncloud.org">from the forum</a></h2>
		<?php 
if (CONTRIBOOK) {
    CONTRIBOOK_FORUM::show(0, 7);
}
?>
	</div>
	<div class="col-lg-4 col-md-4 col-xs-12 col-sm-4">
		<h2><i class="icon-cloud"></i> <a href="/news">ownCloud News</a></h2>
		<?php 
if (CONTRIBOOK) {
示例#3
0
    }
    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';
    }
}
?>
		</div>

	</div>
</div>