Esempio n. 1
0
$issue = $issues[$n];
$id = $issue['id'];
// build the url for this issue
$issue_url = $journal_url_base . "/" . $issue['url'];
// get all of the bulletins for this issue
$bulletins = $oo->children($id);
// randomise the array
shuffle($bulletins);
$i = $n;
foreach ($bulletins as $b) {
    // style title and author
    $title = strtoupper($b['name1']);
    $author = $b['deck'];
    $caption = $author . ": " . $title;
    // get cover image
    $all_media = $oo->media($b['id']);
    $j = 0;
    while ($all_media[$j]['type'] == "pdf") {
        $j++;
    }
    // get cover image url
    $m_url = m_url($all_media[$j]);
    // build bulletin url
    $b_url = $issue_url . "/" . $b['url'];
    // display bulletin and caption
    ?>
<div class="thumbsContainer issue<?php 
    echo $i;
    ?>
">
		<a href="<?php