Changeset 26556 for extensions/oAuth/template
- Timestamp:
- Jan 9, 2014, 7:55:29 PM (10 years ago)
- Location:
- extensions/oAuth/template
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/oAuth/template/auth.tpl
r23808 r26556 2 2 <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> 3 3 <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> 6 6 </head> 7 7 … … 11 11 {if $ERROR} 12 12 <img id="loader" src="{$OAUTH_PATH}template/images/alert.png"> 13 <h3>{'Error...'| @translate}</h3>13 <h3>{'Error...'|translate}</h3> 14 14 {$ERROR}<br> 15 <a href="#" id="close">{'Close'| @translate}</a>15 <a href="#" id="close">{'Close'|translate}</a> 16 16 17 17 <script type="text/javascript"> 18 document.getElementById('close').onclick = function() { ldelim}window.self.close(); };18 document.getElementById('close').onclick = function() { window.self.close(); }; 19 19 </script> 20 20 21 21 {elseif $LOADING} 22 22 <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} 25 25 26 26 <script type="text/javascript"> -
extensions/oAuth/template/identification_common.tpl
r24142 r26556 1 1 {combine_css path=$OAUTH_PATH|cat:'template/oauth_sprites.css'} 2 2 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"} 17 5 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} 22 11 23 {footer_script} {literal}12 {footer_script} 24 13 // redirect, called from the popup 25 14 function 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') { 29 17 url = "{$ABS_ROOT_URL}"+ type +".php"; 30 18 } 31 {literal} 19 32 20 window.location.href = url; 33 21 } … … 49 37 case 'OpenID': case 'Wordpress': case 'Flickr': case 'Steam': 50 38 switch(idp) { 51 {/literal}52 39 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; 54 41 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; 56 43 } 57 44 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 59 51 jQuery("#openid_form .oauth_38px").removeClass().addClass("oauth_38px " + idp.toLowerCase()); 60 52 jQuery("#openid_form h3").html(idp); 61 53 jQuery("#openid_form").data('idp', idp); 62 {literal} 54 63 55 jQuery.colorbox({ 64 56 inline:true, … … 66 58 initialWidth:0, 67 59 initialHeight:0, 68 onComplete: function(){ jQuery.colorbox.resize({speed:0}) } // prevent misalignement when icon not loaded60 onComplete: function(){ jQuery.colorbox.resize({ speed:0 }) } // prevent misalignement when icon not loaded 69 61 }) 70 62 break; 71 63 72 64 default: 73 {/literal}74 65 open_auth("{$OAUTH_URL}"+ idp); 75 {literal}76 66 } 77 67 … … 95 85 case 'Steam': oi = "http://steamcommunity.com/openid/" + oi; break; 96 86 } 97 {/literal} 87 98 88 open_auth("{$OAUTH_URL}OpenID&openid_identifier="+ encodeURI(oi)); 99 {literal} 89 100 90 jQuery.colorbox.close(); 101 91 return false; … … 107 97 return false; 108 98 }); 109 {/ literal}{/footer_script}99 {/footer_script} 110 100 111 101 <div style="display:none;"> … … 123 113 <div> 124 114 <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> 127 117 </div> 128 118 </form> -
extensions/oAuth/template/identification_menubar.tpl
r21584 r26556 4 4 {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'} 5 5 {/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} 14 10 15 11 <dd> 16 12 <form id="quickconnect"> 17 13 <fieldset style="text-align:center;"> 18 <legend>{'Or sign in with'| @translate}</legend>14 <legend>{'Or sign in with'|translate}</legend> 19 15 20 16 {foreach from=$PROVIDERS item=provider key=p}{strip} -
extensions/oAuth/template/identification_page.tpl
r21584 r26556 4 4 {include file=$OAUTH_ABS_PATH|cat:'template/identification_common.tpl'} 5 5 {/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} 11 9 12 10 <fieldset style="text-align:center;" id="oauth_wrap"> 13 <legend>{'Or sign in with'| @translate}</legend>11 <legend>{'Or sign in with'|translate}</legend> 14 12 15 13 {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} 21 19 22 20 <div id="oauth"> … … 27 25 {/if} 28 26 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} 32 30 </div>
Note: See TracChangeset
for help on using the changeset viewer.