PluginProbe
FeedWordPress / 2010.0127
FeedWordPress v2010.0127
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | admin-ui.php +31 -3 2009.11112010.0127 View file →
@@ -388,12 +388,35 @@
388 388 if (!is_array($tags)) : $tags = array(); endif;
389 389
390 390 $desc = "<p style=\"font-size:smaller;font-style:bold;margin:0\">Tag $object as...</p>";
391 391
392 - if (fwp_test_wp_version(FWP_SCHEMA_28)) : // WordPress 2.8+
392 + if (fwp_test_wp_version(FWP_SCHEMA_29)) : // WordPress 2.9+
393 + print $desc;
394 + $tax_name = 'post_tag';
395 + $helps = __('Separate tags with commas.');
396 + $box['title'] = __('Tags');
397 + ?>
398 + <div class="tagsdiv" id="<?php echo $tax_name; ?>">
399 + <div class="jaxtag">
400 + <div class="nojs-tags hide-if-js">
401 + <p><?php _e('Add or remove tags'); ?></p>
402 + <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo esc_attr(implode(",", $tags)); ?></textarea></div>
403 +
404 + <div class="ajaxtag hide-if-no-js">
405 + <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
406 + <div class="taghint"><?php _e('Add new tag'); ?></div>
407 + <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" />
408 + <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" />
409 + </div></div>
410 + <p class="howto"><?php echo $helps; ?></p>
411 + <div class="tagchecklist"></div>
412 + </div>
413 + <p class="hide-if-no-js"><a href="#titlediv" class="tagcloud-link" id="link-<?php echo $tax_name; ?>"><?php printf( __('Choose from the most used tags in %s'), $box['title'] ); ?></a></p>
414 +<?php
415 + elseif (fwp_test_wp_version(FWP_SCHEMA_28)) : // WordPress 2.8+
393 416 ?>
394 - <?php print $desc; ?>
395 - <div class="tagsdiv" id="post_tag">
417 + <?php print $desc; ?>
418 + <div class="tagsdiv" id="post_tag">
396 419 <div class="jaxtag">
397 420 <div class="nojs-tags hide-if-js">
398 421 <p><?php _e('Add or remove tags'); ?></p>
399 422 <textarea name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]"><?php echo implode(",", $tags); ?></textarea>
@@ -580,8 +603,13 @@
580 603 /*static*/ function fix_toggles_js ($context) {
581 604 ?>
582 605 <script type="text/javascript">
583 606 jQuery(document).ready( function($) {
607 + <?php if (FeedWordPressCompatibility::test_version(FWP_SCHEMA_29)) : ?>
608 + if ( $('#post_tag').length ) {
609 + tagBox.init();
610 + }
611 + <?php endif; ?>
584 612 <?php if (FeedWordPressCompatibility::test_version(FWP_SCHEMA_25, FWP_SCHEMA_27)) : ?>
585 613 // In case someone got here first...
586 614 jQuery('.postbox h3').unbind('click');
587 615