Changeset 688106
- Timestamp:
- 03/27/2013 07:02:07 PM (13 years ago)
- Location:
- bulkpress/trunk
- Files:
-
- 5 edited
-
bulkpress.php (modified) (2 diffs)
-
lib/classes/Walker/class.TermsHierarchy.php (modified) (1 diff)
-
public/css/admin.css (modified) (3 diffs)
-
public/js/admin-terms-reorganize.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulkpress/trunk/bulkpress.php
r687505 r688106 3 3 Plugin Name: BulkPress 4 4 Description: Create and manage (restructure hierarchy) vast amounts of categories, terms of custom taxonomies, posts, pages and posts of custom post types in the blink of an eye! The easy-to-use interface allows you to quickly create both hierarchical and non-hierarchical posts and terms by just speciying the title and optionally the slug, allowing you to quickly populate your website with content. 5 Version: 0.2. 15 Version: 0.2.2 6 6 Author: Jesper van Engelen 7 7 Author URI: http://www.jepps.nl … … 10 10 11 11 // Plugin information 12 define('JWBP_VERSION', '0.2. 1');12 define('JWBP_VERSION', '0.2.2'); 13 13 14 14 // Paths -
bulkpress/trunk/lib/classes/Walker/class.TermsHierarchy.php
r685540 r688106 21 21 <div class="jwbp-drag"></div> 22 22 <div class="jwbp-content jwbp-content-normal"> 23 < span class="jwbp-title jwbp-term-title"><?php echo $term->name; ?></span>23 <a href="#" class="jwbp-title jwbp-term-title jwbp-expand" title="<?php esc_attr_e('Expand', 'bulkpress'); ?>"><?php echo $term->name; ?></a> 24 24 <?php if (false) : ?> 25 25 <div class="jwbp-item-overlay"> -
bulkpress/trunk/public/css/admin.css
r687505 r688106 5 5 .jwbp-clear { clear: both; } 6 6 7 /* Terms table */ 8 .jwbp-termshierarchy li > .jwbp-container { background: #F9F9F9; } 9 .jwbp-termshierarchy > li > .jwbp-container { background: #EAF2FA; } 10 .jwbp-termshierarchy > li > ul > li > .jwbp-container { background: #F9F9F9; } 11 .jwbp-termshierarchy > li > ul > li > ul > li > .jwbp-container { background: #F3F3F3; } 12 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > .jwbp-container { background: #EDEDED; } 13 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > .jwbp-container { background: #E7E7E7; } 14 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > .jwbp-container { background: #E1E1E1; } 15 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > .jwbp-container { background: #DADADA; } 16 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li .jwbp-container { background: #D4D4D4; } 17 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li .jwbp-container { background: #CECECE; } 18 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li .jwbp-container { background: #C8C8C8; } 19 .jwbp-termshierarchy > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li .jwbp-container { background: #C2C2C2; } 20 7 /* Terms hierarchy */ 21 8 .jwbp-termshierarchy { margin: 0; } 22 9 .jwbp-termshierarchy ul { margin-left: 16px; } 10 .jwbp-termshierarchy li { margin: 4px 0 0 0; padding: 0; list-style-type: none; } 11 .jwbp-termshierarchy .jwbp-container { display: block; position: relative; width: 100%; border: 1px solid #DFDFDF; background: #FCFCFC; } 12 .jwbp-termshierarchy .jwbp-container .jwbp-drag { position: absolute; display: block; width: 30px; height: 100%; top: -1px; left: -1px; border: 1px solid #DFDFDF; border-right-color: 1px solid #999999; cursor: move; background: url('../images/sort.png') no-repeat 0 center transparent; } 13 .jwbp-termshierarchy .jwbp-container .jwbp-drag:hover { background-color: #f2f2f2; background-position: -32px center; } 14 .jwbp-termshierarchy li .jwbp-content { position: relative; margin: 0 0 0 31px; } 15 .jwbp-termshierarchy li .jwbp-content .jwbp-title { text-decoration: none; } 16 .jwbp-termshierarchy li .jwbp-item-overlay { display: none; position: absolute; top: 0px; left: 0px; width: 100%; padding-left: 5px; background: url('../images/helper/opacity/FFFFFF-80.png') repeat 0 0 transparent; text-align: left; } 17 .jwbp-termshierarchy li .jwbp-item-overlay a { text-decoration: none; } 18 .jwbp-termshierarchy li .jwbp-item-overlay span.trash a { color: #bc0b0b; } 19 .jwbp-termshierarchy li .jwbp-item-overlay span.trash a:hover { color: #FF0000; } 20 .jwbp-termshierarchy li .jwbp-container:hover .jwbp-item-overlay { display: block; } 23 21 .jwbp-termshierarchy .jwbp-placeholder { outline: 1px dashed #95a8bc; } 24 .jwbp-termshierarchy .jwbp-container { position: relative; }25 .jwbp-termshierarchy .jwbp-container .jwbp-drag { position: absolute; display: block; width: 30px; height: 100%; top: -1px; left: -1px; border: 1px solid #DFDFDF; border-radius: 2px 0 0 2px; border-right-color: 1px solid #999999; cursor: move; background-color: #eff4f9; }26 22 27 .jwbp-expand { position: absolute; display: block; top: 0; right: 0; width: 80px; height: 100%; z-index: 10; } 28 .jwbp-expand span { display: block; float: right; width: 12px; height: 11px; margin: 11px 8px 11px 0; background: url('../images/expand.png') no-repeat 0 0 transparent; } 29 .jwbp-expand:hover span { background-position: -12px 0; } 30 .jwbp-display-cozy .jwbp-expand span { margin-top: 8px; } 31 .jwbp-display-compact .jwbp-expand span { margin-top: 5px; } 32 .mjs-nestedSortable-expanded > .jwbp-container .jwbp-expand span { background-position: -24px 0; } 33 .mjs-nestedSortable-expanded > .jwbp-container .jwbp-expand:hover span { background-position: -36px 0; } 23 /* Expand term children */ 24 .jwbp-container > .jwbp-expand { position: absolute; display: block; top: 0; right: 0; width: 80px; height: 100%; z-index: 10; } 25 .jwbp-container > .jwbp-expand span { display: block; float: right; width: 12px; height: 11px; margin: 11px 8px 11px 0; background: url('../images/expand.png') no-repeat 0 0 transparent; } 26 .jwbp-container > .jwbp-expand:hover span { background-position: -12px 0; } 27 .jwbp-display-cozy .jwbp-container > .jwbp-expand span { margin-top: 8px; } 28 .jwbp-display-compact .jwbp-container > .jwbp-expand span { margin-top: 5px; } 34 29 30 /* Nested sortable */ 31 .mjs-nestedSortable-expanded > .jwbp-container .jwbp-expand span { background-position: -24px 0; } 32 .mjs-nestedSortable-expanded > .jwbp-container .jwbp-expand:hover span { background-position: -36px 0; } 33 .jwbp-termshierarchy li.mjs-nestedSortable-collapsed > ul { display: none; } 34 .jwbp-termshierarchy li.mjs-nestedSortable-leaf .jwbp-content .jwbp-title { color: #888888; cursor: default; } 35 .mjs-nestedSortable-error { background: #fbe3e4; border-color: transparent; } 35 36 36 .jwbp-termshierarchy li.mjs-nestedSortable-branch > .jwbp-container { box-shadow: 1px 2px 3px #BFDFFF; } 37 38 37 /* Notices */ 39 38 #jwbp-notice-unsavedchanges { display: none; } 40 39 41 42 40 /* Forms */ 43 41 .jwbp-submit-top { margin: 0 0 12px 0; padding: 0; } 44 42 .jwbp-submit-bottom { margin: 12px 0 0 0; padding: 0; } 45 43 44 /* Display types list */ 45 .jwbp-listdisplay { margin: 0; padding: 0; } 46 .jwbp-listdisplay li { display: block; float: right; margin: 0 4px 0 0; padding: 0; list-style-type: none; } 47 .jwbp-listdisplay li a { display: block; width: 32px; height: 32px; text-indent: -9999px; background-repeat: no-repeat; background-color: transparent; } 48 .jwbp-listdisplay li a#jwbp-listdisplaytype-comfortable { background-image: url('../images/listdisplay-comfortable.png'); } 49 .jwbp-listdisplay li a#jwbp-listdisplaytype-cozy { background-image: url('../images/listdisplay-cozy.png'); } 50 .jwbp-listdisplay li a#jwbp-listdisplaytype-compact { background-image: url('../images/listdisplay-compact.png'); } 51 .jwbp-listdisplay li a:hover, 52 .jwbp-listdisplay li.current a { background-position: -32px 0; } 53 .jwbp-listdisplay li:first-child { margin-right: 0; } 46 54 55 /* Display types */ 56 .jwbp-display-comfortable li .jwbp-content { padding: 8px 30px 6px 7px; } 57 .jwbp-display-comfortable li .jwbp-item-overlay { height: 22px; padding-top: 8px; } 58 .jwbp-display-cozy li .jwbp-content { padding: 5px 30px 3px 5px; } 59 .jwbp-display-cozy li .jwbp-item-overlay { height: 19px; padding-top: 5px; } 60 .jwbp-display-compact li .jwbp-content { padding: 2px 30px 0px 3px; } 61 .jwbp-display-compact li .jwbp-item-overlay { height: 16px; padding-top: 2px; } 47 62 48 .jwbp-termshierarchy li { margin: 4px 0 0 0; padding: 0; list-style-type: none; } 49 .jwbp-termshierarchy li .jwbp-container { display: block; width: 100%; border: 1px solid #DFDFDF; border-radius: 2px; } 50 .jwbp-termshierarchy li .jwbp-content { position: relative; margin: 0 0 0 31px; } 51 .jwbp-display-comfortable li .jwbp-content { padding: 8px 30px 6px 7px; } 52 .jwbp-display-comfortable li .jwbp-item-overlay { height: 22px; padding-top: 8px; } 53 .jwbp-display-cozy li .jwbp-content { padding: 5px 30px 3px 5px; } 54 .jwbp-display-cozy li .jwbp-item-overlay { height: 19px; padding-top: 5px; } 55 .jwbp-display-compact li .jwbp-content { padding: 2px 30px 0px 3px; } 56 .jwbp-display-compact li .jwbp-item-overlay { height: 16px; padding-top: 2px; } 57 .jwbp-termshierarchy li .jwbp-item-overlay { display: none; position: absolute; top: 0px; left: 0px; width: 100%; padding-left: 5px; background: url('../images/helper/opacity/FFFFFF-80.png') repeat 0 0 transparent; text-align: left; } 58 .jwbp-termshierarchy li .jwbp-item-overlay a { text-decoration: none; } 59 .jwbp-termshierarchy li .jwbp-item-overlay span.trash a { color: #bc0b0b; } 60 .jwbp-termshierarchy li .jwbp-item-overlay span.trash a:hover { color: #FF0000; } 61 .jwbp-termshierarchy li .jwbp-container:hover .jwbp-item-overlay { display: block; } 62 /*.jwbp-termshierarchy li .jwbp-container:hover .jwbp-content { text-align: right; }*/ 63 .jwbp-termshierarchy li.ui-sortable-helper > .jwbp-content { font-weight: bold; } 64 .jwbp-termshierarchy li.mjs-nestedSortable-collapsed > ul { display: none; } 65 63 /* Future */ 66 64 .jwbp-termshierarchy li > .jwbp-container .jwbp-content-deleted { border-color: #f2f2f2; color: #b7b7b7; background-color: #FAFCFE; } 67 65 .jwbp-termshierarchy li > .jwbp-container .jwbp-content-deleted .jwbp-drag { border-color: #f2f2f2; background-color: #FBFDFE; } … … 82 80 .jwbp-termshierarchy li.jwbp-editing > .jwbp-container .jwbp-content-edit { display: block; } 83 81 84 .jwbp-listdisplay { margin: 0; padding: 0; } 85 .jwbp-listdisplay li { display: block; float: right; margin: 0 4px 0 0; padding: 0; list-style-type: none; } 86 .jwbp-listdisplay li a { display: block; width: 32px; height: 32px; text-indent: -9999px; background-repeat: no-repeat; background-color: transparent; } 87 .jwbp-listdisplay li a#jwbp-listdisplaytype-comfortable { background-image: url('../images/listdisplay-comfortable.png'); } 88 .jwbp-listdisplay li a#jwbp-listdisplaytype-cozy { background-image: url('../images/listdisplay-cozy.png'); } 89 .jwbp-listdisplay li a#jwbp-listdisplaytype-compact { background-image: url('../images/listdisplay-compact.png'); } 90 .jwbp-listdisplay li a:hover, 91 .jwbp-listdisplay li.current a { background-position: -32px 0; } 92 .jwbp-listdisplay li:first-child { margin-right: 0; } 93 94 /* Nestable sort jquery */ 95 .mjs-nestedSortable-error { background: #fbe3e4; border-color: transparent; } 96 97 /* Taxonomies */ 82 /* Add terms */ 98 83 .jwbp-addterms-terms td > div { margin-bottom: 10px; } 99 84 .jwbp-addterms-terms td > div > div { clear: both; } … … 106 91 .jwbp-addterms-terms td > div.description { clear: both; } 107 92 108 /* Posts */93 /* Add posts */ 109 94 .jwbp-addposts-posts td > div { margin-bottom: 10px; } 110 95 .jwbp-addposts-posts td > div > div { clear: both; } -
bulkpress/trunk/public/js/admin-terms-reorganize.js
r685540 r688106 11 11 12 12 if ($(this).find('li').length) { 13 if (!$(this). children('.jwbp-container').find('.jwbp-expand').length) {13 if (!$(this).find('> .jwbp-container > .jwbp-expand').length) { 14 14 $(this).children('.jwbp-container').prepend('<a href="#" class="jwbp-expand"><span></span></a>'); 15 16 $(this).find('.jwbp-expand').click(function() {17 $(this).closest('li').toggleClass('mjs-nestedSortable-collapsed').toggleClass('mjs-nestedSortable-expanded');18 });19 15 } 20 16 } 21 17 else { 22 $(this). children('.jwbp-container').find('.jwbp-expand').remove();18 $(this).find('> .jwbp-container > .jwbp-expand').remove(); 23 19 } 20 21 $(this).find('.jwbp-expand').unbind('click').click(function() { 22 $(this).closest('li').toggleClass('mjs-nestedSortable-collapsed').toggleClass('mjs-nestedSortable-expanded'); 23 24 return false; 25 }); 24 26 }); 25 27 }); -
bulkpress/trunk/readme.txt
r687505 r688106 7 7 Requires at least: 3.1 8 8 Tested up to: 3.5.1 9 Stable tag: 0.2. 19 Stable tag: 0.2.2 10 10 11 11 Easily add and manage multiple categories, pages, custom taxonomy terms and custom post type posts. Create and reorder terms in a blink, making the tedious process of managing vast amounts of posts and terms just a walk in the park. … … 54 54 == Changelog == 55 55 56 = 0.2.2 = 57 58 * Update terms hierarchy panel for increased usability 59 56 60 = 0.2.1 = 57 61
Note: See TracChangeset
for help on using the changeset viewer.