/** * Define the row wrapper html */ function spyropress_row_wrapper($row_ID, $row) { extract($row['options']); $section_class = array(); $parallax = $video = $mp4 = $ogg = ''; // CssClass if (isset($custom_container_class) && !empty($custom_container_class)) { $section_class[] = $custom_container_class; } if (isset($container_skin) && !empty($container_skin)) { $section_class[] = $container_skin; if ('parallax' == $container_skin) { $parallax = ' data-stellar-background-ratio="0.5" style="background-image: url(' . $parallax_bg . ');"'; } if ('video_section' == $container_skin) { if ($video_mp4) { $mp4 = 'mp4: ' . $video_mp4 . ', '; } if ($video_ogg) { $ogg = 'ogv: ' . $video_ogg . ', '; } if ($video_poster) { $poster = 'poster: ' . $video_poster; } if ($video_mp4 || $video_ogg) { $parallax = ' data-video-path="' . $mp4 . $ogg . $poster . '" data-plugin-video-background data-plugin-options=\'{"posterType": "' . end(explode('.', $video_poster)) . '", "position": "50% 50%" }\''; } } } $row_html = sprintf(' <div id="%1$s" class="%2$s"%5$s> <div class="container"> <div class="%3$s"> %4$s </div> </div> %6$s </div>', $row_ID, spyropress_clean_cssclass($section_class), get_row_class(true), builder_render_frontend_columns($row['columns']), $parallax, $video); return $row_html; }
function row_wrapper($row_ID, $row) { return builder_render_frontend_columns($row['columns']); }