This commit is contained in:
2017-02-02 06:42:50 +01:00
parent 6df0f90b09
commit fa176aba46
23 changed files with 4387 additions and 300 deletions

350
ce-mois-ci.php Executable file
View File

@@ -0,0 +1,350 @@
<?php
/**
* Template Name: Ce-mois ci
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header();
$root = $_SERVER['DOCUMENT_ROOT'];
define('SERVERPATH',$root.'/zenphoto');
include('../photoblog/exifer/exif.php');
//nb d'archive par page
$nb = 12;
global $ppage;
$url = $_SERVER[REDIRECT_URL];
$a = explode("/", $url);
$pages = end($a);
$pages = prev($a);
if ($pages != get_page_uri()) $ppage = $pages;
else $ppage = "1";
?>
<div class="content">
<div class="container">
<div class="post_content">
<?php if(have_posts()): the_post(); ?>
<article class="post_box" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</article>
<?php
$mois = date('n');
$an = date('Y');
$image = $mois . '_' . $an . '.jpg';
$annee = $an;
// nom des fichiers: 7_2009.jpg et non pas 07_2009.jpg
for ($i = 0; $i <= 11 ; $i++) {
$a = ($mois - $i);
if ($a < 1) {
$a = (12 + $a);
$annee = $an - 1;
}
$tableau[$i] = $a . '_' . $annee . '.jpg';
}
$i = 0;
while ($i < 13) {
$file = '../zenphoto/albums/photos-du-mois/' . $tableau[$i];
//echo $file;
if (file_exists($file)) {
$photo_du_mois = $file;
$title = $tableau[$i];
$size = getimagesize($photo_du_mois, $info);
//preprint($size);
if ($size[0] > 1000) {
// HD
$hd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_FULL_watermark.jpg";
if (file_exists($hd)) {
$size_hd = getimagesize($hd, $info_hd);
$imgs['img_hd'] = array(
'url' => $hd,
'width' => $size_hd[0],
'height' => $size_hd[1]
);
}
else {
$imgs['img_hd'] = array(
'url' => '../' . $photo_du_mois,
'width' => $size[0],
'height' => $size[1]
);
}
// SD
$sd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_800_watermark.jpg";
if (file_exists($sd)) {
$size_sd = getimagesize($sd, $info_sd);
$imgs['img_sd'] = array(
'url' => $sd,
'width' => $size_sd[0],
'height' => $size_sd[1]
);
}
}
else {
// SD
$sd = '../../zenphoto/cache/photos-du-mois/' . substr($tableau[$i], 0, strlen($tableau[$i]) - 4) . "_800_watermark.jpg";
if (file_exists($sd)) {
$size_sd = getimagesize($sd, $info_sd);
$imgs['img_sd'] = array(
'url' => $sd,
'width' => $size_sd[0],
'height' => $size_sd[1]
);
}
$imgs['img_hd'] = array(
'url' => "",
'width' => "",
'height' => ""
);
} // if ($size[0] > 1000)
$title = explode('.',$title);
$title = explode('_',$title[0]);
$title = mois2($title[0]) . ' ' . $title[1];
$imgs['img_sd']['title'] = $title;
if (isset($info["APP13"])) {
$iptc = iptcparse($info["APP13"]);
if (isset($iptc['2#120'][0])) $legende = $iptc['2#120'][0];
else $legende = "";
if (isset($iptc['2#005'][0])) $titre = $iptc['2#005'][0];
else $titre = "";
$keyword = "";
if (isset($iptc['2#025'])) {
foreach ($iptc['2#025'] as $key => $val) {
$keyword .= '<a href="' . $host . '/zenphoto/index.php?p=search&amp;words=' . $val . '" title="Tag > ' . $val . '" rel="tag">' . $val . '</a>';
$keyword .= ', ';
}
$keyword = substr($keyword, 0, -2);
}
$imgs['img_sd']['legende'] = $legende;
$imgs['img_sd']['titre'] = $titre;
$imgs['img_sd']['keyword'] = $keyword;
}
$exifInfo = "";
$exif_array = read_exif_data_raw($file,'EXIF');
$exifInfo = __('The','CreatorThemeRes-child') . " " .date(__("F j, Y, g:i a",'CreatorThemeRes-child'),strtotime($exif_array['SubIFD']['DateTimeOriginal'])).' - ';
$exifInfo .= $exif_array['SubIFD']['ExposureTime']. __(' at ','CreatorThemeRes-child') .$exif_array['SubIFD']['FNumber'].' - ' .$exif_array['SubIFD']['ISOSpeedRatings'].' ISO - '. __('Focal','CreatorThemeRes-child') .$exif_array['SubIFD']['FocalLength'];
$imgs['img_sd']['exif'] = $exifInfo;
preprint($exif_array);
break;
}
$i++;
}
//preprint($imgs);
?>
<?php if ($ppage == "1") { ?>
<div class="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 } ?>
<!--img src="watermark2.php?src=<?php echo $photo_du_mois; ?>" alt="Image du mois" title="<?php echo $title; ?>" <?php echo $size[3]; ?> /-->
<!-- Retina -->
<?php
if (($imgs['img_sd']['url'] != "") && ($imgs['img_hd']['url'] != "")) {
$standard_source = $imgs['img_sd']['url'] . ', ' . $imgs['img_hd']['url'] . ' 2x';
//echo "1";
}
else if ($imgs['img_sd']['url'] != "") {
$standard_source = $imgs['img_sd']['url'];
//echo "2";
}
else if ($imgs['img_hd']['url'] != "") {
$standard_source = $imgs['img_hd']['url'] . ' 2x';
//echo "3";
}
//echo $standard_source;
?>
<picture data-picture data-alt="">
<!--[if IE 9]><video style="display: none;"><![endif]-->
<source class="image_standard" srcset="<?php echo $standard_source; ?>">
<!--source class="image_medium" srcset="" media="(max-width: 767px)">
<source class="image_small" srcset="" media="(max-width: 767px)"-->
<!--[if IE 9]></video><![endif]-->
<?php
echo '<img srcset="' . $imgs['img_sd']['url'] . '" alt="" width="'. $imgs['img_sd']['width'] . '" height="'. $imgs['img_sd']['height'] .'" />';
?>
</picture>
<!-- /Retina -->
</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['img_sd']['exif']; ?></p>
<?php } ?>
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/Connections/cnx.php');
$album = 'photos-du-mois'; //Photos du mois
$table = array();
if ($_SERVER['HTTP_HOST'] == "macbook-pro.local") {
$table['images'] = ".images";
$table['albums'] = ".albums";
}
/*
if ($_SERVER['HTTP_HOST'] == "clicclac.info") {
$table['images'] = "zp_images";
$table['albums'] = "zp_albums";
}
*/
if ($_SERVER['HTTP_HOST'] == "clicclac.info") {
$table['images'] = "zenphoto_images";
$table['albums'] = "zenphoto_albums";
}
// Récupérer l'ID de l'album 'photos-du-mois' ($id_album)
$i = 0;
$conn = new mysqli($dbhost, $dbuser, $dbpassword, $zptable);
if ($conn->connect_error) {
trigger_error('Database connection failed: ' . $conn->connect_error, E_USER_ERROR);
exit();
}
$conn->set_charset("utf8");
$excquery = "SELECT `id` FROM `" . $table['albums'] . "` WHERE `folder` = '" . $album . "'";
if ($result = $conn->query($excquery)) {
$result->data_seek(0);
$row = $result->fetch_row();
$id_album = $row[0];
$result->close();
}
$conn->close();
// Récupérer toutes les fichiers de l'album 'photos-du-mois' ($fichier[])
$conn = new mysqli($dbhost, $dbuser, $dbpassword, $zptable);
if ($conn->connect_error) {
trigger_error('Database connection failed: ' . $conn->connect_error, E_USER_ERROR);
exit();
}
$conn->set_charset("utf8");
$pictquery = "SELECT `filename` FROM `" . $table['images'] . "` WHERE `albumid` = ? ORDER BY `date` DESC";
$stmt = $conn->prepare($pictquery);
//echo $pictquery;
if($stmt === false) {
trigger_error('Wrong SQL: ' . $pictquery . ' Error: ' . $conn->error, E_USER_ERROR);
}
else {
$stmt->bind_param('i', $id_album);
$stmt->execute();
$stmt->bind_result($filename);
while ($stmt->fetch()) {
$fichier[] = $filename;
$i++;
//echo $filename;
}
}
$stmt->close();
//
?>
<?php
$aide = "<span class='aide'> ? </span><b>Utilisation:</b> cliquer sur une vignette, puis....<br />";
$aide .= " <b><i>-sur ordinateur:</i></b> naviguer avec les touches flèches droite et gauche, quitter avec ESC.<br />";
$aide .= " <b><i>-sur tablettes et smartphones:</i></b> balayer l'écran avec un doigt vers la droite ou vers la gauche, ou naviguer avec les touches flèches droite et gauche. Cliquer sur la X pour quitter.";
?>
<div id="archive">
<p style="clear: both; "></p>
<h4><?php echo gettext("Archives"); ?> (<abbr title="<?php echo $aide; ?>" rel="tooltip"> ? </abbr>)</h4>
<!--h4><?php echo gettext("Archives"); ?> <span class='aide'><a href="#" title="<?php echo $aide; ?>" class="tooltip"><span title="<?php echo gettext("Help"); ?>">( ? )</span></a></span></h4-->
<?php
$debut = (($ppage - 1) * $nb) +1; // page 1: 2, page 2: 14, page 3: 26
$fin = ($debut + $nb) - 1;
for ($j=$debut; $j<=$fin; $j++) {
if ($j <= count($fichier)-1) echo displayRetina($fichier[$j],$album);
if ($j+1 <= count($fichier)-1) echo displayRetina($fichier[$j+1],$album);
if ($j+2 <= count($fichier)-1) echo displayRetina($fichier[$j+2],$album);
$j = $j + 2;
}
?>
<p style="clear: both; "></p>
<div class="blog-pagination">
<?php
/**/
// calcul du nombre de pages (arrondi a l'entier superieur)
$nbpages = ceil(count($fichier) / 12);
$prec = $ppage - 1;
$suiv = $ppage + 1;
if ($ppage >= 2) echo '<a class="prev page-numbers" href="'.$_SERVER['REQUEST_URI'].'?page='.$prec.'" title="'.gettext("Previous Page").'"> ← </a>&nbsp;';
for ($i = 1; $i <= $nbpages; $i++) {
if ($i != $ppage) {
echo '<a class="page-numbers" href="'.$_SERVER['REQUEST_URI'].'?page='.$i.'" title="'.gettext("Page").' '.$i.'">'.$i.' </a>&nbsp;';
}
else {
echo "<span class='current page-numbers'>".$i."</span>&nbsp;&nbsp;";
}
}
if ($page < $nbpages) echo '<a class="next page-numbers" href="'.$_SERVER['REQUEST_URI'].'?page='.$suiv.'" title="'.gettext("Next Page").'"> → </a>&nbsp;';
?>
</div>
</div>
<div class="clear"></div>
<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
<div class="home_blog_box">
</div>
<?php endif;
endif;
?>
</div>
<div class="clear"></div>
</div>
</div>
<?php
get_footer( 'page' );
?>

