Example #1
0
/**
 * Template name: Home Default Template
 */
get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
	<section id="homepage" data-slider="<?php 
        echo ale_get_meta('sliderstylefull');
        ?>
">
		<div class="flexslider">
			<ul class="slides">
				<?php 
        $slider = ale_sliders_get_slider(ale_get_option('sliderslug'));
        ?>
                <?php 
        if ($slider) {
            ?>
                    <?php 
            foreach ($slider['slides'] as $slide) {
                ?>
                    <li>
                        <figure>
                            <?php 
                if ($slide['image']) {
                    ?>
                                <?php 
                    if ($slide['url']) {
                        echo '<a href="' . $slide['url'] . '">';
Example #2
0
    <div id="loading"></div>

    <!-- Background Home FlexSlider -->
    <div id="background-slider" <?php 
    if (is_blog()) {
        echo 'class="blog-slider"';
    }
    ?>
>
        <ul class="slides">
            <?php 
    if (is_page_template('page-home.php')) {
        $slider = ale_sliders_get_slider(ale_get_option('homeslugfull'));
    }
    if (is_blog()) {
        $slider = ale_sliders_get_slider(ale_get_option('blogslugfull'));
    }
    ?>
            <?php 
    if ($slider) {
        ?>
                <?php 
        foreach ($slider['slides'] as $slide) {
            ?>
                    <li style="background-image: url('<?php 
            echo $slide['image'];
            ?>
'); background-size: cover;">
                        <section>
                            <div class="section-content">
                                <p class="category"><?php 
Example #3
0
    ?>
"><?php 
    _e('Read More', 'aletheme');
    ?>
</a>
                        </div>
                    <?php 
}
?>
                </div>
            </div>
            <div class="center_h5_slider">
                <div class="slider-home5">
                    <ul class="slides">
                        <?php 
$slider = ale_sliders_get_slider(ale_get_meta('new-hone5-slider'));
?>
                        <?php 
if ($slider) {
    ?>
                            <?php 
    foreach ($slider['slides'] as $slide) {
        ?>
                                <li>
                                    <figure>
                                        <img src="<?php 
        echo $slide['image'];
        ?>
" alt="<?php 
        echo $slide['title'];
        ?>
Example #4
0
    <div class="leftside">
        <?php 
get_sidebar('mainmenu');
?>
    </div>
    <div class="rightside">
        <div class="margincontentbox">
            <div class="slider-wrapper theme-default">
                <?php 
//If the Advanced Template slider is not selected, the theme will get the Default Template slider.
if (ale_get_option('sliderslug2')) {
    $gettheslider = ale_get_option('sliderslug2');
} else {
    $gettheslider = ale_get_option('sliderslug');
}
$slider = ale_sliders_get_slider($gettheslider);
?>
                <?php 
if ($slider) {
    ?>
                <div id="slider" class="nivoSlider">
                    <?php 
    $i = 0;
    ?>
                    <?php 
    foreach ($slider['slides'] as $slide) {
        ?>
                        <?php 
        if ($slide['url']) {
            echo '<a href="' . $slide['url'] . '">';
        }
Example #5
0
                    <header class="page-title"><h2 class="a"><?php 
    woocommerce_page_title();
    ?>
</h2></header>
                <?php 
}
?>

                <?php 
if (ale_get_option('shopslider')) {
    ?>
                <div class="shopsliderbox">
                    <div class="shopslider cf">
                        <ul class="slides cf">
                            <?php 
    $slider = ale_sliders_get_slider(ale_get_option('shopslider'));
    ?>
                            <?php 
    if ($slider) {
        ?>
                                <?php 
        foreach ($slider['slides'] as $slide) {
            ?>
                                    <li>
                                        <?php 
            if ($slide['image']) {
                ?>
                                            <?php 
                if ($slide['url']) {
                    echo '<a href="' . $slide['url'] . '">';
                }
Example #6
0
    public function shortcodeSliderInit($atts)
    {
        extract(shortcode_atts(array('name' => '', 'slideshow' => 0, 'animation' => 'fade', 'controlnav' => 0, 'randomize' => 0), $atts));
        if (!$name) {
            return '';
        }
        $slider = ale_sliders_get_slider($name);
        if (!$slider) {
            return '';
        }
        $slider_id = sanitize_title('ale-slider-' . $slider['slug'] . '-' . wp_generate_password(5, false));
        ?>
		<div id="<?php 
        echo $slider_id;
        ?>
" class="ale-slider-slides cf">
			<div class="flexslider loading">
				<ul class="slides">
					<?php 
        foreach ($slider['slides'] as $slide) {
            ?>
						<li>
							<?php 
            if ($slide['html']) {
                ?>
								<div class="html">
									<?php 
                echo $slide['html'];
                ?>
								</div>
							<?php 
            } elseif ($slide['image']) {
                ?>
								<figure>
									<?php 
                if ($slide['url']) {
                    ?>
									<a href="<?php 
                    echo $slide['url'];
                    ?>
">
									<?php 
                }
                ?>
									<img src="<?php 
                echo $slide['image'];
                ?>
" alt="<?php 
                $slide['title'];
                ?>
" />
									<?php 
                if ($slide['url']) {
                    ?>
										</a>
									<?php 
                }
                ?>
								</figure>
								<?php 
                if ($slide['title'] || $slide['description']) {
                    ?>
									<div class="descr">
										<?php 
                    if ($slide['title']) {
                        ?>
											<h3><?php 
                        echo $slide['title'];
                        ?>
</h3>
										<?php 
                    }
                    ?>
										<?php 
                    if ($slide['description']) {
                        ?>
											<div class="text">
												<?php 
                        echo apply_filters('the_content', $slide['description']);
                        ?>
											</div>
										<?php 
                    }
                    ?>
									</div>
								<?php 
                }
                ?>
							<?php 
            }
            ?>
						</li>
					<?php 
        }
        ?>
				</ul>
			</div>
		</div>
		<script type="text/javascript">
            jQuery(window).load(function(){
                jQuery('#<?php 
        echo $slider_id;
        ?>
 .flexslider').fitVids().flexslider({
					animation: "<?php 
        echo $animation;
        ?>
",
					slideshow: <?php 
        echo $slideshow ? 'true' : 'false';
        ?>
,
					controlNav: <?php 
        echo $controlnav ? 'true' : 'false';
        ?>
,
					randomize: <?php 
        echo $randomize ? 'true' : 'false';
        ?>
,
					animationLoop: true,
					smoothHeight: true,
					multipleKeyboard:true,
					video:true,
					start: function(slider){
						slider.removeClass('loading');
					}
				});
			});
		</script>
		<?php 
    }