PluginProbe ʕ •ᴥ•ʔ
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager / 2.1.2
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager v2.1.2
3.1.9 3.1.8 3.1.7 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 trunk 1.3.7 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9 2.9.1 2.9.2
folders / templates / admin / general-settings.php
folders / templates / admin Last commit date
admin-content.php 7 years ago folder-deactivate-form.php 7 years ago general-settings.php 7 years ago help.php 7 years ago upgrade-to-pro.php 7 years ago
general-settings.php
92 lines
1 <?php
2 defined('ABSPATH') or die('Nope, not accessing this');
3 ?>
4 <style>
5 span.upgrade-message {
6 padding: 5px 10px;
7 background: #fff;
8 display: inline-block;
9 font-size: 14px;
10 color: #000;
11 }
12 a.pink, span.pink {
13 color: #FF5983;
14 text-decoration: none;
15 font-weight: bold;
16 }
17 #setting-form {
18 float: left;
19 width: 300px;
20 }
21 <?php if ( function_exists( 'is_rtl' ) && is_rtl() ) { ?>
22 #setting-form {
23 float: right;
24 }
25 <?php } ?>
26 </style>
27 <div class="wrap">
28 <h1><?php _e( 'Folders Settings', WCP_FOLDER ); ?></h1>
29 <form action="options.php" method="post" id="setting-form">
30 <?php
31 settings_fields( 'folders_settings' );
32 $options = get_option('folders_settings');
33 do_settings_sections( __FILE__ );
34 ?>
35 <table class="form-table">
36 <?php
37 $post_types = get_post_types( array( 'public' => true ), 'objects' );
38 $post_array = array("page", "post", "attachment");
39 foreach ( $post_types as $post_type ) : ?>
40 <?php
41 if ( ! $post_type->show_ui) continue;
42 if(in_array($post_type->name, $post_array)){
43 ?>
44 <tr>
45 <th>
46 <label for="folders_<?php echo $post_type->name; ?>" ><?php echo __( 'Use folders with:', WCP_FOLDER )." ".$post_type->label; ?></label>
47 </th>
48 <td>
49 <input type="checkbox" id="folders_<?php echo $post_type->name; ?>" name="folders_settings[]" value="<?php echo $post_type->name; ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
50 </td>
51 </tr>
52 <?php
53 } else { ?>
54 <tr>
55 <th>
56 <label for="folders_<?php echo $post_type->name; ?>" ><?php echo __( 'Use folders with:', WCP_FOLDER )." ".$post_type->label; ?></label>
57 </th>
58 <td>
59 <input type="checkbox" id="folders_<?php echo $post_type->name; ?>" name="folders_settings[]" value="<?php echo $post_type->name; ?>"<?php if ( in_array( $post_type->name, $options ) ) echo ' checked="checked"'; ?>/>
60 </td>
61 </tr>
62 <?php } endforeach; ?>
63 <tr>
64 <th>
65 <label for="folders_<?php echo $post_type->name; ?>" ><?php echo __( 'Show Folders in Menu:', WCP_FOLDER ); ?></label>
66 </th>
67 <td>
68 <?php $val = get_option("folders_show_in_menu"); ?>
69 <input type="hidden" name="folders_show_in_menu" value="off" />
70 <input type="checkbox" name="folders_show_in_menu" value="on" <?php echo ($val == "on")?"checked='checked'":"" ?>/>
71 </td>
72 </tr>
73 <tr>
74 <td colspan="2" style="padding: 10px 0">
75 <?php
76 $total_folders = get_option("folder_old_plugin_folder_status");
77 if($total_folders == false || $total_folders < 10) {
78 $total_folders = 10;
79 }
80 $total = WCP_Folders::get_total_term_folders();
81 if($total > $total_folders) {
82 $total_folders = $total;
83 }
84 ?>
85 <span class="upgrade-message">You have used <?php echo "<span class='pink'>".$total."</span>/".$total_folders ?> Folders. <a class="pink" href="<?php echo admin_url("admin.php?page=wcp_folders_upgrade") ?>"><?php echo __("Upgrade", WCP_FOLDER) ?></a></span>
86 </td>
87 </tr>
88 </table>
89 <input type="hidden" name="folders_settings1[premio_folder_option]" value="yes" />
90 <?php submit_button(); ?>
91 </form>
92 </div>