PluginProbe
Gianism / 3.0.1
Gianism v3.0.1
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / templates / setup / google.php

google.php in Gianism 3.0.1, at templates/setup/google.php

54 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) or die();
4
5 /** @var \Gianism\UI\SettingScreen $this */
6 /** @var \Gianism\Service\Google $instance */
7
8 ?>
9 <h3><i class="lsf lsf-google"></i> Google</h3>
10
11 <p class="description"><?php $this->e( 'Google API system is very complex, but don\'t be afraid. Anyway if you don\'t have Google account, go to <a hreF="https://www.google.com/accounts/NewAccount">Create Google account</a> and get it.' ); ?></p>
12
13 <h4>Step1. <?php $this->e( 'Create new Project' ); ?></h4>
14
15 <p><?php $this->e( 'Go to <a href="https://cloud.google.com/console/project">Google API Console &gt; Projects</a> and click <code>Create Project</code>. SMS verification will be required. After finishing, click your new project\'s name and go setting page.' ); ?></p>
16
17 <p><?php $this->e( 'Now, On project page, clicking <code>API &amp; OAuth</code> menu in sidebar, then you are on <code>APIs</code> page which will enable various APIs one by one. Turn Google+ API <code>ON</code>.' ); ?></p>
18
19 <p class="notice">
20 <?php $this->e( 'Google API Console is too simple but values to be set are not simple, so you will be easily loose yourself. Be care of where you are.' ) ?>
21 </p>
22
23 <p><?php $this->_( 'Then, go to <code>Credentials</code> below <code>API &amp; auth</code> and click <code>CREATE NEW CLIENT ID</code>. Enter below:' ) ?></p>
24
25 <table class="gianism-example-table">
26 <tr>
27 <th>Application type</th>
28 <td>
29 <?php printf( $this->_( 'Select <code>%s</code>.' ), 'Web application' ); ?><br/>
30 </td>
31 </tr>
32 <tr>
33 <th>Authorized Javascript origin</th>
34 <td>
35 <code><?php echo home_url( '/', 'http' ) ?></code><br/>
36 <code><?php echo home_url( '/', 'https' ) ?></code>
37 </td>
38 </tr>
39 <tr>
40 <th>Authorized redirect URI</th>
41 <td>
42 <code><?php echo home_url( '/google-auth/', $this->option->is_ssl_required() ? 'https' : 'http' ) ?></code>
43 </td>
44 </tr>
45 </table>
46
47 <p><?php $this->e( 'There you get <code>Client ID for web application</code> section, which provides <code>Client ID</code> and <code>Client secret</code>.' ) ?></p>
48
49 <p><?php printf( $this->_( 'Finally, you must set up your application. Go to <code>Consent screen</code> below <code>APIs &amp; oauth</code>, and change Product name to your own. <code>%s</code> is recommended.' ), get_bloginfo( 'name' ) ) ?></p>
50
51 <h4>Step2. <?php $this->e( 'Enter API Information' ); ?></h4>
52
53 <p><?php printf( $this->_( 'Input and save 2 information(Client ID and Client Secret) on <a href="%s">WordPress admin screen</a>.' ), $this->setting_url() ); ?></p>
54