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

update for 2.6

Location:
extensions/oAuth/template
Files:
5 edited

Legend:

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

    r23808 r26556  
    22<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
    33<head>
    4   <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
    5   <title>{'Sign in with %s'|@translate|sprintf:$PROVIDER} | {$GALLERY_TITLE}</title>
     4  <meta charset="{$CONTENT_ENCODING}">
     5  <title>{'Sign in with %s'|translate:$PROVIDER} | {$GALLERY_TITLE}</title>
    66</head>
    77
     
    1111{if $ERROR}
    1212  <img id="loader" src="{$OAUTH_PATH}template/images/alert.png">
    13   <h3>{'Error...'|@translate}</h3>
     13  <h3>{'Error...'|translate}</h3>
    1414  {$ERROR}<br>
    15   <a href="#" id="close">{'Close'|@translate}</a>
     15  <a href="#" id="close">{'Close'|translate}</a>
    1616 
    1717  <script type="text/javascript">
    18     document.getElementById('close').onclick = function() {ldelim} window.self.close(); };
     18    document.getElementById('close').onclick = function() { window.self.close(); };
    1919  </script>
    2020 
    2121{elseif $LOADING}
    2222  <img id="loader" src="{$OAUTH_PATH}template/images/ajax-loader-big.gif">
    23   <h3>{'Loading...'|@translate}</h3>
    24   {'Contacting <b>%s</b>. Please wait.'|@translate|sprintf:$PROVIDER}
     23  <h3>{'Loading...'|translate}</h3>
     24  {'Contacting <b>%s</b>. Please wait.'|translate:$PROVIDER}
    2525 
    2626  <script type="text/javascript">
  • extensions/oAuth/template/identification_common.tpl

    r24142 r26556  
    11{combine_css path=$OAUTH_PATH|cat:'template/oauth_sprites.css'}
    22
    3 {html_style}{literal}
    4   #openid_form {
    5     padding:20px;
    6   }
    7   #openid_form h3, #openid_form .oauth_38px {
    8     display:inline-block;
    9     vertical-align:middle;
    10     margin:0;
    11   }
    12   #openid_label.error {
    13     color:red;
    14     font-weight:bold;
    15   }
    16 {/literal}{/html_style}
     3{combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'}
     4{combine_css id='colorbox' path="themes/default/js/plugins/colorbox/style2/colorbox.css"}
    175
    18 {if not isset($OAUTH_NO_LIGHTBOX)}
    19 {combine_script id='jquery.colorbox' load='footer' require='jquery' path='themes/default/js/plugins/jquery.colorbox.min.js'}
    20 {combine_css path="themes/default/js/plugins/colorbox/style2/colorbox.css"}
    21 {/if}
     6{html_style}
     7#openid_form { padding:20px; }
     8#openid_form h3, #openid_form .oauth_38px { display:inline-block; vertical-align:middle; margin:0; }
     9#openid_label.error { color:red; font-weight:bold; }
     10{/html_style}
    2211
    23 {footer_script}{literal}
     12{footer_script}
    2413// redirect, called from the popup
    2514function redirect(type) {
    26 {/literal}
    27   url = "{$REDIRECT_TO}";
    28   if (typeof type != 'undefined' && type != 'default') {ldelim}
     15  var url = "{$REDIRECT_TO}";
     16  if (typeof type != 'undefined' && type != 'default') {
    2917    url = "{$ABS_ROOT_URL}"+ type +".php";
    3018  }
    31 {literal}
     19
    3220  window.location.href = url;
    3321}
     
    4937    case 'OpenID': case 'Wordpress': case 'Flickr': case 'Steam':
    5038      switch(idp) {
    51 {/literal}
    5239        case 'OpenID':
    53           jQuery("#openid_label").html('{'Please enter your OpenID URL'|@translate|escape:javascript}'); break;
     40          jQuery("#openid_label").html('{'Please enter your OpenID URL'|translate|escape:javascript}'); break;
    5441        case 'Wordpress': case 'Flickr': case 'Steam':
    55           jQuery("#openid_label").html('{'Please enter your username'|@translate|escape:javascript}'); break;
     42          jQuery("#openid_label").html('{'Please enter your username'|translate|escape:javascript}'); break;
    5643      }
    5744     
    58       jQuery("#openid_form").css('background-color', $("#the_page #content").css('background-color'));
     45      var bg_color = $('#the_page #content').css('background-color');
     46      if (!bg_color || bg_color=='transparent') {
     47        bg_color = $('body').css('background-color');
     48      }
     49      jQuery("#openid_form").css('background-color', bg_color);
     50
    5951      jQuery("#openid_form .oauth_38px").removeClass().addClass("oauth_38px " + idp.toLowerCase());
    6052      jQuery("#openid_form h3").html(idp);
    6153      jQuery("#openid_form").data('idp', idp);
    62 {literal} 
     54
    6355      jQuery.colorbox({
    6456        inline:true,
     
    6658        initialWidth:0,
    6759        initialHeight:0,
    68         onComplete:function(){ jQuery.colorbox.resize({speed:0}) } // prevent misalignement when icon not loaded
     60        onComplete: function(){ jQuery.colorbox.resize({ speed:0 }) } // prevent misalignement when icon not loaded
    6961      })
    7062      break;
    7163     
    7264    default:
    73 {/literal}
    7465      open_auth("{$OAUTH_URL}"+ idp);
    75 {literal}
    7666  }
    7767 
     
    9585    case 'Steam': oi = "http://steamcommunity.com/openid/" + oi; break;
    9686  }
    97 {/literal} 
     87
    9888  open_auth("{$OAUTH_URL}OpenID&openid_identifier="+ encodeURI(oi));
    99 {literal}
     89
    10090  jQuery.colorbox.close();
    10191  return false;
     
    10797  return false;
    10898});
    109 {/literal}{/footer_script}
     99{/footer_script}
    110100
    111101<div style="display:none;">
     
    123113    <div>
    124114      <br>
    125       <input type="submit" name="{'Submit'|@translate}">
    126       <a href="#" id="openid_cancel">{'Cancel'|@translate}</a>
     115      <input type="submit" name="{'Submit'|translate}">
     116      <a href="#" id="openid_cancel">{'Cancel'|translate}</a>
    127117    </div>
    128118  </form>
  • extensions/oAuth/template/identification_menubar.tpl

    r21584 r26556  
    44    {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'}
    55  {/if}
    6   {html_style}{literal}
    7     dl#mbIdentification dd:first-of-type {
    8       padding-bottom:0 !important;
    9     }
    10     #mbIdentification .oauth {
    11       margin:0 1px;
    12     }
    13   {/literal}{/html_style}
     6  {html_style}
     7    dl#mbIdentification dd:first-of-type { padding-bottom:0 !important;
     8    #mbIdentification .oauth { margin:0 1px; }
     9  {/html_style}
    1410 
    1511  <dd>
    1612    <form id="quickconnect">
    1713    <fieldset style="text-align:center;">
    18       <legend>{'Or sign in with'|@translate}</legend>
     14      <legend>{'Or sign in with'|translate}</legend>
    1915     
    2016    {foreach from=$PROVIDERS item=provider key=p}{strip}
  • extensions/oAuth/template/identification_page.tpl

    r21584 r26556  
    44    {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'}
    55  {/if}
    6   {html_style}{literal}
    7     #oauth_wrap .oauth {
    8       margin:0 2px;
    9     }
    10   {/literal}{/html_style}
     6  {html_style}
     7    #oauth_wrap .oauth { margin:0 2px; }
     8  {/html_style}
    119   
    1210  <fieldset style="text-align:center;" id="oauth_wrap">
    13     <legend>{'Or sign in with'|@translate}</legend>
     11    <legend>{'Or sign in with'|translate}</legend>
    1412   
    1513  {foreach from=$PROVIDERS item=provider key=p}{strip}
  • extensions/oAuth/template/profile.tpl

    r20368 r26556  
    1 {html_head}{literal}
    2 <style type="text/css">
    3   #oauth {
    4     width:400px;
    5     height:48px;
    6     overflow:hidden;
    7     margin:0 auto 15px auto;
    8     padding:5px;
    9     background:rgba(128,128,128,0.2);
    10     border:1px solid #7e7e7e;
    11     border-radius:5px;
    12   }
    13   #oauth .avatar {
    14     width:48px;
    15     border-radius:5px;
    16     margin-right:5px;
    17     float:left;
    18   }
    19 </style>
    20 {/literal}{/html_head}
     1{html_style}
     2#oauth {
     3  width:400px;
     4  height:48px;
     5  overflow:hidden;
     6  margin:0 auto 15px auto;
     7  padding:5px;
     8  background:rgba(128,128,128,0.2);
     9  border:1px solid #7e7e7e;
     10  border-radius:5px;
     11}
     12#oauth .avatar {
     13  width:48px;
     14  border-radius:5px;
     15  margin-right:5px;
     16  float:left;
     17}
     18{/html_style}
    2119
    2220<div id="oauth">
     
    2725{/if}
    2826
    29   {'Logged with'|@translate} : <b>{$OAUTH_PROVIDER}</b><br>
    30   <b>{'Username'|@translate}</b> : {$OAUTH_USERNAME}<br>
    31   {if $OAUTH_PROFILE_URL}<b>{'Profile URL'|@translate}</b> : <a href="{$OAUTH_PROFILE_URL}">{$OAUTH_PROFILE_URL|truncate:40:' ... ':true:true}</a>{/if}
     27  {'Logged with'|translate} : <b>{$OAUTH_PROVIDER}</b><br>
     28  <b>{'Username'|translate}</b> : {$OAUTH_USERNAME}<br>
     29  {if $OAUTH_PROFILE_URL}<b>{'Profile URL'|translate}</b> : <a href="{$OAUTH_PROFILE_URL}">{$OAUTH_PROFILE_URL|truncate:40:' ... ':true:true}</a>{/if}
    3230</div>
Note: See TracChangeset for help on using the changeset viewer.