Ignore:
Timestamp:
Jan 9, 2014, 7:55:29 PM (10 years ago)
Author:
mistic100
Message:

update for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin/template/providers.tpl

    r26555 r26556  
    1 {combine_css path=$OAUTH_PATH|cat:"admin/template/style.css"}
     1{combine_css path=$OAUTH_PATH|cat:'admin/template/style.css'}
    22{combine_css path=$OAUTH_PATH|cat:'template/oauth_sprites.css'}
    33
    4 {footer_script}{literal}
     4{footer_script}
    55jQuery("select.enable").change(function() {
    66  var $top = $(this).closest("div.provider");
     
    2020
    2121jQuery("#close_help").click(function() {
    22   jQuery("#help_container").animate({"margin-right": "-550px"}, 'fast');
     22  jQuery("#help_container").animate({ "margin-right": "-550px" }, 'fast');
    2323  return false;
    2424});
     
    3030  $("#help_container h5").html($top.find("h4").html());
    3131  $("#help_container div").html($top.find("div.help").html());
    32   $("#help_container").animate({"margin-right": "0px"}, 'fast');
     32  $("#help_container").animate({ "margin-right": "0px" }, 'fast');
    3333  return false;
    3434});
    35 {/literal}{/footer_script}
     35{/footer_script}
    3636
    3737
     
    4141
    4242<div id="help_container">
    43   <a href="#" id="close_help" title="{'Close'|@translate}">&times;</a>
     43  <a href="#" id="close_help" title="{'Close'|translate}">&times;</a>
    4444  <h5></h5>
    4545  <div></div>
     
    6060      <td>
    6161        <select name="providers[{$p}][enabled]" class="enable">
    62           <option value="true" {if $CONFIG[$p].enabled}selected="selected"{/if}>{'Enabled'|@translate}</option>
    63           <option value="false" {if not $CONFIG[$p].enabled}selected="selected"{/if}>{'Disabled'|@translate}</option>
     62          <option value="true" {if $CONFIG[$p].enabled}selected="selected"{/if}>{'Enabled'|translate}</option>
     63          <option value="false" {if not $CONFIG[$p].enabled}selected="selected"{/if}>{'Disabled'|translate}</option>
    6464        </select>
    65         <br><a href="#" class="open-help">{'Help'|@translate}</a>
     65        <br><a href="#" class="open-help">{'Help'|translate}</a>
    6666      </td>
    6767     
     
    8585    {if $provider.new_app_link}
    8686      <ol>
    87         <li>{'Go to <a href="%s" target="_blank">%s</a> and create a new application'|@translate|sprintf:$provider.new_app_link:$provider.new_app_link}</li>
     87        <li>{'Go to <a href="%s" target="_blank">%s</a> and create a new application'|translate|sprintf:$provider.new_app_link:$provider.new_app_link}</li>
    8888       
    8989      {if $p=='Google'}
    90         <li>{'On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'|@translate}</li>
     90        <li>{'On the <b>APIs & auth -> Credentials</b> tab, <b>Create new client ID</b>'|translate}</li>
    9191      {else}
    92         <li>{'Fill out any required fields such as the application name and description'|@translate}</li>
     92        <li>{'Fill out any required fields such as the application name and description'|translate}</li>
    9393      {/if}
    9494       
     
    9696        <li>
    9797          {assign var=callback value=$OAUTH_CALLBACK|cat:$p}
    98           {'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'|@translate|sprintf:$callback}
     98          {'Provide this URL as the Callback/Redirect URL for your application: <em>%s</em>'|translate|sprintf:$callback}
    9999        </li>
    100100      {/if}
    101101     
    102102      {if $p=='Live'}
    103         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Redirect Domain</b>':$SERVERNAME}</li>
     103        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Redirect Domain</b>':$SERVERNAME}</li>
    104104      {elseif $p=='Facebook'}
    105105        <li>{'Go to <b>Settings->Advanced</b> and activate <em>Client OAuth Login</em>.'|translate}</li>
    106         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Valid OAuth redirect URIs</b>':$SERVERNAME}</li>
     106        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Valid OAuth redirect URIs</b>':$SERVERNAME}</li>
    107107      {elseif $p=='LinkedIn'}
    108         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Website URL</b>':$SERVERNAME}</li>
    109         <li>{'Set <b>%s</b> to <em>%s</em>'|@translate|sprintf:'Application Type':'Web Application'}</li>
    110         <li>{'Set <b>%s</b> to <em>%s</em>'|@translate|sprintf:'Default Scope':'r_basicprofile & r_emailaddress'}</li>
     108        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website URL</b>':$SERVERNAME}</li>
     109        <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Application Type':'Web Application'}</li>
     110        <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Default Scope':'r_basicprofile & r_emailaddress'}</li>
    111111      {elseif $p=='Yahoo'}
    112         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Application URL</b>, <b>Application Domain</b>':$SERVERNAME}</li>
    113         <li>{'Set <b>%s</b> to <em>%s</em>'|@translate|sprintf:'Kind of Application':'Web-based'}</li>
    114         <li>{'Set <b>%s</b> to <em>%s</em>'|@translate|sprintf:'Access Scopes':'This app will only access public...'}</li>
    115         <li>{'Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'|@translate}</li>
     112        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application URL</b>, <b>Application Domain</b>':$SERVERNAME}</li>
     113        <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Kind of Application':'Web-based'}</li>
     114        <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Access Scopes':'This app will only access public...'}</li>
     115        <li>{'Once the application is registered update the permissions : set <b>Contacts</b> as <em>Read</em> and <b>Social Directory</b> as <em>Read Public</em>'|translate}</li>
    116116      {elseif $p=='Twitter'}
    117         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Website</b>, <b>Callback URL</b>':$SERVERNAME}</li>
     117        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b>, <b>Callback URL</b>':$SERVERNAME}</li>
    118118      {elseif $p=='Tumblr'}
    119         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Application Website</b>, <b>Default Callback URL</b>':$SERVERNAME}</li>
     119        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Application Website</b>, <b>Default Callback URL</b>':$SERVERNAME}</li>
    120120      {elseif $p=='Instagram'}
    121         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Website</b>':$SERVERNAME}</li>
     121        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Website</b>':$SERVERNAME}</li>
    122122      {elseif $p=='Google'}
    123         <li>{'Set <b>%s</b> to <em>%s</em>'|@translate|sprintf:'Application Type':'Web Application'}</li>
    124         <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|@translate|sprintf:'<b>Authorized Javascript origins </b>':$SERVERNAME}</li>
     123        <li>{'Set <b>%s</b> to <em>%s</em>'|translate|sprintf:'Application Type':'Web Application'}</li>
     124        <li>{'Put your website domain in the %s fields. It should match with the current hostname: <em>%s</em>'|translate|sprintf:'<b>Authorized Javascript origins </b>':$SERVERNAME}</li>
    125125      {/if}
    126126     
    127         <li>{'Once you have registered, copy and past the created application credentials into this setup page'|@translate}</li>
     127        <li>{'Once you have registered, copy and past the created application credentials into this setup page'|translate}</li>
    128128      </ol>
    129129    {else}
    130       <p>{'No registration required for OpenID based providers'|@translate}</p>
     130      <p>{'No registration required for OpenID based providers'|translate}</p>
    131131    {/if}
    132132    </div>
     
    136136</fieldset>
    137137
    138 <p style="text-align:left;"><input type="submit" name="save_config" value="{'Save Settings'|@translate}"></p>
     138<p style="text-align:left;"><input type="submit" name="save_config" value="{'Save Settings'|translate}"></p>
    139139 
    140140</form>
Note: See TracChangeset for help on using the changeset viewer.