| @@ -1,105 +1,99 @@ | ||
| 1 | -<?php | |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | - exit; // Exit if accessed directly | |
| 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 | -} | |
| 11 | -?> | |
| 12 | -<div class="wppm_bootstrap"> | |
| 13 | - <span class="wppm-heading-inline wppm_email_notification_header"> | |
| 14 | - <?php echo esc_html_e('Settings','taskbuilder');?> | |
| 15 | - </span> | |
| 16 | - <div class="wppm_padding_space"></div> | |
| 17 | - <div class="row"> | |
| 18 | - <div class="col-sm-4 wppm_setting_col1"> | |
| 19 | - <ul class="nav nav-pills nav-stacked wppm_setting_pills"> | |
| 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> | |
| 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> | |
| 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> | |
| 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> | |
| 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> | |
| 30 | - <li id="wppm_settings_print_task" role="presentation"><a href="javascript:wppm_get_print_task_settings();"><?php echo esc_html_e('Print Task','taskbuilder');?></a></li> | |
| 31 | - <?php do_action('wppm_after_setting_pills');?> | |
| 32 | - </ul> | |
| 33 | - </div> | |
| 34 | - <div class="col-sm-8 wppm_setting_col2"></div> | |
| 35 | - <div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert"> | |
| 36 | - <img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/success.svg'); ?>" alt="success"> | |
| 37 | - <span class="wppm_alert_text"></span> | |
| 38 | - </div> | |
| 39 | - <div id="wppm_alert_error" class="alert alert-danger wppm_alert" style="display:none;" role="alert"> | |
| 40 | - <img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/warning-triangle.svg'); ?>" alt="warning-triangle"><span class="wppm_alert_text"></span> | |
| 41 | - </div> | |
| 42 | - </div> | |
| 43 | - | |
| 44 | -</div> | |
| 45 | -<!-- Pop-up snippet start --> | |
| 46 | -<div id="wppm_popup_background" style="display:none;"></div> | |
| 47 | -<div id="wppm_popup_container" style="display:none;"> | |
| 48 | - <div class="wppm_bootstrap"> | |
| 49 | - <div class="row"> | |
| 50 | - <div id="wppm_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3"> | |
| 51 | - <div id="wppm_popup_title" class="row"><h3><?php echo esc_html_e('Modal Title','taskbuilder');?></h3></div> | |
| 52 | - <div id="wppm_popup_body" class="row"><?php echo esc_html_e('I am body!','taskbuilder');?></div> | |
| 53 | - <div id="wppm_popup_footer" class="row"> | |
| 54 | - <button type="button" class="btn wppm_popup_close"><?php echo esc_html_e('Close','taskbuilder');?></button> | |
| 55 | - <button type="button" class="btn wppm_popup_action"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> | |
| 56 | - </div> | |
| 57 | - </div> | |
| 58 | - </div> | |
| 59 | - </div> | |
| 60 | -</div> | |
| 61 | -<style> | |
| 62 | - #wppm_popup_title{ | |
| 63 | - background-color: <?php echo esc_attr($popup_settings['header-bg-color'])?>; | |
| 64 | - } | |
| 65 | - #wppm_popup_title h3{ | |
| 66 | - color:<?php echo esc_attr( $popup_settings['header-text-color'])?>; | |
| 67 | - } | |
| 68 | - #wppm_popup_body{ | |
| 69 | - background-color: <?php echo esc_attr($popup_settings['body-bg-color'])?>!important; | |
| 70 | - } | |
| 71 | - #wppm_popup_body label{ | |
| 72 | - color:<?php echo esc_attr( $popup_settings['body-label-color'])?>; | |
| 73 | - } | |
| 74 | - #wppm_popup_body input{ | |
| 75 | - color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 76 | - } | |
| 77 | - #wppm_popup_body select{ | |
| 78 | - color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 79 | - } | |
| 80 | - #wppm_popup_body span { | |
| 81 | - color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 82 | - } | |
| 83 | - #wppm_popup_body .select2-results__options { | |
| 84 | - color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 85 | - } | |
| 86 | - #wppm_popup_footer{ | |
| 87 | - background-color: <?php echo esc_attr($popup_settings['footer-bg-color'])?>!important; | |
| 88 | - } | |
| 89 | - .wppm_popup_action{ | |
| 90 | - background-color: <?php echo esc_attr($popup_settings['action-btn-bg-color'])?>!important; | |
| 91 | - color:<?php echo esc_attr( $popup_settings['action-btn-text-color'])?>!important; | |
| 92 | - } | |
| 93 | - .wppm_bootstrap .nav-pills > li.active > a, | |
| 94 | - .wppm_bootstrap .nav-pills > li.active > a:hover, | |
| 95 | - .wppm_bootstrap .nav-pills > li.active > a:focus { | |
| 96 | - color: <?php echo esc_attr( $wppm_ap_settings['tab-text-color'])?>!important; | |
| 97 | - background-color:<?php echo esc_attr($wppm_ap_settings['tab-background-color'])?>!important; | |
| 98 | - } | |
| 99 | -</style> | |
| 100 | -<!-- Pop-up snippet end --> | |
| 101 | -<script> | |
| 102 | - jQuery(document).ready(function(){ | |
| 103 | - wppm_get_general_settings(); | |
| 104 | - }); | |
| 1 | +<?php | |
| 2 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 3 | + exit; // Exit if accessed directly | |
| 4 | +} | |
| 5 | +global $wpdb, $wppmfunction; | |
| 6 | +$popup_settings = get_option("wppm-ap-modal"); | |
| 7 | +$wppm_ap_settings = get_option("wppm-ap-settings"); | |
| 8 | +?> | |
| 9 | +<div class="wppm_bootstrap"> | |
| 10 | + <span class="wppm-heading-inline wppm_email_notification_header"> | |
| 11 | + <?php echo esc_html_e('Settings','taskbuilder');?> | |
| 12 | + </span> | |
| 13 | + <div class="wppm_padding_space"></div> | |
| 14 | + <div class="row"> | |
| 15 | + <div class="col-sm-4 wppm_setting_col1"> | |
| 16 | + <ul class="nav nav-pills nav-stacked wppm_setting_pills"> | |
| 17 | + <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> | |
| 18 | + <li id="wppm_settings_category" role="presentation"><a href="javascript:wppm_get_category_settings();"><?php echo esc_html_e('Project Categories','taskbuilder');?></a></li> | |
| 19 | + <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> | |
| 20 | + <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> | |
| 21 | + <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> | |
| 22 | + <li id="wppm_settings_miscellaneous" role="presentation"><a href="javascript:wppm_get_miscellaneous_settings();"><?php echo esc_html_e('Miscellaneous','taskbuilder');?></a></li> | |
| 23 | + <li id="wppm_settings_appearance" role="presentation"><a href="javascript:wppm_get_appearance_settings();"><?php echo esc_html_e('Appearance','taskbuilder');?></a></li> | |
| 24 | + <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> | |
| 25 | + <?php do_action('wppm_after_setting_pills');?> | |
| 26 | + </ul> | |
| 27 | + </div> | |
| 28 | + <div class="col-sm-8 wppm_setting_col2"></div> | |
| 29 | + <div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert"> | |
| 30 | + <img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/success.svg'); ?>" alt="success"> | |
| 31 | + <span class="wppm_alert_text"></span> | |
| 32 | + </div> | |
| 33 | + <div id="wppm_alert_error" class="alert alert-danger wppm_alert" style="display:none;" role="alert"> | |
| 34 | + <img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/warning-triangle.svg'); ?>" alt="warning-triangle"><span class="wppm_alert_text"></span> | |
| 35 | + </div> | |
| 36 | + </div> | |
| 37 | + | |
| 38 | +</div> | |
| 39 | +<!-- Pop-up snippet start --> | |
| 40 | +<div id="wppm_popup_background" style="display:none;"></div> | |
| 41 | +<div id="wppm_popup_container" style="display:none;"> | |
| 42 | + <div class="wppm_bootstrap"> | |
| 43 | + <div class="row"> | |
| 44 | + <div id="wppm_popup" class="col-xs-10 col-xs-offset-1 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3"> | |
| 45 | + <div id="wppm_popup_title" class="row"><h3><?php echo esc_html_e('Modal Title','taskbuilder');?></h3></div> | |
| 46 | + <div id="wppm_popup_body" class="row"><?php echo esc_html_e('I am body!','taskbuilder');?></div> | |
| 47 | + <div id="wppm_popup_footer" class="row"> | |
| 48 | + <button type="button" class="btn wppm_popup_close"><?php echo esc_html_e('Close','taskbuilder');?></button> | |
| 49 | + <button type="button" class="btn wppm_popup_action"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> | |
| 50 | + </div> | |
| 51 | + </div> | |
| 52 | + </div> | |
| 53 | + </div> | |
| 54 | +</div> | |
| 55 | +<style> | |
| 56 | + #wppm_popup_title{ | |
| 57 | + background-color: <?php echo esc_attr($popup_settings['header-bg-color'])?>; | |
| 58 | + } | |
| 59 | + #wppm_popup_title h3{ | |
| 60 | + color:<?php echo esc_attr( $popup_settings['header-text-color'])?>; | |
| 61 | + } | |
| 62 | + #wppm_popup_body{ | |
| 63 | + background-color: <?php echo esc_attr($popup_settings['body-bg-color'])?>!important; | |
| 64 | + } | |
| 65 | + #wppm_popup_body label{ | |
| 66 | + color:<?php echo esc_attr( $popup_settings['body-label-color'])?>; | |
| 67 | + } | |
| 68 | + #wppm_popup_body input{ | |
| 69 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 70 | + } | |
| 71 | + #wppm_popup_body select{ | |
| 72 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 73 | + } | |
| 74 | + #wppm_popup_body span { | |
| 75 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 76 | + } | |
| 77 | + #wppm_popup_body .select2-results__options { | |
| 78 | + color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; | |
| 79 | + } | |
| 80 | + #wppm_popup_footer{ | |
| 81 | + background-color: <?php echo esc_attr($popup_settings['footer-bg-color'])?>!important; | |
| 82 | + } | |
| 83 | + .wppm_popup_action{ | |
| 84 | + background-color: <?php echo esc_attr($popup_settings['action-btn-bg-color'])?>!important; | |
| 85 | + color:<?php echo esc_attr( $popup_settings['action-btn-text-color'])?>!important; | |
| 86 | + } | |
| 87 | + .wppm_bootstrap .nav-pills > li.active > a, | |
| 88 | + .wppm_bootstrap .nav-pills > li.active > a:hover, | |
| 89 | + .wppm_bootstrap .nav-pills > li.active > a:focus { | |
| 90 | + color: <?php echo esc_attr( $wppm_ap_settings['tab-text-color'])?>!important; | |
| 91 | + background-color:<?php echo esc_attr($wppm_ap_settings['tab-background-color'])?>!important; | |
| 92 | + } | |
| 93 | +</style> | |
| 94 | +<!-- Pop-up snippet end --> | |
| 95 | +<script> | |
| 96 | + jQuery(document).ready(function(){ | |
| 97 | + wppm_get_general_settings(); | |
| 98 | + }); | |
| 105 | 99 | </script> |