PluginProbe
Gianism / trunk
Gianism vtrunk
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 / twitter.php

twitter.php in Gianism trunk, at templates/setup/twitter.php

72 lines 3.1 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>X(Twitter)</h3>
10
11 <p class="description"><?php $this->e( 'First of all, your X account is required. If you don\'t have one, create it at <a href="https://x.com">X</a>' ); ?></p>
12
13 <h4>Step1. <?php esc_html_e( 'Create twitter application', 'wp-gianism' ); ?></h4>
14
15 <p><?php $this->e( 'Go to <a href="https://dev.twitter.com">Twitter Developer</a> and sign in with your twitter account. Then go to <a href="https://dev.twitter.com/apps">My Applications</a> and click <code>Create new application</code>.' ); ?></p>
16
17 <p><?php sprintf( $this->_( 'In Application detail section, enter application name(same as <code>%s</code> recommended), description and Website. If you are not bot, enter reCaptha and creation flow will be done :)' ), get_bloginfo( 'name' ) ); ?></p>
18
19 <p><?php $this->e( 'Now you have new application. Go to your new app\'s detail page. On <code>Settings</code> tab, various information can be editted. Besides the required informations, you had better to upload Application icon which will be displayed on authentication screen.' ); ?></p>
20
21
22 <table class="gianism-example-table">
23 <tr>
24 <th>Name</th>
25 <td>
26 <?php $this->e( 'App name. Blog name is recommended. User will see this name on authentication screen.' ); ?>
27 <br/>
28 <?php printf( __( '<strong>e.g.</strong> <code>%s</code>', 'wp-gianism' ), get_bloginfo( 'name' ) ); ?>
29 </td>
30 </tr>
31 <tr>
32 <th>Description</th>
33 <td>
34 <?php $this->e( 'Description about your site. It is recommended explaining your user why you request authentication.' ); ?>
35 <br/>
36 </td>
37 </tr>
38 <tr>
39 <th>Website</th>
40 <td>
41 <?php $this->e( 'Website\'s URL. Use this blog\'s URL' ); ?><br/>
42 <?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), home_url( '/', 'http' ) ); ?>
43 </td>
44 </tr>
45 <tr>
46 <th>Callback URL</th>
47 <td>
48 <?php $this->e( 'The URL where user will be redirect after authentication. If you use other application which use twitter OAuth, leave this blank.' ); ?>
49 <br/>
50 <?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), home_url( '/twitter/', $this->option->is_ssl_required() ? 'https' : 'http' ) ); ?>
51 </td>
52 </tr>
53 </table>
54
55 <p><?php $this->e( 'Take care of application access type. Default is <code>readonly</code> and it\'s sufficient. Users tend to avoid strong access like <code>Read and Write</code>.' ); ?></p>
56
57 <p><?php $this->e( 'Now you have finished setting application up.' ); ?></p>
58
59 <h4>Step2. <?php $this->e( 'Enter app information' ); ?></h4>
60
61 <p><?php $this->e( 'Gianism requires 5 information. Go to <a href="https://dev.twitter.com/apps">your application\'s detail page</a> and click <code>OAuth tools</code> tab. There, you can get 4 information below: ' ); ?></p>
62
63 <ol>
64 <li>Consumer key</li>
65 <li>Consumer secret</li>
66 <li>Access token</li>
67 <li>Access token secret</li>
68 </ol>
69
70 <p><?php printf( $this->_( 'Besides above, your twitter screen name will be required. Now please enter these credentials on <a href="%s">Setting page</a>.' ), $this->setting_url() ); ?></p>
71
72