From 6df0f90b09c110c206fa2051caf8e7f1c31ab5a8 Mon Sep 17 00:00:00 2001 From: Bruno Pesenti Date: Mon, 16 Jan 2017 06:32:13 +0100 Subject: [PATCH] Single v1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -commentaires cachés -settings -3 lightbox -enqueue js et css --- -child/----footer-page.php | 52 +++ -child/Archive.zip | Bin 0 -> 11887 bytes Pagination/ce-mois.php | 235 ++++++++++++ Pagination/header.php | 96 +++++ Pagination/load_data.php | 187 +++++++++ accueil.php | 8 +- ce-mois-bis.php | 72 ++-- ce-mois-bis.zip | Bin 0 -> 11461 bytes ce-mois.php | 249 ++++++------ css/colorbox.css | 70 ++++ css/my-featherlight.css | 99 +++++ db.php | 11 + fetch_pages.php | 82 ++-- fonctions.php | 154 ++++++++ footer-page.php | 13 - footer.php | 45 +++ functions.php | 624 ++++++++++++++++++++++++++++++- header-page.php | 184 +++++++++ header.php | 72 ++-- images/icons.svg | 1 + index.php | 16 +- infos.txt | 49 +++ js/featherlight.js | 27 ++ js/i18n/jquery.colorbox-ar.js | 15 + js/i18n/jquery.colorbox-bg.js | 16 + js/i18n/jquery.colorbox-bn.js | 16 + js/i18n/jquery.colorbox-ca.js | 13 + js/i18n/jquery.colorbox-cs.js | 16 + js/i18n/jquery.colorbox-da.js | 16 + js/i18n/jquery.colorbox-de.js | 15 + js/i18n/jquery.colorbox-es.js | 13 + js/i18n/jquery.colorbox-et.js | 15 + js/i18n/jquery.colorbox-fa.js | 18 + js/i18n/jquery.colorbox-fi.js | 15 + js/i18n/jquery.colorbox-fr.js | 15 + js/i18n/jquery.colorbox-gl.js | 13 + js/i18n/jquery.colorbox-gr.js | 16 + js/i18n/jquery.colorbox-he.js | 16 + js/i18n/jquery.colorbox-hr.js | 15 + js/i18n/jquery.colorbox-hu.js | 15 + js/i18n/jquery.colorbox-id.js | 15 + js/i18n/jquery.colorbox-it.js | 15 + js/i18n/jquery.colorbox-ja.js | 15 + js/i18n/jquery.colorbox-kr.js | 15 + js/i18n/jquery.colorbox-lt.js | 15 + js/i18n/jquery.colorbox-lv.js | 16 + js/i18n/jquery.colorbox-my.js | 15 + js/i18n/jquery.colorbox-nl.js | 15 + js/i18n/jquery.colorbox-no.js | 16 + js/i18n/jquery.colorbox-pl.js | 16 + js/i18n/jquery.colorbox-pt-BR.js | 15 + js/i18n/jquery.colorbox-ro.js | 15 + js/i18n/jquery.colorbox-ru.js | 16 + js/i18n/jquery.colorbox-si.js | 15 + js/i18n/jquery.colorbox-sk.js | 15 + js/i18n/jquery.colorbox-sr.js | 15 + js/i18n/jquery.colorbox-sv.js | 15 + js/i18n/jquery.colorbox-tr.js | 19 + js/i18n/jquery.colorbox-uk.js | 16 + js/i18n/jquery.colorbox-zh-CN.js | 15 + js/i18n/jquery.colorbox-zh-TW.js | 15 + js/jquery.colorbox-min.js | 6 + js/my-colorbox.js | 25 ++ languages/fr_FR.mo | Bin 2079 -> 4215 bytes languages/fr_FR.po | 317 +++++++++++----- pagination.php | 131 +++++++ single.php | 87 +++++ style.css | 220 +++++++++-- 68 files changed, 3312 insertions(+), 402 deletions(-) create mode 100755 -child/----footer-page.php create mode 100644 -child/Archive.zip create mode 100755 Pagination/ce-mois.php create mode 100755 Pagination/header.php create mode 100755 Pagination/load_data.php create mode 100644 ce-mois-bis.zip create mode 100755 css/colorbox.css create mode 100644 css/my-featherlight.css create mode 100755 db.php create mode 100644 fonctions.php delete mode 100755 footer-page.php create mode 100755 footer.php create mode 100755 header-page.php create mode 100755 images/icons.svg create mode 100644 infos.txt create mode 100644 js/featherlight.js create mode 100755 js/i18n/jquery.colorbox-ar.js create mode 100755 js/i18n/jquery.colorbox-bg.js create mode 100755 js/i18n/jquery.colorbox-bn.js create mode 100755 js/i18n/jquery.colorbox-ca.js create mode 100755 js/i18n/jquery.colorbox-cs.js create mode 100755 js/i18n/jquery.colorbox-da.js create mode 100755 js/i18n/jquery.colorbox-de.js create mode 100755 js/i18n/jquery.colorbox-es.js create mode 100755 js/i18n/jquery.colorbox-et.js create mode 100755 js/i18n/jquery.colorbox-fa.js create mode 100755 js/i18n/jquery.colorbox-fi.js create mode 100755 js/i18n/jquery.colorbox-fr.js create mode 100755 js/i18n/jquery.colorbox-gl.js create mode 100755 js/i18n/jquery.colorbox-gr.js create mode 100755 js/i18n/jquery.colorbox-he.js create mode 100755 js/i18n/jquery.colorbox-hr.js create mode 100755 js/i18n/jquery.colorbox-hu.js create mode 100755 js/i18n/jquery.colorbox-id.js create mode 100755 js/i18n/jquery.colorbox-it.js create mode 100755 js/i18n/jquery.colorbox-ja.js create mode 100755 js/i18n/jquery.colorbox-kr.js create mode 100755 js/i18n/jquery.colorbox-lt.js create mode 100755 js/i18n/jquery.colorbox-lv.js create mode 100755 js/i18n/jquery.colorbox-my.js create mode 100755 js/i18n/jquery.colorbox-nl.js create mode 100755 js/i18n/jquery.colorbox-no.js create mode 100755 js/i18n/jquery.colorbox-pl.js create mode 100755 js/i18n/jquery.colorbox-pt-BR.js create mode 100755 js/i18n/jquery.colorbox-ro.js create mode 100755 js/i18n/jquery.colorbox-ru.js create mode 100755 js/i18n/jquery.colorbox-si.js create mode 100755 js/i18n/jquery.colorbox-sk.js create mode 100755 js/i18n/jquery.colorbox-sr.js create mode 100755 js/i18n/jquery.colorbox-sv.js create mode 100755 js/i18n/jquery.colorbox-tr.js create mode 100755 js/i18n/jquery.colorbox-uk.js create mode 100755 js/i18n/jquery.colorbox-zh-CN.js create mode 100755 js/i18n/jquery.colorbox-zh-TW.js create mode 100755 js/jquery.colorbox-min.js create mode 100644 js/my-colorbox.js create mode 100755 pagination.php create mode 100755 single.php diff --git a/-child/----footer-page.php b/-child/----footer-page.php new file mode 100755 index 0000000..bf663fb --- /dev/null +++ b/-child/----footer-page.php @@ -0,0 +1,52 @@ + + + + + + + + + \ No newline at end of file diff --git a/-child/Archive.zip b/-child/Archive.zip new file mode 100644 index 0000000000000000000000000000000000000000..2923f248cd5af9f5544e66d81c95f7cb70f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O2za_1yb%lyvXR@#<}g(dS10(mnDHl?HUV{-GXVeDzL zO)9c|V&ozv*HAQe#CrRZVeNv!uCwxaNetbQM)k3DbN9?$9T6v5RcGI^0I1mcguT!V zXM@$lI(5wRzMWtbKd3D0v%ZxHVMp~WgeUNhfbk+b?QoL`WMnN6@F)TEGK^;4|LV@v zg*>D4N@l;e35^lk0z_YhDuN$fGI3>Di-XLbn=s@@aZ28mL2UauRv3a&j zfO=?G=vB#!so*3uS68s~5Sb)OmR?{oil?|TSfF;IoG{LgZk~bZfS8QsV|q%ArxQ-x z!IDGo{`YK`<*37h9HCHT_)f)ZhMb(>rmA#vA+5sL0S8z1tj{f|kG>kPOO$J~@{>Ml zx7Al8y0#>==d0|j*olcvg*19;B{#bgOqT?1;05Anb)&%Yk< za`j=_cL>v-f8+~;j?-(is%*qJ$P4lYnG7eI+CEFL8+bk6F6oc8nXxYm5o|%>4%RI( z>N;5D2b8R~cgB&mubj74WK4pH!>`eEn&t1Pq5M`D6AhwatI6 zbjcDi`7LVs1_AeKg&nKiWv^?Wcp@ql9e;eu?%Yyi5Jg9oJY>&vK1#OjM_|vSs=r*v z^eKn4{~ZhE2T9|3I~HGgDf;v3qq>cEGQU?k30oJ3;?9Gz-XqD z8CHff;!_@9aDTh6z?oK|`SK5DE2go(N{*V + +
+
+
+ +
> +

