Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
<?php $collection_info = get_collection_by_id($GLOBALS['plogger_id']); ?>
<!-- google_ad_section_start -->
<div id="collection_name"><?php echo $collection_info['name']; ?></div>
<div id="collection_description"><?php echo $collection_info['description']; ?></div>
<!-- google_ad_section_end -->
<?php $album_info = get_album_by_id($GLOBALS['plogger_id']); ?>
<!-- google_ad_section_start -->
<div id="album_name"><?php echo $album_info['album_name']; ?></div>
<div id="album_description"><?php echo $album_info['description']; ?></div>
<!-- google_ad_section_end -->
<?php $picture_info = get_picture_by_id($GLOBALS['plogger_id']); ?>
<!-- google_ad_section_start -->
<div id="picture_name"><?php echo basename($picture_info['path']); ?></div>
<div id="picture_caption"><?php echo $picture_info['caption']; ?></div>
<div id="picture_description"><?php echo $picture_info['description']; ?></div>
<!-- google_ad_section_end -->
<?php
switch($GLOBALS['plogger_level']){
case "collection":
$collection_info = get_collection_by_id($GLOBALS['plogger_id']);
$keyword = str_replace(" ", ",", $collection_info['name']);
$description = $collection_info['description'];
break;
case "album":
$album_info = get_album_by_id($GLOBALS['plogger_id']);
$keyword = $keyword = str_replace(" ", ",", $album_info['name']);
$description = $album_info['description'];
break;
case "picture":
$picture_info = get_picture_by_id($GLOBALS['plogger_id']);
if (!empty($picture_info['caption'])){
$keyword = $keyword = str_replace(" ", ",", $picture_info['caption']);
} else {
$keyword = $keyword = str_replace(" ", ",", basename($picture_info['path']));
}
$description = $picture_info['description'];
break;
case "search":
$keyword = isset($_GET['searchterms']) ? str_replace(" ", ",", $_GET['searchterms']) : '';
$description = "Searching my Plogger gallery";
break;
default:
$keyword = "generic,keywords,here";
$description = "This is my Plogger gallery";
break;
}
?>
<meta name="keywords" content="<?php echo $keyword;?>">
<meta name="description" content="<?php echo $description;?>">
1 to 9 of 9