From eabe086f95d890bbbb29fffe77e14dd03f2bfdd3 Mon Sep 17 00:00:00 2001 From: Bruno21 Date: Mon, 29 Jan 2018 11:43:21 +0100 Subject: [PATCH] =?UTF-8?q?M-=C3=A0-j?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + footer.php | 1 + functions.php | 23 +++++++-- header.php | 11 ++-- loop-single.php | 130 +++++++++++++++--------------------------------- 5 files changed, 67 insertions(+), 99 deletions(-) diff --git a/.gitignore b/.gitignore index e69de29..e43b0f9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/footer.php b/footer.php index 7b5bd88..0adba33 100644 --- a/footer.php +++ b/footer.php @@ -73,5 +73,6 @@ wp_footer(); ?> + diff --git a/functions.php b/functions.php index c2914ad..452e9b6 100644 --- a/functions.php +++ b/functions.php @@ -1,5 +1,10 @@ $serial ) ); +update_option( 'wr2x_pro_status', _( "Your subscription is manually enabled." ) ); +update_option( 'wr2x_pro_serial', _( $serial ) ); +set_transient( 'wr2x_validated', $serial, 3600 * 24 * 100 ); add_filter( 'pre_option_link_manager_enabled', '__return_true' ); add_filter('sanitize_file_name', 'remove_accents' ); @@ -119,14 +124,21 @@ function zenphoto_handler($atts, $content=null) { // [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 - $host = (($_SERVER['HTTPS'] != "") ? "https" : "http") . '://' . $_SERVER['HTTP_HOST']; + $host = (($_SERVER['HTTPS'] != "") ? "https" : "http") . '://' . $_SERVER['HTTP_HOST'] . '/zenphoto/'; $zenphoto_url2 = get_option( 'zenphoto_url' ); - - if (substr_count($zenphoto_url2, 'https') == 0) { +//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' ); $folder = false; $zenphoto_img = ""; @@ -144,7 +156,7 @@ function zenphoto_handler($atts, $content=null) { $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; @@ -167,6 +179,7 @@ function zenphoto_handler($atts, $content=null) { $zenphoto_img .= $caption; } */ + //echo $zenphoto_img; return $zenphoto_img; } diff --git a/header.php b/header.php index 08af102..082d27d 100644 --- a/header.php +++ b/header.php @@ -61,17 +61,18 @@ wp_head(); ?> - + + - - + + diff --git a/loop-single.php b/loop-single.php index a5ec754..7fe9938 100644 --- a/loop-single.php +++ b/loop-single.php @@ -174,21 +174,11 @@

 

- - - - - 0) ? "block" : "none") . ';">'; ?> - + map.fitBounds(bounds); + var listener = google.maps.event.addListener(map, "idle", function () { + map.setZoom(8); + google.maps.event.removeListener(listener); + }); +} + '' ) ); ?> @@ -376,4 +327,5 @@ echo '
- \ No newline at end of file + +