admin-content.php
6 years ago
folder-deactivate-form.php
6 years ago
general-settings.php
6 years ago
help.php
6 years ago
update.php
6 years ago
upgrade-to-pro.php
6 years ago
admin-content.php
165 lines
| 1 | <?php |
| 2 | defined('ABSPATH') or wp_die('Nope, not accessing this'); |
| 3 | ?> |
| 4 | <style> |
| 5 | .ui-state-highlight { |
| 6 | background: transparent; |
| 7 | border: dashed 1px #0073AA; |
| 8 | width:180px; |
| 9 | height: 30px !important; |
| 10 | } |
| 11 | <?php |
| 12 | $string = ""; |
| 13 | global $typenow; |
| 14 | $width = get_option("wcp_dynamic_width_for_" . $typenow); |
| 15 | if($width == null || empty($width)) { |
| 16 | $width = 292; |
| 17 | } |
| 18 | $width = $width - 40; |
| 19 | ?> |
| 20 | </style> |
| 21 | <div id="wcp-custom-style"> |
| 22 | <style> |
| 23 | <?php |
| 24 | $string = ""; |
| 25 | for($i=0;$i<=15;$i++) { |
| 26 | $string .= " .space > .route >"; |
| 27 | $new_width = $width - (13+(20*$i)); |
| 28 | ?> |
| 29 | #custom-menu > <?php echo $string ?> .title { width: <?php echo esc_attr($new_width) ?>px !important; } |
| 30 | <?php |
| 31 | } |
| 32 | ?> |
| 33 | </style> |
| 34 | </div> |
| 35 | <div id="media-css"> |
| 36 | |
| 37 | </div> |
| 38 | <?php |
| 39 | $optionName = $typenow."_parent_status"; |
| 40 | $status = get_option($optionName); |
| 41 | global $typenow; |
| 42 | $title = ucfirst($typenow); |
| 43 | if($typenow == "page") { |
| 44 | $title = "Pages"; |
| 45 | } else if($typenow == "post") { |
| 46 | $title = "Posts"; |
| 47 | } else if($typenow == "attachment") { |
| 48 | $title = "Files"; |
| 49 | } |
| 50 | $display_status = "wcp_dynamic_display_status_" . $typenow; |
| 51 | $display_status = get_option($display_status); |
| 52 | $post_type = WCP_Folders::get_custom_post_type($typenow); |
| 53 | $active_class = ""; |
| 54 | $active_all_class = ""; |
| 55 | if(!empty($post_type)) { |
| 56 | if(isset($_REQUEST[$post_type]) && $_REQUEST[$post_type] == -1) { |
| 57 | $active_class = "active-item"; |
| 58 | } |
| 59 | |
| 60 | if(!isset($_REQUEST[$post_type]) || $_REQUEST[$post_type] == "") { |
| 61 | $active_all_class = "active-item"; |
| 62 | } |
| 63 | } |
| 64 | ?> |
| 65 | <div id="wcp-content" class="<?php echo esc_attr(isset($display_status) && $display_status == "hide"?"hide-folders-area":"") ?>" > |
| 66 | <div id="wcp-content-resize"> |
| 67 | <div class="wcp-content"> |
| 68 | <div class="wcp-hide-show-buttons"> |
| 69 | <div class="toggle-buttons hide-folders <?php echo esc_attr(!isset($display_status) || $display_status != "hide"?"active":"") ?>"><span class="dashicons dashicons-arrow-left"></span></div> |
| 70 | <div class="toggle-buttons show-folders <?php echo esc_attr(isset($display_status) && $display_status == "hide"?"active":"") ?>"><span class="dashicons dashicons-arrow-right"></span></div> |
| 71 | </div> |
| 72 | <div class='wcp-container'> |
| 73 | <?php echo $form_html ?> |
| 74 | <div class="header-posts"> |
| 75 | <a href="javascript:;" class="all-posts <?php echo esc_attr($active_all_class) ?>"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php esc_html_e("All ".$title, WCP_FOLDER) ?> <span class="total-count"><?php echo esc_attr($total_posts) ?></span></a> |
| 76 | </div> |
| 77 | <div class="un-categorised-items <?php echo esc_attr($active_class) ?>"> |
| 78 | <a href="javascript:;" class="un-categorized-posts"><?php esc_html_e("Unassigned ".$title, WCP_FOLDER) ?> <span class="total-count total-empty"><?php echo esc_attr($total_empty) ?></span> </a> |
| 79 | </div> |
| 80 | <div id="custom-menu" class="wcp-custom-menu <?php echo ($status==1)?"active":"" ?>"> |
| 81 | <!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>--> |
| 82 | <ul class='space first-space' id='space_0'> |
| 83 | <?php echo $terms_data; ?> |
| 84 | </ul> |
| 85 | </div> |
| 86 | </div> |
| 87 | </div> |
| 88 | </div> |
| 89 | </div> |
| 90 | <div class="folder-popup-form" id="add-update-folder"> |
| 91 | <div class="popup-form-content"> |
| 92 | <div id="add-update-folder-title" class="add-update-folder-title"> |
| 93 | Add Folder |
| 94 | </div> |
| 95 | <div class="folder-form-input"> |
| 96 | <input id="add-update-folder-name" autocomplete="off" placeholder="Folder name"> |
| 97 | </div> |
| 98 | <div class="folder-form-errors"> |
| 99 | <span class="dashicons dashicons-info"></span> Please enter folder name |
| 100 | </div> |
| 101 | <div class="folder-form-buttons"> |
| 102 | <a href="javascript:;" class="form-submit-btn" id="save-folder-data" style="width: 56px">Submit</a> |
| 103 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 104 | </div> |
| 105 | </div> |
| 106 | </div> |
| 107 | |
| 108 | <div class="folder-popup-form" id="update-folder-item"> |
| 109 | <div class="popup-form-content"> |
| 110 | <div id="update-folder-title" class="add-update-folder-title"> |
| 111 | Rename Folder |
| 112 | </div> |
| 113 | <div class="folder-form-input"> |
| 114 | <input id="update-folder-item-name" autocomplete="off" placeholder="Folder name"> |
| 115 | </div> |
| 116 | <div class="folder-form-errors"> |
| 117 | <span class="dashicons dashicons-info"></span> Please enter folder name |
| 118 | </div> |
| 119 | <div class="folder-form-buttons"> |
| 120 | <a href="javascript:;" class="form-submit-btn" id="update-folder-data" style="width: 56px">Submit</a> |
| 121 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 122 | </div> |
| 123 | </div> |
| 124 | </div> |
| 125 | |
| 126 | <div class="folder-popup-form" id="confirm-remove-folder"> |
| 127 | <div class="popup-form-content"> |
| 128 | <div class="add-update-folder-title"> |
| 129 | Are you sure you want to delete the selected folder? |
| 130 | </div> |
| 131 | <div class="folder-form-message"> |
| 132 | Items in the folder will not be deleted. |
| 133 | </div> |
| 134 | <div class="folder-form-buttons"> |
| 135 | <a href="javascript:;" class="form-cancel-btn">No, Keep it</a> |
| 136 | <a href="javascript:;" class="form-submit-btn" id="remove-folder-item">Yes, Delete it!</a> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | |
| 141 | <div class="folder-popup-form" id="no-more-folder-credit"> |
| 142 | <div class="popup-form-content"> |
| 143 | <div class="add-update-folder-title" id="folder-limitation-message"> |
| 144 | |
| 145 | </div> |
| 146 | <div class="folder-form-message"> |
| 147 | Unlock unlimited amount of folders by upgrading to one of our pro plans. |
| 148 | </div> |
| 149 | <div class="folder-form-buttons"> |
| 150 | <a href="javascript:;" class="form-cancel-btn">Cancel</a> |
| 151 | <a href="<?php echo esc_url(admin_url("admin.php?page=wcp_folders_upgrade")) ?>" target="_blank" class="form-submit-btn">See Pro Plans</a> |
| 152 | </div> |
| 153 | </div> |
| 154 | </div> |
| 155 | |
| 156 | <div class="folder-popup-form" id="error-folder-popup"> |
| 157 | <div class="popup-form-content"> |
| 158 | <div class="add-update-folder-title" id="error-folder-popup-message"> |
| 159 | |
| 160 | </div> |
| 161 | <div class="folder-form-buttons"> |
| 162 | <a href="javascript:;" class="form-cancel-btn">Close</a> |
| 163 | </div> |
| 164 | </div> |
| 165 | </div> |