8
css/featherlight.gallery.min.css vendored Normal file
View File

@@ -0,0 +1,8 @@
/**
* Featherlight Gallery an extension for the ultra slim jQuery lightbox
* Version 1.3.4 - http://noelboss.github.io/featherlight/
*
* Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
@media all{.featherlight-next,.featherlight-previous{display:block;position:absolute;top:25px;right:25px;bottom:0;left:80%;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:rgba(0,0,0,0)}.featherlight-previous{left:25px;right:80%}.featherlight-next:hover,.featherlight-previous:hover{background:rgba(255,255,255,.25)}.featherlight-next span,.featherlight-previous span{display:none;position:absolute;top:50%;left:5%;width:82%;text-align:center;font-size:80px;line-height:80px;margin-top:-40px;text-shadow:0 0 5px #fff;color:#fff;font-style:normal;font-weight:400}.featherlight-next span{right:5%;left:auto}.featherlight-next:hover span,.featherlight-previous:hover span{display:inline-block}.featherlight-loading .featherlight-next,.featherlight-loading .featherlight-previous{display:none}}@media only screen and (max-device-width:1024px){.featherlight-next:hover,.featherlight-previous:hover{background:0 0}.featherlight-next span,.featherlight-previous span{display:block}}@media only screen and (max-width:1024px){.featherlight-next,.featherlight-previous{top:10px;right:10px;left:85%}.featherlight-previous{left:10px;right:85%}.featherlight-next span,.featherlight-previous span{margin-top:-30px;font-size:40px}}

8
css/featherlight.min.css vendored Executable file
View File

@@ -0,0 +1,8 @@
/**
* Featherlight - ultra slim jQuery lightbox
* Version 1.7.0 - http://noelboss.github.io/featherlight/
*
* Copyright 2016, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/
@media all{.featherlight{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483647;text-align:center;white-space:nowrap;cursor:pointer;background:#333;background:rgba(0,0,0,0)}.featherlight:last-of-type{background:rgba(0,0,0,.8)}.featherlight:before{content:'';display:inline-block;height:100%;vertical-align:middle}.featherlight .featherlight-content{position:relative;text-align:left;vertical-align:middle;display:inline-block;overflow:auto;padding:25px 25px 0;border-bottom:25px solid transparent;margin-left:5%;margin-right:5%;max-height:95%;background:#fff;cursor:auto;white-space:normal}.featherlight .featherlight-inner{display:block}.featherlight .featherlight-close-icon{position:absolute;z-index:9999;top:0;right:0;line-height:25px;width:25px;cursor:pointer;text-align:center;font-family:Arial,sans-serif;background:#fff;background:rgba(255,255,255,.3);color:#000;border:0;padding:0}.featherlight .featherlight-close-icon::-moz-focus-inner{border:0;padding:0}.featherlight .featherlight-image{width:100%}.featherlight-iframe .featherlight-content{border-bottom:0;padding:0;-webkit-overflow-scrolling:touch;overflow-y:scroll}.featherlight iframe{border:0}.featherlight *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}}@media only screen and (max-width:1024px){.featherlight .featherlight-content{margin-left:0;margin-right:0;max-height:98%;padding:10px 10px 0;border-bottom:10px solid transparent}}

11
css/ionicons.min.css vendored Normal file

File diff suppressed because one or more lines are too long

BIN
fonts/ionicons.eot Executable file

Binary file not shown.

2230
fonts/ionicons.svg Executable file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 326 KiB

BIN
fonts/ionicons.ttf Executable file

Binary file not shown.

BIN
fonts/ionicons.woff Executable file

Binary file not shown.

View File

@@ -40,6 +40,23 @@
*/
</script>
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//<?php echo $_SERVER[SERVER_NAME]; ?>/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//<?php echo $_SERVER[SERVER_NAME]; ?>/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
<?php wp_footer(); ?>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7cAx3NSH4dPM3Sx2oQeud7Zr-KaGXmLk&callback=initMap" type="text/javascript"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -60,20 +60,14 @@
height: 100%;
}
</style><![endif]-->
<?php //include(get_stylesheet_directory_uri() . '/exifer/exif.php'); ?>
</head>
<body <?php body_class(); ?>>
<header id="head">
<div class="top-area">
<div class="container">
<div class="head-details">
<?php
/*
echo (dess_setting('dess_tel') != '' ? __('Tel: ','creator').'<a href="tel:'.dess_setting('dess_tel').'">'. dess_setting('dess_tel').'</a>' : '');
echo (dess_setting('dess_email') != '' ? ' | '.__('Email: ','creator').'<a href="mailto:'.dess_setting('dess_email').'">'. dess_setting('dess_email').'</a>' : '');
echo (dess_setting('dess_hoursup') != '' ? ' | '.dess_setting('dess_hoursup') : '');
*/
?>
<?php get_search_form(); ?>
</div><!-- head-details -->
<div class="head-socials">

