Ejemplo n.º 1
0
        echo '<div id="lambda-featured-header-wrap" ' . $margintop . ' class="' . $removeborder . '"><div id="lambda-featured-header">
					<figure class="lambda-featured-header-image">';
        //optional url
        $url = isset($slides['static_image_url']) ? $slides['static_image_url'] : '';
        echo isset($slides['static_image']) ? '<a href="' . $url . '"><img src="' . $slides['static_image'] . '" /></a>' : '';
        //optional Caption
        echo isset($slides['static_image_caption']) ? '<div class="container"><div class="row-fluid"><figcaption class="lambda-featured-header-caption"><span>' . $slides['static_image_caption'] . '</span></figcaption></div></div>' : '';
        echo '</figure></div></div>';
    }
    if ($slides['sliderstyle_type'] == 'static_video') {
        echo '<div id="lambda-featured-header-wrap" class="' . $removeborder . '"><div class="container"><div class="row-fluid"><div class="lambda-video span12">';
        echo do_shortcode($slides['single_embedded_code']);
        echo '</div></div></div></div>';
    }
    if ($slides['sliderstyle_type'] == 'static_slider') {
        if (isset($slides['main_slider'])) {
            $sliderinfo = explode('_', $slides['main_slider']);
            lambda_main_slider($slides, $removeborder);
        }
    }
    if ($slides['sliderstyle_type'] == 'static_shortcode') {
        if (!empty($slides['header_shortcode'])) {
            echo '<div id="lambda-featured-header-wrap" class="' . $removeborder . '"><div class="container">' . do_shortcode($slides['header_shortcode']) . '</div></div>';
        }
    }
    if ($slides['sliderstyle_type'] == 'static_shortcode_fw') {
        if (!empty($slides['header_shortcode_fw'])) {
            echo '<div id="lambda-featured-header-wrap" class="' . $removeborder . '">' . do_shortcode($slides['header_shortcode_fw']) . '</div>';
        }
    }
}
Ejemplo n.º 2
0
    }
    if ($slides['sliderstyle_type'] == 'static_textvideo') {
        echo '<div id="lambda-featured-header-wrap">
					<div class="container clearfix">
						<div class="sixteen columns clearfix" style="padding:40px 0;">';
        $headlinecolor = isset($slides['featured_headline_color']) && !empty($slides['featured_headline_color']) ? $slides['featured_headline_color'] : '';
        $featuredtextcolor = isset($slides['featured_text_color']) && !empty($slides['featured_text_color']) ? $slides['featured_text_color'] : '';
        echo '<div class="lambda-featured-header-content one_half">
								<h1 class="featured-header-title" style="color:' . $headlinecolor . ';">' . do_shortcode($slides['featured_headline']) . '</h1>
								<p style="color:' . $featuredtextcolor . ';">' . do_shortcode($slides['featured_text']) . '</p>';
        if ($slides['featured_buttontext']) {
            echo '<a class="button themebutton medium" href="' . $slides['featured_link'] . '">' . $slides['featured_buttontext'] . '</a>';
        }
        echo '</div><div class="lambda-featured-header-video one_half last"><div class="video-frame">';
        post_format_video($slides, "fh1");
        echo '</div></div>
					</div>
					</div>
			</div>';
    }
    if ($slides['sliderstyle_type'] == 'static_slider') {
        $sliderinfo = explode('_', $slides['main_slider']);
        //add exception for supersized this one needs to be called in another place
        $table_lambda_sliders = $wpdb->base_prefix . "lambda_sliders";
        $supersized = $wpdb->get_var("SELECT slidertype FROM {$table_lambda_sliders} WHERE id = {$sliderinfo['1']}");
        if ($supersized != 'supersized' || $sliderinfo[0] == 'revslider') {
            lambda_main_slider($slides);
        }
        // this function can be found in theme-functions.php around line 198
    }
}