$value)
{
$article_name_string = $loader['articles'][$name]['name'];
if($article_found && !$next_found)
{
// Already found match. Load details of next article
$next_article_name = $article_name_string;
if(array_key_exists('title', $loader['articles'][$name]))
$next_title = $loader['articles'][$name]['title'];
if(array_key_exists('subtitle', $loader['articles'][$name]))
$next_subtitle = $loader['articles'][$name]['subtitle'];
$next_found = true;
$last_article = false;
}
// Check for match with requested article
if($article_name_string == $article_title)
{
if(array_key_exists('date', $loader['articles'][$name]))
$article_date = $loader['articles'][$name]['date'];
if(array_key_exists('place', $loader['articles'][$name]))
$article_place = $loader['articles'][$name]['place'];
if(array_key_exists('title', $loader['articles'][$name]))
$title = $loader['articles'][$name]['title'];
if(array_key_exists('subtitle', $loader['articles'][$name]))
$subtitle = $loader['articles'][$name]['subtitle'];
if(array_key_exists('caption', $loader['articles'][$name]))
$caption = $loader['articles'][$name]['caption'];
if(array_key_exists('alt', $loader['articles'][$name]))
$alt = $loader['articles'][$name]['title'];
else
$alt = $caption;
// if(array_key_exists('date', $loader['articles'][$name]))
// $date_time = $loader['articles'][$name]['date'];
if(array_key_exists('width', $loader['articles'][$name]))
$article_width = $loader['articles'][$name]['width'];
if(array_key_exists('text', $loader['articles'][$name]))
$article_text = $loader['articles'][$name]['text'];
$article_found = true;
}
}
}
if($article_found)
{
echo '' . "\n";
// Only display place/date if have a date
echo '';
if(strlen($article_place) > 0)
echo $article_place;
echo '';
echo '
' . $title . '
' . "\n";
echo '' . $subtitle . '' . "\n";
echo '' . "\n";
echo '' . "\n";
if($last_article)
{
echo '
';
echo 'Finish ' . "\n";
}
else
{
// Display link to next article
echo '
';
echo "\n\n";
}
echo '
' . "\n";
echo '' . "\n\n";
// Apply default article width
if($article_width == "")
$article_width = "400";
// echo '' . "\n";
echo '
' . "\n";
// echo '
' . $article_date . '';
echo $article_text;
// echo '
' . "\n";
// echo '' . "\n";
// echo '
' . "\n";
$caption_width = 700 - $article_width;
// echo '
' . "\n";
// echo '
' . "\n";
// if($caption != "" || $date_time != "")
if($caption != "")
{
echo '
';
echo $caption;
echo '
';
}
echo '
' . "\n";
echo '
' . "\n\n";
}
else
{
// No article selected
$first_article_name = $loader['articles'][0]['name'];
$first_title = $loader['articles'][0]['title'];
$first_subtitle = $loader['articles'][0]['subtitle'];
?>
In September 2015 a team from Christ Church spent two weeks in Kenya and Tanzania.
From a village with no electricity or running water to views of snow-capped
Mount Kilimanjaro, this is their story.
Select any of the entries
in the index below to view each article, or just follow the Next links to
step through each article in order.
' . "\n";
echo '
' . "\n";
echo '
';
echo '
' . "\n";
$margin_left = 6 + 9;
echo '
' . "\n";
echo '' . "\n";
echo '
';
echo "\n\n";
echo '
';
echo "\n\n";
?>
The Christ Church Africa Encounter team arrives in Kenya
It's everyone's story too because the team represented the whole of Christ Church
and friends, especially at the opening of a
kindergarten building
funded by all of us over the past year.
";
echo '';
echo '
Index of articles
';
echo "";
echo "" . "\n";
echo '';
echo '
';
echo "\n";
foreach($loader['articles'] as $name => $value)
{
if(array_key_exists('date', $loader['articles'][$name]))
$article_date = $loader['articles'][$name]['date'];
if(array_key_exists('place', $loader['articles'][$name]))
$article_place = $loader['articles'][$name]['place'];
$article_name_string = $loader['articles'][$name]['name'];
$title = "";
if(array_key_exists('title', $loader['articles'][$name]))
$title = $loader['articles'][$name]['title'];
$subtitle = "";
if(array_key_exists('subtitle', $loader['articles'][$name]))
$subtitle = $loader['articles'][$name]['subtitle'];
// Display triangle
echo '';
echo "\n\n";
}
echo '
';
echo "
" . "\n";
}
?>