| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/studiokobylisy_cz/www/wp-content/plugins/wp-bootstrap-blocks/src/templates/ |
Upload File : |
<?php
/**
* Template for wp-bootstrap-blocks/container
*
* This template can be overridden by copying it to theme/wp-bootstrap-blocks/container.php.
*
* @package wp-bootstrap-blocks/templates/container
* @version 2.0.0
*/
/**
* Block attributes.
* Defined in wp_bootstrap_blocks_get_template() which requires this template.
*
* The following attributes are available:
*
* @var $attributes array(
* 'isFluid' (boolean) => Defines if container should be fluid.
* 'fluidBreakpoint' (string) => Defines till which breakpoint the container should be fluid.
* 'marginAfter' (string) => Margin bottom class which should be added to the block (eg. 'mb-2').
* 'className' (string) => Additional class names which should be added to block.
* )
*/
/**
* Block content.
* Defined in wp_bootstrap_blocks_get_template() which requires this template.
*
* @var $content string
*/
$classes = array( 'wp-bootstrap-blocks-container' );
if ( array_key_exists( 'isFluid', $attributes ) && $attributes['isFluid'] ) {
if ( array_key_exists( 'fluidBreakpoint', $attributes ) && ! empty( $attributes['fluidBreakpoint'] ) ) {
array_push( $classes, 'container-' . $attributes['fluidBreakpoint'] );
} else {
array_push( $classes, 'container-fluid' );
}
} else {
array_push( $classes, 'container' );
}
if ( array_key_exists( 'marginAfter', $attributes ) && ! empty( $attributes['marginAfter'] ) ) {
array_push( $classes, $attributes['marginAfter'] );
}
if ( array_key_exists( 'className', $attributes ) && ! empty( $attributes['className'] ) ) {
array_push( $classes, $attributes['className'] );
}
/**
* Filters container block classes.
*
* @since 1.0.0
*
* @param array $classes Classes which should be added to the block.
* @param array $attributes Block attributes.
*/
$classes = apply_filters( 'wp_bootstrap_blocks_container_classes', $classes, $attributes );
?>
<div class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>">
<?php echo $content; // phpcs:ignore ?>
</div>