cdn
5 years ago
buttons.html
11 years ago
cloudflare_warning.html
6 years ago
disable_wp_cron.php
6 years ago
download.html
6 years ago
exclude.php
6 years ago
htaccess.html
6 years ago
lazy_load.php
6 years ago
newpost.php
6 years ago
nginx_gzip.php
6 years ago
permission_error.html
6 years ago
preload.php
6 years ago
sample_img_list.html
6 years ago
timeout.php
6 years ago
toolbar_settings.php
5 years ago
update_error.html
6 years ago
update_now.php
6 years ago
update_success.html
6 years ago
update_success.php
6 years ago
updatepost.php
6 years ago
toolbar_settings.php
77 lines
| 1 | <style type="text/css"> |
| 2 | div[id^="wpfc-modal-toolbarsettings"] .wiz-input-cont{ |
| 3 | margin-top: 0 !important; |
| 4 | margin-bottom: 10px !important; |
| 5 | float: left !important; |
| 6 | width: 108px !important; |
| 7 | } |
| 8 | .wiz-input-cont label{ |
| 9 | margin-right: 0 !important; |
| 10 | } |
| 11 | </style> |
| 12 | <div template-id="wpfc-modal-toolbarsettings" style="display:none;top: 10.5px; left: 226px; position: absolute; padding: 6px; height: auto; width: 560px; z-index: 9995;"> |
| 13 | <div style="height: 100%; width: 100%; background: none repeat scroll 0% 0% rgb(0, 0, 0); position: absolute; top: 0px; left: 0px; z-index: -1; opacity: 0.5; border-radius: 8px;"> |
| 14 | </div> |
| 15 | <div style="z-index: 600; border-radius: 3px;"> |
| 16 | <div style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:12px;background: none repeat scroll 0px 0px rgb(255, 161, 0); z-index: 1000; position: relative; padding: 2px; border-bottom: 1px solid rgb(194, 122, 0); height: 35px; border-radius: 3px 3px 0px 0px;"> |
| 17 | <table width="100%" height="100%"> |
| 18 | <tbody> |
| 19 | <tr> |
| 20 | <td valign="middle" style="vertical-align: middle; font-weight: bold; color: rgb(255, 255, 255); text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.5); padding-left: 10px; font-size: 13px; cursor: move;"><?php _e('Toolbar Settings', 'wp-fastest-cache'); ?></td> |
| 21 | <td width="20" align="center" style="vertical-align: middle;"></td> |
| 22 | <td width="20" align="center" style="vertical-align: middle; font-family: Arial,Helvetica,sans-serif; color: rgb(170, 170, 170); cursor: default;"> |
| 23 | <div title="Close Window" class="close-wiz"></div> |
| 24 | </td> |
| 25 | </tr> |
| 26 | </tbody> |
| 27 | </table> |
| 28 | </div> |
| 29 | <div class="window-content-wrapper" style="padding: 15px;"> |
| 30 | <div class="window-content" style="z-index: 1000; height: auto; position: relative; display: inline-block; width: 100%;"> |
| 31 | <div class="wpfc-cdn-pages-container"> |
| 32 | <div class="wiz-cont" style=""> |
| 33 | <h1>Authorities</h1> |
| 34 | <p style="margin-bottom: 24px;">This feature allows you to show the clear cache button which exists on the admin toolbar based on user roles. <a target="_blank" href="https://www.wpfastestcache.com/features/clear-cache-link-on-the-toolbar/"><img src="<?php echo plugins_url("wp-fastest-cache/images/info.png"); ?>" /></a></p> |
| 35 | |
| 36 | <?php |
| 37 | global $wp_roles; |
| 38 | |
| 39 | if(!isset($wp_roles)){ |
| 40 | $wp_roles = new WP_Roles(); |
| 41 | } |
| 42 | |
| 43 | $wpfc_role_names = $wp_roles->get_names(); |
| 44 | |
| 45 | foreach ($wpfc_role_names as $key => $value){ |
| 46 | if($key == "administrator"){ |
| 47 | continue; |
| 48 | } |
| 49 | |
| 50 | $wpfc_toolbar_element_id = "wpfc_toolbar_".$key; |
| 51 | ?> |
| 52 | |
| 53 | <div class="wiz-input-cont" style="padding-right: 12px;margin-right: 10px;width: auto !important;"> |
| 54 | <label class="mc-input-label" style="margin-right: 5px;"><input type="checkbox" id="<?php echo $wpfc_toolbar_element_id; ?>" name="<?php echo $wpfc_toolbar_element_id; ?>"></label> |
| 55 | <label for="<?php echo $wpfc_toolbar_element_id; ?>"><?php _e($value); ?></label> |
| 56 | </div> |
| 57 | <?php |
| 58 | } |
| 59 | ?> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | <div class="window-buttons-wrapper" style="padding: 0px; display: inline-block; width: 100%; border-top: 1px solid rgb(255, 255, 255); background: none repeat scroll 0px 0px rgb(222, 222, 222); z-index: 999; position: relative; text-align: right; border-radius: 0px 0px 3px 3px;"> |
| 65 | <div style="padding: 12px; height: 23px;"> |
| 66 | |
| 67 | <button class="wpfc-dialog-buttons" type="button" action="close"> |
| 68 | <span><?php _e("Cancel", "wp-fastest-cache"); ?></span> |
| 69 | </button> |
| 70 | <button class="wpfc-dialog-buttons buttons-green" type="button" action="finish"> |
| 71 | <span><?php _e("Save", "wp-fastest-cache"); ?></span> |
| 72 | </button> |
| 73 | |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |