Ticket #133: skin.patch

File skin.patch, 7.6 KB (added by idiot, 22 months ago)
  • developer/block.tags.tpl

     
    11<div class="block"> 
    22        <ul class="cloud">                                               
    33                {foreach from=$aTags item=oTag} 
    4                         <li><a class="w{$oTag->getSize()}" rel="tag" href="{router page='tag'}{$oTag->getText()|escape:'html'}/">{$oTag->getText()|escape:'html'}</a></li>       
     4                        <li><a class="w{$oTag->getSize()}" rel="tag" href="{router page='tag'}{$oTag->getText()|escape:'url'}/">{$oTag->getText()|escape:'html'}</a></li>        
    55                {/foreach} 
    66        </ul> 
    77</div> 
     8 No newline at end of file 
  • developer/block.tagsCountry.tpl

     
    33                <h2>{$aLang.block_country_tags}</h2>                                     
    44                <ul class="cloud"> 
    55                        {foreach from=$aCountryList item=aCountry} 
    6                                 <li><a class="w{$aCountry.size}" rel="tag" href="{router page='people'}country/{$aCountry.name|escape:'html'}/">{$aCountry.name|escape:'html'}</a></li>  
     6                                <li><a class="w{$aCountry.size}" rel="tag" href="{router page='people'}country/{$aCountry.name|escape:'url'}/">{$aCountry.name|escape:'html'}</a></li>   
    77                        {/foreach}                                       
    88                </ul>                                                                    
    99        </div> 
  • developer/topic.tpl

     
    6565 
    6666        <ul class="tags"> 
    6767                {foreach from=$oTopic->getTagsArray() item=sTag name=tags_list} 
    68                         <li><a href="{router page='tag'}{$sTag|escape:'html'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
     68                        <li><a href="{router page='tag'}{$sTag|escape:'url'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
    6969                {/foreach}                                                               
    7070        </ul> 
    7171 
  • developer/actions/ActionTag/index.tpl

     
    44{literal} 
    55<script> 
    66function submitTags(sTag) {              
    7         window.location=DIR_WEB_ROOT+'/tag/'+sTag+'/'; 
     7        window.location=DIR_WEB_ROOT+'/tag/'+encodeURIComponent(sTag)+'/'; 
    88        return false; 
    99} 
    1010</script> 
  • developer/block.tagsCity.tpl

     
    33                <h2>{$aLang.block_city_tags}</h2>                                        
    44                <ul class="cloud"> 
    55                        {foreach from=$aCityList item=aCity} 
    6                                 <li><a class="w{$aCity.size}" rel="tag" href="{router page='people'}city/{$aCity.name|escape:'html'}/" >{$aCity.name|escape:'html'}</a></li>     
     6                                <li><a class="w{$aCity.size}" rel="tag" href="{router page='people'}city/{$aCity.name|escape:'url'}/" >{$aCity.name|escape:'html'}</a></li>      
    77                        {/foreach}                                       
    88                </ul>                                                                    
    99        </div> 
  • new/block.tags.tpl

     
    44                                         
    55                                        <ul class="cloud">                                               
    66                                                {foreach from=$aTags item=oTag} 
    7                                                         <li><a class="w{$oTag->getSize()}" rel="tag" href="{router page='tag'}{$oTag->getText()|escape:'html'}/">{$oTag->getText()|escape:'html'}</a></li>       
     7                                                        <li><a class="w{$oTag->getSize()}" rel="tag" href="{router page='tag'}{$oTag->getText()|escape:'url'}/">{$oTag->getText()|escape:'html'}</a></li>        
    88                                                {/foreach} 
    99                                        </ul> 
    1010                                         
  • new/block.tagsCountry.tpl

     
    55                                        <h1>{$aLang.block_country_tags}</h1>                                     
    66                                        <ul class="cloud"> 
    77                                                {foreach from=$aCountryList item=aCountry} 
    8                                                         <li><a class="w{$aCountry.size}" rel="tag" href="{router page='people'}country/{$aCountry.name|escape:'html'}/">{$aCountry.name|escape:'html'}</a></li>  
     8                                                        <li><a class="w{$aCountry.size}" rel="tag" href="{router page='people'}country/{$aCountry.name|escape:'url'}/">{$aCountry.name|escape:'html'}</a></li>   
    99                                                {/foreach}                                       
    1010                                        </ul>                                                                    
    1111                                </div></div> 
  • new/topic.tpl

     
    5353                                </div>                           
    5454                                <ul class="tags"> 
    5555                                        {foreach from=$oTopic->getTagsArray() item=sTag name=tags_list} 
    56                                                 <li><a href="{router page='tag'}{$sTag|escape:'html'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
     56                                                <li><a href="{router page='tag'}{$sTag|escape:'url'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
    5757                                        {/foreach}                                                                       
    5858                                </ul>                            
    5959                                <ul class="voting {if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId())|| strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}{if $oTopic->getRating()>0}positive{elseif $oTopic->getRating()<0}negative{/if}{/if} {if !$oUserCurrent || $oTopic->getUserId()==$oUserCurrent->getId() || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}guest{/if} {if $oVote} voted {if $oVote->getDirection()>0}plus{elseif $oVote->getDirection()<0}minus{/if}{/if}"> 
  • new/actions/ActionTag/index.tpl

     
    33{literal} 
    44<script> 
    55function submitTags(sTag) {              
    6         window.location=DIR_WEB_ROOT+'/tag/'+sTag+'/'; 
     6        window.location=DIR_WEB_ROOT+'/tag/'+encodeURIComponent(sTag)+'/'; 
    77        return false; 
    88} 
    99</script> 
  • new/topic_list.tpl

     
    6464                                </div>                           
    6565                                <ul class="tags"> 
    6666                                        {foreach from=$oTopic->getTagsArray() item=sTag name=tags_list} 
    67                                                 <li><a href="{router page='tag'}{$sTag|escape:'html'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
     67                                                <li><a href="{router page='tag'}{$sTag|escape:'url'}/">{$sTag|escape:'html'}</a>{if !$smarty.foreach.tags_list.last}, {/if}</li> 
    6868                                        {/foreach}                                                               
    6969                                </ul>                            
    7070                                <ul class="voting {if $oVote || ($oUserCurrent && $oTopic->getUserId()==$oUserCurrent->getId()) || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}{if $oTopic->getRating()>0}positive{elseif $oTopic->getRating()<0}negative{/if}{/if} {if !$oUserCurrent || $oTopic->getUserId()==$oUserCurrent->getId() || strtotime($oTopic->getDateAdd())<$smarty.now-$oConfig->GetValue('acl.vote.topic.limit_time')}guest{/if} {if $oVote} voted {if $oVote->getDirection()>0}plus{elseif $oVote->getDirection()<0}minus{/if}{/if}"> 
  • new/block.tagsCity.tpl

     
    55                                        <h1>{$aLang.block_city_tags}</h1>                                        
    66                                        <ul class="cloud"> 
    77                                                {foreach from=$aCityList item=aCity} 
    8                                                         <li><a class="w{$aCity.size}" rel="tag" href="{router page='people'}city/{$aCity.name|escape:'html'}/" >{$aCity.name|escape:'html'}</a></li>     
     8                                                        <li><a class="w{$aCity.size}" rel="tag" href="{router page='people'}city/{$aCity.name|escape:'url'}/" >{$aCity.name|escape:'html'}</a></li>      
    99                                                {/foreach}                                       
    1010                                        </ul>                                                                    
    1111                                </div></div>