| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
|
| 3 |
<?php $settings = get_option( 'wppb_toolbox_userlisting_settings' ); ?> |
| 4 |
|
| 5 |
<form method="post" action="options.php"> |
| 6 |
|
| 7 |
<?php settings_fields( 'wppb_toolbox_userlisting_settings' ); ?> |
| 8 |
|
| 9 |
<table class="form-table"> |
| 10 |
|
| 11 |
<tr> |
| 12 |
<th><?php esc_html_e( 'Change placeholder text for Search box', 'profile-builder' ); ?></th> |
| 13 |
|
| 14 |
<td> |
| 15 |
<input type="text" name="wppb_toolbox_userlisting_settings[search-placeholder-text]" value="<?php echo ( !empty( $settings['search-placeholder-text']) ? esc_attr( $settings['search-placeholder-text'] ) : '' ); ?>"> |
| 16 |
|
| 17 |
<ul> |
| 18 |
<li class="description"> |
| 19 |
<?php echo wp_kses_post( __( 'This refers to the placeholder text from the <strong>{{{extra_search_all_fields}}}</strong> tag.', 'profile-builder' ) ); ?> |
| 20 |
</li> |
| 21 |
<li class="description"> |
| 22 |
<?php echo wp_kses_post( __( 'Default text is <strong>Search Users by All Fields</strong>, use this option to change it to something else. Leave empty if you do not want to change it.', 'profile-builder' ) ); ?> |
| 23 |
</li> |
| 24 |
</ul> |
| 25 |
</td> |
| 26 |
</tr> |
| 27 |
|
| 28 |
<tr> |
| 29 |
<th><?php esc_html_e( 'Modify base URL for Single Userlisting', 'profile-builder' ); ?></th> |
| 30 |
|
| 31 |
<td> |
| 32 |
<input type="text" name="wppb_toolbox_userlisting_settings[modify-permalinks-single]" value="<?php echo ( !empty( $settings['modify-permalinks-single']) ? esc_attr( $settings['modify-permalinks-single'] ) : '' ); ?>"> |
| 33 |
|
| 34 |
<ul> |
| 35 |
<li class="description"> |
| 36 |
<?php |
| 37 |
echo wp_kses_post( __( 'By default Single Userlisting URLs contain the word <strong>user</strong>. eg.: ', 'profile-builder' ) ); |
| 38 |
echo esc_url( home_url( 'userlisting/user/123' ) ); |
| 39 |
?> |
| 40 |
</li> |
| 41 |
<li class="description"> |
| 42 |
<?php echo wp_kses_post( __( 'Using this option, you can change the word <strong>user</strong> to something else. Leave empty if you do not want to change it.', 'profile-builder' ) ); ?> |
| 43 |
</li> |
| 44 |
</ul> |
| 45 |
</td> |
| 46 |
</tr> |
| 47 |
|
| 48 |
<tr> |
| 49 |
<th><?php esc_html_e( 'Make the Single Userlisting URLs work with user nicename', 'profile-builder' ); ?></th> |
| 50 |
|
| 51 |
<td> |
| 52 |
<label><input type="checkbox" name="wppb_toolbox_userlisting_settings[use-nicename-single]"<?php echo ( ( isset( $settings['use-nicename-single'] ) && ( $settings['use-nicename-single'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 53 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 54 |
</label> |
| 55 |
|
| 56 |
<ul> |
| 57 |
<li class="description"> |
| 58 |
<?php |
| 59 |
esc_html_e( 'By default Single Userlisting URLs are generated using the users ID. eg.: ', 'profile-builder' ); |
| 60 |
echo esc_url( home_url( 'userlisting/user/123' ) ); |
| 61 |
?> |
| 62 |
</li> |
| 63 |
<li class="description"> |
| 64 |
<?php echo wp_kses_post( __( 'With this option activated, the URLs will be generated using the users <strong>nicename</strong>.', 'profile-builder' ) ); ?> |
| 65 |
</li> |
| 66 |
</ul> |
| 67 |
</td> |
| 68 |
</tr> |
| 69 |
|
| 70 |
<tr> |
| 71 |
<th><?php esc_html_e( 'Remove repetition counts from Faceted Menus', 'profile-builder' ); ?></th> |
| 72 |
|
| 73 |
<td> |
| 74 |
<label><input type="checkbox" name="wppb_toolbox_userlisting_settings[remove-repetitions]"<?php echo ( ( isset( $settings['remove-repetitions'] ) && ( $settings['remove-repetitions'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 75 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 76 |
</label> |
| 77 |
|
| 78 |
<ul> |
| 79 |
<li class="description"> |
| 80 |
<?php esc_html_e( 'The number of users that share a particular value is shown for the Select and Checkbox facet types.', 'profile-builder' ); ?> |
| 81 |
</li> |
| 82 |
<li class="description"> |
| 83 |
<?php esc_html_e( 'If you enable this option they will be hidden.', 'profile-builder' ); ?> |
| 84 |
</li> |
| 85 |
</ul> |
| 86 |
</td> |
| 87 |
</tr> |
| 88 |
|
| 89 |
</table> |
| 90 |
|
| 91 |
<?php submit_button( __( 'Save Changes', 'profile-builder' ) ); ?> |
| 92 |
|
| 93 |
</form> |
| 94 |
|