PluginProbe
Adminimize / 1.7.14
Adminimize v1.7.14
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
adminimize / inc-options / write_page_options.php

write_page_options.php in Adminimize 1.7.14, at inc-options/write_page_options.php

86 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // options for write page
3 ?>
4 <div id="poststuff" class="ui-sortable meta-box-sortables">
5 <div class="postbox">
6 <div class="handlediv" title="<?php _e('Click to toggle'); ?>"><br/></div>
7 <h3 class="hndle" id="config_edit_page"><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></h3>
8 <div class="inside">
9 <br class="clear" />
10
11 <table summary="config_edit_page" class="widefat">
12 <thead>
13 <tr>
14 <th><?php _e('Write options - Page', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
15 <?php
16 foreach ($user_roles_names as $role_name) { ?>
17 <th><?php _e('Deactivate for', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />' . $role_name; ?></th>
18 <?php } ?>
19 </tr>
20 </thead>
21
22 <tbody>
23 <?php
24 $x = 0;
25 $class = '';
26 foreach ($metaboxes_page as $index => $metabox) {
27 if ($metabox != '') {
28 $class = ( ' class="alternate"' == $class ) ? '' : ' class="alternate"';
29 $checked_user_role_ = array();
30 foreach ($user_roles as $role) {
31 $checked_user_role_[$role] = ( isset($disabled_metaboxes_page_[$role]) && in_array($metabox, $disabled_metaboxes_page_[$role]) ) ? ' checked="checked"' : '';
32 }
33 echo '<tr' . $class . '>' . "\n";
34 echo '<td>' . $metaboxes_names_page[$index] . ' <span style="color:#ccc; font-weight: 400;">(' . $metabox . ')</span> </td>' . "\n";
35 foreach ($user_roles as $role) {
36 echo '<td class="num"><input id="check_page'. $role.$x .'" type="checkbox"' . $checked_user_role_[$role] . ' name="mw_adminimize_disabled_metaboxes_page_'. $role .'_items[]" value="' . $metabox . '" /></td>' . "\n";
37 }
38 echo '</tr>' . "\n";
39 $x++;
40 }
41 }
42 ?>
43 </tbody>
44 </table>
45
46 <?php
47 //ypur own page options
48 ?>
49 <br style="margin-top: 10px;" />
50 <table summary="config_own_page" class="widefat">
51 <thead>
52 <tr>
53 <th><?php _e('Your own page options', FB_ADMINIMIZE_TEXTDOMAIN ); echo '<br />'; _e('ID or class', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
54 <th><?php echo '<br />'; _e('Option', FB_ADMINIMIZE_TEXTDOMAIN ); ?></th>
55 </tr>
56 </thead>
57
58 <tbody>
59 <tr valign="top">
60 <td colspan="2"><?php _e('It is possible to add your own IDs or classes from elements and tags. You can find IDs and classes with the FireBug Add-on for Firefox. Assign a value and the associate name per line.', FB_ADMINIMIZE_TEXTDOMAIN ); ?></td>
61 </tr>
62 <tr valign="top">
63 <td>
64 <textarea name="_mw_adminimize_own_page_options" cols="60" rows="3" id="_mw_adminimize_own_page_options" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_options'); ?></textarea>
65 <br />
66 <?php _e('Possible nomination for ID or class. Separate multiple nominations through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
67 </td>
68 <td>
69 <textarea class="code" name="_mw_adminimize_own_page_values" cols="60" rows="3" id="_mw_adminimize_own_page_values" style="width: 95%;" ><?php echo _mw_adminimize_getOptionValue('_mw_adminimize_own_page_values'); ?></textarea>
70 <br />
71 <?php _e('Possible IDs or classes. Separate multiple values through a carriage return.', FB_ADMINIMIZE_TEXTDOMAIN ); ?>
72 </td>
73 </tr>
74 </tbody>
75 </table>
76
77 <p id="submitbutton">
78 <input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_insert" />
79 <input class="button button-primary" type="submit" name="_mw_adminimize_save" value="<?php _e('Update Options', FB_ADMINIMIZE_TEXTDOMAIN ); ?> &raquo;" /><input type="hidden" name="page_options" value="'dofollow_timeout'" />
80 </p>
81 <p><a class="alignright button" href="javascript:void(0);" onclick="window.scrollTo(0,0);" style="margin:3px 0 0 30px;"><?php _e('scroll to top', FB_ADMINIMIZE_TEXTDOMAIN); ?></a><br class="clear" /></p>
82
83 </div>
84 </div>
85 </div>
86