admin-content.php
6 years ago
folder-deactivate-form.php
6 years ago
general-settings.php
6 years ago
help.php
6 years ago
upgrade-to-pro.php
6 years ago
admin-content.php
77 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 | ?> |
| 53 | <div id="wcp-content" class="<?php echo esc_attr(isset($display_status) && $display_status == "hide"?"hide-folders-area":"") ?>" > |
| 54 | <div id="wcp-content-resize"> |
| 55 | <div class="wcp-content"> |
| 56 | <div class="wcp-hide-show-buttons"> |
| 57 | <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> |
| 58 | <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> |
| 59 | </div> |
| 60 | <div class='wcp-container'> |
| 61 | <?php echo $form_html ?> |
| 62 | <div class="header-posts"> |
| 63 | <a href="javascript:;" class="all-posts"><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> |
| 64 | </div> |
| 65 | <div class="un-categorised-items"> |
| 66 | <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> |
| 67 | </div> |
| 68 | <div id="custom-menu" class="wcp-custom-menu <?php echo ($status==1)?"active":"" ?>"> |
| 69 | <!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>--> |
| 70 | <ul class='space first-space' id='space_0'> |
| 71 | <?php echo $terms_data; ?> |
| 72 | </ul> |
| 73 | </div> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |