예제 #1
0
		</section>
<?php 
}
?>
		<header>
			<h1>
				<?php 
echo t('Table of Contents');
?>
			</h1>
		</header>

		<section class="container-fluid">
		<div class="row row-md-flex row-md-flex-wrap">
<?php 
$parts = ProjectInfo::getAllParts($project_id, $domain_handle, $volume_handle);
$nr_cols = count($parts) / 4;
if ($nr_cols == 0) {
    $nr_cols = 1;
}
$nr_parts_per_col = count($parts) / $nr_cols;
if ($nr_parts_per_col == 0) {
    $nr_parts_per_col = 1;
}
$start_part = 0;
for ($i = 0; $i < $nr_cols; $i++) {
    if ($start_part == count($parts)) {
        break;
    }
    ?>
			<div class="col-sm-12 col-md-3 col-lg-3">