Changeset 26556 for extensions/oAuth/admin/template/providers.tpl
- Timestamp:
- Jan 9, 2014, 7:55:29 PM (10 years ago)
- 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'} 2 2 {combine_css path=$OAUTH_PATH|cat:'template/oauth_sprites.css'} 3 3 4 {footer_script} {literal}4 {footer_script} 5 5 jQuery("select.enable").change(function() { 6 6 var $top = $(this).closest("div.provider"); … … 20 20 21 21 jQuery("#close_help").click(function() { 22 jQuery("#help_container").animate({ "margin-right": "-550px"}, 'fast');22 jQuery("#help_container").animate({ "margin-right": "-550px" }, 'fast'); 23 23 return false; 24 24 }); … … 30 30 $("#help_container h5").html($top.find("h4").html()); 31 31 $("#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'); 33 33 return false; 34 34 }); 35 {/ literal}{/footer_script}35 {/footer_script} 36 36 37 37 … … 41 41 42 42 <div id="help_container"> 43 <a href="#" id="close_help" title="{'Close'| @translate}">×</a>43 <a href="#" id="close_help" title="{'Close'|translate}">×</a> 44 44 <h5></h5> 45 45 <div></div> … … 60 60 <td> 61 61 <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> 64 64 </select> 65 <br><a href="#" class="open-help">{'Help'| @translate}</a>65 <br><a href="#" class="open-help">{'Help'|translate}</a> 66 66 </td> 67 67 … … 85 85 {if $provider.new_app_link} 86 86 <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> 88 88 89 89 {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> 91 91 {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> 93 93 {/if} 94 94 … … 96 96 <li> 97 97 {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} 99 99 </li> 100 100 {/if} 101 101 102 102 {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> 104 104 {elseif $p=='Facebook'} 105 105 <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> 107 107 {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> 111 111 {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> 116 116 {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> 118 118 {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> 120 120 {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> 122 122 {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> 125 125 {/if} 126 126 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> 128 128 </ol> 129 129 {else} 130 <p>{'No registration required for OpenID based providers'| @translate}</p>130 <p>{'No registration required for OpenID based providers'|translate}</p> 131 131 {/if} 132 132 </div> … … 136 136 </fieldset> 137 137 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> 139 139 140 140 </form>
Note: See TracChangeset
for help on using the changeset viewer.