Beispiel #1
0
				</p>
			</section>';
/*
 * Start the Masonry.js wrapper
 */
$sidebar .= '<div class="grouping js-masonry"
                  data-masonry-options=\'{
                    "itemSelector": ".grid-box",
                    "columnWidth": ".grid-sizer",
                    "gutter": 10 }\'>';
/*
 * Get the help text for the requested page.
 */
$help = new Help();
// The help text is now available, as a JSON object, as $help->get_text()
$sidebar .= '<p class="keyboard"><a id="keyhelp">' . $help->get_text('keyboard')->title . '</a></p>';
/*
 * If this section has been cited in any court decisions, list them.
 */
if (isset($law->court_decisions) && $law->court_decisions != FALSE) {
    $sidebar .= '<section class="grid-box grid-sizer" id="court-decisions">
				<h1>Court Decisions</h1>
				<ul>';
    foreach ($law->court_decisions as $decision) {
        $sidebar .= '<li><a href="' . $decision->url . '"><em>' . $decision->name . '</em></a> (' . $decision->court_html . ', ' . date('m/d/y', strtotime($decision->date)) . ')';
        if (isset($decision->abstract)) {
            $sidebar .= '<br />' . $decision->abstract;
        }
        $sidebar .= '</li>';
    }
    $sidebar .= '</ul>