+ +
+ + " ."file exist: " . $file; + // ../zenphoto/albums/photos-du-mois/4_2014.jpg + // 4_2014_800_watermark.jpg, 4_2014_FULL_watermark.jpg + $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] + ); + } + } // / $size[0] > 1000 + 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' => "" + ); + } // / ($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 .= ''; + $keyword .= ', '; + } + $keyword = substr($keyword, 0, -2); + } + + $imgs['img_sd']['legende'] = $legende; + $imgs['img_sd']['titre'] = $titre; + $imgs['img_sd']['keyword'] = $keyword; + } // / isset($info["APP13"] + + $exifInfo = ""; + $exif_array = read_exif_data_raw($file,0); + $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; + + break; + + } // /file_exists($file) + + $i++; + } // /while + + //preprint($imgs); + + ?> + +
+ + +

Titre

+

Légende

+ + + + + + + + + + + + + '; + ?> + + + + +
+ + +

Titre

+

Légende

+ + +

+ + + + ? Utilisation: cliquer sur une vignette, puis....
"; +$aide .= " -sur ordinateur: naviguer avec les touches flèches droite et gauche, quitter avec ESC.
"; +$aide .= " -sur tablettes et smartphones: 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."; +?> + +
+

+

( ? )

+ + +

+ +
+
+ +

