| @@ -1,9 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | exit; // Exit if accessed directly |
| 4 | 4 | } |
| 5 | -global $wpdb, $wppmfunction; | |
| 5 | +global $wpdb, $wppmfunction,$current_user; | |
| 6 | +$popup_settings = get_option("wppm-ap-modal"); | |
| 7 | +$wppm_ap_settings = get_option("wppm-ap-settings"); | |
| 8 | +if (!($current_user->ID && $current_user->has_cap('wppm_admin') || $current_user->has_cap('manage_options'))) { | |
| 9 | + exit; | |
| 10 | +} | |
| 6 | 11 | ?> |
| 7 | 12 | <div class="wppm_bootstrap"> |
| 8 | 13 | <span class="wppm-heading-inline wppm_email_notification_header"> |
| 9 | 14 | <?php echo esc_html_e('Settings','taskbuilder');?> |
| @@ -12,12 +17,17 @@ | ||
| 12 | 17 | <div class="row"> |
| 13 | 18 | <div class="col-sm-4 wppm_setting_col1"> |
| 14 | 19 | <ul class="nav nav-pills nav-stacked wppm_setting_pills"> |
| 15 | 20 | <li id="wppm_settings_general" role="presentation" class="active"><a href="javascript:wppm_get_general_settings();"><?php echo esc_html_e('General','taskbuilder');?></a></li> |
| 21 | + <li id="wppm_settings_page" role="presentation" class="active"><a href="javascript:wppm_get_page_settings();"><?php echo esc_html_e('Page Setting','taskbuilder');?></a></li> | |
| 16 | 22 | <li id="wppm_settings_category" role="presentation"><a href="javascript:wppm_get_category_settings();"><?php echo esc_html_e('Project Categories','taskbuilder');?></a></li> |
| 17 | 23 | <li id="wppm_settings_proj_status" role="presentation"><a href="javascript:wppm_get_proj_status_settings();"><?php echo esc_html_e('Project Statuses','taskbuilder');?></a></li> |
| 18 | 24 | <li id="wppm_settings_task_priorities" role="presentation"><a href="javascript:wppm_get_task_prioriy_settings();"><?php echo esc_html_e('Tasks Priorities','taskbuilder');?></a></li> |
| 19 | 25 | <li id="wppm_settings_task_status" role="presentation"><a href="javascript:wppm_get_task_status_settings();"><?php echo esc_html_e('Task Statuses','taskbuilder');?></a></li> |
| 26 | + <li id="wppm_settings_miscellaneous" role="presentation"><a href="javascript:wppm_get_miscellaneous_settings();"><?php echo esc_html_e('Miscellaneous','taskbuilder');?></a></li> | |
| 27 | + <li id="wppm_settings_appearance" role="presentation"><a href="javascript:wppm_get_appearance_settings();"><?php echo esc_html_e('Appearance','taskbuilder');?></a></li> | |
| 28 | + <li id="wppm_settings_coworker" role="presentation"><a href="javascript:wppm_get_coworker_permission_settings();"><?php echo esc_html_e('Co-workers Permission','taskbuilder');?></a></li> | |
| 29 | + <li id="wppm_settings_rich_text_editor" role="presentation"><a href="javascript:wppm_get_rich_text_editor_settings();"><?php echo esc_html_e('Rich Text Editor','taskbuilder');?></a></li> | |
| 20 | 30 | <?php do_action('wppm_after_setting_pills');?> |
| 21 | 31 | </ul> |
| 22 | 32 | </div> |
| 23 | 33 | <div class="col-sm-8 wppm_setting_col2"></div> |
| @@ -46,8 +56,47 @@ | ||
| 46 | 56 | </div> |
| 47 | 57 | </div> |
| 48 | 58 | </div> |
| 49 | 59 | </div> |
| 60 | +<style> | |
| 61 | + #wppm_popup_title{ | |
| 62 | + background-color: <?php echo esc_attr($popup_settings['header-bg-color'])?>; | |
| 63 | + } | |
| 64 | + #wppm_popup_title h3{ | |
| 65 | + color:<?php echo esc_attr( $popup_settings['header-text-color'])?>; | |
| 66 | + } | |
| 67 | + #wppm_popup_body{ | |
| 68 | + background-color: <?php echo esc_attr($popup_settings['body-bg-color'])?>!important; | |
| 69 | + } | |
| 70 | + #wppm_popup_body label{ | |
| 71 | + color:<?php echo esc_attr( $popup_settings['body-label-color'])?>; | |
| 72 | + } | |
| 73 | + #wppm_popup_body input{ | |
| 74 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 75 | + } | |
| 76 | + #wppm_popup_body select{ | |
| 77 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 78 | + } | |
| 79 | + #wppm_popup_body span { | |
| 80 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 81 | + } | |
| 82 | + #wppm_popup_body .select2-results__options { | |
| 83 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 84 | + } | |
| 85 | + #wppm_popup_footer{ | |
| 86 | + background-color: <?php echo esc_attr($popup_settings['footer-bg-color'])?>!important; | |
| 87 | + } | |
| 88 | + .wppm_popup_action{ | |
| 89 | + background-color: <?php echo esc_attr($popup_settings['action-btn-bg-color'])?>!important; | |
| 90 | + color:<?php echo esc_attr( $popup_settings['action-btn-text-color'])?>!important; | |
| 91 | + } | |
| 92 | + .wppm_bootstrap .nav-pills > li.active > a, | |
| 93 | + .wppm_bootstrap .nav-pills > li.active > a:hover, | |
| 94 | + .wppm_bootstrap .nav-pills > li.active > a:focus { | |
| 95 | + color: <?php echo esc_attr( $wppm_ap_settings['tab-text-color'])?>!important; | |
| 96 | + background-color:<?php echo esc_attr($wppm_ap_settings['tab-background-color'])?>!important; | |
| 97 | + } | |
| 98 | +</style> | |
| 50 | 99 | <!-- Pop-up snippet end --> |
| 51 | 100 | <script> |
| 52 | 101 | jQuery(document).ready(function(){ |
| 53 | 102 | wppm_get_general_settings(); |