예제 #1
0
						<a href="#" class="btn" data-dismiss="modal">Cancel</a>
					</div>
				</form>
			</div>
		</div>
	</div>
	<?php 
if ($soc["status"] != "LOCKED" && !$status["banned"]) {
    echo "<p><a data-toggle=\"modal\" data-target=\"#new-post\" class=\"btn btn-primary btn-large\">New Post</a></p>";
}
?>
</div>

<!-- posts -->
<div class="panel panel-default">
	<div class="panel-heading">Posts</div>
	<div class="list-group panel-body">
		<?php 
if (count($posts) == 0) {
    echo to_html(par("No posts yet."));
} else {
    foreach ($posts as $p) {
        echo "<div class=\"row\">";
        echo to_html(post_summary($p, $soc["soc_name"]));
        echo "</div>";
        echo "<hr>";
    }
}
?>
	</div>
</div>
예제 #2
0
</script>

<!-- news feed -->
<div class="row container-fluid" style="">
	<div class="col-md-10 container-fluid">
		<div class="panel panel-default">
		<!-- Default panel contents -->
			<div class="panel-heading">News Feed</div>
			<div class="list-group panel-body">
				<?php 
if (count($posts) == 0) {
    echo to_html(par("No posts yet."));
} else {
    foreach ($posts as $p) {
        echo "<div class=\"row\">";
        echo to_html(post_summary($p, $p["society"], true));
        echo "</div>";
        echo "<hr>";
    }
}
?>
			</div>
		</div>
	</div>
	<div class="col-md-2 container-fluid">
		<?php 
$t = make_table($subs, ["society"], "table", "sub_socs", [], [0]);
$t["children"][0]["attribs"]["hidden"] = "";
// hide table header
$table = div(div(par("Subscribed societies"), "panel-heading"), "panel panel-primary");
$table["children"][] = $t;