+ +
+ +
+ + + +
+
+
+ + \ No newline at end of file diff --git a/Pagination/header.php b/Pagination/header.php new file mode 100755 index 0000000..e2fa092 --- /dev/null +++ b/Pagination/header.php @@ -0,0 +1,96 @@ + +> + + + + + + + + + + +> + \ No newline at end of file diff --git a/Pagination/load_data.php b/Pagination/load_data.php new file mode 100755 index 0000000..1d7c954 --- /dev/null +++ b/Pagination/load_data.php @@ -0,0 +1,187 @@ + + + + +connect_error) { + die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error); + } + + + // Récupérer l'ID de l'album 'photos-du-mois' ($id_album) + $i = 0; + $conn = new mysqli($db_host, $db_username, $db_password, $db_name); + 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(); + +/* +$query_pag_data = "SELECT msg_id,message from messages LIMIT $start, $per_page"; +$result_pag_data = mysql_query($query_pag_data) or die('MySql Error' . mysql_error()); +$msg = ""; +while ($row = mysql_fetch_array($result_pag_data)) { +$htmlmsg=htmlentities($row['message']); + $msg .= "
  • " . $row['msg_id'] . " " . $htmlmsg . "
  • "; +} +$msg = "
      " . $msg . "
    "; // Content for Data +*/ +$msg = ""; + +//Limit our results within a specified range. +$results = $mysqli->prepare("SELECT `filename` FROM `" . $table['images'] . "` WHERE `albumid` = ? ORDER BY `date` DESC LIMIT $start, $per_page"); +$results->bind_param('i', $id_album); +$results->execute(); //Execute prepared Query +$results->bind_result($filename); //bind variables to prepared statement + +//Display records fetched from database. +while($results->fetch()){ //fetch values + //$msg .= "
  • " . $filename . "
  • "; + $msg .= displayRetina($filename,$album); + } +//$msg = "
      " . $msg . "
    "; // Content for Data + + +/* --------------------------------------------- +$query_pag_num = "SELECT COUNT(*) AS count FROM messages"; +$result_pag_num = mysql_query($query_pag_num); +$row = mysql_fetch_array($result_pag_num); +$count = $row['count']; +*/ + +$results = $mysqli->query("SELECT COUNT(*) FROM `" . $table['images'] . "` WHERE `albumid` = $id_album "); +$count = $results->fetch_row(); //hold total records in variable + +$no_of_paginations = ceil($count[0] / $per_page); + +/* ---------------Calculating the starting and endign values for the loop----------------------------------- */ +if ($cur_page >= 7) { + $start_loop = $cur_page - 3; + if ($no_of_paginations > $cur_page + 3) + $end_loop = $cur_page + 3; + else if ($cur_page <= $no_of_paginations && $cur_page > $no_of_paginations - 6) { + $start_loop = $no_of_paginations - 6; + $end_loop = $no_of_paginations; + } else { + $end_loop = $no_of_paginations; + } +} else { + $start_loop = 1; + if ($no_of_paginations > 7) + $end_loop = 7; + else + $end_loop = $no_of_paginations; +} +/* ----------------------------------------------------------------------------------------------------------- */ +$msg .= ""; // Content for pagination +echo $msg; +} + diff --git a/accueil.php b/accueil.php index 0a266b5..d993e1a 100755 --- a/accueil.php +++ b/accueil.php @@ -58,11 +58,11 @@ if ( $the_query->have_posts() ) : 'post_type' => 'post', 'posts_per_page' => 7, 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1), - 'ignore_sticky_posts' => true - /* + 'ignore_sticky_posts' => true, + /**/ 'meta_key' => 'ex_show_in_homepage', - 'meta_value' => 'yes', - */ + 'meta_value' => 'yes' + ); $blog = new WP_Query( $blog_args ); if ( $blog->have_posts() ) : diff --git a/ce-mois-bis.php b/ce-mois-bis.php index 0838828..a6c593d 100755 --- a/ce-mois-bis.php +++ b/ce-mois-bis.php @@ -12,10 +12,20 @@ get_header(); $root = $_SERVER['DOCUMENT_ROOT']; define('SERVERPATH',$root.'/zenphoto'); -//define('WEBPATH','/'.basename(dirname(__FILE__)).'/zenphoto'); -//require_once(SERVERPATH.'/zp-core/template-functions.php'); 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"; + ?>
    @@ -43,16 +53,13 @@ include('../photoblog/exifer/exif.php'); } $tableau[$i] = $a . '_' . $annee . '.jpg'; } - + $i = 0; while ($i < 13) { $file = '../zenphoto/albums/photos-du-mois/' . $tableau[$i]; //echo $file; if (file_exists($file)) { - //echo "
    " ."file exist: " . $file; - // ../zenphoto/albums/photos-du-mois/4_2014.jpg - // 4_2014_800_watermark.jpg, 4_2014_FULL_watermark.jpg $photo_du_mois = $file; $title = $tableau[$i]; @@ -148,6 +155,8 @@ include('../photoblog/exifer/exif.php'); ?> + +
    @@ -187,7 +196,7 @@ include('../photoblog/exifer/exif.php'); -
    +

    Titre

    @@ -196,6 +205,7 @@ include('../photoblog/exifer/exif.php');

    + close(); - // Récupérer toutes les fichiers de l'album 'photos-du-mois' ($fichier[]) $conn = new mysqli($dbhost, $dbuser, $dbpassword, $zptable); @@ -281,40 +290,15 @@ $aide .= " -sur tablettes et smartphones: balayer l'écran avec un "; -echo $debut . "
    "; -echo $fin . "
    "; -echo $page . "
    "; -*/ for ($j=$debut; $j<=$fin; $j++) { -//$fin = (($start + $epp) -1); -//for ($j=($start + 1); $j<=$fin; $j++) { -/* - if ($j <= count($fichier)-1) echo display($fichier[$j],$album); - if ($j+1 <= count($fichier)-1) echo display($fichier[$j+1],$album); - if ($j+2 <= count($fichier)-1) echo display($fichier[$j+2],$album); -*/ - 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); - //echo $fichier[$j]; // 9_2015.jpg - $j = $j + 2; } ?> @@ -322,27 +306,27 @@ for ($j=$debut; $j<=$fin; $j++) {

    - +

    Titre

    @@ -197,44 +199,33 @@ include('../photoblog/exifer/exif.php');

    + ? Utilisation: cliquer sur une vignette, puis....
    "; $aide .= " -sur ordinateur: naviguer avec les touches flèches droite et gauche, quitter avec ESC.
    "; $aide .= " -sur tablettes et smartphones: 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."; ?> -
    -

    -

    ( ? )

    - +
    +

    +

    ( ? )

    + - +

    -
    - - -
    ajax-loader.gif" >
    +
    -
    +
    - - - -
    - -
    - -
    - -
    - - -
    - - + + + + + \ No newline at end of file diff --git a/css/colorbox.css b/css/colorbox.css new file mode 100755 index 0000000..c210ec4 --- /dev/null +++ b/css/colorbox.css @@ -0,0 +1,70 @@ +/* + Colorbox Core Style: + The following CSS is consistent between example themes and should not be altered. +*/ +#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);} +#cboxWrapper {max-width:none;} +#cboxOverlay{position:fixed; width:100%; height:100%;} +#cboxMiddleLeft, #cboxBottomLeft{clear:left;} +#cboxContent{position:relative;} +#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;} +#cboxTitle{margin:0;} +#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;} +#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} +.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;} +.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;} +#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;} + +/* + User Style: + Change the following styles to modify the appearance of Colorbox. They are + ordered & tabbed in a way that represents the nesting of the generated HTML. +*/ +#cboxOverlay{background:url(images/overlay.png) repeat 0 0; opacity: 0.9; filter: alpha(opacity = 90);} +#colorbox{outline:0;} + #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;} + #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;} + #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;} + #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px -29px;} + #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;} + #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;} + #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;} + #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;} + #cboxContent{background:#fff; overflow:hidden;} + .cboxIframe{background:#fff;} + #cboxError{padding:50px; border:1px solid #ccc;} + #cboxLoadedContent{margin-bottom:28px;} + #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;} + #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;} + #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;} + #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;} + + /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */ + #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; } + + /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */ + #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;} + + #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;} + #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;} + #cboxPrevious:hover{background-position:-75px -25px;} + #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;} + #cboxNext:hover{background-position:-50px -25px;} + #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;} + #cboxClose:hover{background-position:-25px -25px;} + +/* + The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill + when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9. + See: http://jacklmoore.com/notes/ie-transparency-problems/ +*/ +.cboxIE #cboxTopLeft, +.cboxIE #cboxTopCenter, +.cboxIE #cboxTopRight, +.cboxIE #cboxBottomLeft, +.cboxIE #cboxBottomCenter, +.cboxIE #cboxBottomRight, +.cboxIE #cboxMiddleLeft, +.cboxIE #cboxMiddleRight { + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF); +} \ No newline at end of file diff --git a/css/my-featherlight.css b/css/my-featherlight.css new file mode 100644 index 0000000..fe0bf2d --- /dev/null +++ b/css/my-featherlight.css @@ -0,0 +1,99 @@ + @media all { + .lightbox { display: none; } + .fl-page h1, + .fl-page h3, + .fl-page h4 { + font-family: 'HelveticaNeue-UltraLight', 'Helvetica Neue UltraLight', 'Helvetica Neue', Arial, Helvetica, sans-serif; + font-weight: 100; + letter-spacing: 1px; + } + .fl-page h1 { font-size: 110px; margin-bottom: 0.5em; } + .fl-page h1 i { font-style: normal; color: #ddd; } + .fl-page h1 span { font-size: 30px; color: #333;} + .fl-page h3 { text-align: right; } + .fl-page h3 { font-size: 15px; } + .fl-page h4 { font-size: 2em; } + .fl-page .jumbotron { margin-top: 2em; } + .fl-page .btn-download { float: right; margin-top: -40px; } + .fl-page .btn-default { vertical-align: bottom; } + + .fl-page .row { margin-top: 2em;} + + .fl-page .btn-lg span { font-size: 0.7em; } + .fl-page .footer { margin-top: 3em; color: #aaa; font-size: 0.9em;} + .fl-page .footer a { color: #999; text-decoration: none; margin-right: 0.75em;} + .fl-page .github { margin: 2em 0; } + .fl-page .github a { vertical-align: top; } + + /* customized gallery */ + + .featherlight-gallery2 { + background: rgba(100,100,100,0.5); + } + .featherlight-gallery2 .featherlight-content { + background: #000; + } + .featherlight-gallery2 .featherlight-next:hover, + .featherlight-gallery2 .featherlight-previous:hover { + background: rgba(0,0,0,0.5); + } + .featherlight-gallery2 .featherlight-next:hover span, + .featherlight-gallery2 .featherlight-previous:hover span { + font-size: 25px; + line-height: 25px; + margin-top: -12.5px; + color: #fff; + } + .featherlight-gallery2 .featherlight-close { + background: transparent; + color: #fff; + font-size: 1.2em; + } + .featherlight-gallery2.featherlight-last-slide .featherlight-next, + .featherlight-gallery2.featherlight-first-slide .featherlight-previous { + display: none; + } +/* +.featherlight .featherlight-image { + width: auto !important; + height: auto !important; + max-width: 100%; + max-height: 90vh; +} +*/ + /* text slide */ + .thumbnail a { text-decoration: none; } + .blurb { + display: inline-block; + width: 150px; + height: 150px; + } + .blurb h2 { text-align: center;} + .blurb .detail { display: none;} + .blurb .teaser { + font-style: italic; + text-align: center; + } + .featherlight .blurb { + display: inline-block; + width: 500px; + height: 300px; + color: #99f; + } + .featherlight .blurb .detail { + color: #ddf; + font-size: large; + display: inherit; + } + .featherlight .blurb .teaser { display: none;} + .featherlight-caption { + text-align: center; + padding-top: 12px; + font-size: larger; +} + + } + @media(max-width: 768px){ + .fl-page h1 span { display: block; } + .fl-page .btn-download { float: none; margin-bottom: 1em; } + } diff --git a/db.php b/db.php new file mode 100755 index 0000000..d236549 --- /dev/null +++ b/db.php @@ -0,0 +1,11 @@ + diff --git a/fetch_pages.php b/fetch_pages.php index 231c412..eaecc43 100755 --- a/fetch_pages.php +++ b/fetch_pages.php @@ -58,10 +58,14 @@ function displayRetina ($filename,$album) { elseif ($th_hd == true) { $standard = $thumb['hd']['url'] . ' 2x'; } - /* + $display = '
    '; + //$display .= ''; - */ - $display = '
    '; - $display .= '
    '; - $display .= ''; - $display .= ''; - $display .= ''; - $display .= ''; - $display .= '
    '; - $display .= '
    '; - $display .= ''; - $display .= ''.date_archive($filename).''; - $display .= '
    '; - $display .= '
    '; + return $display; } @@ -226,30 +218,54 @@ if(isset($_POST) && isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SER $results->bind_param('i', $id_album); $results->execute(); //Execute prepared Query $results->bind_result($filename); //bind variables to prepared statement + +$path = "../../zenphoto/cache/" . $album . "/"; - //Display records fetched from database. - //echo '
      '; + //echo '
      '; + + while($results->fetch()){ //fetch values + + /* ---- + $file = explode(".", $filename); + + $file_sd = $path . $file[0] . "_180_thumb.jpg"; + $size_sd = getimagesize($file_sd, $info); + $thumb['sd'] = array( + 'url' => "../../" . $file_sd, + 'width' => $size_sd[0], + 'height' => $size_sd[1] + ); + + $file_hd = $path . $file[0] . "_360_thumb.jpg"; + $size_hd = getimagesize($file_hd, $info); + $thumb['hd'] = array( + 'url' => "../../" . $file_hd, + 'width' => $size_hd[0], + 'height' => $size_hd[1] + );*/ + /* ---- */ + /* - echo '
    • '; - echo $filename; - echo '
    • '; + //echo $filename; + $display .= ''; + $display .= ''; + $display .= ''; + echo $display; + $display = ""; */ + //echo ''; + //echo ''; + //echo ''; echo displayRetina($filename,$album); - /* - 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); - - //echo $fichier[$j]; - - $j = $j + 2; - */ - } - //echo '
    '; - echo '
    '; + } + + //echo ''; + + echo '

    '; + echo '
    '; /* We call the pagination function here to generate Pagination link for us. As you can see I have passed several parameters to the function. */ echo paginate_function($item_per_page, $page_number, $get_total_rows[0], $total_pages); diff --git a/fonctions.php b/fonctions.php new file mode 100644 index 0000000..2948966 --- /dev/null +++ b/fonctions.php @@ -0,0 +1,154 @@ +"; + $x .= print_r($s, 1); + $x .= ""; + if ($return) return $x; + else print $x; + } + + +function displayRetina ($filename,$album) { + + $path = "../../../../zenphoto/cache/" . $album . "/"; + $file = explode(".", $filename); + + //echo $path . $filename . "
    "; + + $file_sd = $path . $file[0] . "_180_thumb.jpg"; + $file_hd = $path . $file[0] . "_360_thumb.jpg"; + /* + $file_sd = $path . $file[0] . "_180_watermark.jpg"; + $file_hd = $path . $file[0] . "_360_watermark.jpg"; + */ + // + $th_sd = false; + $th_hd = false; + + $thumb = array(); + $standard = ""; + + if (file_exists($file_sd)) { + $th_sd = true; + $size_sd = getimagesize($file_sd, $info); + $thumb['sd'] = array( + 'url' => "../" . $file_sd, + 'width' => $size_sd[0], + 'height' => $size_sd[1] + ); + } + if (file_exists($file_hd)) { + $th_hd = true; + $size_hd = getimagesize($file_hd, $info); + $thumb['hd'] = array( + 'url' => "../" . $file_hd, + 'width' => $size_hd[0], + 'height' => $size_hd[1] + ); + } + //preprint($thumb); + + if (($th_sd == true) && ($th_hd == true)) { + $standard = $thumb['sd']['url'] . ', ' . $thumb['hd']['url'] . ' 2x'; + } + elseif ($th_sd == true) { + $standard = $thumb['sd']['url']; + } + elseif ($th_hd == true) { + $standard = $thumb['hd']['url'] . ' 2x'; + } + /* + $display = ''; + */ + /**/ + $display = '
    '; + $display .= ''; + $display .= '
    '; + //$display .= ''; + //$display .= ''; + $display .= ''; + //$display .= ''; + $display .= '
    '; + $display .= '
    '; + $display .= '
    '; + $display .= ''; + $display .= ''.date_archive($filename).''; + $display .= '
    '; + $display .= '
    '; + + return $display; + } + +function date_archive ($chaine) { + $pieces = explode(".", $chaine); + $b = explode("_", $pieces[0]); + $mois = $b[0]; + $an = $b[1]; + $chaine = mois2($mois) . ' '. $an; + return $chaine; + } + +function mois2 ($mois) { + switch ($mois) + { + case 00: + $mois = "00"; + break; + case 1: + $mois = gettext('January'); + break; + case 2: + $mois = gettext('February'); + break; + case 3: + $mois = gettext('March'); + break; + case 4: + $mois = gettext('April'); + break; + case 5: + $mois = gettext('May'); + break; + case 6: + $mois = gettext('June'); + break; + case 7: + $mois = gettext('July'); + break; + case 8: + $mois = gettext('August'); + break; + case 9: + $mois = gettext('September'); + break; + case 10: + $mois = gettext('October'); + break; + case 11: + $mois = gettext('November'); + break; + case 12: + $mois = gettext('December'); + break; + } + return $mois; + } +?> \ No newline at end of file diff --git a/footer-page.php b/footer-page.php deleted file mode 100755 index db21df4..0000000 --- a/footer-page.php +++ /dev/null @@ -1,13 +0,0 @@ -
    -
    -
    - -
    -
    -
    -
    - - - \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100755 index 0000000..ffac4bf --- /dev/null +++ b/footer.php @@ -0,0 +1,45 @@ +
    + + + +
    +
    +
    + +
    +
    + +
    +
    + +
    + +
    +
    + + +
    +
    + +
    +
    +
    +
    + + + + + + \ No newline at end of file diff --git a/functions.php b/functions.php index f2d80f5..77ec7eb 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,13 @@ $serial ) ); +update_option( 'mfrh_pro_status', _( "Your subscription is manually enabled." ) ); +update_option( 'mfrh_pro_serial', _( $serial ) ); +set_transient( 'mfrh_validated', $serial, 3600 * 24 * 100 ); + + /* add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' ); @@ -9,11 +16,65 @@ function enqueue_parent_styles() { } */ /**/ + +//add_action( 'init', 'add_author_rules' ); +/* +function add_author_rules() { + add_rewrite_rule( + "en-cours-2-page-?([0-9]{1,})/?", + "index.php?page_id=804&toto=$matches[1]", + "top"); + $wp_rewrite->flush_rules(); +} +*/ + +function google_jquery() { + if (!is_admin()) { + wp_deregister_script('jquery'); + wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js', false, '3.1.1'); + wp_enqueue_script('jquery'); + } +} +add_action('init', 'google_jquery'); + + + +function enqueue_my_scripts() { + $lightbox_choice = dess_setting('dess_lightbox_choice'); + + if ($lightbox_choice == 'c') { + //featherlight : http://noelboss.github.io/featherlight/ + //selector: class="gallery" + //wp_enqueue_script('jquery'); //include jQuery version bundled with Wordpress in your page + //wp_enqueue_style( 'featherlight', get_template_directory_uri() . '/css/featherlight.min.css' ); + //wp_enqueue_script('featherlight', get_template_directory_uri() . '/js/featherlight.min.js', array( 'jquery' ) ); + wp_enqueue_style( 'featherlight', 'http://cdn.rawgit.com/noelboss/featherlight/1.7.0/release/featherlight.min.css' ); + wp_enqueue_style( 'featherlight-gallery', 'http://cdn.rawgit.com/noelboss/featherlight/1.3.4/release/featherlight.gallery.min.css' ); + wp_enqueue_style( 'featherlight2', get_stylesheet_directory_uri() . '/css/my-featherlight.css' ); + wp_enqueue_script( 'featherlight', 'http://cdn.rawgit.com/noelboss/featherlight/1.7.0/release/featherlight.min.js', array( 'jquery' ), '',true ); + wp_enqueue_script( 'featherlight-gallery', 'http://cdn.rawgit.com/noelboss/featherlight/1.3.4/release/featherlight.gallery.min.js', array( 'jquery', 'featherlight' ), '',true ); + wp_enqueue_script( 'featherlight-script', get_stylesheet_directory_uri() . '/js/featherlight.js', array( 'jquery', 'featherlight' ), '',true ); + } + if ($lightbox_choice == 'b') { + //colorbox : http://www.jacklmoore.com/colorbox/ + //selector: class="slideshow" (ou "gallery") + wp_enqueue_script( 'colorbox', get_stylesheet_directory_uri() . '/js/jquery.colorbox-min.js', array( 'jquery' ), '',false ); + wp_enqueue_style( 'colorbox', get_stylesheet_directory_uri() . '/css/colorbox.css' ); + wp_enqueue_script( 'colorbox-options', get_stylesheet_directory_uri() . '/js/my-colorbox.js', array( 'jquery', 'colorbox' ), '',true ); + } + if ($lightbox_choice == 'a') { + //meow-box + } + } +add_action( 'wp_enqueue_scripts', 'enqueue_my_scripts' ); +/**/ + function my_theme_enqueue_styles() { //$parent_style = 'CreatorThemeRes-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. $parent_style = 'parent_style'; + //wp_enqueue_style( 'genericons', get_stylesheet_directory_uri() . '/genericons/genericons.css' ); wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', @@ -37,7 +98,6 @@ function custom_class( $classes ) { return $classes; } - function RelativeTime() { $jour = get_the_date('U'); @@ -182,16 +242,23 @@ function display ($filename,$album) { } function displayRetina ($filename,$album) { - // 6_2012.jpg - // 4_2014_180_thumb.jpg 4_2014_360_thumb.jpg - $path = "../zenphoto/cache/" . $album . "/"; + + global $ppage; + + if ($ppage == "1") { + $fullpath = "../../zenphoto/"; + } + else { + $fullpath = "../../../zenphoto/"; + } $file = explode(".", $filename); - //$a = $path . $filename; + $thumbpath = "../zenphoto/cache/" . $album . "/"; + $a = $path . $filename; //echo $a. "
    "; - $file_sd = $path . $file[0] . "_180_thumb.jpg"; - $file_hd = $path . $file[0] . "_360_thumb.jpg"; + $file_sd = $thumbpath . $file[0] . "_180_thumb.jpg"; + $file_hd = $thumbpath . $file[0] . "_360_thumb.jpg"; /* $file_sd = $path . $file[0] . "_180_watermark.jpg"; $file_hd = $path . $file[0] . "_360_watermark.jpg"; @@ -204,7 +271,7 @@ function displayRetina ($filename,$album) { $th_sd = true; $size_sd = getimagesize($file_sd, $info); $thumb['sd'] = array( - 'url' => "../" . $file_sd, + 'url' => "../../" . $file_sd, 'width' => $size_sd[0], 'height' => $size_sd[1] ); @@ -213,7 +280,7 @@ function displayRetina ($filename,$album) { $th_hd = true; $size_hd = getimagesize($file_hd, $info); $thumb['hd'] = array( - 'url' => "../" . $file_hd, + 'url' => "../../" . $file_hd, 'width' => $size_hd[0], 'height' => $size_hd[1] ); @@ -231,15 +298,13 @@ function displayRetina ($filename,$album) { } $display = '
    '; - $display .= ''; + return $display; } @@ -275,4 +341,534 @@ function date_archive ($chaine) { return $chaine; } +function zenphoto_handler($atts, $content=null) { + + //utilise le cacheManager de zenphoto (extensions/utilitaires/cacheManager) + //utilisation: [zenphoto album="lievres" image="2008-08-18_Lievre_8927.jpg"] + // [zenphoto album="sports-mecaniques/gp-france" image="2010-05-23_gp-france-2010_5321.jpg"] + //taille des photos dans Worpress, theme Twenty Ten Child : 610x406 + + $selector = dess_setting('dess_lightbox_select'); + + $host = (($_SERVER['HTTPS'] != "") ? "https" : "http") . '://' . $_SERVER['HTTP_HOST'] . '/zenphoto/'; + + //$zenphoto_url2 = get_option( 'zenphoto_url' ); + $zenphoto_url2 = 'http://macbook-pro.lcal/zenphoto/'; + +//echo $zenphoto_url2 . "
    "; +//preprint($zenphoto_url2); +//echo substr_count($zenphoto_url2, "https"); +//echo $_SERVER['HTTPS']; + + if (substr_count($zenphoto_url2, "https") == 1) { + //echo "toto"; + $zenphoto_url = (($_SERVER['HTTPS'] != "") ? substr_replace($zenphoto_url2, 'https', 0, 4) : $zenphoto_url2); + } + $zenphoto_url = $host; +//echo $zenphoto_url; + + //$size = get_option( 'img_size' ); + $size = 610; + + $folder = false; + $zenphoto_img = ""; +//preprint($atts); + $a = $atts['image']; + $b = zp_query($a); // ligne 808 + + if (isset($atts['folder'])) { + if ($atts['folder'] == "true") $folder = true; + } + + $img = substr($atts['image'], 0, strlen($atts['image']) - 4); + + $filename = $zenphoto_url . 'cache/' . $atts['album'] . '/' . urlencode($img) . '_' . $size . '_watermark.jpg'; + + $zp_size = getimagesize(htmlentities($filename)); + + //if ($folder == false) $zenphoto_link = ''; + //if ($folder == false) $zenphoto_link = ''; + if ($folder == false) $zenphoto_link = ''; + else $zenphoto_link = ''; + + $zenphoto_img .= $zenphoto_link; + $zenphoto_img .= ' + + + + + + + '; + $zenphoto_img .= ''; + + /* + if ($b['image_meta']['description'] != "") { + $caption = ""; + $caption .= '

    '; + $caption .= $b['image_meta']['description'] . '

    '; + + $zenphoto_img .= $caption; + } + */ + + return $zenphoto_img; +} + +add_shortcode( 'zenphoto', 'zenphoto_handler' ); + +function zp_query($zpimage) { + $exif = array(); + require('../Connections/cnx.php'); + + $mysqli = new mysqli($dbhost, $dbuser, $dbpassword, $dbtable); + + if (mysqli_connect_errno()) { + printf("Échec de la connexion : %s\n", mysqli_connect_error()); + exit(); + } + + $excquery = "SELECT `EXIFModel`, `EXIFDateTimeOriginal`, `EXIFExposureTime`, `EXIFFNumber`, `EXIFISOSpeedRatings`, `EXIFFocalLength`, `EXIFGPSLatitude`, `EXIFGPSLatitudeRef`, `EXIFGPSLongitude`, `EXIFGPSLongitudeRef`, `EXIFGPSAltitude`, `EXIFGPSAltitudeRef`, `desc`, `title` FROM `" . $zp_prefix . "images` WHERE `filename` = \"$zpimage\""; + //echo $excquery; + if ($result = $mysqli->query($excquery)) { + $exif = $result->fetch_row(); + $result->close(); + } + + //preprint($exif); + + /* + Array +( + [0] => Canon EOS 7D + [1] => 2011:06:30 20:43:30 + [2] => 1/400 sec + [3] => f/6,3 + [4] => 640 + [5] => 600 mm + [6] => lat + [7] => lat ref + [8] => long + [9] => long ref + [10] => alt + [11] => alt ref + [12] => desc + [13] => title +)*/ + $meta = array(); + $meta['image_meta']['camera'] = $exif[0]; + $meta['image_meta']['created_timestamp'] = $exif[1]; + $meta['image_meta']['shutter_speed'] = $exif[2]; + $meta['image_meta']['aperture'] = $exif[3]; + $meta['image_meta']['iso'] = $exif[4]; + $meta['image_meta']['focal_length'] = $exif[5]; + $meta['image_meta']['latitude'] = $exif[6]; + $meta['image_meta']['latitude_ref'] = $exif[7]; + $meta['image_meta']['longitude'] = $exif[8]; + $meta['image_meta']['longitude_ref'] = $exif[9]; + $meta['image_meta']['altitude'] = $exif[10]; + $meta['image_meta']['altitude_ref'] = $exif[11]; + + if ($exif[12] != "") { + $desc = explode(':', $exif[12]); + $description = explode('"', end($desc)); + //print_r($description); + $meta['image_meta']['description'] = utf8_encode($description[1]); + } + else $meta['image_meta']['description'] = ""; + + if ($exif[13] != "") { + //echo "exif: " . $exif[13] . "
    "; + // a:1:{s:5:"fr_FR";s:30:"2011-05-15_GP-France-2011_9798";} + + $titr = explode(':', $exif[13]); + //echo count($titr) . "
    "; + + if (count($titr) == 1) { + //print_r($titr); + //$titr[0] + $meta['image_meta']['title'] = utf8_encode($titr[0]); + } + else { + $titre = explode('"', end($titr)); + //print_r($titre); + //$titre[1] + $meta['image_meta']['title'] = utf8_encode($titre[1]); + } + /* + echo "titr: "; + print_r($titr); + echo "
    "; + + $titre = explode('"', end($titr)); + print_r($titre); + + foreach ($titr as $var) { + echo "" . $var . "
    "; + } + + */ + //$meta['image_meta']['title'] = utf8_encode($titre[1]); + } + else $meta['image_meta']['title'] = ""; + + //echo "

    "; + $meta['image_meta']['file'] = $image; + + //preprint($meta['image_meta']); + + /* + [camera] => Canon EOS-1D Mark IV + [created_timestamp] => 2014:10:21 14:42:26 + [shutter_speed] => 1/80 sec + [aperture] => f/9 + [iso] => 320 + [focal_length] => 17 mm + [latitude] => 44,381861666667 + [latitude_ref] => N + [longitude] => 4,4162216666667 + [longitude_ref] => E + [altitude] => 104,1771m + [altitude_ref] => + [description] => + [title] => + */ + return $meta; + } + +function add_class_lightbox($content) { + + $selector = dess_setting('dess_lightbox_select'); + + //$selector = "gallery"; + //Check the page for link images direct to image (no trailing attributes) + $string = '/<\/a>/i'; + preg_match_all( $string, $content, $matches, PREG_SET_ORDER); + + //Check which attachment is referenced + foreach ($matches as $val) + { + $slimbox_caption = ''; + + $post = get_post($val[5]); + $slimbox_caption = esc_attr( $post->post_content ); + + //Replace the instance with the lightbox and title(caption) references. Won't fail if caption is empty. + $string = ''; + //echo "string" . "
    " . $string; + //$replace = ''; + $replace = ''; + //echo "replace" . "
    " . $replace; + $content = str_replace( $string, $replace, $content); + } + + return $content; + } + +add_filter('the_content', 'add_class_lightbox', 2); + + +if ( ! function_exists( 'creator_post_nav' ) ) : +/** + * Display navigation to next/previous post when applicable. + * + * @since Twenty Thirteen 1.0 + */ +function creator_post_nav() { + global $post; + + // Don't print empty markup if there's nowhere to navigate. + $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); + $next = get_adjacent_post( false, '', false ); + + if ( ! $next && ! $previous ) + return; + ?> + + ' . esc_html__( 'Sticky', 'CreatorThemeRes-child' ) . ''; + + if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) + twentythirteen_entry_date(); + + // Translators: used between list items, there is a space after the comma. + $categories_list = get_the_category_list( __( ', ', 'CreatorThemeRes-child' ) ); + if ( $categories_list ) { + echo '' . $categories_list . ''; + } + + // Translators: used between list items, there is a space after the comma. + $tag_list = get_the_tag_list( '', __( ', ', 'CreatorThemeRes-child' ) ); + if ( $tag_list ) { + echo '' . $tag_list . ''; + } + + // Post author + if ( 'post' == get_post_type() ) { + printf( '', + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( sprintf( __( 'View all posts by %s', 'CreatorThemeRes-child' ), get_the_author() ) ), + get_the_author() + ); + } +} +endif; + +if ( ! function_exists( 'twentythirteen_entry_date' ) ) : +/** + * Print HTML with date information for current post. + * + * Create your own twentythirteen_entry_date() to override in a child theme. + * + * @since Twenty Thirteen 1.0 + * + * @param boolean $echo (optional) Whether to echo the date. Default true. + * @return string The HTML-formatted post date. + */ +function twentythirteen_entry_date( $echo = true ) { + if ( has_post_format( array( 'chat', 'status' ) ) ) + $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'twentythirteen' ); + else + $format_prefix = '%2$s'; + + $date = sprintf( '', + esc_url( get_permalink() ), + esc_attr( sprintf( __( 'Permalink to %s', 'twentythirteen' ), the_title_attribute( 'echo=0' ) ) ), + esc_attr( get_the_date( 'c' ) ), + esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) ) + ); + + if ( $echo ) + echo $date; + + return $date; +} +endif; + +/** + * Create a definition list containing EXIF data of featured image (if exists) + * + * @param string $post ID + * @return echo definition list + */ +function pa_the_post_thumbnail_exif_data($postID = NULL) { + // if $postID not specified, then get global post and assign ID + if (!$postID) { + global $post; + $postID = $post->ID; + } + if (has_post_thumbnail($postID)) { + // get the meta data from the featured image + $postThumbnailID = get_post_thumbnail_id( $postID ); + $photoMeta = wp_get_attachment_metadata( $postThumbnailID ); + + // if the shutter speed is not equal to 0 + if ($photoMeta['image_meta']['shutter_speed'] != 0) { + + // Convert the shutter speed to a fraction + if ((1 / $photoMeta['image_meta']['shutter_speed']) > 1) { + if ((number_format((1 / $photoMeta['image_meta']['shutter_speed']), 1)) == 1.3 + or number_format((1 / $photoMeta['image_meta']['shutter_speed']), 1) == 1.5 + or number_format((1 / $photoMeta['image_meta']['shutter_speed']), 1) == 1.6 + or number_format((1 / $photoMeta['image_meta']['shutter_speed']), 1) == 2.5) { + $photoShutterSpeed = "1/" . number_format((1 / $photoMeta['image_meta']['shutter_speed']), 1, '.', '') . " second"; + } else { + $photoShutterSpeed = "1/" . number_format((1 / $photoMeta['image_meta']['shutter_speed']), 0, '.', '') . " second"; + } + } else { + $photoShutterSpeed = $photoMeta['image_meta']['shutter_speed'] . " seconds"; + } + // print our definition list + ?> +
    +
    Date Taken
    +
    +
    Camera
    +
    +
    Focal Length
    +
    mm
    +
    Aperture
    +
    f/
    +
    ISO
    +
    +
    Shutter Speed
    +
    +
    + EXIF data not found

    '; + } + // if no featured image, echo error message + } else { + echo '

    Featured image not found

    '; + } +} + + +//http://cssmary.com/wordpress/customizer-api-child-theme/ + +function childtheme_customize_register( $wp_customize ) { + // remove + $remove_socials = array('google-plus','instagram','pinterest','linkedin'); + for($i=0;$iremove_setting( 'dess_'.$remove_socials[$i] ); + $wp_customize->remove_control( 'dess_'.$remove_socials[$i] ); + } + $wp_customize->remove_setting( 'dess_hoursup' ); + $wp_customize->remove_control( 'dess_hoursup' ); + $wp_customize->remove_setting( 'dess_tel' ); + $wp_customize->remove_control( 'dess_tel' ); + + // add + $add_socials = array('500px','flickr','rss','mail'); + for($i=0;$iadd_setting('dess_'.$add_socials[$i], array( + 'capability' => 'edit_theme_options', + 'type' => 'theme_mod', + 'sanitize_callback' => 'dess_sanitize_url', + )); + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dess_'.$add_socials[$i], array( + 'settings' => 'dess_'.$add_socials[$i], + 'label' => $name.' URL', + 'section' => 'sm_section', + 'type' => 'text', + ))); + } + $wp_customize->get_setting( 'dess_rss' )->default = get_bloginfo('rss2_url'); + + // new section + $wp_customize->add_section('settings_section', array( + 'title' => __('Settings','creator'), + 'capability' => 'edit_theme_options', + 'description' => __('Theme settings','CreatorThemeRes-child') + ) + ); + // new options + $wp_customize->add_setting('dess_zenphoto', array( + 'capability' => 'edit_theme_options', + 'type' => 'theme_mod', + 'sanitize_callback' => 'dess_sanitize_html', + )); + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dess_zenphoto', array( + 'settings' => 'dess_zenphoto', + 'label' => __('Zenphoto path','CreatorThemeRes-child'), + 'section' => 'settings_section', + 'type' => 'text', + ))); + $wp_customize->add_setting('dess_social_size', array( + 'capability' => 'edit_theme_options', + 'type' => 'theme_mod', + 'sanitize_callback' => 'dess_sanitize_html', + )); + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dess_social_size', array( + 'settings' => 'dess_social_size', + 'label' => __('Socials icons size (16 or 32px)','CreatorThemeRes-child'), + 'section' => 'settings_section', + 'type' => 'text', + ))); + $wp_customize->add_setting('dess_lightbox_select', array( + 'capability' => 'edit_theme_options', + 'type' => 'theme_mod', + 'sanitize_callback' => 'dess_sanitize_html', + )); + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dess_lightbox_select', array( + 'settings' => 'dess_lightbox_select', + 'label' => __('Lightbox selector (class="xxx")','CreatorThemeRes-child'), + 'section' => 'settings_section', + 'type' => 'text', + ))); + + $wp_customize->add_setting( 'dess_lightbox_choice', array( + 'default' => 'b', + ) ); + + $wp_customize->add_control(new WP_Customize_Control($wp_customize, 'dess_lightbox_choice', array( + 'label' => __('Choice of lightbox','CreatorThemeRes-child'), + 'section' => 'settings_section', + 'settings' => 'dess_lightbox_choice', + 'type' => 'radio', + 'choices' => array( + 'a' => 'Meow box', + 'b' => 'Colorbox', + 'c' => 'Featherlight', + ), + ))); + + } +add_action( 'customize_register', 'childtheme_customize_register', 12); + + +/* +function choice_a_callback( $control ) { + if ( $control->manager->get_setting('dess_lightbox_choice')->value() == 'a' ) { + return true; + } else { + return false; + } +} +function choice_b_callback( $control ) { + if ( $control->manager->get_setting('dess_lightbox_choice')->value() == 'b' ) { + return true; + } else { + return false; + } +} +function choice_c_callback( $control ) { + if ( $control->manager->get_setting('dess_lightbox_choice')->value() == 'c' ) { + return true; + } else { + return false; + } +} +*/ +function show_bookmark_list(){ ?> +
      + '

      ', + 'title_after' => '

      ', + ); + wp_list_bookmarks( $args ); ?> +
    + get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), + 'caption' => $attachment->post_excerpt, + 'description' => $attachment->post_content, + 'href' => get_permalink( $attachment->ID ), + 'src' => $attachment->guid, + 'title' => $attachment->post_title + ); +} + ?> \ No newline at end of file diff --git a/header-page.php b/header-page.php new file mode 100755 index 0000000..8187326 --- /dev/null +++ b/header-page.php @@ -0,0 +1,184 @@ + +> + + + + + + + + + + + + + + + + + +> + \ No newline at end of file diff --git a/header.php b/header.php index f4c2b00..a180ccb 100755 --- a/header.php +++ b/header.php @@ -5,24 +5,32 @@ - + + + + + + + + +
    + +
    +
    +
    + +
    + + + diff --git a/single.php b/single.php new file mode 100755 index 0000000..ecd226e --- /dev/null +++ b/single.php @@ -0,0 +1,87 @@ + +
    +
    +
    + +
    > +

    + + + + + + + + + + +

    EXIF Data

    + + + '', + 'link_before' => '', + 'link_after' => '' + )); + ?> + Tags: ', ', ', '
    ' ); ?> + ' . __('Tags: ', 'CreatorThemeRes-child'), ', ', '
    ' ); ?> + + + "%s"', 'CreatorThemeRes-child' ), + get_the_title() + ), + '', + '' + ); + } + ?> + + + +
    + +
    + + + +
    + +
    +
    + +
    + +
    +
    + \ No newline at end of file diff --git a/style.css b/style.css index a1de218..1bf8b62 100644 --- a/style.css +++ b/style.css @@ -6,7 +6,9 @@ Template: CreatorThemeRes Version: 2.0.1 Author: Dessign Themes Author URI: http://dessign.net -Tags: 3 column theme, clean, portfolio +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Tags: portfolio Text Domain: CreatorThemeRes-child */ @@ -14,6 +16,15 @@ Text Domain: CreatorThemeRes-child @import url("../CreatorThemeRes/style.css"); */ +/* +.head-socials img { + margin-right: 3px; + margin-left: 3px; +} +*/ +.sticky { + +} .retour-blog { color: #333333; display: block; @@ -26,7 +37,6 @@ Text Domain: CreatorThemeRes-child /*border: thin solid #ff6231;*/ } - /* livre d'or */ #randomImg { @@ -69,7 +79,6 @@ Text Domain: CreatorThemeRes-child line-height: 200px;*/ width: 200px; height: 200px; - /**/ border: 1px solid #ccc; background-color: #fff; @@ -84,10 +93,6 @@ Text Domain: CreatorThemeRes-child vertical-align: middle; } -.pagination { - margin-top: 4em; - margin-bottom: 2em; -} .albumdesc a, .pagination a { color: #333; @@ -119,36 +124,184 @@ Text Domain: CreatorThemeRes-child padding: 0px 11px 20px; } -/*found on http://www.brunildo.org/test/img_center.html*/ -.wraptocenter { - display: table-cell!important; - text-align: center!important; - vertical-align: middle!important; - width: 200px; - height: 200px; +.holder +{ + display:table-cell; + vertical-align:middle; + text-align:center; + height:200px; + width:200px; + background-color: #fff; + border: 1px solid #ccc; } -.wraptocenter * { - vertical-align: middle!important; + + +#archive { + margin: 0 0 80px; } -/*\*//*/ -.wraptocenter { - display: block; + +/* Single */ + +.post_tags { + margin-top: 40px; + margin-bottom: 20px; } -.wraptocenter span { - display: inline-block; - height: 100%; - width: 1px; + +.edit-link a { + color: #666; } -/**/ - - + +.comments_cont { + display: none; +} + + + +.entry-meta { + clear: both; + font-size: 14px; +} + +.entry-meta a { + color: #bc360a; +} + +.entry-meta a:hover { + color: #bc360a; +} + +.entry-meta > span { + margin-right: 20px; +} + +.entry-meta > span:last-child { + margin-right: 0; +} + +.entry-meta .date a:before { + content: "\f303"; +} + +.entry-meta .author a:before { + content: "\f304"; + position: relative; + top: -1px; +} + +/** + * 5.7 Post/Paging Navigation + * ---------------------------------------------------------------------------- + */ + +.navigation .nav-previous { + float: left; +} + +.navigation .nav-next { + float: right; +} + +.navigation a { + color: #000; +} + +.navigation a:hover { + color: #333; + text-decoration: none; +} + +.paging-navigation { + background-color: #e8e5ce; + padding: 40px 0; +} + +.paging-navigation .nav-links { + margin: 0 auto; + max-width: 604px; + width: 100%; +} + +.sidebar .paging-navigation .nav-links { + max-width: 1040px; + padding: 0 376px 0 60px; +} + +.paging-navigation .nav-next { + padding: 13px 0; +} + +.paging-navigation a { + font-size: 22px; + font-style: italic; + font-weight: 300; +} + +.paging-navigation .meta-nav { + background-color: #e63f2a; + border-radius: 50%; + color: #fff; + display: inline-block; + font-size: 26px; + padding: 3px 0 8px; + text-align: center; + width: 50px; +} + +.paging-navigation .nav-previous .meta-nav { + margin-right: 10px; + padding: 17px 0 23px; + width: 80px; +} + +.paging-navigation .nav-next .meta-nav { + margin-left: 10px; +} + +.paging-navigation a:hover .meta-nav { + background-color: #ea9629; + text-decoration: none; +} + +.post-navigation { + background-color: #fff; + /* + color: #ca3c08; + font-style: italic; + font-weight: 300; + */ + font-size: 16px; + padding: 20px 0; + font-family: 'Lato', sans-serif; + font-weight: 400; + color: #333; + line-height: 140%; + letter-spacing: 1.5px; +} + +.post-navigation .nav-links { + margin: 0 auto; + max-width: 1040px; +} + +.sidebar .post-navigation .nav-links { + padding: 0 376px 0 60px; +} + +.post-navigation a[rel="next"] { + float: right; + text-align: right; +} + /* +/* Title : Ajax Pagination with jQuery & PHP +Example URL : http://www.sanwebe.com/2013/03/ajax-pagination-with-jquery-php +*/ + + .contents{ margin: 20px; padding: 20px; @@ -160,7 +313,6 @@ Text Domain: CreatorThemeRes-child .contents li{ margin-bottom: 10px; } -*/ .loading-div{ position: absolute; top: 0; @@ -177,7 +329,7 @@ Text Domain: CreatorThemeRes-child } /* Pagination style */ -.pagination{margin:0;padding:0;} +.pagination{margin: 2em 0 3em;padding:0;} .pagination li{ display: inline; padding: 6px 10px 6px 10px; @@ -204,7 +356,3 @@ Text Domain: CreatorThemeRes-child background: #F0F0F0; color: #333; } -.pagine { - clear: both; - margin-bottom: 40px; -}