| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
//$jobwpSearchStyles = []; |
| 7 |
foreach ( $jobwpSearchStyles as $option_name => $option_value ) { |
| 8 |
if ( isset( $jobwpSearchStyles[$option_name] ) ) { |
| 9 |
${"" . $option_name} = $option_value; |
| 10 |
} |
| 11 |
} |
| 12 |
?> |
| 13 |
<form name="jobwp_search_style_form" role="form" class="form-horizontal" method="post" action="" id="jobwp-search-style-form"> |
| 14 |
<table class="jobwp-settings-table"> |
| 15 |
<!-- Search Container --> |
| 16 |
<tr> |
| 17 |
<th scope="row" colspan="6" style="text-align: left;"> |
| 18 |
<hr><span><?php _e('Container', JOBWP_TXT_DOMAIN); ?></span><hr> |
| 19 |
</th> |
| 20 |
</tr> |
| 21 |
<tr> |
| 22 |
<th scope="row"> |
| 23 |
<label><?php _e('Background Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 24 |
</th> |
| 25 |
<td> |
| 26 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_container_bg_color" id="jobwp_search_container_bg_color" value="<?php esc_attr_e( $jobwp_search_container_bg_color ); ?>"> |
| 27 |
<div id="colorpicker"></div> |
| 28 |
</td> |
| 29 |
<th scope="row"> |
| 30 |
<label><?php _e('Border Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 31 |
</th> |
| 32 |
<td> |
| 33 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_container_border_color" id="jobwp_search_container_border_color" value="<?php esc_attr_e( $jobwp_search_container_border_color ); ?>"> |
| 34 |
<div id="colorpicker"></div> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<!-- Search Items --> |
| 38 |
<tr> |
| 39 |
<th scope="row" colspan="6" style="text-align: left;"> |
| 40 |
<hr><span><?php _e('Search Items', JOBWP_TXT_DOMAIN); ?></span><hr> |
| 41 |
</th> |
| 42 |
</tr> |
| 43 |
<tr> |
| 44 |
<th scope="row"> |
| 45 |
<label><?php _e('Background Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 46 |
</th> |
| 47 |
<td> |
| 48 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_item_bg_color" id="jobwp_search_item_bg_color" value="<?php esc_attr_e( $jobwp_search_item_bg_color ); ?>"> |
| 49 |
<div id="colorpicker"></div> |
| 50 |
</td> |
| 51 |
<th scope="row"> |
| 52 |
<label><?php _e('Border Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 53 |
</th> |
| 54 |
<td> |
| 55 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_item_border_color" id="jobwp_search_item_border_color" value="<?php esc_attr_e( $jobwp_search_item_border_color ); ?>"> |
| 56 |
<div id="colorpicker"></div> |
| 57 |
</td> |
| 58 |
<th scope="row"> |
| 59 |
<label><?php _e('Font Size', JOBWP_TXT_DOMAIN); ?>:</label> |
| 60 |
</th> |
| 61 |
<td> |
| 62 |
<input type="number" class="small-text" min="11" max="50" name="jobwp_search_item_font_size" id="jobwp_search_item_font_size" value="<?php esc_attr_e( $jobwp_search_item_font_size ); ?>"> |
| 63 |
<code>px</code> |
| 64 |
</td> |
| 65 |
</tr> |
| 66 |
<!-- Search Button --> |
| 67 |
<tr> |
| 68 |
<th scope="row" colspan="6" style="text-align: left;"> |
| 69 |
<hr><span><?php _e('Search Button', JOBWP_TXT_DOMAIN); ?></span><hr> |
| 70 |
</th> |
| 71 |
</tr> |
| 72 |
<tr> |
| 73 |
<th scope="row"> |
| 74 |
<label><?php _e('Background Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 75 |
</th> |
| 76 |
<td> |
| 77 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_btn_bg_color" id="jobwp_search_btn_bg_color" value="<?php esc_attr_e( $jobwp_search_btn_bg_color ); ?>"> |
| 78 |
<div id="colorpicker"></div> |
| 79 |
</td> |
| 80 |
<th scope="row"> |
| 81 |
<label><?php _e('Font Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 82 |
</th> |
| 83 |
<td> |
| 84 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_btn_font_color" id="jobwp_search_btn_font_color" value="<?php esc_attr_e( $jobwp_search_btn_font_color ); ?>"> |
| 85 |
<div id="colorpicker"></div> |
| 86 |
</td> |
| 87 |
<th scope="row"> |
| 88 |
<label><?php _e('Font Size', JOBWP_TXT_DOMAIN); ?>:</label> |
| 89 |
</th> |
| 90 |
<td> |
| 91 |
<input type="number" class="small-text" min="11" max="50" name="jobwp_search_btn_font_size" id="jobwp_search_btn_font_size" value="<?php esc_attr_e( $jobwp_search_btn_font_size ); ?>"> |
| 92 |
<code>px</code> |
| 93 |
</td> |
| 94 |
</tr> |
| 95 |
<!-- Search Button::Hover --> |
| 96 |
<tr> |
| 97 |
<th scope="row" colspan="6" style="text-align: left;"> |
| 98 |
<hr><span><?php _e('Search Button :: Hover', JOBWP_TXT_DOMAIN); ?></span><hr> |
| 99 |
</th> |
| 100 |
</tr> |
| 101 |
<tr> |
| 102 |
<th scope="row"> |
| 103 |
<label><?php _e('Background Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 104 |
</th> |
| 105 |
<td> |
| 106 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_btn_bg_color_hvr" id="jobwp_search_btn_bg_color_hvr" value="<?php esc_attr_e( $jobwp_search_btn_bg_color_hvr ); ?>"> |
| 107 |
<div id="colorpicker"></div> |
| 108 |
</td> |
| 109 |
<th scope="row"> |
| 110 |
<label><?php _e('Font Color', JOBWP_TXT_DOMAIN); ?>:</label> |
| 111 |
</th> |
| 112 |
<td> |
| 113 |
<input class="jobwp-wp-color" type="text" name="jobwp_search_btn_font_color_hvr" id="jobwp_search_btn_font_color_hvr" value="<?php esc_attr_e( $jobwp_search_btn_font_color_hvr ); ?>"> |
| 114 |
<div id="colorpicker"></div> |
| 115 |
</td> |
| 116 |
</tr> |
| 117 |
</table> |
| 118 |
<hr> |
| 119 |
<p class="submit"> |
| 120 |
<button id="updateSearchStyles" name="updateSearchStyles" class="button button-primary jobwp-button"> |
| 121 |
<i class="fa fa-check-circle" aria-hidden="true"></i> <?php _e('Save Settings', JOBWP_TXT_DOMAIN); ?> |
| 122 |
</button> |
| 123 |
</p> |
| 124 |
</form> |