diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 5f86495e4..34c9bbfbd 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -135,7 +135,7 @@ function make_index_url($params = array()) if ($url == $url_before_params) { - $url = get_absolute_root_url(); + $url = get_absolute_root_url( url_is_remote($url) ); } return $url; diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 394add583..14045342a 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -30,7 +30,6 @@ jQuery("#sortOrderBox").on("mouseleave", function() { {/literal}{/footer_script} {/strip} {/if} - {if !empty($image_derivatives)}
  • {strip}  {'Photo sizes'|@translate} @@ -41,7 +40,7 @@ jQuery("#sortOrderBox").on("mouseleave", function() { {if $image_derivative.SELECTED} {$image_derivative.DISPLAY} {else} - {$image_derivative.DISPLAY} + {$image_derivative.DISPLAY} {/if} {/foreach} diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 6d1a6aba9..cddabf26e 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -18,7 +18,6 @@
    {$PHOTO}
    {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    - {if count($current.unique_derivatives)>1} {footer_script require='jquery'}{literal} function changeImgSrc(url,typeSave,typeMap) @@ -34,7 +33,6 @@ function changeImgSrc(url,typeSave,typeMap) jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; } - jQuery("#derivativeSwitchLink").click(function() { var elt = jQuery("#derivativeSwitchBox"); elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) @@ -62,7 +60,6 @@ jQuery("#derivativeSwitchBox").on("mouseleave click", function() {
    {/strip} {/if} - {strip}{if isset($U_SLIDESHOW_START)} {'slideshow'|@translate} @@ -124,7 +121,6 @@ y.callService( {if isset($COMMENT_IMG)}

    {$COMMENT_IMG}

    {/if} - {if isset($U_SLIDESHOW_STOP)}

    [ {'stop the slideshow'|@translate} ] @@ -337,34 +333,34 @@ function togglePrivacyLevelBox()

    {if isset($comment_add)} -
    -

    {'Add a comment'|@translate}

    -
    - {if $comment_add.SHOW_AUTHOR} -

    -

    -

    - {/if} -

    -

    -

    -
    -
    +
    +

    {'Add a comment'|@translate}

    +
    + {if $comment_add.SHOW_AUTHOR} +

    +

    +

    + {/if} +

    +

    +

    +
    +
    {/if} {if isset($comments)} -
    - {if (($COMMENT_COUNT > 2) || !empty($navbar))} -
    - {if $COMMENT_COUNT > 2} - {$COMMENTS_ORDER_TITLE} - {/if} - {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} -
    - {/if} - {include file='comment_list.tpl'} -
    +
    + {if (($COMMENT_COUNT > 2) || !empty($navbar))} +
    + {if $COMMENT_COUNT > 2} + {$COMMENTS_ORDER_TITLE} + {/if} + {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} +
    + {/if} + {include file='comment_list.tpl'} +
    {/if} -
    +
    diff --git a/themes/default/template/picture_content.tpl b/themes/default/template/picture_content.tpl index abf3766c6..d0fb1e178 100644 --- a/themes/default/template/picture_content.tpl +++ b/themes/default/template/picture_content.tpl @@ -1,10 +1,7 @@ -get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" -{if isset($COMMENT_IMG)} - title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}" -{/if}> +get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}" title="{if isset($COMMENT_IMG)}{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}{else}{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}{/if}"> {foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip} - + {assign var='size' value=$derivative->get_size()} {if isset($previous)} {$previous.TITLE} @@ -14,4 +11,4 @@ {$next.TITLE} {/if} -{/strip}{/foreach} +{/strip}{/foreach} \ No newline at end of file