div.container > .row, .' . lightspeed_get_block_id() . '.areoi-lightspeed-block > div.container-fluid > .row { min-height: calc( ' . lightspeed_get_attribute( 'size', '100vh' ) . ' - ' . ( $mobile_padding * 2 ) . 'px ); } @media only screen and (min-width: ' . get_option( 'areoi-layout-grid-grid-breakpoint-lg', '992px' ) . ') { .' . lightspeed_get_block_id() . '.areoi-lightspeed-block { padding: ' . $padding . 'px 0; } .' . lightspeed_get_block_id() . '.areoi-lightspeed-block > div.container > .row, .' . lightspeed_get_block_id() . '.areoi-lightspeed-block > div.container-fluid > .row { min-height: calc( ' . lightspeed_get_attribute( 'size', '100vh' ) . ' - ' . $padding * 2 . 'px ); } } '; $content = ''; $content .= '
'; $content .= $background; $content .= $background_pattern; ob_start(); include( $template ); $content .= ob_get_clean(); $content .= '
'; return $content; } $block_folders = array( 'hero', 'header', 'footer', 'content-with-media', 'content-with-items', 'contact', 'media', 'post-grid', 'call-to-action', 'next-and-previous', 'logos' ); foreach ( $block_folders as $block_folder ) { $directory = AREOI__PLUGIN_LIGHTSPEED_DIR . 'blocks/' . $block_folder; if ( file_exists( $directory . '/index.php' ) ) { require $directory . '/index.php'; register_block_type_from_metadata( $directory, array( 'render_callback' => 'lightspeed_render_block_' . str_replace( '-', '_', $block_folder ), ) ); } }