| 1 |
<?php |
| 2 |
|
| 3 |
if ( !defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
//print_r( $jobwpSearchContent ); |
| 7 |
foreach ( $jobwpSearchContent as $option_name => $option_value ) { |
| 8 |
if ( isset( $jobwpSearchContent[$option_name] ) ) { |
| 9 |
${"" . $option_name} = $option_value; |
| 10 |
} |
| 11 |
} |
| 12 |
?> |
| 13 |
<form name="jobwp_search_content_settings_form" role="form" class="form-horizontal" method="post" action="" id="jobwp-search-content-settings-form"> |
| 14 |
<table class="jobwp-listing-content-settings-table"> |
| 15 |
<tr> |
| 16 |
<th scope="row"> |
| 17 |
<label for="jobwp_hide_search_panel"><?php |
| 18 |
_e( 'Hide Search Panel', JOBWP_TXT_DOMAIN ); |
| 19 |
?>?</label> |
| 20 |
</th> |
| 21 |
<td colspan="3"> |
| 22 |
<input type="checkbox" name="jobwp_hide_search_panel" id="jobwp_hide_search_panel" <?php |
| 23 |
echo ( $jobwp_hide_search_panel ? 'checked' : '' ); |
| 24 |
?>> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
<tr><td colspan="4"><hr></td></tr> |
| 28 |
<tr> |
| 29 |
<th scope="row"> |
| 30 |
<label for="jobwp_hide_search_keyword"><?php |
| 31 |
_e( 'Hide Keyword', JOBWP_TXT_DOMAIN ); |
| 32 |
?>?</label> |
| 33 |
</th> |
| 34 |
<td> |
| 35 |
<input type="checkbox" name="jobwp_hide_search_keyword" id="jobwp_hide_search_keyword" <?php |
| 36 |
echo ( $jobwp_hide_search_keyword ? 'checked' : '' ); |
| 37 |
?> > |
| 38 |
</td> |
| 39 |
<th scope="row"> |
| 40 |
<label><?php |
| 41 |
_e( 'Placeholder Text', JOBWP_TXT_DOMAIN ); |
| 42 |
?></label> |
| 43 |
</th> |
| 44 |
<td> |
| 45 |
<input type="text" name="jobwp_search_keyword_ph" id="jobwp_search_keyword_ph" class="regular-text" value="<?php |
| 46 |
esc_attr_e( $jobwp_search_keyword_ph ); |
| 47 |
?>" /> |
| 48 |
</td> |
| 49 |
</tr> |
| 50 |
<tr> |
| 51 |
<th scope="row"> |
| 52 |
<label for="jobwp_hide_search_category"><?php |
| 53 |
_e( 'Hide Category', JOBWP_TXT_DOMAIN ); |
| 54 |
?>?</label> |
| 55 |
</th> |
| 56 |
<td> |
| 57 |
<input type="checkbox" name="jobwp_hide_search_category" id="jobwp_hide_search_category" <?php |
| 58 |
echo ( $jobwp_hide_search_category ? 'checked' : '' ); |
| 59 |
?> > |
| 60 |
</td> |
| 61 |
<th scope="row"> |
| 62 |
<label><?php |
| 63 |
_e( 'Placeholder Text', JOBWP_TXT_DOMAIN ); |
| 64 |
?></label> |
| 65 |
</th> |
| 66 |
<td> |
| 67 |
<input type="text" name="jobwp_search_category_ph" id="jobwp_search_category_ph" class="regular-text" value="<?php |
| 68 |
esc_attr_e( $jobwp_search_category_ph ); |
| 69 |
?>" /> |
| 70 |
</td> |
| 71 |
</tr> |
| 72 |
<tr> |
| 73 |
<th scope="row"> |
| 74 |
<label for="jobwp_hide_search_jobtype"><?php |
| 75 |
_e( 'Hide Job Type', JOBWP_TXT_DOMAIN ); |
| 76 |
?>?</label> |
| 77 |
</th> |
| 78 |
<td> |
| 79 |
<input type="checkbox" name="jobwp_hide_search_jobtype" id="jobwp_hide_search_jobtype" <?php |
| 80 |
echo ( $jobwp_hide_search_jobtype ? 'checked' : '' ); |
| 81 |
?> > |
| 82 |
</td> |
| 83 |
<th scope="row"> |
| 84 |
<label><?php |
| 85 |
_e( 'Placeholder Text', JOBWP_TXT_DOMAIN ); |
| 86 |
?></label> |
| 87 |
</th> |
| 88 |
<td> |
| 89 |
<input type="text" name="jobwp_search_jobtype_ph" id="jobwp_search_jobtype_ph" class="regular-text" value="<?php |
| 90 |
esc_attr_e( $jobwp_search_jobtype_ph ); |
| 91 |
?>" /> |
| 92 |
</td> |
| 93 |
</tr> |
| 94 |
<tr> |
| 95 |
<th scope="row"> |
| 96 |
<label for="jobwp_hide_search_location"><?php |
| 97 |
_e( 'Hide Job Location', JOBWP_TXT_DOMAIN ); |
| 98 |
?>?</label> |
| 99 |
</th> |
| 100 |
<td> |
| 101 |
<input type="checkbox" name="jobwp_hide_search_location" id="jobwp_hide_search_location" <?php |
| 102 |
echo ( $jobwp_hide_search_location ? 'checked' : '' ); |
| 103 |
?> > |
| 104 |
</td> |
| 105 |
<th scope="row"> |
| 106 |
<label><?php |
| 107 |
_e( 'Placeholder Text', JOBWP_TXT_DOMAIN ); |
| 108 |
?></label> |
| 109 |
</th> |
| 110 |
<td> |
| 111 |
<input type="text" name="jobwp_search_location_ph" id="jobwp_search_location_ph" class="regular-text" value="<?php |
| 112 |
esc_attr_e( $jobwp_search_location_ph ); |
| 113 |
?>" /> |
| 114 |
</td> |
| 115 |
</tr> |
| 116 |
<tr> |
| 117 |
<th scope="row"> |
| 118 |
<label for="jobwp_hide_search_level"><?php |
| 119 |
_e( 'Hide Job Level', JOBWP_TXT_DOMAIN ); |
| 120 |
?>?</label> |
| 121 |
</th> |
| 122 |
<td> |
| 123 |
<?php |
| 124 |
?> |
| 125 |
<span><?php |
| 126 |
echo '<a href="' . job_fs()->get_upgrade_url() . '">' . __( 'Please Upgrade Now', 'jobwp' ) . '</a>'; |
| 127 |
?></span> |
| 128 |
<?php |
| 129 |
?> |
| 130 |
</td> |
| 131 |
<th scope="row"> |
| 132 |
<label><?php |
| 133 |
_e( 'Placeholder Text', JOBWP_TXT_DOMAIN ); |
| 134 |
?></label> |
| 135 |
</th> |
| 136 |
<td> |
| 137 |
<?php |
| 138 |
?> |
| 139 |
<span><?php |
| 140 |
echo '<a href="' . job_fs()->get_upgrade_url() . '">' . __( 'Please Upgrade Now', 'jobwp' ) . '</a>'; |
| 141 |
?></span> |
| 142 |
<?php |
| 143 |
?> |
| 144 |
</td> |
| 145 |
</tr> |
| 146 |
<tr><td colspan="4"><hr></td></tr> |
| 147 |
<tr> |
| 148 |
<th scope="row"> |
| 149 |
<label><?php |
| 150 |
_e( 'Search Button Text', JOBWP_TXT_DOMAIN ); |
| 151 |
?></label> |
| 152 |
</th> |
| 153 |
<td colspan="3"> |
| 154 |
<input type="text" name="jobwp_search_button_txt" id="jobwp_search_button_txt" class="normal-text" value="<?php |
| 155 |
esc_attr_e( $jobwp_search_button_txt ); |
| 156 |
?>" /> |
| 157 |
</td> |
| 158 |
</tr> |
| 159 |
</table> |
| 160 |
<hr> |
| 161 |
<p class="submit"> |
| 162 |
<button id="updateSearchContent" name="updateSearchContent" class="button button-primary jobwp-button"> |
| 163 |
<i class="fa fa-check-circle" aria-hidden="true"></i> <?php |
| 164 |
_e( 'Save Settings', JOBWP_TXT_DOMAIN ); |
| 165 |
?> |
| 166 |
</button> |
| 167 |
</p> |
| 168 |
|
| 169 |
</form> |