M-à-j
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
<?php load_theme_textdomain('twentyten-child', get_template_directory() . '-child/languages'); ?>
|
||||
<?php
|
||||
$serial = "89f6e92540a8a80bd28cc2630c0ae022";
|
||||
update_option( 'wr2x_pro', array( 'subscr_id' => $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 . "<br>";
|
||||
//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 = '<a rel="lightbox" href="' . $zenphoto_url . 'albums/' . $atts['album'] . '/' . $atts['image'] . '">';
|
||||
if ($folder == false) $zenphoto_link = '<a class="swipebox" href="' . $zenphoto_url . 'albums/' . $atts['album'] . '/' . $atts['image'] . '">';
|
||||
if ($folder == false) $zenphoto_link = '<a data-rel="lightbox-0" href="' . $zenphoto_url . 'albums/' . $atts['album'] . '/' . $atts['image'] . '">';
|
||||
else $zenphoto_link = '<a href="' . $zenphoto_url . $atts['album'] . '">';
|
||||
|
||||
$zenphoto_img .= $zenphoto_link;
|
||||
@@ -167,6 +179,7 @@ function zenphoto_handler($atts, $content=null) {
|
||||
$zenphoto_img .= $caption;
|
||||
}
|
||||
*/
|
||||
//echo $zenphoto_img;
|
||||
return $zenphoto_img;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user