PluginProbe
Gianism / 1.1
Gianism v1.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.php

setting.php in Gianism 1.1, at templates/setting.php

137 lines 6.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php do_action('admin_notice'); ?>
2 <?php /* @var $this WP_Gianism */ ?>
3 <div id="icon-users" class="icon32"><br></div>
4 <h2><?php $this->e('External Service'); ?></h2>
5 <form method="post">
6 <?php $this->nonce_field('option'); ?>
7 <h3 style="clear: left;">Facebook</h3>
8 <table class="form-table">
9 <tbody>
10 <tr>
11 <th><label><?php $this->e('Connect with Facebook');?></label>
12 <td>
13 <label>
14 <input type="radio" name="fb_enabled" value="1"<?php if($this->option['fb_enabled']) echo ' checked="checked"';?> />
15 <?php $this->e('Enable');?>
16 </label>
17 <label>
18 <input type="radio" name="fb_enabled" value="0"<?php if(!$this->option['fb_enabled']) echo ' checked="checked"';?> />
19 <?php $this->e('Disable');?>
20 </label>
21 <p class="description">
22 <?php printf($this->_('You have to create %1$s App <a target="_blank" href="%2$s">here</a> to get required infomation.'), "Facebook", "https://developers.facebook.com/apps"); ?>
23 </p>
24 </td>
25 </tr>
26 <tr>
27 <th><label for="fb_app_id"><?php $this->e('App ID');?></label>
28 <td>
29 <input type="text" class="regular-text" name="fb_app_id" id="fb_app_id" value="<?php echo $this->option['fb_app_id']?>" />
30 </td>
31 </tr>
32 <tr>
33 <th><label for="fb_app_secret"><?php $this->e('App Secret');?></label>
34 <td>
35 <input type="text" class="regular-text" name="fb_app_secret" id="fb_app_secret" value="<?php echo $this->option['fb_app_secret']?>" />
36 </td>
37 </tr>
38 <tr>
39 <th><label for="fb_fan_gate"><?php $this->e('Facebook Fan Gate');?></label>
40 <td>
41 <select name="fb_fan_gate" id="fb_fan_gate">
42 <option value="0"<?php if($this->option['fb_fan_gate'] == 0) echo ' selected="selected"';?>><?php $this->e('No Fan Gate'); ?></option>
43 <?php $query = new WP_Query('post_type=page&posts_per_page=0'); if($query->have_posts()): while($query->have_posts()): $query->the_post(); ?>
44 <option value="<?php the_ID(); ?>"<?php if($this->option['fb_fan_gate'] == get_the_ID()) echo ' selected="selected"';?>><?php the_title(); ?></option>
45 <?php endwhile; endif; wp_reset_query();?>
46 </select>
47 <p class="description">
48 <?php printf($this->_('If you have fan page and use WordPress page as it, specify it here. Some functions are available. For details, see <strong>%s</strong>'), dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."functions.php"); ?>
49 </p>
50 </td>
51 </tr>
52 </tbody>
53 </table>
54 <h3>Twitter</h3>
55 <table class="form-table">
56 <tbody>
57 <tr>
58 <th><label><?php printf($this->_('Connect with %s'), 'Twitter');?></label>
59 <td>
60 <label>
61 <input type="radio" name="tw_enabled" value="1"<?php if($this->option['tw_enabled']) echo ' checked="checked"';?> />
62 <?php $this->e('Enable');?>
63 </label>
64 <label>
65 <input type="radio" name="tw_enabled" value="0"<?php if(!$this->option['tw_enabled']) echo ' checked="checked"';?> />
66 <?php $this->e('Disable');?>
67 </label>
68 <p class="description">
69 <?php printf($this->_('You have to create %1$s App <a target="_blank" href="%2$s">here</a> to get required infomation.'), "Twitter", "https://dev.twitter.com/apps"); ?>
70 </p>
71 </td>
72 </tr>
73
74 <tr>
75 <th><label for="tw_screen_name"><?php $this->e('Screen Name'); ?></label></th>
76 <td><input class="regular-text" type="text" name="tw_screen_name" id="tw_screen_name" value="<?php echo $this->option['tw_screen_name']?>" /></td>
77 </tr>
78 <tr>
79 <th><label for="tw_consumer_key"><?php $this->e('Consumer Key'); ?></label></th>
80 <td><input class="regular-text" type="text" name="tw_consumer_key" id="tw_consumer_key" value="<?php echo $this->option['tw_consumer_key']?>" /></td>
81 </tr>
82 <tr>
83 <th><label for="tw_consumer_secret"><?php $this->e('Consumer Secret'); ?></label></th>
84 <td><input class="regular-text" type="text" name="tw_consumer_secret" id="tw_consumer_secret" value="<?php echo $this->option['tw_consumer_secret']?>" /></td>
85 </tr>
86 <tr>
87 <th><label for="tw_access_token"><?php $this->e('Access Token'); ?></label></th>
88 <td><input class="regular-text" type="text" name="tw_access_token" id="tw_access_token" value="<?php echo $this->option['tw_access_token']?>" /></td>
89 </tr>
90 <tr>
91 <th><label for="tw_access_token_secret"><?php $this->e('Access token secret'); ?></label></th>
92 <td><input class="regular-text" type="text" name="tw_access_token_secret" id="tw_access_token_secret" value="<?php echo $this->option['tw_access_token_secret']?>" /></td>
93 </tr>
94
95 </tbody>
96 </table>
97 <h3>Google</h3>
98 <table class="form-table">
99 <tbody>
100 <tr>
101 <th><label><?php printf($this->_('Connect with %s'), 'Google');?></label>
102 <td>
103 <label>
104 <input type="radio" name="ggl_enabled" value="1"<?php if($this->option['ggl_enabled']) echo ' checked="checked"';?> />
105 <?php $this->e('Enable');?>
106 </label>
107 <label>
108 <input type="radio" name="ggl_enabled" value="0"<?php if(!$this->option['ggl_enabled']) echo ' checked="checked"';?> />
109 <?php $this->e('Disable');?>
110 </label>
111 <p class="description">
112 <?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"); ?>
113 </p>
114 </td>
115 </tr>
116
117 <tr>
118 <th><label for="ggl_consumer_key"><?php $this->e('Client ID'); ?></label></th>
119 <td><input class="regular-text" type="text" name="ggl_consumer_key" id="ggl_consumer_key" value="<?php echo $this->option['ggl_consumer_key']?>" /></td>
120 </tr>
121 <tr>
122 <th><label for="ggl_consumer_secret"><?php $this->e('Client Secret'); ?></label></th>
123 <td><input class="regular-text" type="text" name="ggl_consumer_secret" id="ggl_consumer_secret" value="<?php echo $this->option['ggl_consumer_secret']?>" /></td>
124 </tr>
125 <tr>
126 <th><label for="ggl_redirect_uri"><?php $this->e('Redirect URI'); ?></label></th>
127 <td>
128 <input class="regular-text" type="text" name="ggl_redirect_uri" id="ggl_redirect_uri" value="<?php echo $this->option['ggl_redirect_uri']?>" />
129 <p class="description">
130 <?php printf($this->_('Please set %1$s to %2$s on %3$s. If you use SSL on login, replace it\'s http with https.'), $this->_('Redirect URI'), get_bloginfo('url'), "Google API Console"); ?>
131 </p>
132 </td>
133 </tr>
134 </tbody>
135 </table>
136 <?php submit_button(); ?>
137 </form>