PluginProbe ʕ •ᴥ•ʔ
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager / 1.3.7
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager v1.3.7
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 / includes / options.php
folders / includes Last commit date
GMMediaTags.class.php 10 years ago GMMediaTags.js 10 years ago GMMediaTagsAdmin.class.php 10 years ago options.php 9 years ago types.php 8 years ago
options.php
88 lines
1 <?php
2 /*************************/
3 /********* OPTIONS *******/
4 /*************************/
5
6 function folders_admin_page(){
7 add_menu_page('Folder Settings', 'Folder Settings', 'publish_pages', 'folders-settings', 'folders_admin_page_callback', 'dashicons-category');
8 }
9 add_action('admin_menu', 'folders_admin_page');
10
11 function folders_register_settings(){
12 register_setting('folders_settings', 'folders_settings', 'folders_settings_validate');
13 }
14 add_action('admin_init', 'folders_register_settings');
15
16 function folders_settings_validate($args){
17 return $args;
18 }
19
20 function folders_admin_notices(){
21 settings_errors();
22 }
23 add_action('admin_notices', 'folders_admin_notices');
24
25 function folders_admin_page_callback(){
26 global $globOptions;
27 ?>
28 <style>
29 #side-info-column {
30 width: 250px;
31 float: right;
32 }
33 #side-info-column h3 {
34 margin: 10px;
35 }
36 .form-table th {
37 width: 250px;
38 }
39 </style>
40 <div class="wrap">
41 <h2>Folder Settings</h2>
42 <form style="width: 300px; float:left" action="options.php" method="post"><?php
43 settings_fields( 'folders_settings' );
44 do_settings_sections( __FILE__ );
45
46 $options = $globOptions; ?>
47 <table class="form-table">
48 <?php
49 $args = array(
50 'public' => true
51 );
52 $postTypes = get_post_types($args);
53 foreach ($postTypes as $type) { ?>
54 <tr>
55 <th scope="row"><label for="folders4<?php echo $type; ?>">Use Folders with <?php echo ucfirst($type); ?></label></th>
56 <td>
57 <fieldset>
58 <input name="folders_settings[folders4<?php echo $type; ?>]" type="checkbox" id="folders4<?php echo $type; ?>" value="1" <?php if (!empty($options['folders4'.$type]) && $options['folders4'.$type] == 1) {echo 'checked';} ?>/>
59 <br />
60 </fieldset>
61 </td>
62 </tr>
63 <?php } ?>
64 </table>
65 <?php submit_button(); ?>
66 </form>
67 <div id="side-info-column">
68 <div class="postbox">
69 <h3><span>Donate</span></h3>
70 <div class="inside">
71 <p>Please consider donating a small amount to help us keep Folders in development.</p>
72 <a href="http://62design.co.uk/wordpress-plugins/folders/" target="_blank">Click here to donate</a>
73 </div>
74 </div>
75 </div>
76
77 <div id="side-info-column" style="clear:right;">
78 <div class="postbox">
79 <h3><span>Rate Folders</span></h3>
80 <div class="inside">
81 <strong>Please Rate Folders on WordPress</strong>
82 <p><a href="https://wordpress.org/support/view/plugin-reviews/folders">Click to rate folders plugin</a></p>
83 </div>
84 </div>
85 </div>
86 </div>
87 <?php }
88