PluginProbe
Gianism / 4.4.0
Gianism v4.4.0
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 / instagram.php

instagram.php in Gianism 4.4.0, at templates/setup/instagram.php

59 lines 2.2 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\Instagram $instance */
7
8 ?>
9
10 <h3><i class="lsf lsf-instagram"></i> Instagram</h3>
11
12 <p class="description"><?php $this->e( 'First of all, Instagram account is required.' ) ?>
13
14 <h4>Step1. <?php $this->e( 'Create new Project' ); ?></h4>
15
16 <p><?php $this->e( 'Go to <a href="https://www.instagram.com/developer/">Instagram developer</a> and click <code>Manage Clients</code>.' ); ?></p>
17
18 <p><?php $this->e( 'Then register new client. Enter required information.' ); ?></p>
19
20
21 <table class="gianism-example-table">
22 <tr>
23 <th>Application Name</th>
24 <td>
25 <?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), get_bloginfo( 'name' ) ); ?>
26 </td>
27 </tr>
28 <tr>
29 <th>Description</th>
30 <td>
31 <?php $this->e( 'Write what this app will do. This information will be displayed to user.' ); ?>
32 <br/>
33 </td>
34 </tr>
35 <tr>
36 <th>Website</th>
37 <td>
38 <?php $this->e( 'Website\'s URL. Use this blog\'s URL' ); ?><br/>
39 <?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), home_url( '/' ) ); ?>
40 </td>
41 </tr>
42 <tr>
43 <th>Valid redirect URIs</th>
44 <td>
45 <?php $this->e( 'The URL where user will be redirected after authentication.' ); ?>
46 <br/>
47 <?php printf( $this->_( '<strong>e.g.</strong> <code>%s</code>' ), home_url( "/{$instance->url_prefix}/", $this->option->is_ssl_required() ? 'https' : 'http' ) ); ?>
48 </td>
49 </tr>
50 </table>
51
52 <p><?php printf( $this->_( 'Now you can get client\'s credentials. Save it on <a href="%s">setting page</a>.' ), $this->setting_url( 'setting' ) ) ?></p>
53
54 <h4>Step2. <?php $this->e( 'Get out of sandbox' ); ?></h4>
55
56 <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>
57
58 <p><?php printf( $this->_( 'By default, any instagram client is inside sandbox. This means that the instagram account which can log in to your site is just yours! So, to use it in production environment, you have to pass <a href="%s">Permissions Review</a>. If you just need login, <code>basic</code> permission satisfies.' ), 'https://www.instagram.com/developer/review/' ); ?></p>
59