Make WordPress Core


Ignore:
Timestamp:
10/25/2008 08:01:37 AM (15 years ago)
Author:
azaozz
Message:

2 column Tags page, needs more styling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r9328 r9339  
    155155<br class="clear" />
    156156
     157<div id="col-container">
     158
     159<div id="col-right">
     160<div class="col-wrap">
    157161<form id="posts-filter" action="" method="get">
    158162<div class="tablenav">
    159 
    160163<?php
    161164$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
     
    234237<br class="clear" />
    235238</form>
    236 
    237 </div>
    238 
    239 <?php if ( current_user_can('manage_categories') ) : ?>
    240 
    241 <br />
    242 <?php include('edit-tag-form.php'); ?>
     239</div>
     240</div><!-- /col-right -->
     241
     242<div id="col-left">
     243<div class="col-wrap">
     244<?php if ( current_user_can('manage_categories') ) {
     245    do_action('add_tag_form_pre', $tag); ?>
     246
     247<h3><?php _e('Add a New Tag'); ?></h3>
     248<div id="ajax-response"></div>
     249<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">
     250<input type="hidden" name="action" value="addtag" />
     251<input type="hidden" name="tag_ID" value="<?php echo $tag->term_id ?>" />
     252<?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-tag'); ?>
     253
     254<div class="form-wrap">
     255<div class="form-field form-required">
     256    <label for="name"><?php _e('Tag name') ?></label>
     257    <input name="name" id="name" type="text" value="<?php if ( isset( $tag->name ) ) echo attribute_escape($tag->name); ?>" size="40" aria-required="true" />
     258    <p><?php _e('The name is how the tag appears on your site.'); ?></p>
     259</div>
     260
     261<div class="form-field">
     262    <label for="slug"><?php _e('Tag slug') ?></label>
     263    <input name="slug" id="slug" type="text" value="<?php if ( isset( $tag->slug ) ) echo attribute_escape(apply_filters('editable_slug', $tag->slug)); ?>" size="40" />
     264    <p><?php _e('The &#8220;slug&#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?></p>
     265</div></div>
     266
     267<p class="submit"><input type="submit" class="button" name="submit" value="<?php _e('Add Tag'); ?>" /></p>
     268<?php
     269do_action('edit_tag_form', $tag);
     270
     271} ?>
     272</form>
     273
     274<div class="tagcloud">
     275<h3><?php _e('Popular Tags'); ?></h3>
     276<?php wp_tag_cloud(); ?>
     277</div>
     278
     279</div>
     280</div><!-- /col-left -->
     281
     282</div><!-- /col-container -->
     283</div><!-- /wrap -->
    243284<?php inline_edit_term_row('tag'); ?>
    244285
    245 <?php endif; ?>
    246 
    247286<?php
    248287break;
Note: See TracChangeset for help on using the changeset viewer.