features
4 years ago
roles
4 years ago
admin-load.php
4 years ago
admin.php
4 years ago
backup-handler.php
4 years ago
backup.php
4 years ago
cap-helper.php
4 years ago
filters-admin.php
4 years ago
filters-woocommerce.php
4 years ago
filters-wp_rest_workarounds.php
5 years ago
filters.php
4 years ago
functions-admin.php
4 years ago
functions.php
4 years ago
handler.php
4 years ago
inflect-cme.php
7 years ago
manager.php
4 years ago
network.php
4 years ago
pp-handler.php
4 years ago
pp-ui.php
4 years ago
publishpress-roles.php
4 years ago
settings-handler.php
4 years ago
settings.php
4 years ago
settings.php
63 lines
| 1 | <?php |
| 2 | /* |
| 3 | * PublishPress Capabilities [Free] |
| 4 | * |
| 5 | * Settings UI |
| 6 | * |
| 7 | */ |
| 8 | |
| 9 | global $wpdb; |
| 10 | $all_options = []; |
| 11 | ?> |
| 12 | |
| 13 | <div class="wrap publishpress-caps-manage publishpress-caps-settings pressshack-admin-wrapper"> |
| 14 | <h1><?php printf(esc_html__('Capabilities Settings', 'capsman-enhanced'), '<a href="admin.php?page=pp-capabilities">', '</a>'); ?></h1> |
| 15 | |
| 16 | <form class="basic-settings" method="post" action=""> |
| 17 | <?php wp_nonce_field('pp-capabilities-settings'); ?> |
| 18 | |
| 19 | <br /> |
| 20 | |
| 21 | <?php do_action('pp-capabilities-settings-ui');?> |
| 22 | |
| 23 | <?php if (!defined('PUBLISHPRESS_CAPS_PRO_VERSION')) :?> |
| 24 | <h3><?php esc_html_e('Related Permissions Plugins', 'capsman-enhanced');?></h3> |
| 25 | <ul> |
| 26 | <?php $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress&TB_iframe=true&width=640&height=678"; |
| 27 | $url = ( is_multisite() ) ? network_admin_url($_url) : admin_url($_url); |
| 28 | ?> |
| 29 | <li><a class="thickbox" href="<?php echo (esc_url_raw($url));?>"><?php esc_html_e('PublishPress', 'capsman-enhanced');?></a></li> |
| 30 | |
| 31 | <?php $_url = "plugin-install.php?tab=plugin-information&plugin=publishpress-authors&TB_iframe=true&width=640&height=678"; |
| 32 | $url = ( is_multisite() ) ? network_admin_url($_url) : admin_url($_url); |
| 33 | ?> |
| 34 | <li><a class="thickbox" href="<?php echo (esc_url_raw($url));?>"><?php esc_html_e('PublishPress Authors', 'capsman-enhanced');?></a></li> |
| 35 | </li> |
| 36 | |
| 37 | <?php $_url = "plugin-install.php?tab=plugin-information&plugin=press-permit-core&TB_iframe=true&width=640&height=678"; |
| 38 | $url = ( is_multisite() ) ? network_admin_url($_url) : admin_url($_url); |
| 39 | ?> |
| 40 | <li><a class="thickbox" href="<?php echo (esc_url_raw($url));?>"><?php esc_html_e('PublishPress Permissions', 'capsman-enhanced');?></a></li> |
| 41 | </li> |
| 42 | |
| 43 | <?php $_url = "plugin-install.php?tab=plugin-information&plugin=revisionary&TB_iframe=true&width=640&height=678"; |
| 44 | $url = ( is_multisite() ) ? network_admin_url($_url) : admin_url($_url); |
| 45 | ?> |
| 46 | <li><a class="thickbox" href="<?php echo (esc_url_raw($url));?>"><?php esc_html_e('PublishPress Revisions', 'capsman-enhanced');?></a></li> |
| 47 | |
| 48 | <li class="publishpress-contact"><a href="https://publishpress.com/contact" target="_blank"><?php esc_html_e('Help / Contact Form', 'capsman-enhanced');?></a></li> |
| 49 | </ul> |
| 50 | <?php endif;?> |
| 51 | |
| 52 | <?php |
| 53 | echo "<input type='hidden' name='all_options' value='" . implode(',', array_map('esc_attr', $all_options)) . "' />"; |
| 54 | ?> |
| 55 | |
| 56 | <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Save Changes', 'capsman-enhanced');?>"> |
| 57 | </form> |
| 58 | |
| 59 | <?php if (!defined('PUBLISHPRESS_CAPS_PRO_VERSION') || get_option('cme_display_branding')) { |
| 60 | cme_publishpressFooter(); |
| 61 | } |
| 62 | ?> |
| 63 | </div> |