PluginProbe
Booking Calendar / 11.0
Booking Calendar v11.0
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
booking / includes / ui_settings / elements / ui_el__divider.php

ui_el__divider.php in Booking Calendar 11.0, at includes/ui_settings/elements/ui_el__divider.php

97 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 }