View File

@@ -47,3 +47,15 @@ Flickr
<?php if (in_category(3)) { ?>
--------
Shortcode ZP -> img zenphoto avec class="selector"
add_shortcode( 'zenphoto', 'zenphoto_handler' );
Media WP -> add_class_lightbox($content) -> img wordpress avec class="selector"

7
js/featherlight.gallery.min.js vendored Normal file
View File

@@ -0,0 +1,7 @@
/**
* Featherlight Gallery an extension for the ultra slim jQuery lightbox
* Version 1.3.4 - http://noelboss.github.io/featherlight/
*
* Copyright 2015, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/!function(a){"use strict";function b(c,d){if(!(this instanceof b)){var e=new b(a.extend({$source:c,$currentTarget:c.first()},d));return e.open(),e}a.featherlight.apply(this,arguments),this.chainCallbacks(h)}var c=function(a){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+a)};if("undefined"==typeof a)return c("Too much lightness, Featherlight needs jQuery.");if(!a.featherlight)return c("Load the featherlight plugin before the gallery plugin");var d="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,e=a.event&&a.event.special.swipeleft&&a,f=window.Hammer&&function(a){var b=new window.Hammer.Manager(a[0]);return b.add(new window.Hammer.Swipe),b},g=d&&(e||f);d&&!g&&c("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var h={afterClose:function(a,b){var c=this;return c.$instance.off("next."+c.namespace+" previous."+c.namespace),c._swiper&&(c._swiper.off("swipeleft",c._swipeleft).off("swiperight",c._swiperight),c._swiper=null),a(b)},beforeOpen:function(a,b){var c=this;return c.$instance.on("next."+c.namespace+" previous."+c.namespace,function(a){var b="next"===a.type?1:-1;c.navigateTo(c.currentNavigation()+b)}),g?c._swiper=g(c.$instance).on("swipeleft",c._swipeleft=function(){c.$instance.trigger("next")}).on("swiperight",c._swiperight=function(){c.$instance.trigger("previous")}):c.$instance.find("."+c.namespace+"-content").append(c.createNavigation("previous")).append(c.createNavigation("next")),a(b)},onKeyUp:function(a,b){var c={37:"previous",39:"next"}[b.keyCode];return c?(this.$instance.trigger(c),!1):a(b)}};a.featherlight.extend(b,{autoBind:"[data-featherlight-gallery]"}),a.extend(b.prototype,{previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return c("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(b){var c=this,d=c.slides(),e=d.length,f=c.$instance.find("."+c.namespace+"-inner");return b=(b%e+e)%e,c.$currentTarget=d.eq(b),c.beforeContent(),a.when(c.getContent(),f.fadeTo(c.galleryFadeOut,.2)).always(function(a){c.setContent(a),c.afterContent(),a.fadeTo(c.galleryFadeIn,1)})},createNavigation:function(b){var c=this;return a('<span title="'+b+'" class="'+this.namespace+"-"+b+'"><span>'+this[b+"Icon"]+"</span></span>").click(function(){a(this).trigger(b+"."+c.namespace)})}}),a.featherlightGallery=b,a.fn.featherlightGallery=function(a){return b.attach(this,a)},a(document).ready(function(){b._onReady()})}(jQuery);

View File

@@ -1,6 +1,6 @@
$(document).ready(function(){
$('.gallery').featherlightGallery({
$('.galerie').featherlightGallery({
gallery: {
fadeIn: 300,
fadeOut: 300
@@ -8,7 +8,7 @@ $(document).ready(function(){
openSpeed: 300,
closeSpeed: 300
});
$('.gallery2').featherlightGallery({
$('.galerie2').featherlightGallery({
gallery: {
next: 'next »',
previous: '« previous'

8
js/featherlight.min.js vendored Executable file

File diff suppressed because one or more lines are too long

4
js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

40
js/short-zenphoto.js Normal file
View File

@@ -0,0 +1,40 @@
(function() {
tinymce.create('tinymce.plugins.zenphoto', {
init : function(ed, url) {
ed.addButton('zenphoto', {
title : 'Add Zenphoto Shortcode',
image : url+'/recentpostsbutton.png',
onclick : function() {
var album = prompt("Album", "");
var image = prompt("Image", "");
if (image != null && image != ''){
if (album != null && album != '')
ed.execCommand('mceInsertContent', false, '[zenphoto album="'+album+'" image="'+image+'"]');
/*else
ed.execCommand('mceInsertContent', false, '[zenphoto'+text+'[/recent-posts]');*/
}
else{
if (album != null && album != '')
ed.execCommand('mceInsertContent', false, '[zenphoto album="'+album+'"]');
/*else
ed.execCommand('mceInsertContent', false, '[zenphoto]');*/
}
}
});
},
createControl : function(n, cm) {
return null;
},
getInfo : function() {
return {
longname : "Zenphoto Shortcode",
author : 'Bruno',
authorurl : 'https://clicclac.info',
infourl : 'https://clicclac.info/wordpress/',
version : "1.0"
};
}
});
tinymce.PluginManager.add('zenphoto', tinymce.plugins.zenphoto);
})();

