Tags
-recherche des tags de l’image du mois (PDO) -affichage des tags sous l’image, avec liens vers Zenphoto
This commit is contained in:
@@ -211,22 +211,18 @@ Array
|
||||
[gps] =>
|
||||
)
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
$keyword = "";
|
||||
if (isset($iptc['2#025'])) {
|
||||
foreach ($iptc['2#025'] as $key => $val) {
|
||||
$keyword .= '<a href="' . $host . '/zenphoto/index.php?p=search&words=' . $val . '" title="Tag > ' . $val . '" rel="tag">' . $val . '</a>';
|
||||
$keyword .= ', ';
|
||||
//$title = $imgs['title'];
|
||||
$mois = strtok($title = $imgs['title'], '_');
|
||||
|
||||
$keyword = ZPGetTag($filename, $album, $connexion);
|
||||
|
||||
if (isset($keyword)) {
|
||||
foreach ($keyword as $val) {
|
||||
$tag_cloud .= '<a href="' . $host . '/zenphoto/index.php?p=search&words=' . strtolower($val) . '" title="Tag > ' . strtolower($val) . '" rel="tag">' . strtolower($val) . '</a>';
|
||||
$tag_cloud .= ', ';
|
||||
}
|
||||
$keyword = substr($keyword, 0, -2);
|
||||
}
|
||||
|
||||
$imgs['img_sd']['keyword'] = $keyword;
|
||||
}
|
||||
*/
|
||||
|
||||
$exifInfo = "";
|
||||
$exifInfo = __('The','toppic-child') . " " .date(__("F j, Y, g:i a",'toppic-child'),strtotime($imgs['EXIFDateTimeOriginal'])).' - ';
|
||||
$exifInfo .= $imgs['EXIFExposureTime'] . __(' at ','toppic-child') . $imgs['EXIFFNumber'] .' - ' . $imgs['EXIFISOSpeedRatings'] .' ISO - ' . __('Focal','toppic-child') .$imgs['EXIFFocalLength'];
|
||||
@@ -248,7 +244,7 @@ Array
|
||||
<div class="cadre">
|
||||
|
||||
<?php if (($imgs['title'] != "") || ($imgs['desc'] != "")) { ?>
|
||||
<p class="titrePhoto"><?php echo $imgs['title']; ?></p>
|
||||
<p class="titrePhoto"><?php echo mois2($mois); ?></p>
|
||||
<p class="legendePhoto"><?php echo $imgs['desc']; ?></p>
|
||||
<?php }
|
||||
|
||||
@@ -272,13 +268,10 @@ Array
|
||||
|
||||
</div><!-- /cadre -->
|
||||
|
||||
<?php if (($imgs['img_sd']['titre'] != "") || ($imgs['img_sd']['legende'] != "")) { ?>
|
||||
<p class="titrePhoto"><?php echo $imgs['img_sd']['titre']; ?>Titre</p>
|
||||
<p class="legendePhoto"><?php echo $imgs['img_sd']['legende']; ?>Légende</p>
|
||||
<?php } ?>
|
||||
|
||||
<p class="exifs"><?php echo $imgs['exif']; ?></p>
|
||||
|
||||
<p class="tags"><?php echo _e("Tags: ",'toppic-child') . $tag_cloud; ?></p>
|
||||
|
||||
<!-- /image du mois -->
|
||||
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user