| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin Panel UI - Parts |
| 4 |
* |
| 5 |
* @version 1.2 |
| 6 |
* @package Any |
| 7 |
* @category Page Structure in Admin Panel |
| 8 |
* @author wpdevelop |
| 9 |
* |
| 10 |
* @web-site https://wpbookingcalendar.com/ |
| 11 |
* @email info@wpbookingcalendar.com |
| 12 |
* |
| 13 |
* @modified 2025-02-15 |
| 14 |
*/ |
| 15 |
|
| 16 |
if ( ! defined( 'ABSPATH' ) ) { |
| 17 |
exit; // Exit, if accessed directly. |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* Vertical Divider |
| 22 |
* |
| 23 |
* @param array $args - parameters. |
| 24 |
* |
| 25 |
* @return void |
| 26 |
*/ |
| 27 |
function wpbc_ui_el__divider_vertical( $args = array() ) { |
| 28 |
|
| 29 |
$defaults = array( |
| 30 |
'style' => '', |
| 31 |
'container_class' => '', |
| 32 |
'container_style' => '', |
| 33 |
'attr' => array(), |
| 34 |
'class' => 'wpbc_ui_el__vertical_line', |
| 35 |
); |
| 36 |
$params = wp_parse_args( $args, $defaults ); |
| 37 |
|
| 38 |
?><div class="wpbc_ui_el_container wpbc_ui_el__divider <?php echo esc_attr( $params['container_class'] ); ?>" |
| 39 |
style="<?php echo esc_attr( $params['container_style'] ); ?>"><div class="wpbc_ui_el <?php echo esc_attr( $params['class'] ); ?>" |
| 40 |
style="<?php echo esc_attr( $params['style'] ); ?>" |
| 41 |
<?php echo wpbc_get_custom_attr( $params ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?> |
| 42 |
></div></div><?php |
| 43 |
} |
| 44 |
|
| 45 |
|
| 46 |
/** |
| 47 |
* Horizontal Divider |
| 48 |
* |
| 49 |
* @param array $args - parameters. |
| 50 |
* |
| 51 |
* @return void |
| 52 |
*/ |
| 53 |
function wpbc_ui_el__divider_horizontal( $args = array() ) { |
| 54 |
|
| 55 |
$defaults = array( |
| 56 |
'style' => '', |
| 57 |
'container_class' => '', |
| 58 |
'container_style' => '', |
| 59 |
'attr' => array(), |
| 60 |
'class' => 'wpbc_ui_el__horisontal_line', |
| 61 |
); |
| 62 |
$params = wp_parse_args( $args, $defaults ); |
| 63 |
|
| 64 |
wpbc_ui_el__divider_vertical( $params ); |
| 65 |
} |
| 66 |
|
| 67 |
|
| 68 |
/** |
| 69 |
* Horizontal Space |
| 70 |
* |
| 71 |
* @param array $args - parameters. |
| 72 |
* |
| 73 |
* @return void |
| 74 |
*/ |
| 75 |
function wpbc_ui_el__space_horizontal( $args = array() ) { |
| 76 |
?> |
| 77 |
<div class="wpbc_ui_el__divider"> |
| 78 |
<div class="wpbc_ui_el__vertical_space"></div> |
| 79 |
</div> |
| 80 |
<?php |
| 81 |
} |
| 82 |
|
| 83 |
|
| 84 |
/** |
| 85 |
* Vertical Space |
| 86 |
* |
| 87 |
* @param array $args - parameters. |
| 88 |
* |
| 89 |
* @return void |
| 90 |
*/ |
| 91 |
function wpbc_ui_el__space_vertical( $args = array() ) { |
| 92 |
?> |
| 93 |
<div class="wpbc_ui_el__divider"> |
| 94 |
<div class="wpbc_ui_el__horisontal_space"></div> |
| 95 |
</div> |
| 96 |
<?php |
| 97 |
} |