Changeset 1002724
- Timestamp:
- 10/06/2014 06:50:27 PM (11 years ago)
- Location:
- wordpress-social-login
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wordpress-social-login/tags/2.2.1/includes/admin/components/networks/wsl.components.networks.setup.php
r1002140 r1002724 197 197 <?php _wsl_e('<span style="color:#CB4B16;">Application</span> id and secret (also sometimes referred as <span style="color:#CB4B16;">Customer</span> key and secret or <span style="color:#CB4B16;">Client</span> id and secret) are what we call an application credentials', 'wordpress-social-login') ?>. 198 198 199 <?php echo sprintf( _wsl__( 'This application will link your website <code>%s</code> to <code>%s API</code> and these credentials are needed in order for <b>%s</b> users to access your website', 'wordpress-social-login'), site_url(), $provider_name, $provider_name ) ?>.199 <?php echo sprintf( _wsl__( 'This application will link your website <code>%s</code> to <code>%s API</code> and these credentials are needed in order for <b>%s</b> users to access your website', 'wordpress-social-login'), $_SERVER["SERVER_NAME"], $provider_name, $provider_name ) ?>. 200 200 <br /> 201 201 … … 214 214 215 215 <?php if ( $provider_id == "Google" ) : ?> 216 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('On the <b>Dashboard sidebar</b> click on <b>Project</b> then click <em style="color:#0147bb;"> Create Project</em>', 'wordpress-social-login') ?>.</p>216 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('On the <b>Dashboard sidebar</b> click on <b>Project</b> then click <em style="color:#0147bb;">“Create Project”</em>', 'wordpress-social-login') ?>.</p> 217 217 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Once the project is created. Select that project, then <b>APIs & auth</b> > <b>Consent screen</b> and fill the required information", 'wordpress-social-login') ?>.</p> 218 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("After that you will need to create an new application: <b>APIs & auth</b> > <b>Credentials</b> and then click <em style=\"color:#0147bb;\">Create new Client ID</em>", 'wordpress-social-login') ?>.</p> 218 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('Then <b>APIs & auth</b> > <b>APIs</b> and enable <em style="color:#0147bb;">“Google+ API”</em>. If you want to import the user contatcs enable <em style="color:#0147bb;">“Contacts API”</em> as well', 'wordpress-social-login') ?>.</p> 219 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("After that you will need to create an new application: <b>APIs & auth</b> > <b>Credentials</b> and then click <em style=\"color:#0147bb;\">“Create new Client ID”</em>", 'wordpress-social-login') ?>.</p> 219 220 </p> 220 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("On the <b> Create Client ID</b> popup", 'wordpress-social-login') ?> :</p>221 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("On the <b>“Create Client ID”</b> popup", 'wordpress-social-login') ?> :</p> 221 222 <ul style="margin-left:35px"> 222 <li> Select <em style="color:#0147bb;"><?php _wsl_e("Web application</em> as the application type", 'wordpress-social-login') ?>.</li>223 <li><?php _wsl_e("Put your website domain in the <b>Authorized JavaScript origins</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</li>223 <li><?php _wsl_e('Select <em style="color:#0147bb;">“Web application”</em> as your application type', 'wordpress-social-login') ?>.</li> 224 <li><?php _wsl_e("Put your website domain in the <b>Authorized JavaScript origins</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</li> 224 225 <li><?php _wsl_e("Provide this URL as the <b>Authorized redirect URI</b> for your application", 'wordpress-social-login') ?>: <br /><?php echo $provider_callback_url ?></li> 225 226 </ul> … … 228 229 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Fill out Display Name, Namespace, choose a category and click <b>Create App</b>", 'wordpress-social-login') ?>.</p> 229 230 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Go to Settings page and click on <b>Add Platform</b>. Choose website and enter in the new screen your website url in <b>App Domains</b> and <b>Site URL</b> fields", 'wordpress-social-login') ?>. 230 <?php _wsl_e("They should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</p>231 <?php _wsl_e("They should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</p> 231 232 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Go to the <b>Status & Review</b> page and choose <b>yes</b> where it says <b>Do you want to make this app and all its live features available to the general public?</b>", 'wordpress-social-login') ?>.</p> 232 233 <?php else: ?> … … 244 245 245 246 <?php if ( $provider_id == "Live" ) : ?> 246 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Put your website domain in the <b>Redirect Domain</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</p>247 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Put your website domain in the <b>Redirect Domain</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</p> 247 248 <?php endif; ?> 248 249 -
wordpress-social-login/trunk/includes/admin/components/networks/wsl.components.networks.setup.php
r1002140 r1002724 197 197 <?php _wsl_e('<span style="color:#CB4B16;">Application</span> id and secret (also sometimes referred as <span style="color:#CB4B16;">Customer</span> key and secret or <span style="color:#CB4B16;">Client</span> id and secret) are what we call an application credentials', 'wordpress-social-login') ?>. 198 198 199 <?php echo sprintf( _wsl__( 'This application will link your website <code>%s</code> to <code>%s API</code> and these credentials are needed in order for <b>%s</b> users to access your website', 'wordpress-social-login'), site_url(), $provider_name, $provider_name ) ?>.199 <?php echo sprintf( _wsl__( 'This application will link your website <code>%s</code> to <code>%s API</code> and these credentials are needed in order for <b>%s</b> users to access your website', 'wordpress-social-login'), $_SERVER["SERVER_NAME"], $provider_name, $provider_name ) ?>. 200 200 <br /> 201 201 … … 214 214 215 215 <?php if ( $provider_id == "Google" ) : ?> 216 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('On the <b>Dashboard sidebar</b> click on <b>Project</b> then click <em style="color:#0147bb;"> Create Project</em>', 'wordpress-social-login') ?>.</p>216 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('On the <b>Dashboard sidebar</b> click on <b>Project</b> then click <em style="color:#0147bb;">“Create Project”</em>', 'wordpress-social-login') ?>.</p> 217 217 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Once the project is created. Select that project, then <b>APIs & auth</b> > <b>Consent screen</b> and fill the required information", 'wordpress-social-login') ?>.</p> 218 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("After that you will need to create an new application: <b>APIs & auth</b> > <b>Credentials</b> and then click <em style=\"color:#0147bb;\">Create new Client ID</em>", 'wordpress-social-login') ?>.</p> 218 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e('Then <b>APIs & auth</b> > <b>APIs</b> and enable <em style="color:#0147bb;">“Google+ API”</em>. If you want to import the user contatcs enable <em style="color:#0147bb;">“Contacts API”</em> as well', 'wordpress-social-login') ?>.</p> 219 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("After that you will need to create an new application: <b>APIs & auth</b> > <b>Credentials</b> and then click <em style=\"color:#0147bb;\">“Create new Client ID”</em>", 'wordpress-social-login') ?>.</p> 219 220 </p> 220 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("On the <b> Create Client ID</b> popup", 'wordpress-social-login') ?> :</p>221 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("On the <b>“Create Client ID”</b> popup", 'wordpress-social-login') ?> :</p> 221 222 <ul style="margin-left:35px"> 222 <li> Select <em style="color:#0147bb;"><?php _wsl_e("Web application</em> as the application type", 'wordpress-social-login') ?>.</li>223 <li><?php _wsl_e("Put your website domain in the <b>Authorized JavaScript origins</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</li>223 <li><?php _wsl_e('Select <em style="color:#0147bb;">“Web application”</em> as your application type', 'wordpress-social-login') ?>.</li> 224 <li><?php _wsl_e("Put your website domain in the <b>Authorized JavaScript origins</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</li> 224 225 <li><?php _wsl_e("Provide this URL as the <b>Authorized redirect URI</b> for your application", 'wordpress-social-login') ?>: <br /><?php echo $provider_callback_url ?></li> 225 226 </ul> … … 228 229 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Fill out Display Name, Namespace, choose a category and click <b>Create App</b>", 'wordpress-social-login') ?>.</p> 229 230 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Go to Settings page and click on <b>Add Platform</b>. Choose website and enter in the new screen your website url in <b>App Domains</b> and <b>Site URL</b> fields", 'wordpress-social-login') ?>. 230 <?php _wsl_e("They should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</p>231 <?php _wsl_e("They should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</p> 231 232 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Go to the <b>Status & Review</b> page and choose <b>yes</b> where it says <b>Do you want to make this app and all its live features available to the general public?</b>", 'wordpress-social-login') ?>.</p> 232 233 <?php else: ?> … … 244 245 245 246 <?php if ( $provider_id == "Live" ) : ?> 246 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Put your website domain in the <b>Redirect Domain</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo site_url(); ?></em>.</p>247 <p><?php echo "<b>" . ++$setupsteps . "</b>." ?> <?php _wsl_e("Put your website domain in the <b>Redirect Domain</b> field. This should match with the current hostname", 'wordpress-social-login') ?> <em style="color:#CB4B16;"><?php echo $_SERVER["SERVER_NAME"]; ?></em>.</p> 247 248 <?php endif; ?> 248 249
Note: See TracChangeset
for help on using the changeset viewer.