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

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

55 lines 2.2 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\Google $instance */
5 ?>
6
7 <h3><i class="lsf lsf-google"></i> Google</h3>
8 <table class="form-table">
9 <tbody>
10 <tr>
11 <th><label><?php printf( $this->_( 'Connect with %s' ), 'Google' ); ?></label></th>
12 <td>
13 <?php $this->switch_button( 'ggl_enabled', $this->option->is_enabled( 'google' ), 1 ) ?>
14 <p class="description">
15 <?php printf( $this->_( 'You have to create %1$s App <a target="_blank" href="%2$s">here</a> to get required infomation.' ), "Google API Console", "https://code.google.com/apis/console" ); ?>
16 <?php printf( $this->_( 'See detail at <a href="%1$s">%2$s</a>.' ), $this->setting_url( 'setup' ), $this->_( 'How to set up' ) ); ?>
17 </p>
18 </td>
19 </tr>
20
21 <tr>
22 <th><label for="ggl_consumer_key"><?php $this->e( 'Client ID' ); ?></label></th>
23 <td><input class="regular-text" type="text" name="ggl_consumer_key" id="ggl_consumer_key"
24 value="<?php echo esc_attr( $instance->ggl_consumer_key ) ?>"/></td>
25 </tr>
26 <tr>
27 <th><label for="ggl_consumer_secret"><?php $this->e( 'Client Secret' ); ?></label></th>
28 <td><input class="regular-text" type="text" name="ggl_consumer_secret" id="ggl_consumer_secret"
29 value="<?php echo esc_attr( $instance->ggl_consumer_secret ) ?>"/></td>
30 </tr>
31 <tr>
32 <th><label for="ggl_redirect_uri"><?php $this->e( 'Redirect URI' ); ?></label></th>
33 <td>
34 <p class="description">
35 <?php
36 $end_point = home_url( '/google-auth/', ( $this->option->is_ssl_required() ? 'https' : 'http' ) );
37 printf(
38 $this->_( 'Please set %1$s to %2$s on <a target="_blank" href="%4$s">%3$s</a>.' ),
39 $this->_( 'Redirect URI' ),
40 '<code>' . $end_point . '</code>',
41 'Google API Console',
42 'https://code.google.com/apis/console'
43 );
44 ?>
45 <a class="button" href="<?php echo esc_attr( $end_point ) ?>"
46 onclick="window.prompt('<?php $this->e( 'Please copy this URL.' ) ?>', this.href); return false;"><?php $this->e( 'Copy' ) ?></a>
47 <br/>
48 <?php printf( $this->_( '<strong>Notice: </strong> Setting is changed on <code>Gianims v2.0</code>. You must set up again on Google API Console.' ) ) ?>
49 </p>
50 </td>
51 </tr>
52 </tbody>
53 </table>
54 <?php submit_button(); ?>
55