Binary file not shown.

View File

@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Creator Responsive WordPress Theme Child\n"
"POT-Creation-Date: 2017-01-15 18:22+0100\n"
"PO-Revision-Date: 2017-01-15 18:23+0100\n"
"POT-Creation-Date: 2017-01-31 06:26+0100\n"
"PO-Revision-Date: 2017-01-31 06:27+0100\n"
"Last-Translator: Bruno <bruno@clicclac.info>\n"
"Language-Team: Bruno <bruno@clicclac.info>\n"
"Language: fr_FR\n"
@@ -21,28 +21,29 @@ msgstr ""
"X-Poedit-SearchPathExcluded-0: *.js\n"
"X-Poedit-SearchPathExcluded-1: -child\n"
#: Pagination/ce-mois.php:138 ce-mois-bis.php:145 ce-mois.php:138
#: Pagination/ce-mois.php:138 ce-mois-ci.php:145 ce-mois.php:138
msgid "The"
msgstr "Le"
#: Pagination/ce-mois.php:138 ce-mois-bis.php:145 ce-mois.php:138
#: Pagination/ce-mois.php:138 ce-mois-ci.php:145 ce-mois.php:138
#: functions.php:1037
msgid "F j, Y, g:i a"
msgstr "d.m.Y à H:i"
#: Pagination/ce-mois.php:139 ce-mois-bis.php:146 ce-mois.php:139
#: Pagination/ce-mois.php:139 ce-mois-ci.php:146 ce-mois.php:139
msgid " at "
msgstr " à "
#: Pagination/ce-mois.php:139 ce-mois-bis.php:146 ce-mois.php:139
#: Pagination/ce-mois.php:139 ce-mois-ci.php:146 ce-mois.php:139
msgid "Focal"
msgstr "Focale "
#: Pagination/ce-mois.php:211 Pagination/ce-mois.php:212 ce-mois-bis.php:289
#: ce-mois-bis.php:290 ce-mois.php:211 ce-mois.php:212
#: Pagination/ce-mois.php:211 Pagination/ce-mois.php:212 ce-mois-ci.php:289
#: ce-mois-ci.php:290 ce-mois.php:211 ce-mois.php:212
msgid "Archives"
msgstr "Archives"
#: Pagination/ce-mois.php:212 ce-mois-bis.php:290 ce-mois.php:212
#: Pagination/ce-mois.php:212 ce-mois-ci.php:290 ce-mois.php:212
msgid "Help"
msgstr "Aide"
@@ -78,63 +79,63 @@ msgstr "Lire plus d'entrées de blog..."
msgid "Sorry, no posts found."
msgstr "Désolé, aucun post trouvé."
#: ce-mois-bis.php:318
#: ce-mois-ci.php:318
msgid "Previous Page"
msgstr "Page précédente"
#: ce-mois-bis.php:322
#: ce-mois-ci.php:322
msgid "Page"
msgstr "Page"
#: ce-mois-bis.php:329
#: ce-mois-ci.php:329
msgid "Next Page"
msgstr "Page suivante"
#: fetch_pages.php:105 fonctions.php:116 functions.php:189
#: fetch_pages.php:105 fonctions.php:116 functions.php:225
msgid "January"
msgstr "Janvier"
#: fetch_pages.php:108 fonctions.php:119 functions.php:192
#: fetch_pages.php:108 fonctions.php:119 functions.php:228
msgid "February"
msgstr "Février"
#: fetch_pages.php:111 fonctions.php:122 functions.php:195
#: fetch_pages.php:111 fonctions.php:122 functions.php:231
msgid "March"
msgstr "Mars"
#: fetch_pages.php:114 fonctions.php:125 functions.php:198
#: fetch_pages.php:114 fonctions.php:125 functions.php:234
msgid "April"
msgstr "Avril"
#: fetch_pages.php:117 fonctions.php:128 functions.php:201
#: fetch_pages.php:117 fonctions.php:128 functions.php:237
msgid "May"
msgstr "Mai"
#: fetch_pages.php:120 fonctions.php:131 functions.php:204
#: fetch_pages.php:120 fonctions.php:131 functions.php:240
msgid "June"
msgstr "Juin"
#: fetch_pages.php:123 fonctions.php:134 functions.php:207
#: fetch_pages.php:123 fonctions.php:134 functions.php:243
msgid "July"
msgstr "Juillet"
#: fetch_pages.php:126 fonctions.php:137 functions.php:210
#: fetch_pages.php:126 fonctions.php:137 functions.php:246
msgid "August"
msgstr "Aout"
#: fetch_pages.php:129 fonctions.php:140 functions.php:213
#: fetch_pages.php:129 fonctions.php:140 functions.php:249
msgid "September"
msgstr "Septembre"
#: fetch_pages.php:132 fonctions.php:143 functions.php:216
#: fetch_pages.php:132 fonctions.php:143 functions.php:252
msgid "October"
msgstr "Octobre"
#: fetch_pages.php:135 fonctions.php:146 functions.php:219
#: fetch_pages.php:135 fonctions.php:146 functions.php:255
msgid "November"
msgstr "Novembre"
#: fetch_pages.php:138 fonctions.php:149 functions.php:222
#: fetch_pages.php:138 fonctions.php:149 functions.php:258
msgid "December"
msgstr "Décembre"
@@ -146,135 +147,174 @@ msgstr "2016 Copyright. Propulsé par WordPress"
msgid "Your subscription is manually enabled."
msgstr "Votre abonnement est activée manuellement."
#: functions.php:107
#: functions.php:141
msgid "yesterday"
msgstr "hier"
#: functions.php:108
#: functions.php:142
msgid "the day before yesterday"
msgstr "avant-hier"
#: functions.php:109
#: functions.php:143
msgid "two days ago"
msgstr "avant-avant-hier"
#: functions.php:110
#: functions.php:144
#, php-format
msgid "%1$s days ago"
msgstr "il y a %1$s jours"
#: functions.php:113
#: functions.php:147
#, php-format
msgid "%1$s week ago"
msgstr "il y a %1$s semaine"
#: functions.php:114
#: functions.php:148
#, php-format
msgid "%1$s weeks ago"
msgstr "il y a %1$s semaines"
#: functions.php:587
msgid "Post navigation"
msgstr ""
#: functions.php:491
msgid "Unknow album."
msgstr "Album inconnu."
#: functions.php:590
#: functions.php:504
msgid "Unknow image."
msgstr "Image inconnu."
#: functions.php:756
msgid "Post navigation"
msgstr "Navigation"
#: functions.php:759
msgctxt "Previous post link"
msgid "<span class=\"meta-nav\">&larr;</span> %title"
msgstr "<span class=\"meta-nav\">&larr;</span> %title"
#: functions.php:591
#: functions.php:760
msgctxt "Next post link"
msgid "%title <span class=\"meta-nav\">&rarr;</span>"
msgstr "%title <span class=\"meta-nav\">&rarr;</span>"
#: functions.php:609
#: functions.php:779
msgid "Sticky"
msgstr "Épingle"
#: functions.php:615 functions.php:621
#: functions.php:785 functions.php:791
msgid ", "
msgstr ", "
#: functions.php:630
#: functions.php:800
#, php-format
msgid "View all posts by %s"
msgstr "Voir tous les articles de %s"
#: functions.php:671
#: functions.php:821
#, php-format
msgctxt "1: post format name. 2: date"
msgid "%1$s on %2$s"
msgstr ""
#: functions.php:827
#, php-format
msgid "Permalink to %s"
msgstr "Permalien vers %s"
#: functions.php:1585
msgid "Settings"
msgstr "Paramètres"
#: functions.php:673
#: functions.php:1587
msgid "Theme settings"
msgstr "Paramètres du thème"
#: functions.php:684
#: functions.php:1598
msgid "Zenphoto path"
msgstr "Chemin de Zenphoto"
#: functions.php:695
#: functions.php:1609
msgid "Socials icons size (16 or 32px)"
msgstr "Taille icônes sociaux (16 ou 32px)"
#: functions.php:706
#: functions.php:1620
msgid "Lightbox selector (class=\"xxx\")"
msgstr "Sélecteur pour Lightbox (class = \"xxx\")"
#: functions.php:716
#: functions.php:1628
msgid "Choice of lightbox"
msgstr "Choix de la lightbox"
#: header.php:21 header.php:24 header.php:30 single.php:58
#: functions.php:1645
msgid "Display EXIFs"
msgstr "Afficher les EXIFs"
#: functions.php:1656
msgid "Display Geo datas"
msgstr "Afficher données GPS"
#: functions.php:1667
msgid "Display meta (single)"
msgstr "Afficher les metas (single)"
#: header.php:17 header.php:19 header.php:24 single.php:61
msgid "Display"
msgstr "Afficher"
#: header.php:24 header.php:27 header.php:30
#: header.php:19 header.php:22 header.php:24
msgid "Hide"
msgstr "Masquer"
#: header.php:47
#: header.php:28
msgid "Display comments"
msgstr "Afficher les commentaires"
#: header.php:47
#: header.php:28
msgid "Hide comments"
msgstr "Masquer les commentaires"
#: livre-d-or.php:30 single.php:19
#: livre-d-or.php:30 single.php:30
msgid "Pages"
msgstr "Pages"
#: single.php:26
#: search.php:8
msgid "Search Results"
msgstr "Résultats de la recherche"
#: search.php:65
msgid "No results found"
msgstr "Aucun résultat n'a été trouvé."
#: search.php:66
msgid "Try to search again."
msgstr "Merci de refaire une recherche..."
#: searchform.php:3
msgid "Search for:"
msgstr "Rechercher:"
#: searchform.php:4
msgid "Search"
msgstr "Rechercher"
#: single.php:36
msgid "Tags: "
msgstr "Mots-clés: "
#. translators: %s: Name of current post
#: single.php:34
#: single.php:44
#, php-format
msgid "Edit post<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "Editer l'article<span class=\"screen-reader-text\"> \"%s\"</span>"
#: single.php:51
msgid "0 Comment"
msgstr "0 commentaire"
#: single.php:51
msgid "1 Comment"
msgstr "1 commentaire"
#: single.php:51
msgid "Comments"
msgstr "Commentaires"
#: single.php:59
#: single.php:62
msgid " 0 Comment"
msgstr " 0 commentaire"
#: single.php:59
#: single.php:62
msgid " 1 Comment"
msgstr " 1 commentaire"
#: single.php:59
#: single.php:62
msgid " Comments"
msgstr " Commentaires"
@@ -308,6 +348,15 @@ msgstr ""
msgid "http://dessign.net"
msgstr ""
#~ msgid "0 Comment"
#~ msgstr "0 commentaire"
#~ msgid "1 Comment"
#~ msgstr "1 commentaire"
#~ msgid "Comments"
#~ msgstr "Commentaires"
#~ msgid "Display "
#~ msgstr "Afficher"

