| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
|
| 3 |
<?php $settings = get_option( 'wppb_toolbox_shortcodes_settings' ); ?> |
| 4 |
|
| 5 |
<form method="post" action="options.php"> |
| 6 |
|
| 7 |
<?php settings_fields( 'wppb_toolbox_shortcodes_settings' ); ?> |
| 8 |
|
| 9 |
<table class="form-table"> |
| 10 |
|
| 11 |
<tr> |
| 12 |
<th><?php esc_html_e( 'Enable Compare shortcode', 'profile-builder' ); ?></th> |
| 13 |
|
| 14 |
<td> |
| 15 |
<label><input type="checkbox" name="wppb_toolbox_shortcodes_settings[compare]"<?php echo ( ( isset( $settings['compare'] ) && ( $settings['compare'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 16 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 17 |
</label> |
| 18 |
|
| 19 |
<ul> |
| 20 |
<li class="description"> |
| 21 |
<?php echo wp_kses_post( __( 'You can read more info about this shortcode by following <a href="https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/compare-shortcode/">this url</a>.', 'profile-builder' ) ); ?> |
| 22 |
</li> |
| 23 |
</ul> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
|
| 27 |
<tr> |
| 28 |
<th><?php esc_html_e( 'Enable Usermeta shortcode', 'profile-builder' ); ?></th> |
| 29 |
|
| 30 |
<td> |
| 31 |
<label><input type="checkbox" name="wppb_toolbox_shortcodes_settings[usermeta]"<?php echo ( ( isset( $settings['usermeta'] ) && ( $settings['usermeta'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 32 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 33 |
</label> |
| 34 |
|
| 35 |
<ul> |
| 36 |
<li class="description"> |
| 37 |
<?php echo wp_kses_post( __( 'You can read more info about this shortcode by following <a href="https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/display-user-meta/">this url</a>.', 'profile-builder' ) ); ?> |
| 38 |
</li> |
| 39 |
</ul> |
| 40 |
</td> |
| 41 |
</tr> |
| 42 |
|
| 43 |
<tr> |
| 44 |
<th><?php esc_html_e( 'Enable Resend Activation Email shortcode', 'profile-builder' ); ?></th> |
| 45 |
|
| 46 |
<td> |
| 47 |
<label><input type="checkbox" name="wppb_toolbox_shortcodes_settings[resend-activation]"<?php echo ( ( isset( $settings['resend-activation'] ) && ( $settings['resend-activation'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 48 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 49 |
</label> |
| 50 |
|
| 51 |
<ul> |
| 52 |
<li class="description"> |
| 53 |
<?php echo wp_kses_post( __( 'You can read more info about this shortcode by following <a href="https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/resend-confirmation-email/">this url</a>.', 'profile-builder' ) ); ?> |
| 54 |
</li> |
| 55 |
</ul> |
| 56 |
</td> |
| 57 |
</tr> |
| 58 |
|
| 59 |
<tr> |
| 60 |
<th><?php esc_html_e( 'Enable Format Date shortcode', 'profile-builder' ); ?></th> |
| 61 |
|
| 62 |
<td> |
| 63 |
<label><input type="checkbox" name="wppb_toolbox_shortcodes_settings[format-date]"<?php echo ( ( isset( $settings['format-date'] ) && ( $settings['format-date'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 64 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 65 |
</label> |
| 66 |
|
| 67 |
<ul> |
| 68 |
<li class="description"> |
| 69 |
<?php echo wp_kses_post( __( 'You can read more info about this shortcode by following <a href="https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/format-date-shortcode/">this url</a>.', 'profile-builder' ) ); ?> |
| 70 |
</li> |
| 71 |
</ul> |
| 72 |
</td> |
| 73 |
</tr> |
| 74 |
|
| 75 |
<tr> |
| 76 |
<th><?php esc_html_e( 'Enable List Roles shortcode', 'profile-builder' ); ?></th> |
| 77 |
|
| 78 |
<td> |
| 79 |
<label><input type="checkbox" name="wppb_toolbox_shortcodes_settings[list-roles]"<?php echo ( ( isset( $settings['list-roles'] ) && ( $settings['list-roles'] == 'yes' ) ) ? ' checked' : '' ); ?> value="yes"> |
| 80 |
<?php esc_html_e( 'Yes', 'profile-builder' ); ?> |
| 81 |
</label> |
| 82 |
|
| 83 |
<ul> |
| 84 |
<li class="description"> |
| 85 |
<?php echo wp_kses_post( sprintf('You can read more info about this shortcode by following <a href="%s">this url</a>.', "https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/shortcodes/format-date-shortcode/") ); ?> |
| 86 |
</li> |
| 87 |
</ul> |
| 88 |
</td> |
| 89 |
</tr> |
| 90 |
</table> |
| 91 |
|
| 92 |
<?php submit_button( __( 'Save Changes', 'profile-builder' ) ); ?> |
| 93 |
|
| 94 |
</form> |
| 95 |
|