Version 1.1
-réécriture de la fonction create_thumb: pour les images format portrait, les vignettes sont redimensionner à 300px de large, puis cropées à 300x200. Toutes les vignettes sont au format paysage. -quelques corrections de bugs
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<p class="navPage"><a href="index.php" title="<?php echo gettext("Home"); ?>"><?php echo gettext("Home"); ?></a> | <a href="photo-du-mois.php" title="<?php echo gettext("Picture of the month"); ?>"><?php echo gettext("Picture of the month"); ?></a> | <a href="maps.php" title="<?php echo gettext("Maps"); ?>"><?php echo gettext("Maps"); ?></a> | <a href="admin.php" title="<?php echo gettext("Admin page"); ?>"><?php echo gettext("Admin page"); ?></a></p>
|
||||
<p class="navPage"><a href="../index.php" title="<?php echo gettext("Home"); ?>"><?php echo gettext("Home"); ?></a> | <a href="../photo-du-mois.php" title="<?php echo gettext("Picture of the month"); ?>"><?php echo gettext("Picture of the month"); ?></a> | <a href="../maps.php" title="<?php echo gettext("Maps"); ?>"><?php echo gettext("Maps"); ?></a> | <a href="admin.php" title="<?php echo gettext("Admin page"); ?>"><?php echo gettext("Admin page"); ?></a></p>
|
||||
|
||||
<p><em><small>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</small></em></p>
|
||||
|
||||
|
||||
@@ -108,16 +108,11 @@ $i = 1;
|
||||
$photos = array();
|
||||
|
||||
foreach($dir as $file){
|
||||
/*
|
||||
$file->getFilename()
|
||||
pathName()
|
||||
*/
|
||||
|
||||
$file = $file->getpathName();
|
||||
//$file = $file->getFilename();
|
||||
echo $file;
|
||||
|
||||
$x = in_bdd($file);
|
||||
echo $x;
|
||||
/*
|
||||
if ($i > 5) {
|
||||
break;
|
||||
@@ -653,6 +648,9 @@ try {
|
||||
$titre = $item['title']; // ***
|
||||
$legende = $item['legende']; // ***
|
||||
|
||||
|
||||
# Create Thumbnails (functions.php line 203)
|
||||
|
||||
$big = $chemin . $file;
|
||||
create_thumb($th_w, $th_h, $big);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user