78
search.php Executable file
View File

@@ -0,0 +1,78 @@
<?php
get_header();
?>
<div class="content">
<div class="container">
<div class="post_content">
<div class="archive_title">
<h2><?php echo __('Search Results','CreatorThemeRes-child').': '.get_search_query(); ?></h2>
</div><!--//archive_title-->
<?php
$args = array_merge( $wp_query->query, array( 'posts_per_page' => 13, 'post_type' => 'post' ) );
$query = new WP_Query($args);
if ( $query->have_posts() ) : ?>
<div class="blog">
<div class="archive-posts">
<?php
while ($query->have_posts() ) : $query->the_post();
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(600,600) );
?>
<div class="blog-post-box">
<div class="blog-post-feature">
<?php
$type = get_post_meta($post->ID,'page_featured_type',true);
switch ($type) {
case 'youtube':
echo '<iframe width="560" height="315" src="http://www.youtube.com/embed/'.get_post_meta( get_the_ID(), 'page_video_id', true ).'?wmode=transparent" frameborder="0" allowfullscreen></iframe>';
break;
case 'vimeo':
echo '<iframe src="http://player.vimeo.com/video/'.get_post_meta( get_the_ID(), 'page_video_id', true ).'?title=0&amp;byline=0&amp;portrait=0&amp;color=03b3fc" width="500" height="338" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
break;
default:
$thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(600,600) );
echo '<div class="blog-post-image">
<a href="'.get_permalink().'" style="background-image: url('.$thumbnail[0].')"></a>';
echo '<h3><a href="'.get_the_permalink().'">'.get_the_title().'</a></h3>';
echo '</div>';
break;
}
?>
</div>
</div>
<?php
endwhile;
?>
<div class="clear"></div>
</div><!-- blog-posts -->
<div class="blog-pagination">
<?php
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $query->max_num_pages,
'prev_text' => '&#8592;',
'next_text' => '&#8594;'
) );
?>
</div>
</div><!-- blog -->
<?php
else :
?>
<h2><?php echo __('No results found','CreatorThemeRes-child'); ?></h2>
<p><?php echo __('Try to search again.','CreatorThemeRes-child'); ?></p>
<?php //get_search_form(); ?>
<?php
endif;
?>
</div>
</div>
</div>
<?php
get_footer();
?>

