| @@ -1,14 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | exit; // Exit if accessed directly |
| 4 | 4 | } |
| 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 | -} | |
| 5 | +global $wpdb, $wppmfunction; | |
| 11 | 6 | ?> |
| 12 | 7 | <div class="wppm_bootstrap"> |
| 13 | 8 | <span class="wppm-heading-inline wppm_email_notification_header"> |
| 14 | 9 | <?php echo esc_html_e('Settings','taskbuilder');?> |
| @@ -17,17 +12,13 @@ | ||
| 17 | 12 | <div class="row"> |
| 18 | 13 | <div class="col-sm-4 wppm_setting_col1"> |
| 19 | 14 | <ul class="nav nav-pills nav-stacked wppm_setting_pills"> |
| 20 | 15 | <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> | |
| 22 | 16 | <li id="wppm_settings_category" role="presentation"><a href="javascript:wppm_get_category_settings();"><?php echo esc_html_e('Project Categories','taskbuilder');?></a></li> |
| 23 | 17 | <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> |
| 24 | 18 | <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> |
| 25 | 19 | <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 | 20 | <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> | |
| 30 | 21 | <?php do_action('wppm_after_setting_pills');?> |
| 31 | 22 | </ul> |
| 32 | 23 | </div> |
| 33 | 24 | <div class="col-sm-8 wppm_setting_col2"></div> |
| @@ -56,47 +47,8 @@ | ||
| 56 | 47 | </div> |
| 57 | 48 | </div> |
| 58 | 49 | </div> |
| 59 | 50 | </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> | |
| 99 | 51 | <!-- Pop-up snippet end --> |
| 100 | 52 | <script> |
| 101 | 53 | jQuery(document).ready(function(){ |
| 102 | 54 | wppm_get_general_settings(); |