Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager - Version 2.2.7

Version Description

Better folder drag and drop

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager
Version 2.2.7
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.7

assets/css/design.css CHANGED
@@ -239,6 +239,7 @@ button#wcp-save-folder {
239
  cursor: move;
240
  left: 5px;
241
  top: 2px;
 
242
  }
243
  .route.active-item > span.ui-icon {
244
  background: #008ec2;
@@ -255,10 +256,22 @@ button#wcp-save-folder {
255
  .wcp-parent.active > i.fa-folder:before {
256
  content: "\f07c";
257
  }
 
 
 
 
 
 
258
  .wcp-container .route .title:hover {
259
  background: #dfdfdf;
260
  cursor: pointer;
261
  }
 
 
 
 
 
 
262
  body.no-hover-css .wcp-container .route .title:hover {
263
  background: transparent;
264
  }
239
  cursor: move;
240
  left: 5px;
241
  top: 2px;
242
+ height: 26px;
243
  }
244
  .route.active-item > span.ui-icon {
245
  background: #008ec2;
256
  .wcp-parent.active > i.fa-folder:before {
257
  content: "\f07c";
258
  }
259
+ .wcp-container .route .title img {
260
+ display: none;
261
+ width: 14px;
262
+ height: 14px;
263
+ margin: 5px auto 0;
264
+ }
265
  .wcp-container .route .title:hover {
266
  background: #dfdfdf;
267
  cursor: pointer;
268
  }
269
+ .wcp-container .route .title:hover img {
270
+ display: block;
271
+ }
272
+ .wcp-container .route .title:hover .ui-icon i {
273
+ display: none;
274
+ }
275
  body.no-hover-css .wcp-container .route .title:hover {
276
  background: transparent;
277
  }
assets/images/move-option.png ADDED
Binary file
folders.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
- * Version: 2.2.6
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  */
@@ -15,7 +15,7 @@ define('WCP_FOLDER', 'folders');
15
  define('WCP_FOLDER_VAR', 'folders_settings');
16
  define("WCP_DS", DIRECTORY_SEPARATOR);
17
  define('WCP_FOLDER_URL',plugin_dir_url(__FILE__));
18
- define('WCP_FOLDER_VERSION',"2.2.6");
19
 
20
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
21
  register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Version: 2.2.7
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  */
15
  define('WCP_FOLDER_VAR', 'folders_settings');
16
  define("WCP_DS", DIRECTORY_SEPARATOR);
17
  define('WCP_FOLDER_URL',plugin_dir_url(__FILE__));
18
+ define('WCP_FOLDER_VERSION',"2.2.7");
19
 
20
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
21
  register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
includes/folders.class.php CHANGED
@@ -1479,7 +1479,7 @@ class WCP_Folders
1479
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$result['term_id']);
1480
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$result['term_id']);
1481
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$result['term_id']);
1482
- $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$result['term_id']}' class='ui-state-default route new-folders' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title is-new-item' id='title_{$result['term_id']}'><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
1483
  $string .= "</ul></li>";
1484
  $response['term_data'] = $string;
1485
  $response['parent_id'] = $parent;
1479
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$result['term_id']);
1480
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$result['term_id']);
1481
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$result['term_id']);
1482
+ $string = "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$result['term_id']}' class='ui-state-default route new-folders' id='wcp_folder_{$result['term_id']}' data-folder-id='{$result['term_id']}'><h3 class='title is-new-item' id='title_{$result['term_id']}'><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ></span><span class='title-text'>{$postData['name']}</span> <span class='update-inline-record'></span><span class='star-icon'></span> </h3><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i></span> <ul class='space' id='space_{$result['term_id']}'>";
1483
  $string .= "</ul></li>";
1484
  $response['term_data'] = $string;
1485
  $response['parent_id'] = $parent;
includes/tree.class.php CHANGED
@@ -67,7 +67,7 @@ class WCP_Tree {
67
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$term->term_id);
68
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
69
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
70
- $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i></span> <ul class='space' id='space_{$term->term_id}'>";
71
  $string .= $return['string'];
72
  $string .= "</ul></li>";
73
  }
67
  $rename_nonce = wp_create_nonce('wcp_folder_rename_term_'.$term->term_id);
68
  $highlight_nonce = wp_create_nonce('wcp_folder_highlight_term_'.$term->term_id);
69
  $term_nonce = wp_create_nonce('wcp_folder_term_'.$term->term_id);
70
+ $string .= "<li data-nonce='{$term_nonce}' data-star='{$highlight_nonce}' data-rename='{$rename_nonce}' data-delete='{$delete_nonce}' data-slug='{$term->slug}' class='ui-state-default route {$class}' id='wcp_folder_{$term->term_id}' data-folder-id='{$term->term_id}'><h3 class='title' title='{$term->name}' id='title_{$term->term_id}'><span class='ui-icon'><i class='wcp-icon folder-icon-folder'></i><img src='".esc_url(WCP_FOLDER_URL."assets/images/move-option.png")."' class='move-folder-icon' ></span><span class='title-text'>{$term->name}</span> <span class='update-inline-record'></span> {$count} <span class='star-icon'></span></h3><span class='nav-icon'><i class='wcp-icon folder-icon-arrow_right'></i></span> <ul class='space' id='space_{$term->term_id}'>";
71
  $string .= $return['string'];
72
  $string .= "</ul></li>";
73
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.2
6
- Stable tag: 2.2.6
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
@@ -133,6 +133,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 2.2.6 =
137
  Bug fixes
138
 
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.2
6
+ Stable tag: 2.2.7
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
133
 
134
  == Changelog ==
135
 
136
+ = 2.2.7 =
137
+ Better folder drag and drop
138
+
139
  = 2.2.6 =
140
  Bug fixes
141