| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user,$wpdb,$wppmfunction; |
| 7 |
$wppm_default_task_list_view = get_option('wppm_default_task_list_view'); |
| 8 |
$wppm_project_time = get_option('wppm_project_time'); |
| 9 |
?> |
| 10 |
<form id="wppm_frm_general_settings" method="post" action="javascript:wppm_set_general_settings();"> |
| 11 |
<span> |
| 12 |
<label><?php echo esc_html_e('Task List View','taskbuilder');?></label> |
| 13 |
</span><br> |
| 14 |
<p class="help-block"><?php echo esc_html_e('This selected view get applied on task list table','taskbuilder');?></p> |
| 15 |
<input type="radio" name="wppm_task_list_view" style="margin-top: 0px;" value="1" <?php echo ((esc_attr($wppm_default_task_list_view))==1) ?'checked="checked"':'';?>> |
| 16 |
<span style="padding-left: 10px;"><?php echo esc_html_e('List View','taskbuilder');?></span> |
| 17 |
<br> |
| 18 |
<input type="radio" name="wppm_task_list_view" value="0" <?php echo ((esc_attr($wppm_default_task_list_view))==0)?'checked="checked"':'';?>> |
| 19 |
<span style="padding-left: 10px;"><?php echo esc_html_e('Card View','taskbuilder');?></span> |
| 20 |
<hr> |
| 21 |
<span> |
| 22 |
<label><?php echo esc_html_e('Time in project start date and end date','taskbuilder');?></label> |
| 23 |
</span><br> |
| 24 |
<p class="help-block"><?php echo esc_html_e('Default show/hide time in start and end date of project.','taskbuilder');?></p> |
| 25 |
<select class="form-control" name="wppm_project_time" id="wppm_project_time"> |
| 26 |
<?php |
| 27 |
$selected = $wppm_project_time == '1' ? 'selected="selected"' : ''; |
| 28 |
echo '<option '.$selected.' value="1">'.__('Show','taskbuilder').'</option>'; |
| 29 |
$selected = $wppm_project_time == '0' ? 'selected="selected"' : ''; |
| 30 |
echo '<option '.$selected.' value="0">'.__('Hide','taskbuilder').'</option>'; |
| 31 |
?> |
| 32 |
</select> |
| 33 |
<hr> |
| 34 |
<button type="submit" class="wppm-submit-btn"><?php echo esc_html_e('Save Changes','taskbuilder');?></button> |
| 35 |
<span class="wppm_submit_wait" style="display:none;"><img src="<?php echo esc_url( WPPM_PLUGIN_URL . 'asset/images/loading_buffer.svg'); ?>" alt="edit"></span> |
| 36 |
<input type="hidden" name="action" value="wppm_set_general_settings" /> |
| 37 |
</form> |