Theme Options $options = get_option('visualmodo'); $hero = $options['hero'] ?? '2'; $hero_color_theming = $options['hero_color_theming'] ?? 'dark-theme-contrast'; $content_color_theming = $options['content_color_theming'] ?? 'light-theme'; // For SVG Shape $hero_boxed_or_stretched = $options['hero_boxed_or_stretched'] ?? 'container-fluid'; $hero_content_position = $options['hero_content_position'] ?? 'hero--left-center'; $hero_screen_size = $options['hero_screen_size'] ?? 'hero--medium-screen-size'; $hero_show = $options['hero_show'] ?? array('1', '2', '3'); $hero_shape_switch = $options['hero_shape_switch'] ?? ''; $hero_shape_style = $options['hero_shape_style'] ?? 'waves'; $hero_shape_position = $options['hero_shape_position'] ?? 'hero__shape--bottom'; $hero_breadcrumbs = $options['hero_breadcrumbs'] ?? true; $hero_shape_flip_vertical = isset($options['hero_shape_flip_vertical']) && $options['hero_shape_flip_vertical'] == true ? 'hero__shape--flip-vertical' : ''; $hero_shape_flip_horizontal = isset($options['hero_shape_flip_horizontal']) && $options['hero_shape_flip_horizontal'] == true ? 'hero__shape--flip-horizontal' : ''; $hero_shape_height = $options['hero_shape_height'] ?? '150'; $hero_shape_width = $options['hero_shape_width'] ?? '100'; $hero_shape_height = 'height:'.$hero_shape_height.'px;'; $hero_shape_width = 'width:calc('.$hero_shape_width.'% + 1.3px);'; $hero_shape_height_width = 'style="'.$hero_shape_height.$hero_shape_width.'";'; // Start Show Breakpoint $sm = 'd-none d-sm-none'; $md = 'd-md-none'; $lg = 'd-lg-none'; foreach ($hero_show as $key => $value) { switch($value) { case '1': $sm = 'd-sm-block'; break; case '2': $md = 'd-md-block'; break; case '3': $lg = 'd-lg-block'; break; } } $hero_show = $sm.' '.$md.' '.$lg; // End Show Breakpoint if ($hero == '2') { // SVG Shapes $waves = ''; $waves_invert = ''; $waves_opacity = ''; $curve = ''; $curve_invert = ''; $curve_asymmetrical = ''; $curve_asymmetrical_invert = ''; $triangle = ''; $triangle_invert = ''; $triangle_asymmetrical = ''; $triangle_asymmetrical_invert = ''; $tilt = ''; $arrow = ''; $arrow_invert = ''; $split = ''; $split_invert = ''; $book = ''; $book_invert = ''; ?>