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 / setting / twitter.php

twitter.php in Gianism 4.4.0, at templates/setting/twitter.php

80 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) or die();
3 /** @var \Gianism\UI\Screen $this */
4 /** @var \Gianism\Service\Twitter $instance */
5 ?>
6
7 <h3><i class="lsf lsf-twitter"></i> Twitter</h3>
8 <table class="form-table">
9 <tbody>
10 <tr>
11 <th><label><?php printf( $this->_( 'Connect with %s' ), 'Twitter' ); ?></label></th>
12 <td>
13 <?php $this->switch_button( 'tw_enabled', $this->option->is_enabled( 'twitter'), 'tw_enabled' ) ?>
14 <label>
15 <p class="description">
16 <?php printf( __( 'You have to create %1$s App <a target="_blank" href="%2$s">here</a> to get required information.', 'wp-gianism' ), "Twitter", "https://dev.twitter.com/apps" ); ?>
17 <?php printf( __( 'See detail at <a href="%1$s">%2$s</a>.', 'wp-gianism' ), $this->setting_url( 'setup' ), __( 'How to set up', 'wp-gianism' ) ); ?>
18 </p>
19 </td>
20 </tr>
21 <tr>
22 <th><label for="tw_screen_name"><?php _e( 'Screen Name', 'wp-gianism' ); ?></label></th>
23 <td><input class="regular-text" type="text" name="tw_screen_name" id="tw_screen_name"
24 value="<?php echo esc_attr( $instance->tw_screen_name ) ?>"/></td>
25 </tr>
26 <tr>
27 <th><label for="tw_consumer_key"><?php _e( 'Consumer Key', 'wp-gianism' ); ?></label></th>
28 <td><input class="regular-text" type="text" name="tw_consumer_key" id="tw_consumer_key"
29 value="<?php echo esc_attr( $instance->tw_consumer_key ) ?>"/></td>
30 </tr>
31 <tr>
32 <th><label for="tw_consumer_secret"><?php _e( 'Consumer Secret', 'wp-gianism' ); ?></label></th>
33 <td><input class="regular-text" type="text" name="tw_consumer_secret" id="tw_consumer_secret"
34 value="<?php echo esc_attr( $instance->tw_consumer_secret ) ?>"/></td>
35 </tr>
36 <tr>
37 <th><label for="tw_access_token"><?php _e( 'Access Token', 'wp-gianism' ); ?></label></th>
38 <td><input class="regular-text" type="text" name="tw_access_token" id="tw_access_token"
39 value="<?php echo esc_attr( $instance->tw_access_token ) ?>"/></td>
40 </tr>
41 <tr>
42 <th><label for="tw_access_token_secret"><?php _e( 'Access token secret', 'wp-gianism' ); ?></label></th>
43 <td><input class="regular-text" type="text" name="tw_access_token_secret" id="tw_access_token_secret"
44 value="<?php echo esc_attr( $instance->tw_access_token_secret ) ?>"/></td>
45 </tr>
46 <tr>
47 <th><label for="ggl_redirect_uri"><?php _e( 'Redirect URI', 'wp-gianism' ); ?></label></th>
48 <td>
49 <p class="description">
50 <?php
51 $end_point = $instance->get_redirect_endpoint();
52 printf(
53 __( 'Please set %1$s to %2$s on <a target="_blank" href="%4$s">%3$s</a>.', 'wp-gianism' ),
54 __( 'Callback URL', 'wp-gianism' ),
55 '<code>' . $end_point . '</code>',
56 'Twitter Developers',
57 'https://dev.twitter.com/apps'
58 );
59 ?>
60 <a class="button" href="<?php echo esc_attr( $end_point ) ?>"
61 onclick="window.prompt('<?php _e( 'Please copy this URL.', 'wp-gianism' ) ?>', this.href); return false;"><?php _e( 'Copy', 'wp-gianism' ) ?></a>
62 </p>
63 </td>
64 </tr>
65 <tr>
66 <th><label><?php _e( 'Twitter bot by Gianism', 'wp-gianism' ); ?></label></th>
67 <td>
68 <?php $this->switch_button( 'tw_use_cron', $instance->tw_use_cron ) ?>
69 <p class="description">
70 <?php $this->new_from( '2.2' ) ?>
71 <?php printf( __( 'If enabled, you can make twitter bot which tweet at the time you specified. %1$s, %2$s, %3$s, %4$s, and %5$s are required.', 'wp-gianism' ),
72 __( 'Screen Name', 'wp-gianism' ), __( 'Consumer Key', 'wp-gianism' ), __( 'Consumer Secret', 'wp-gianism' ),
73 __( 'Access Token', 'wp-gianism' ), __( 'Access token secret', 'wp-gianism' ) ) ?>
74 </p>
75 </td>
76 </tr>
77 </tbody>
78 </table>
79 <?php submit_button(); ?>
80