| 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-twitter"></i> Twitter</h3> |
| 10 |
|
| 11 |
<p class="description"><?php $this->e( 'First of all, your twitter account is required. If you don\'t have one, create it at <a href="https://twitter.com">twitter</a>' ); ?></p> |
| 12 |
|
| 13 |
<h4>Step1. <?php $this->e( 'Create twitter application' ); ?></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( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), 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 |
|