<div class="section page index">
    <h2>
        <?php echo htmlspecialchars($section['name']); ?>
    </h2>
    <ul>
        <?php foreach ($page as $p) : ?>
            <li>
                <a href="page/view/<?php echo htmlspecialchars($p['path']); ?>"><?php echo htmlspecialchars($p['name']); ?></a> <span>(<?php echo htmlspecialchars($p['views']); ?> views)</span>
            </li>
        <?php endforeach; ?>
    </ul>
</div>