9
searchform.php Normal file
View File

@@ -0,0 +1,9 @@
<form role="search" method="get" class="search-form" action="<?php echo home_url( '/' ); ?>">
<label>
<span class="screen-reader-text"><?php echo __('Search for:','CreatorThemeRes-child'); ?></span>
<input type="text" class="search-field" placeholder="<?php echo __('Search','CreatorThemeRes-child'); ?>" value="<?php echo get_search_query() ?>" name="s" />
<!--input type="submit" class="search-form-submit" value="SEARCH"-->
<input type="image" alt="Submit search query"
src="data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTAwMCAxMDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPG1ldGFkYXRhPiBTdmcgVmVjdG9yIEljb25zIDogaHR0cDovL3d3dy5vbmxpbmV3ZWJmb250cy5jb20vaWNvbiA8L21ldGFkYXRhPgogIDxnPjxnPjxnIGlkPSJTZWFyY2hfMV8iPjxnPjxwYXRoIGQ9Ik05NjcuOSw4NjEuMmwtMTc3LjEtMTc3YzQ4LjUtNjkuNiw3Ny4yLTE1NCw3Ny4yLTI0NS4yYzAtMjM3LTE5Mi4xLTQyOS00MjktNDI5Yy0yMzcsMC00MjksMTkyLjEtNDI5LDQyOXMxOTIuMSw0MjksNDI5LDQyOWM5MS4yLDAsMTc1LjYtMjguNywyNDUuMi03Ny4ybDE3NywxNzdjMjkuNSwyOS41LDc3LjIsMjkuNSwxMDYuNywwQzk5Ny40LDkzOC41LDk5Ny40LDg5MC43LDk2Ny45LDg2MS4yeiBNNDM5LDc0NS41Yy0xNjkuMiwwLTMwNi41LTEzNy4yLTMwNi41LTMwNi41YzAtMTY5LjIsMTM3LjItMzA2LjUsMzA2LjUtMzA2LjVjMTY5LjIsMCwzMDYuNSwxMzcuMiwzMDYuNSwzMDYuNUM3NDUuNSw2MDguMyw2MDguMyw3NDUuNSw0MzksNzQ1LjV6IiBzdHlsZT0iZmlsbDojYTliN2I3Ij48L3BhdGg+PC9nPjwvZz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PGc+PC9nPjxnPjwvZz48Zz48L2c+PC9nPjwvc3ZnPgogIA==" width="16" height="16">
</label>
</form>

