Ignore:
Timestamp:
Mar 15, 2013, 6:43:07 PM (11 years ago)
Author:
mistic100
Message:

don't delete keys when the provider is removed, hide fieldset when no provider active, use jQuery instead of $

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/template/identification_page.tpl

    r20620 r21584  
    1 {if not $OAUTH_JS_LOADED}
    2   {assign var=OAUTH_JS_LOADED value=true}
    3   {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'}
     1{if count($PROVIDERS)}
     2  {if not $OAUTH_JS_LOADED}
     3    {assign var=OAUTH_JS_LOADED value=true}
     4    {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'}
     5  {/if}
     6  {html_style}{literal}
     7    #oauth_wrap .oauth {
     8      margin:0 2px;
     9    }
     10  {/literal}{/html_style}
     11   
     12  <fieldset style="text-align:center;" id="oauth_wrap">
     13    <legend>{'Or sign in with'|@translate}</legend>
     14   
     15  {foreach from=$PROVIDERS item=provider key=p}{strip}
     16    <a href="#" class="oauth oauth_{$oauth.identification_icon} {$p|strtolower}" data-idp="{$p}" title="{$provider.name}"></a>
     17  {/strip}{/foreach}
     18  </fieldset>
    419{/if}
    5 {html_style}{literal}
    6   #oauth_wrap .oauth {
    7     margin:0 2px;
    8   }
    9 {/literal}{/html_style}
    10  
    11 <fieldset style="text-align:center;" id="oauth_wrap">
    12   <legend>{'Or sign in with'|@translate}</legend>
    13  
    14 {foreach from=$PROVIDERS item=provider key=p}{strip}
    15   <a href="#" class="oauth oauth_{$oauth.identification_icon} {$p|strtolower}" data-idp="{$p}" title="{$provider.name}"></a>
    16 {/strip}{/foreach}
    17 </fieldset>
Note: See TracChangeset for help on using the changeset viewer.