|
1 <?php |
|
2 |
|
3 $name = 'aktt_v3_accounts['.$account->id.'][settings][%s]'; |
|
4 |
|
5 ?> |
|
6 <div class="aktt-account"> |
|
7 <h3 style="background: url(<?php echo esc_url($account->social_acct->avatar()); ?>) left top no-repeat;"><?php echo esc_html($account->social_acct->name()); ?> <span class="aktt-account-disabled-notice"><?php _e('(disabled)', 'twitter-tools'); ?></span></h3> |
|
8 <div class="settings"> |
|
9 <p> |
|
10 <label for="<?php echo esc_attr(sprintf($name, 'enabled')); ?>"> |
|
11 <input type="checkbox" name="<?php echo esc_attr(sprintf($name, 'enabled')); ?>" id="<?php echo esc_attr(sprintf($name, 'enabled')); ?>" value="1" <?php checked('1', $account->option('enabled')); ?> class="enabled" /> |
|
12 <?php _e('Enable Twitter Tools', 'twitter-tools'); ?> |
|
13 </label> |
|
14 </p> |
|
15 <p class="depends-on-enabled"> |
|
16 <label for="<?php echo esc_attr(sprintf($name, 'create_posts')); ?>"> |
|
17 <input type="checkbox" name="<?php echo esc_attr(sprintf($name, 'create_posts')); ?>" id="<?php echo esc_attr(sprintf($name, 'create_posts')); ?>" value="1" <?php checked('1', $account->option('create_posts')); ?> class="create-posts" /> |
|
18 <?php _e('Create blog posts from tweets', 'twitter-tools'); ?> |
|
19 </label> |
|
20 </p> |
|
21 <fieldset class="depends-on-create-posts"> |
|
22 <h4><?php _e('Settings for blog posts', 'twitter-tools'); ?></h4> |
|
23 <p> |
|
24 <label class="left" for="<?php echo esc_attr(sprintf($name, 'blog_post_title')); ?>"><?php _e('Title prefix', 'twitter-tools'); ?></label> |
|
25 <input type="text" name="<?php echo esc_attr(sprintf($name, 'blog_post_title')); ?>" id="<?php echo esc_attr(sprintf($name, 'blog_post_title')); ?>" value="<?php echo esc_attr($account->option('blog_post_title')); ?>" /> <span class="help"><?php _e('(<b>Tweet:</b> = <b>Tweet:</b> This is my tweet...)', 'twitter-tools'); ?></span> |
|
26 </p> |
|
27 <p> |
|
28 <label class="left" for="<?php echo esc_attr(sprintf($name, 'post_author')); ?>"><?php _e('Author', 'twitter-tools'); ?></label> |
|
29 <?php |
|
30 wp_dropdown_users(array( |
|
31 'name' => sprintf($name, 'post_author'), |
|
32 'id' => sprintf($name, 'post_author'), |
|
33 'selected' => $account->option('post_author'), |
|
34 'who' => 'authors', |
|
35 )); |
|
36 ?> |
|
37 </p> |
|
38 <p> |
|
39 <label class="left" for="<?php echo esc_attr(sprintf($name, 'post_category')); ?>"><?php _e('Category', 'twitter-tools'); ?></label> |
|
40 <?php |
|
41 wp_dropdown_categories(array( |
|
42 'name' => sprintf($name, 'post_category'), |
|
43 'id' => sprintf($name, 'post_category'), |
|
44 'selected' => $account->option('post_category'), |
|
45 'hide_empty' => 0, |
|
46 'taxonomy' => 'category', |
|
47 )); |
|
48 ?> |
|
49 </p> |
|
50 <p> |
|
51 <label class="left" for="<?php echo esc_attr(sprintf($name, 'post_tags')); ?>"><?php _e('Tags', 'twitter-tools'); ?></label> |
|
52 <input type="text" class="type-ahead" data-tax="post_tag" name="<?php echo esc_attr(sprintf($name, 'post_tags')); ?>" id="<?php echo esc_attr(sprintf($name, 'post_tags')); ?>" value="<?php echo esc_attr($account->option('post_tags')); ?>" /> <span class="help"><?php _e('(comma separated)', 'twitter-tools'); ?></span> |
|
53 </p> |
|
54 <p> |
|
55 <label class="right" for="<?php echo esc_attr(sprintf($name, 'exclude_reply_tweets')); ?>"> |
|
56 <input type="checkbox" name="<?php echo esc_attr(sprintf($name, 'exclude_reply_tweets')); ?>" id="<?php echo esc_attr(sprintf($name, 'exclude_reply_tweets')); ?>" value="1" <?php checked('1', $account->option('exclude_reply_tweets')); ?> /> |
|
57 <?php _e('Don\'t create posts for reply tweets', 'twitter-tools'); ?> |
|
58 </label> |
|
59 </p> |
|
60 <p> |
|
61 <label class="right" for="<?php echo esc_attr(sprintf($name, 'exclude_retweets')); ?>"> |
|
62 <input type="checkbox" name="<?php echo esc_attr(sprintf($name, 'exclude_retweets')); ?>" id="<?php echo esc_attr(sprintf($name, 'exclude_retweets')); ?>" value="1" <?php checked('1', $account->option('exclude_retweets')); ?> /> |
|
63 <?php _e('Don\'t create posts for re-tweets (RTs)', 'twitter-tools'); ?> |
|
64 </label> |
|
65 </p> |
|
66 </fieldset> |
|
67 <?php |
|
68 |
|
69 do_action('aktt_admin_account_settings_form'); |
|
70 |
|
71 ?> |
|
72 </div> |
|
73 </div> |
|
74 |