Changeset 8287

Show
Ignore:
Timestamp:
07/08/08 19:00:25 (5 months ago)
Author:
mdawaffe
Message:

crazyhorse: cats, tags, time changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/crazyhorse/wp-admin/edit-form-advanced.php

    r8286 r8287  
    5252<p id="jaxtag"><label class="hidden" for="newtag"><?php _e('Tags'); ?></label><input type="text" name="tags_input" class="tags-input" id="tags-input" size="40" tabindex="3" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /></p> 
    5353<div id="tagchecklist"></div> 
    54 <?php 
    55 
    56 add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'normal', 'core'); 
     54<p><a href='#'><?php _e( 'Choose from tags' ); ?></a></p> 
     55<?php 
     56
     57add_meta_box('tagsdiv', __('Tags'), 'post_tags_meta_box', 'post', 'side', 'core'); 
    5758 
    5859function post_categories_meta_box($post) { 
    5960?> 
     61<ul id="category-tabs"> 
     62    <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 
     63    <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 
     64</ul> 
     65 
     66<div id="categories-pop" class="ui-tabs-panel" style="display: none;"> 
     67    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 
     68        <?php $popular_ids = wp_popular_terms_checklist('category'); ?> 
     69    </ul> 
     70</div> 
     71 
     72<div id="categories-all" class="ui-tabs-panel"> 
     73    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 
     74        <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> 
     75    </ul> 
     76</div> 
     77 
    6078<div id="category-adder" class="wp-hidden-children"> 
    6179    <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 
     
    6987</div> 
    7088 
    71 <ul id="category-tabs"> 
    72     <li class="ui-tabs-selected"><a href="#categories-all" tabindex="3"><?php _e( 'All Categories' ); ?></a></li> 
    73     <li class="wp-no-js-hidden"><a href="#categories-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li> 
    74 </ul> 
    75  
    76 <div id="categories-pop" class="ui-tabs-panel" style="display: none;"> 
    77     <ul id="categorychecklist-pop" class="categorychecklist form-no-clear" > 
    78         <?php $popular_ids = wp_popular_terms_checklist('category'); ?> 
    79     </ul> 
    80 </div> 
    81  
    82 <div id="categories-all" class="ui-tabs-panel"> 
    83     <ul id="categorychecklist" class="list:category categorychecklist form-no-clear"> 
    84         <?php wp_category_checklist($post->ID, false, false, $popular_ids) ?> 
    85     </ul> 
    86 </div> 
    87 <?php 
    88 
    89 add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'normal', 'core'); 
     89<?php 
     90
     91add_meta_box('categorydiv', __('Categories'), 'post_categories_meta_box', 'post', 'side', 'core'); 
    9092 
    9193function post_excerpt_meta_box($post) { 
     
    312314            if ( '0000-00-00 00:00:00' == $post->post_date ) { // draft, 1 or more saves, no date specified 
    313315                $stamp = __( 'Timestamp: <span class="timestamp">Today, %1$s%3$s</span>' ); 
     316                $date = mysql2date(get_option('date_format'), current_time('mysql')); 
     317                $time = mysql2date(get_option('time_format'), current_time('mysql')); 
     318            } else { 
     319                $date = mysql2date(get_option('date_format'), $post->post_date); 
     320                $time = mysql2date(get_option('time_format'), $post->post_date); 
    314321            } 
    315             $date = mysql2date(get_option('date_format'), $post->post_date); 
    316             $time = mysql2date(get_option('time_format'), $post->post_date); 
    317322        } else { // draft (no saves, and thus no date specified) 
    318323            $stamp = __( 'Timestamp: <span class="timestamp">Today, %1$s%3$s</span>' ); 
  • branches/crazyhorse/wp-admin/includes/template.php

    r8286 r8287  
    11901190} 
    11911191 
     1192// crazyhorse - this can be made simpler 
    11921193function do_meta_boxes($page, $context, $object) { 
    11931194    global $wp_meta_boxes; 
  • branches/crazyhorse/wp-admin/wp-admin.css

    r8284 r8287  
    972972} 
    973973 
    974 #side-info-column input#post_password, #side-info-column #tagsdiv #newtag
     974#side-info-column input#post_password
    975975    width: 94% 
     976} 
     977 
     978#side-info-column #tagsdiv #newtag { 
     979    width: 68%; 
    976980} 
    977981 
     
    12291233} 
    12301234 
     1235#side-info-column { 
     1236    height: 100%; 
     1237} 
     1238 
    12311239#side-info-column #side-sortables { 
    1232     min-height: 100px
     1240    height: 100%
    12331241} 
    12341242 
     
    12721280} 
    12731281 
    1274 #side-info-column #category-add input, #category-add select { 
    1275     width: 40%; 
     1282#side-info-column #category-add input { 
     1283    width: 94%; 
     1284
     1285 
     1286#side-info-column #category-add select { 
     1287    width: 100%; 
    12761288} 
    12771289 
     
    12911303#post-body ul#category-tabs li { 
    12921304    padding: 8px; 
    1293 } 
    1294  
    1295 #side-info-column ul#category-tabs li { 
    1296     display: inline; 
    1297     padding: 5px 5px 2px; 
    12981305} 
    12991306 
     
    13091316} 
    13101317 
    1311 #side-info-column ul#category-tabs li.ui-tabs-selected { 
    1312     -moz-border-radius-topleft: 3px; 
    1313     -khtml-border-top-left-radius: 3px; 
    1314     -webkit-border-top-left-radius: 3px; 
    1315     border-top-left-radius: 3px; 
    1316     -moz-border-radius-topright: 3px; 
    1317     -khtml-border-top-right-radius: 3px; 
    1318     -webkit-border-top-right-radius: 3px; 
    1319     border-top-right-radius: 3px; 
    1320     border: 1px solid; 
    1321     border-bottom: none; 
    1322     background-color: #fff; 
    1323 } 
    1324  
    13251318#post-body ul#category-tabs li.ui-tabs-selected a { 
    13261319    color: #333; 
     
    13411334} 
    13421335 
    1343 #side-info-column div.ui-tabs-panel
    1344     border: 1px solid
     1336#side-info-column #category-tabs, #side-info-column #categories-pop
     1337    display: none
    13451338} 
    13461339