View File

@@ -1,5 +1,6 @@
<?php
get_header();
//include('exifer/exif.php');
?>
<div class="content">
<div class="container">
@@ -8,26 +9,105 @@ get_header();
<article class="post_box" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h1><?php the_title(); ?></h1>
<?php //echo get_stylesheet_directory_uri();
//$a = include(get_stylesheet_directory_uri() . '/exifer/exif.php');
//echo "a: " . $a;
?>
<div class="entry-meta">
<?php creator_entry_meta(); ?>
<?php if (dess_setting('dess_display_meta') == true) creator_entry_meta(); ?>
<?php //edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
<?php the_content(); ?>
<?php
$coord = array();
the_content();
?>
<?php //$content = apply_filters('the_content', get_the_content());
//echo $content;
//preprint ($coord);
echo '<div id="map" style="display: ' . ((count($coord) > 0) ? "block" : "none") . ';"></div>';
?>
<?php //wp_read_image_metadata( $file );
$my_data = wp_get_attachment_metadata( get_post_thumbnail_id( get_the_ID() ) );
echo $my_data['image_meta']['credit'];
<script>
function initMap() {
var locations = [
<?php
$j = (count($coord) - 1);
for ($i = 0; $i <= $j; $i++) {
//echo "['<h4>" . $coord[$i][2] . "</h4>', " . $coord[$i][0] . ", " . $coord[$i][1] . "]" . (($i<$j) ? "," : "")."\r\n";
echo "['<span class\"infowindow\">" . $coord[$i][2] . "</span>', " . $coord[$i][0] . ", " . $coord[$i][1] . "]" . (($i<$j) ? "," : "")."\r\n";
}
?>
];
// Setup the different icons and shadows
var iconURLPrefix = 'https://maps.google.com/mapfiles/ms/icons/';
var icons = [
iconURLPrefix + 'red-dot.png',
iconURLPrefix + 'green-dot.png',
iconURLPrefix + 'blue-dot.png',
iconURLPrefix + 'orange-dot.png',
iconURLPrefix + 'purple-dot.png',
iconURLPrefix + 'pink-dot.png',
iconURLPrefix + 'yellow-dot.png'
]
var iconsLength = icons.length;
window.map = new google.maps.Map(document.getElementById('map'), {
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var infowindow = new google.maps.InfoWindow();
var bounds = new google.maps.LatLngBounds();
var iconCounter = 0;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
map: map,
icon: icons[iconCounter]
});
bounds.extend(marker.position);
google.maps.event.addListener(marker, 'click', (function (marker, i) {
return function () {
/*
var contentString = '<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h1 id="firstHeading" class="firstHeading">' + locations[i][0] + '</h1>'+
'<div id="bodyContent">'+
'</div>'+
'</div>';
infowindow.setContent(contentString);
*/
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}
map.fitBounds(bounds);
var listener = google.maps.event.addListener(map, "idle", function () {
map.setZoom(8);
google.maps.event.removeListener(listener);
});
}
</script>
<h3>EXIF Data</h3>
<?php pa_the_post_thumbnail_exif_data(); ?>
<?php
wp_link_pages(array(
@@ -37,8 +117,7 @@ get_header();
'link_after' => '</span>'
));
?>
<?php //the_tags( '<div class="post_tags">Tags: ', ', ', '</div>' ); ?>
<?php the_tags( '<div class="post_tags">' . __('Tags: ', 'CreatorThemeRes-child'), ', ', '</div>' ); ?>
<?php if (dess_setting('dess_display_meta') == false) the_tags( '<div class="post_tags">' . __('Tags: ', 'CreatorThemeRes-child'), ', ', '</div>' ); ?>
</article>
<?php

View File

@@ -102,6 +102,14 @@ Text Domain: CreatorThemeRes-child
font-weight: bold;
}
input.search-field {
width: 200px;
height: 24px;
border: 1px dashed #eee;
margin: 0 5px 0 0;
}
.albumdesc:hover {
/*
background: #ddd;
@@ -140,8 +148,46 @@ Text Domain: CreatorThemeRes-child
margin: 0 0 80px;
}
/* Exif */
.image-exif {
margin-right: auto;
margin-left: auto;
text-align: center;
}
.exif-data {
display: inline-block;
margin-right: 16px;
font-size: 10px;
}
.infowindow, .gm-style-iw {
color: #5f5f5f;
font: normal normal 12px "Lucida Grande", Lucida, Verdana, sans-serif;
}
#map {
width: 600px;
height: 400px;
display: none;
margin: 5em auto;
}
/* Single */
.wp-caption {
margin-top: 24px !important;
margin-bottom: 8px !important;
}
.wp-caption p.wp-caption-text {
font-size: 13px;
line-height: 17px;
margin: 0;
padding: 3px 4px;
}
.post_tags {
margin-top: 40px;
margin-bottom: 20px;
@@ -162,7 +208,11 @@ Text Domain: CreatorThemeRes-child
.entry-meta {
clear: both;
margin-right: auto;
margin-left: auto;
text-align: center;
font-size: 14px;
margin-bottom: 2em;
}
.entry-meta a {