| @@ -83,47 +83,20 @@ | ||
| 83 | 83 | <?php |
| 84 | 84 | endif; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | -function fwp_tags_box ($tags, $object) { | |
| 87 | +function fwp_tags_box ($tags) { | |
| 88 | 88 | if (!is_array($tags)) : $tags = array(); endif; |
| 89 | - | |
| 90 | - $desc = "<p style=\"font-size:smaller;font-style:bold;margin:0\">Tag $object as...</p>"; | |
| 91 | - | |
| 92 | - if (fwp_test_wp_version(FWP_SCHEMA_28)) : // WordPress 2.8+ | |
| 93 | - fwp_option_box_opener(__('Tags'), 'tagsdiv', 'postbox'); | |
| 94 | 89 | ?> |
| 95 | - <?php print $desc; ?> | |
| 96 | - <div class="tagsdiv" id="post_tag"> | |
| 97 | - <div class="jaxtag"> | |
| 98 | - <div class="nojs-tags hide-if-js"> | |
| 99 | - <p><?php _e('Add or remove tags'); ?></p> | |
| 100 | - <textarea name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]"><?php echo implode(",", $tags); ?></textarea> | |
| 101 | - </div> | |
| 102 | - | |
| 103 | - <span class="ajaxtag hide-if-no-js"> | |
| 104 | - <label class="screen-reader-text" for="new-tag-post_tag"><?php _e('Tags'); ?></label> | |
| 105 | - <input type="text" id="new-tag-post_tag" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php esc_attr_e('Add new tag'); ?>" /> | |
| 106 | - <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /> | |
| 107 | - </span> | |
| 108 | - </div> | |
| 109 | - <p class="howto"><?php echo __('Separate tags with commas.'); ?></p> | |
| 110 | - <div class="tagchecklist"></div> | |
| 111 | - </div> | |
| 112 | - <p class="tagcloud-link hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php printf( __('Choose from the most used tags in %s'), 'Post Tags'); ?></a></p> | |
| 113 | - </div> | |
| 114 | - </div> | |
| 90 | +<div id="tagsdiv" class="postbox"> | |
| 91 | + <h3><?php _e('Tags') ?></h3> | |
| 92 | + <p style="font-size:smaller;font-style:bold;margin:0">Place <?php print $object; ?> under...</p> | |
| 93 | + <div class="inside"> | |
| 94 | + <p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo implode(",", $tags); ?>" /></p> | |
| 95 | + <div id="tagchecklist"></div> | |
| 96 | + </div> | |
| 97 | +</div> | |
| 115 | 98 | <?php |
| 116 | - else : | |
| 117 | - fwp_option_box_opener(__('Tags'), 'tagsdiv', 'postbox'); | |
| 118 | -?> | |
| 119 | - <?php print $desc; ?> | |
| 120 | - <p id="jaxtag"><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo implode(",", $tags); ?>" /></p> | |
| 121 | - <div id="tagchecklist"></div> | |
| 122 | - </div> | |
| 123 | - </div> | |
| 124 | -<?php | |
| 125 | - endif; | |
| 126 | 99 | } |
| 127 | 100 | |
| 128 | 101 | function fwp_category_box ($checked, $object, $tags = array()) { |
| 129 | 102 | global $wp_db_version; |