PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
components
/
containers
<?php use BackWPup\Utils\BackWPupHelpers; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * @var string $padding_size The padding sizes. Values: "small", "medium", "large". Default: "small". * @var string $children Children component to display. Must fit a /part/ template. Default: null. * @var string $class Optional. Additional classes to add to the container. */ # Padding $padding_sizes = [ 'small' => 'p-4', 'medium' => 'p-6', 'large' => 'p-8', ]; $padding_size = $padding_size ?? 'small'; $padding = array_key_exists($padding_size, $padding_sizes) ? $padding_sizes[$padding_size] : $padding_sizes['small']; # Class $class = $class ?? ''; ?> <div class="p-8 <?php echo esc_attr( BackWPupHelpers::clsx( $class, $padding, "text-center bg-white rounded-lg" ) ); ?>"> <?php isset($children) && BackWPupHelpers::children($children); ?> </div>
[-] scrollable-end.php
[edit]
[-] accordion.php
[edit]
[-] white-box.php
[edit]
[-] modal.php
[edit]
[-] sidebar.php
[edit]
[-] form-start.php
[edit]
[-] grey-box.php
[edit]
[+]
..
[-] max-screen.php
[edit]
[-] scrollable-start.php
[edit]
[-] form-end.php
[edit]
[-] green-box.php
[edit]