Plugin Directory

Changeset 817807

Timestamp:
12/09/2013 10:57:18 PM (11 years ago)
Author:
alexkingorg
Message:

1.0.3

Location:
admin-column-view/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin-column-view/trunk/README.txt

    r817536 r817807  
    44Requires at least: 3.7
    55Tested up to: 3.7.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262== Changelog ==
    6363
     64
     65
     66
     67
     68
    6469= 1.0.2 =
    6570* (fix) Accept both expected params to `set_post_parent()` method.
     
    7378== Upgrade Notice ==
    7479
    75 = 1.0.2 =
    76 * (fix) Accept both expected params to `set_post_parent()` method.
    77 
    78 = 1.0.1 =
    79 * (fix) Proper spacing from page title.
     80= 1.0.3 =
     81* (fix) Use `$wpdb->posts` instead of hard-coded wp_posts in SQL query filters. (thanks deckerweb)
     82* (fix) Handle some errant scrollbar issues.
     83* (fix) Handle positioning of Edit link with/without scrollbars
  • admin-column-view/trunk/admin-column-view.php

    r817536 r817807  
    44Plugin URI: http://crowdfavorite/wordpress/plugins/
    55Description: Adds a columnar view of all your pages (and hierarchical custom post types), similar to the view found in the OS X Finder. Makes it much easier to manage sites with lots of pages. Drag and drop to re-order your pages.
    6 Version: 1.0.2
     6Version: 1.0.
    77Author: Crowd Favorite
    88Author URI: http://crowdfavorite.com/
     
    111111   
    112112    static function column_data_fields($fields) {
    113         return 'wp_posts.ID, wp_posts.post_title, wp_posts.post_type, wp_posts.menu_order, wp_posts.post_status, wp_posts.post_password';
     113        global $wpdb;
     114        return "$wpdb->posts.ID, $wpdb->posts.post_title, $wpdb->posts.post_type, $wpdb->posts.menu_order, $wpdb->posts.post_status, $wpdb->posts.post_password";
    114115    }
    115116   
    116117    static function column_data_orderby($fields) {
    117         return 'wp_posts.menu_order, wp_posts.post_title';
     118        global $wpdb;
     119        return "$wpdb->posts.menu_order, $wpdb->posts.post_title";
    118120    }
    119121   
  • admin-column-view/trunk/views/admin-page.php

    r817135 r817807  
    1919    margin-right: 2px;
    2020    min-height: 100px;
    21     overflow: scroll;
    22     padding-bottom: 22px;
     21    overflow: ;
     22    ;
    2323    width: 200px;
    2424}
     
    2828.cf-admin-column-view-column .add {
    2929    background-color: #f3f3f3;
     30
    3031    display: block;
    3132    font-size: 95%;
    3233    height: 22px;
    3334    line-height: 22px;
     35
    3436    position: absolute;
    3537    text-align: center;
    3638    text-decoration: none;
    37     bottom: 22px;
    3839    width: 200px;
    3940    -webkit-transition: all 0.5s ease-out;
     
    5253    overflow: hidden;
    5354    position: relative;
    54     width: 200px;
     55    width: px;
    5556}
    5657.cf-admin-column-view-item.selected {
     
    9192    right: 0;
    9293}
     94
     95
     96
    9397.cf-admin-column-view-item .hint {
    9498    cursor: auto;
     
    101105.cf-admin-column-view-empty {
    102106    color: #999;
     107
     108
     109
    103110}
    104111/* Indicate status */
     
    150157cfAdminColumnView.sizeWrap = function() {
    151158    var $ = jQuery,
    152         height = $(window).height() - 200;
     159        height = $(window).height() - 200
     160        colContentHeight = 0;
    153161
    154162    $('.cf-admin-column-view-wrap').each(function() {
    155163        $(this).css('height', height + 'px')
    156             .find('.cf-admin-column-view-column').css('height', height + 'px');
     164            .find('.cf-admin-column-view-column').each(function() {
     165                colContentHeight = 0;
     166                $(this).removeClass('scroll')
     167                    .find('.cf-admin-column-view-item').each(function() {
     168                    colContentHeight += $(this)[0].offsetHeight;
     169                });
     170                $(this).css('height', height + 'px');
     171                // add scroll class if needed
     172                if (colContentHeight > height) {
     173                    $(this).addClass('scroll');
     174                }
     175            });
    157176    });
    158177};
  • admin-column-view/trunk/views/column.php

    r817128 r817807  
    4545
    4646?>
     47
    4748    <a href="<?php echo esc_url(admin_url('post-new.php?post_type='.$column_data['post_type'].'&post_parent='.$column_data['parent_id'])); ?>" class="add"><?php echo $new_link_text; ?></a>
    4849</div>
Note: See TracChangeset for help on using the changeset viewer.