admin-content.php
5 years ago
folder-deactivate-form.php
6 years ago
folder-popup.php
5 years ago
general-settings.php
5 years ago
help.php
6 years ago
media-replace.php
5 years ago
recommended-plugins.php
5 years ago
update.php
6 years ago
upgrade-table.php
5 years ago
upgrade-to-pro.php
5 years ago
admin-content.php
275 lines
| 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) exit; |
| 3 | ?> |
| 4 | <style> |
| 5 | <?php |
| 6 | $string = ""; |
| 7 | global $typenow; |
| 8 | $width = get_option("wcp_dynamic_width_for_" . $typenow); |
| 9 | if($width == null || empty($width)) { |
| 10 | $width = 280; |
| 11 | } |
| 12 | $width = $width - 40; |
| 13 | $customize_folders = get_option('customize_folders'); |
| 14 | ?> |
| 15 | </style> |
| 16 | <style> |
| 17 | <?php |
| 18 | if(isset($customize_folders['new_folder_color']) && !empty($customize_folders['new_folder_color'])) { |
| 19 | ?> |
| 20 | .add-new-folder { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?> } |
| 21 | .wcp-hide-show-buttons .toggle-buttons { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; } |
| 22 | .folders-toggle-button span { background-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>; } |
| 23 | .ui-resizable-handle.ui-resizable-e:before, .ui-resizable-handle.ui-resizable-w:before {border-color: <?php echo esc_attr($customize_folders['new_folder_color']) ?>;} |
| 24 | <?php |
| 25 | } |
| 26 | if(isset($customize_folders['bulk_organize_button_color']) && !empty($customize_folders['bulk_organize_button_color'])) { |
| 27 | ?> |
| 28 | button.button.organize-button { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; } |
| 29 | button.button.organize-button:hover { background-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; border-color: <?php echo esc_attr($customize_folders['bulk_organize_button_color']) ?>; } |
| 30 | <?php |
| 31 | } |
| 32 | if(isset($customize_folders['folder_bg_color']) && !empty($customize_folders['folder_bg_color'])) { |
| 33 | $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); |
| 34 | ?> |
| 35 | body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;} |
| 36 | body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; } |
| 37 | #custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in > , body #custom-scroll-menu *.drag-in > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; } |
| 38 | .drag-bot > a { |
| 39 | border-bottom: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>; |
| 40 | } |
| 41 | .drag-up > a { |
| 42 | border-top: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>; |
| 43 | } |
| 44 | body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered, body:not(.no-hover-css) #custom-scroll-menu *.drag-in > a.jstree-hovered:hover { |
| 45 | background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; |
| 46 | color: #fff !important; |
| 47 | } |
| 48 | .orange-bg > span ,.wcp-container .route.active-item > h3.title, .header-posts a.active-item, .un-categorised-items.active-item, .sticky-folders ul li a.active-item { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; } |
| 49 | body:not(.no-hover-css) .wcp-container .route .title:hover, body:not(.no-hover-css) .header-posts a:hover, body:not(.no-hover-css) .un-categorised-items:hover, body:not(.no-hover-css) .sticky-folders ul li a:hover {background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>);} |
| 50 | .wcp-drop-hover { |
| 51 | background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; |
| 52 | } |
| 53 | #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;} |
| 54 | .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; } |
| 55 | .ui-state-highlight { border-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?> !important;} |
| 56 | .jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; } |
| 57 | <?php |
| 58 | } |
| 59 | $font_family = ""; |
| 60 | if(isset($customize_folders['folder_font']) && !empty($customize_folders['folder_font'])) { |
| 61 | $font_family = $customize_folders['folder_font']; |
| 62 | $folder_fonts = self::get_font_list(); |
| 63 | if(isset($folder_fonts[$font_family])) { |
| 64 | ?> |
| 65 | .wcp-container, .folder-popup-form { font-family: "<?php echo esc_attr($font_family) ?>"; } |
| 66 | <?php |
| 67 | } |
| 68 | if($folder_fonts[$font_family] == "Default") { |
| 69 | $font_family = ""; |
| 70 | } |
| 71 | } |
| 72 | if(isset($customize_folders['folder_size']) && !empty($customize_folders['folder_size'])) { |
| 73 | ?> |
| 74 | .wcp-container .route span.title-text, .header-posts a, .un-categorised-items a, .sticky-title, .sticky-folders > ul > li > a { font-size: <?php echo esc_attr($customize_folders['folder_size']) ?>px; } |
| 75 | <?php |
| 76 | } |
| 77 | ?> |
| 78 | </style> |
| 79 | <?php if(!empty($font_family)) { |
| 80 | wp_enqueue_style( 'custom-google-fonts', 'https://fonts.googleapis.com/css?family='.urlencode($font_family), false ); |
| 81 | } ?> |
| 82 | <div id="media-css"> |
| 83 | |
| 84 | </div> |
| 85 | <?php |
| 86 | $optionName = $typenow."_parent_status"; |
| 87 | $status = get_option($optionName); |
| 88 | global $typenow; |
| 89 | $title = ucfirst($typenow); |
| 90 | if($typenow == "page") { |
| 91 | $title = "Pages"; |
| 92 | } else if($typenow == "post") { |
| 93 | $title = "Posts"; |
| 94 | } else if($typenow == "attachment") { |
| 95 | $title = "Files"; |
| 96 | } |
| 97 | $display_status = "wcp_dynamic_display_status_" . $typenow; |
| 98 | $display_status = get_option($display_status); |
| 99 | $class_name = isset($display_status) && $display_status == "hide"?"hide-folders-area":""; |
| 100 | $active_class = (isset($display_status) && $display_status == "hide")?"":"active"; |
| 101 | $active_class_2 = (isset($display_status) && $display_status == "hide")?"active":""; |
| 102 | |
| 103 | /* Do not change here, Free/Pro Class name */ |
| 104 | $post_type = WCP_Folders::get_custom_post_type($typenow); |
| 105 | $active = ""; |
| 106 | $active_all_class = ""; |
| 107 | if(!empty($post_type)) { |
| 108 | if(isset($_REQUEST[$post_type]) && $_REQUEST[$post_type] == -1) { |
| 109 | $active = "active-item"; |
| 110 | } |
| 111 | |
| 112 | if(!isset($_REQUEST[$post_type]) || $_REQUEST[$post_type] == "") { |
| 113 | $active_all_class = "active-item"; |
| 114 | } |
| 115 | } |
| 116 | ?> |
| 117 | <div id="wcp-content" class="<?php echo esc_attr(isset($display_status) && $display_status == "hide"?"hide-folders-area":"") ?>" > |
| 118 | <div id="wcp-content-resize"> |
| 119 | <div class="wcp-content"> |
| 120 | <div class="wcp-hide-show-buttons"> |
| 121 | <div class="toggle-buttons hide-folders <?php echo esc_attr($active_class) ?>"><span class="dashicons dashicons-arrow-left"></span></div> |
| 122 | <div class="toggle-buttons show-folders <?php echo esc_attr($active_class_2) ?>"><span class="dashicons dashicons-arrow-right"></span></div> |
| 123 | </div> |
| 124 | <div class='wcp-container'> |
| 125 | <div class="sticky-wcp-custom-form"> |
| 126 | <?php echo $form_html ?> |
| 127 | <div class="top-settings"> |
| 128 | <div class="folder-search-form"> |
| 129 | <div class="form-search-input"> |
| 130 | <input type="text" value="" id="folder-search" autocomplete="off" /> |
| 131 | <span><i class="pfolder-search"></i></span> |
| 132 | </div> |
| 133 | </div> |
| 134 | <div class="folder-separator"></div> |
| 135 | <div class="header-posts"> |
| 136 | <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><?php esc_attr_e("All ".$title, WCP_FOLDER ) ?> <span class="total-count"><?php echo $ttpsts ?></span></a> |
| 137 | </div> |
| 138 | <div class="un-categorised-items <?php echo esc_attr($active) ?>"> |
| 139 | <a href="javascript:;" class="un-categorized-posts"><?php esc_attr_e("Unassigned ".$title, WCP_FOLDER) ?> <span class="total-count total-empty"><?php echo $ttemp ?></span> </a> |
| 140 | </div> |
| 141 | <div class="folder-separator-2"></div> |
| 142 | </div> |
| 143 | </div> |
| 144 | <div id="custom-scroll-menu"> |
| 145 | <div class="ajax-preloader"> |
| 146 | <div class="cssload-container"> |
| 147 | <div class="cssload-tube-tunnel"></div> |
| 148 | </div> |
| 149 | </div> |
| 150 | <div class="js-tree-data"> |
| 151 | <div id="js-tree-menu" class="<?php echo ($status==1)?"active":"" ?>"> |
| 152 | <!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>--> |
| 153 | <ul class='space first-space' id='space_0'> |
| 154 | <?php echo $terms_data; ?> |
| 155 | </ul> |
| 156 | </div> |
| 157 | </div> |
| 158 | </div> |
| 159 | </div> |
| 160 | </div> |
| 161 | </div> |
| 162 | </div> |
| 163 | <div id="folder-add-update-content"> |
| 164 | <div class="folder-popup-form" id="add-update-folder"> |
| 165 | <div class="popup-form-content"> |
| 166 | <form action="" method="post" id="save-folder-form"> |
| 167 | <div id="add-update-folder-title" class="add-update-folder-title"> |
| 168 | Add a new folder |
| 169 | </div> |
| 170 | <div class="add-folder-note"> |
| 171 | Enter your folder's name (or create more than one folder by separating the name with a comma) |
| 172 | </div> |
| 173 | <div class="folder-form-input"> |
| 174 | <div class="folder-group"> |
| 175 | <input id="add-update-folder-name" autocomplete="off" required="required"> |
| 176 | <span class="highlight"></span><span class="folder-bar"></span> |
| 177 | <label for="add-update-folder-name">Folder name</label> |
| 178 | </div> |
| 179 | </div> |
| 180 | <div class="folder-form-errors"> |
| 181 | <span class="dashicons dashicons-info"></span> Please enter folder name |
| 182 | </div> |
| 183 | <div class="folder-form-buttons"> |
| 184 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 185 | <button type="submit" class="form-submit-btn" id="save-folder-data" style="width: 160px">Submit</button> |
| 186 | </div> |
| 187 | </form> |
| 188 | </div> |
| 189 | </div> |
| 190 | |
| 191 | <div class="folder-popup-form" id="update-folder-item"> |
| 192 | <div class="popup-form-content"> |
| 193 | <form action="" method="post" id="update-folder-form"> |
| 194 | <div id="update-folder-title" class="add-update-folder-title"> |
| 195 | Rename folder |
| 196 | </div> |
| 197 | <div class="folder-form-input"> |
| 198 | <div class="folder-group"> |
| 199 | <input id="update-folder-item-name" autocomplete="off" required="required"> |
| 200 | <span class="highlight"></span><span class="folder-bar"></span> |
| 201 | <label for="update-folder-item-name">Folder name</label> |
| 202 | </div> |
| 203 | </div> |
| 204 | <div class="folder-form-errors"> |
| 205 | <span class="dashicons dashicons-info"></span> Please enter folder name |
| 206 | </div> |
| 207 | <div class="folder-form-buttons"> |
| 208 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 209 | <button type="submit" class="form-submit-btn" id="update-folder-data" style="width: 160px">Submit</button> |
| 210 | </div> |
| 211 | </form> |
| 212 | </div> |
| 213 | </div> |
| 214 | |
| 215 | <div class="folder-popup-form" id="confirm-remove-folder"> |
| 216 | <div class="popup-form-content"> |
| 217 | <div class="add-update-folder-title" id="remove-folder-message"> |
| 218 | Are you sure you want to delete the selected folder? |
| 219 | </div> |
| 220 | <div class="folder-form-message" id="remove-folder-notice"> |
| 221 | Items in the folder will not be deleted. |
| 222 | </div> |
| 223 | <div class="folder-form-buttons"> |
| 224 | <a href="javascript:;" class="form-cancel-btn">No, Keep it</a> |
| 225 | <a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a> |
| 226 | </div> |
| 227 | </div> |
| 228 | </div> |
| 229 | |
| 230 | <div class="folder-popup-form" id="no-more-folder-credit"> |
| 231 | <div class="popup-form-content"> |
| 232 | <div class="add-update-folder-title" id="folder-limitation-message"> |
| 233 | |
| 234 | </div> |
| 235 | <div class="folder-form-message"> |
| 236 | Unlock unlimited amount of folders by upgrading to one of our pro plans. |
| 237 | </div> |
| 238 | <div class="folder-form-buttons"> |
| 239 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 240 | <a href="<?php echo esc_url($this->getFoldersUpgradeURL()) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a> |
| 241 | </div> |
| 242 | </div> |
| 243 | </div> |
| 244 | |
| 245 | <div class="folder-popup-form" id="error-folder-popup"> |
| 246 | <div class="popup-form-content"> |
| 247 | <div class="add-update-folder-title" id="error-folder-popup-message"> |
| 248 | |
| 249 | </div> |
| 250 | <div class="folder-form-buttons"> |
| 251 | <a href="javascript:;" class="form-cancel-btn">Close</a> |
| 252 | </div> |
| 253 | </div> |
| 254 | </div> |
| 255 | |
| 256 | <div class="folder-popup-form" id="bulk-move-folder"> |
| 257 | <form action="" method="post" id="bulk-folder-form"> |
| 258 | <div class="popup-form-content"> |
| 259 | <div class="popup-folder-title"> |
| 260 | Select Folder |
| 261 | </div> |
| 262 | <div class="select-box"> |
| 263 | <select id="bulk-select"> |
| 264 | <option value="">Select Folder</option> |
| 265 | </select> |
| 266 | </div> |
| 267 | <div class="folder-form-buttons"> |
| 268 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 269 | <button type="submit" class="form-submit-btn" id="move-to-folder" style="width: 200px">Move to Folder</button> |
| 270 | </div> |
| 271 | </div> |
| 272 | </form> |
| 273 | </div> |
| 274 | </div> |
| 275 |