| 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_page" role="presentation" class="active"><a href="javascript:wppm_get_page_settings();"><?php echo esc_html_e('Page Setting','taskbuilder');?></a></li> |
| 19 |
<li id="wppm_settings_category" role="presentation"><a href="javascript:wppm_get_category_settings();"><?php echo esc_html_e('Project Categories','taskbuilder');?></a></li> |
| 20 |
<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> |
| 21 |
<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> |
| 22 |
<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> |
| 23 |
<li id="wppm_settings_miscellaneous" role="presentation"><a href="javascript:wppm_get_miscellaneous_settings();"><?php echo esc_html_e('Miscellaneous','taskbuilder');?></a></li> |
| 24 |
<li id="wppm_settings_appearance" role="presentation"><a href="javascript:wppm_get_appearance_settings();"><?php echo esc_html_e('Appearance','taskbuilder');?></a></li> |
| 25 |
<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> |
| 26 |
<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> |
| 27 |
<?php do_action('wppm_after_setting_pills');?> |
| 28 |
</ul> |
| 29 |
</div> |
| 30 |
<div class="col-sm-8 wppm_setting_col2"></div> |
| 31 |
<div id="wppm_alert_success" class="alert alert-success wppm_alert" style="display:none;" role="alert"> |
| 32 |
<img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/success.svg'); ?>" alt="success"> |
| 33 |
<span class="wppm_alert_text"></span> |
| 34 |
</div> |
| 35 |
<div id="wppm_alert_error" class="alert alert-danger wppm_alert" style="display:none;" role="alert"> |
| 36 |
<img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/warning-triangle.svg'); ?>" alt="warning-triangle"><span class="wppm_alert_text"></span> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
|
| 40 |
</div> |
| 41 |
<!-- Pop-up snippet start --> |
| 42 |
<div id="wppm_popup_background" style="display:none;"></div> |
| 43 |
<div id="wppm_popup_container" style="display:none;"> |
| 44 |
<div class="wppm_bootstrap"> |
| 45 |
<div class="row"> |
| 46 |
<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"> |
| 47 |
<div id="wppm_popup_title" class="row"><h3><?php echo esc_html_e('Modal Title','taskbuilder');?></h3></div> |
| 48 |
<div id="wppm_popup_body" class="row"><?php echo esc_html_e('I am body!','taskbuilder');?></div> |
| 49 |
<div id="wppm_popup_footer" class="row"> |
| 50 |
<button type="button" class="btn wppm_popup_close"><?php echo esc_html_e('Close','taskbuilder');?></button> |
| 51 |
<button type="button" class="btn wppm_popup_action"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> |
| 52 |
</div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
<style> |
| 58 |
#wppm_popup_title{ |
| 59 |
background-color: <?php echo esc_attr($popup_settings['header-bg-color'])?>; |
| 60 |
} |
| 61 |
#wppm_popup_title h3{ |
| 62 |
color:<?php echo esc_attr( $popup_settings['header-text-color'])?>; |
| 63 |
} |
| 64 |
#wppm_popup_body{ |
| 65 |
background-color: <?php echo esc_attr($popup_settings['body-bg-color'])?>!important; |
| 66 |
} |
| 67 |
#wppm_popup_body label{ |
| 68 |
color:<?php echo esc_attr( $popup_settings['body-label-color'])?>; |
| 69 |
} |
| 70 |
#wppm_popup_body input{ |
| 71 |
color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; |
| 72 |
} |
| 73 |
#wppm_popup_body select{ |
| 74 |
color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; |
| 75 |
} |
| 76 |
#wppm_popup_body span { |
| 77 |
color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; |
| 78 |
} |
| 79 |
#wppm_popup_body .select2-results__options { |
| 80 |
color:<?php echo esc_attr( $popup_settings['body-text-color'])?>; |
| 81 |
} |
| 82 |
#wppm_popup_footer{ |
| 83 |
background-color: <?php echo esc_attr($popup_settings['footer-bg-color'])?>!important; |
| 84 |
} |
| 85 |
.wppm_popup_action{ |
| 86 |
background-color: <?php echo esc_attr($popup_settings['action-btn-bg-color'])?>!important; |
| 87 |
color:<?php echo esc_attr( $popup_settings['action-btn-text-color'])?>!important; |
| 88 |
} |
| 89 |
.wppm_bootstrap .nav-pills > li.active > a, |
| 90 |
.wppm_bootstrap .nav-pills > li.active > a:hover, |
| 91 |
.wppm_bootstrap .nav-pills > li.active > a:focus { |
| 92 |
color: <?php echo esc_attr( $wppm_ap_settings['tab-text-color'])?>!important; |
| 93 |
background-color:<?php echo esc_attr($wppm_ap_settings['tab-background-color'])?>!important; |
| 94 |
} |
| 95 |
</style> |
| 96 |
<!-- Pop-up snippet end --> |
| 97 |
<script> |
| 98 |
jQuery(document).ready(function(){ |
| 99 |
wppm_get_general_settings(); |
| 100 |
}); |
| 101 |
</script> |