| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
//print_r( $jobwpGeneralSettings ); |
| 7 |
foreach ( $jobwpGeneralSettings as $option_name => $option_value ) { |
| 8 |
if ( isset( $jobwpGeneralSettings[$option_name] ) ) { |
| 9 |
${"" . $option_name} = $option_value; |
| 10 |
} |
| 11 |
} |
| 12 |
?> |
| 13 |
<div id="wph-wrap-all" class="wrap jobwp-single-settings-page"> |
| 14 |
|
| 15 |
<div class="settings-banner"> |
| 16 |
<h2><i class="fa fa-cogs" aria-hidden="true"></i> <?php _e('General Settings', JOBWP_TXT_DOMAIN); ?></h2> |
| 17 |
</div> |
| 18 |
|
| 19 |
<?php |
| 20 |
if ( $jobwpGeneralMessage ) { |
| 21 |
$this->jobwp_display_notification('success', 'Your information updated successfully.'); |
| 22 |
echo '<br>'; |
| 23 |
} |
| 24 |
?> |
| 25 |
|
| 26 |
<div class="jobwp-wrap"> |
| 27 |
|
| 28 |
<div class="jobwp_personal_wrap jobwp_personal_help" style="width: 76%; float: left;"> |
| 29 |
|
| 30 |
<div class="tab-content"> |
| 31 |
<form name="jobwp_general_settings_form" role="form" class="form-horizontal" method="post" action="" id="jobwp-general-settings-form"> |
| 32 |
<table class="jobwp-single-settings-table"> |
| 33 |
<tr> |
| 34 |
<th scope="row"> |
| 35 |
<label><?php _e('Admin Notification Email', JOBWP_TXT_DOMAIN); ?></label> |
| 36 |
</th> |
| 37 |
<td> |
| 38 |
<input type="text" name="jobwp_admin_noti_email" id="jobwp_admin_noti_email" class="regular-text" value="<?php esc_attr_e( $jobwp_admin_noti_email ); ?>" /> |
| 39 |
<code><?php _e('An email will sent to this email when a candidate submit an applicaiton.', JOBWP_TXT_DOMAIN); ?></code> |
| 40 |
</td> |
| 41 |
</tr> |
| 42 |
<tr> |
| 43 |
<th scope="row"> |
| 44 |
<label><?php _e('Job List Layout', JOBWP_TXT_DOMAIN); ?></label> |
| 45 |
</th> |
| 46 |
<td> |
| 47 |
<input type="radio" name="jobwp_list_layout" id="jobwp_list_layout_list" value="list" <?php echo ( 'list' === $jobwp_list_layout ) ? 'checked' : ''; ?> > |
| 48 |
<label for="jobwp_list_layout_list"><span></span><?php _e('List', JOBWP_TXT_DOMAIN); ?></label> |
| 49 |
|
| 50 |
<input type="radio" name="jobwp_list_layout" id="jobwp_list_layout_grid" value="grid" <?php echo ( 'grid' === $jobwp_list_layout ) ? 'checked' : ''; ?> > |
| 51 |
<label for="jobwp_list_layout_grid"><span></span><?php _e('Grid', JOBWP_TXT_DOMAIN); ?></label> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
</table> |
| 55 |
<hr> |
| 56 |
<p class="submit"> |
| 57 |
<button id="updateGeneralSettings" name="updateGeneralSettings" class="button button-primary jobwp-button"> |
| 58 |
<i class="fa fa-check-circle" aria-hidden="true"></i> <?php _e('Save Settings', JOBWP_TXT_DOMAIN); ?> |
| 59 |
</button> |
| 60 |
</p> |
| 61 |
</form> |
| 62 |
</div> |
| 63 |
|
| 64 |
</div> |
| 65 |
|
| 66 |
<?php include_once('partial/admin-sidebar.php'); ?> |
| 67 |
|
| 68 |
</div> |
| 69 |
|
| 70 |
</div> |