forked from redyyu/wechat_subscribers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_settings.php
More file actions
executable file
·50 lines (45 loc) · 1.64 KB
/
_settings.php
File metadata and controls
executable file
·50 lines (45 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* Settings Page, It's required by WPWSLSettings Class only.
*
*/
$options=$this->options;
$fields=array('token');
foreach($fields as $field){
if(!isset($options[$field])){
$options[$field]='';
}
}
$interface_url=isset($options['token']) && $options['token']!=''?home_url().'/?'.$options['token']:'none';
//Load content
require_once( 'content.php' );
?>
<link href="<?php echo WPWSL_PLUGIN_URL;?>/css/style.css" rel="stylesheet">
<div class="wrap">
<h2><?php _e('WeChat Subscribers Lite','WPWSL')?></h2>
<form action="options.php" method="POST">
<?php settings_fields( $this->option_group );?>
<?php do_settings_sections( $this->page_slug ); ?>
<hr>
<h4><?php _e('Account Settings','WPWSL')?></h4>
<table class="form-table">
<tr valign="top">
<th scope="row"><label>Token</label></th>
<td>
<input type="text" size="30" name="<?php echo $this->option_name ;?>[token]" value="<?php echo $options['token'];?>" class="regular-text"/>
<p class="description"><?php _e('Access verification for your WeChat public platform. Only Latin letter, number, dash and underscore. 30 character limited.','WPWSL')?></p>
</td>
</tr>
<tr valign="top">
<th scope="row"><label>URL</label></th>
<td>
<h4><?php echo $interface_url;?></h4>
<p class="description"><?php _e('First input a TOKEN above and save the settings, then "Copy" and "Bind" this URL to WeChat Platform.','WPWSL')?></p>
</td>
</tr>
</table>
<?php submit_button(); ?>
</form>
<hr>
<?php echo $content['tips_content'];?>
</div>