Changeset 817807
- Timestamp:
- 12/09/2013 10:57:18 PM (11 years ago)
- Location:
- admin-column-view/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin-column-view/trunk/README.txt
r817536 r817807 4 4 Requires at least: 3.7 5 5 Tested up to: 3.7.1 6 Stable tag: 1.0. 26 Stable tag: 1.0. 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 == Changelog == 63 63 64 65 66 67 68 64 69 = 1.0.2 = 65 70 * (fix) Accept both expected params to `set_post_parent()` method. … … 73 78 == Upgrade Notice == 74 79 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 4 4 Plugin URI: http://crowdfavorite/wordpress/plugins/ 5 5 Description: 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. 26 Version: 1.0. 7 7 Author: Crowd Favorite 8 8 Author URI: http://crowdfavorite.com/ … … 111 111 112 112 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"; 114 115 } 115 116 116 117 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"; 118 120 } 119 121 -
admin-column-view/trunk/views/admin-page.php
r817135 r817807 19 19 margin-right: 2px; 20 20 min-height: 100px; 21 overflow: scroll;22 padding-bottom: 22px;21 overflow: ; 22 ; 23 23 width: 200px; 24 24 } … … 28 28 .cf-admin-column-view-column .add { 29 29 background-color: #f3f3f3; 30 30 31 display: block; 31 32 font-size: 95%; 32 33 height: 22px; 33 34 line-height: 22px; 35 34 36 position: absolute; 35 37 text-align: center; 36 38 text-decoration: none; 37 bottom: 22px;38 39 width: 200px; 39 40 -webkit-transition: all 0.5s ease-out; … … 52 53 overflow: hidden; 53 54 position: relative; 54 width: 200px;55 width: px; 55 56 } 56 57 .cf-admin-column-view-item.selected { … … 91 92 right: 0; 92 93 } 94 95 96 93 97 .cf-admin-column-view-item .hint { 94 98 cursor: auto; … … 101 105 .cf-admin-column-view-empty { 102 106 color: #999; 107 108 109 103 110 } 104 111 /* Indicate status */ … … 150 157 cfAdminColumnView.sizeWrap = function() { 151 158 var $ = jQuery, 152 height = $(window).height() - 200; 159 height = $(window).height() - 200 160 colContentHeight = 0; 153 161 154 162 $('.cf-admin-column-view-wrap').each(function() { 155 163 $(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 }); 157 176 }); 158 177 }; -
admin-column-view/trunk/views/column.php
r817128 r817807 45 45 46 46 ?> 47 47 48 <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> 48 49 </div>
Note: See TracChangeset
for help on using the changeset viewer.