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 0000000..2923f24 Binary files /dev/null and b/-child/Archive.zip differ diff --git a/Pagination/ce-mois.php b/Pagination/ce-mois.php new file mode 100755 index 0000000..8b8661c --- /dev/null +++ b/Pagination/ce-mois.php @@ -0,0 +1,235 @@ + + +
+
+
+ +
> +

+ +
+ + " ."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 = "
    "; // 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 = "
    "; // 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 .= ''; - $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 '
    '; + } + + //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; -}