admin-content.php
63 lines
| 1 | <style> |
| 2 | .ui-state-highlight { |
| 3 | background: transparent; |
| 4 | border: dashed 1px #0073AA; |
| 5 | width:150px; |
| 6 | height: 25px !important; |
| 7 | } |
| 8 | <?php |
| 9 | $string = ""; |
| 10 | global $typenow; |
| 11 | $width = get_option("wcp_dynamic_width_for_" . $typenow); |
| 12 | if($width == null || empty($width)) { |
| 13 | $width = 292; |
| 14 | } |
| 15 | $width = $width - 40; |
| 16 | ?> |
| 17 | </style> |
| 18 | <div id="wcp-custom-style"> |
| 19 | <style> |
| 20 | <?php |
| 21 | $string = ""; |
| 22 | for($i=0;$i<=15;$i++) { |
| 23 | $string .= " .space > .route >"; |
| 24 | $new_width = $width - (13+(20*$i)); |
| 25 | echo "#custom-menu > {$string} .title { width: {$new_width}px !important; } "; |
| 26 | } |
| 27 | ?> |
| 28 | </style> |
| 29 | </div> |
| 30 | <div id="media-css"> |
| 31 | |
| 32 | </div> |
| 33 | <div id="wcp-content"> |
| 34 | <div id="wcp-content-resize"> |
| 35 | <div class="wcp-content"> |
| 36 | <div class='wcp-container'> |
| 37 | <?php echo $form_html ?> |
| 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 | ?> |
| 51 | <div class="header-posts"> |
| 52 | <a href="javascript:;" class="all-posts"><span class="wcp-icon folder-icon-insert_drive_file"></span> <?php echo __("All ".$title, WCP_FOLDER) ?> <span class="total-count"><?php echo $total_posts ?></span></a> |
| 53 | </div> |
| 54 | <div id="custom-menu" class="wcp-custom-menu <?php echo ($status==1)?"active":"" ?>"> |
| 55 | <!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>--> |
| 56 | <ul class='space first-space' id='space_0'> |
| 57 | <?php echo $terms_data; ?> |
| 58 | </ul> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |