$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
if(strlen($article_date) > 0)
{
echo '';
if(strlen($article_place) > 0)
echo $article_place . ', ';
$article_date_info = getdate(strtotime($article_date));
$article_date_string = $article_date_info['weekday'] . " " . $article_date_info['mday'] . " " . $article_date_info['month'];
echo $article_date_string . '';
}
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'];
?>
The Youth Encounter team: their last Christ Church service before setting off
The team want to say a big thank you to everyone
at Christ Church for supporting us through fundraising and prayer!
The articles on this page describe the preparations for the trip
and include some photos taken in Kenya and Tanzania.
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";
/*
echo '
';
// echo 'Next: ' . $next_title . ' ' . "\n";
echo '
Next: ' . $first_title . '' . "\n";
*/
?>
";
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";
}
?>