Changeset 14180


Ignore:
Timestamp:
Apr 16, 2012, 5:11:43 AM (12 years ago)
Author:
rvelices
Message:

"home url" is not always absolute with host name + html compaction - through removal of unused attributes, some white spaces ...

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r13258 r14180  
    136136  if ($url == $url_before_params)
    137137  {
    138     $url = get_absolute_root_url();
     138    $url = get_absolute_root_url( url_is_remote($url) );
    139139  }
    140140 
  • trunk/themes/default/template/index.tpl

    r13872 r14180  
    3131                {/strip}</li>
    3232{/if}
    33 
    3433{if !empty($image_derivatives)}
    3534                <li>{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     
    4241                        <span>&#x2714; </span>{$image_derivative.DISPLAY}
    4342                        {else}
    44                         <span style="visibility:hidden">&#x2714; </span><a href="{$image_derivative.URL}" class="switchUnselected" rel="nofollow">{$image_derivative.DISPLAY}</a>
     43                        <span style="visibility:hidden">&#x2714; </span><a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a>
    4544                        {/if}
    4645                        {/foreach}
  • trunk/themes/default/template/picture.tpl

    r13870 r14180  
    1919{include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'}
    2020<div class="actionButtons">
    21 
    2221{if count($current.unique_derivatives)>1}
    2322{footer_script require='jquery'}{literal}
     
    3534        document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}';
    3635}
    37 
    3836jQuery("#derivativeSwitchLink").click(function() {
    3937        var elt = jQuery("#derivativeSwitchBox");
     
    6361{/strip}
    6462{/if}
    65 
    6663{strip}{if isset($U_SLIDESHOW_START)}
    6764        <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
     
    125122<p class="imageComment">{$COMMENT_IMG}</p>
    126123{/if}
    127 
    128124{if isset($U_SLIDESHOW_STOP)}
    129125<p>
     
    338334        <div id="pictureComments">
    339335                {if isset($comment_add)}
    340                         <div id="commentAdd">
    341                                 <h4>{'Add a comment'|@translate}</h4>
    342                                 <form method="post" action="{$comment_add.F_ACTION}" id="addComment" >
    343                                         {if $comment_add.SHOW_AUTHOR}
    344                                                 <p><label>{'Author'|@translate} :</label></p>
    345                                                 <p><input type="text" name="author" /></p>
    346                                                 <p><label>{'Comment'|@translate} :</label></p>
     336                <div id="commentAdd">
     337                        <h4>{'Add a comment'|@translate}</h4>
     338                        <form method="post" action="{$comment_add.F_ACTION}" id="addComment">
     339                                {if $comment_add.SHOW_AUTHOR}
     340                                        <p><label>{'Author'|@translate} :</label></p>
     341                                        <p><input type="text" name="author"></p>
     342                                        <p><label>{'Comment'|@translate} :</label></p>
     343                                {/if}
     344                                <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
     345                                <p><input type="hidden" name="key" value="{$comment_add.KEY}">
     346                                        <input type="submit" value="{'Submit'|@translate}"></p>
     347                        </form>
     348                </div>
     349                {/if}
     350                {if isset($comments)}
     351                <div id="pictureCommentList">
     352                        {if (($COMMENT_COUNT > 2) || !empty($navbar))}
     353                                <div id="pictureCommentNavBar">
     354                                        {if $COMMENT_COUNT > 2}
     355                                                <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a>
    347356                                        {/if}
    348                                         <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
    349                                         <p><input type="hidden" name="key" value="{$comment_add.KEY}" />
    350                                                 <input type="submit" value="{'Submit'|@translate}"></p>
    351                                 </form>
    352                         </div>
    353                 {/if}
    354                 {if isset($comments)}
    355                         <div id="pictureCommentList">
    356                                 {if (($COMMENT_COUNT > 2) || !empty($navbar))}
    357                                         <div id="pictureCommentNavBar">
    358                                                 {if $COMMENT_COUNT > 2}
    359                                                         <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a>
    360                                                 {/if}
    361                                                 {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
    362                                         </div>
    363                                 {/if}
    364                                 {include file='comment_list.tpl'}
    365                         </div>
    366                 {/if}
    367                 <div style="clear: both;"></div>
     357                                        {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
     358                                </div>
     359                        {/if}
     360                        {include file='comment_list.tpl'}
     361                </div>
     362                {/if}
     363                <div style="clear:both"></div>
    368364        </div>
    369365
  • trunk/themes/default/template/picture_content.tpl

    r13474 r14180  
    1 <img src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" usemap="#map{$current.selected_derivative->get_type()}"
    2 {if isset($COMMENT_IMG)}
    3         title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
    4 {/if}>
     1<img src="{$current.selected_derivative->get_url()}" {$current.selected_derivative->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}">
    52
    63{foreach from=$current.unique_derivatives item=derivative key=derivative_type}{strip}
    7 <map name="map{$derivative->get_type()}" id="map{$derivative->get_type()}">
     4<map name="map{$derivative->get_type()}">
    85{assign var='size' value=$derivative->get_size()}
    96{if isset($previous)}
Note: See TracChangeset for help on using the changeset viewer.