Exemple #1
0
function revolutionslider_top()
{
    if (is_front_page()) {
        global $virtue_premium;
        if (isset($virtue_premium['above_header_slider']) && $virtue_premium['above_header_slider'] == 1) {
            if (isset($virtue_premium['choose_slider']) && ($virtue_premium['choose_slider'] == 'ktslider' || $virtue_premium['choose_slider'] == 'cyclone' || $virtue_premium['choose_slider'] == 'rev')) {
                if ($virtue_premium['choose_slider'] == 'rev') {
                    echo '<div class="kad_fullslider">';
                    putRevSlider($virtue_premium['rev_slider']);
                } else {
                    if ($virtue_premium['choose_slider'] == 'ktslider') {
                        echo '<div class="kad_fullslider">';
                        echo do_shortcode('[kadence_slider id=' . $virtue_premium['kt_slider'] . ']');
                    } else {
                        if ($virtue_premium['choose_slider'] == 'cyclone') {
                            echo '<div class="kad_fullslider">';
                            echo do_shortcode($virtue_premium['home_cyclone_slider']);
                        }
                    }
                }
                if (isset($virtue_premium['above_header_slider_arrow']) && $virtue_premium['above_header_slider_arrow'] == 1) {
                    echo '<div class="kad_fullslider_arrow"><a href="#kad-banner"><i class="icon-arrow-down"></i></a></div>';
                }
                echo '</div>';
                if (isset($virtue_premium['header_style']) && $virtue_premium['header_style'] == 'shrink') {
                    $head_height = $virtue_premium['header_height'] / 2;
                    echo '<style type="text/css" media="screen">@media (min-width: 992px) {.kad-header-style-three #kad-shrinkheader, .kad-header-style-three #logo a.brand, .kad-header-style-three #logo #thelogo, .kad-header-style-three #nav-main ul.sf-menu > li > a {height:' . $head_height . 'px !important;line-height: ' . $head_height . 'px !important;}.kad-header-style-three #thelogo img {max-height: ' . $head_height . 'px !important;}}</style>';
                }
            }
        }
    }
}
Exemple #2
0
function sf_return_slider($revslider_shortcode)
{
    ob_start();
    if (function_exists('putRevSlider')) {
        putRevSlider($revslider_shortcode);
    }
    return ob_get_clean();
}
Exemple #3
0
function rev_slider()
{
    if (is_front_page()) {
        if (function_exists('rev_slider')) {
            echo putRevSlider("main");
        }
    }
}
    /**
     * @return string
     */
    protected function _render($options)
    {
        if ($activeAlias = $this->getParam('activeRevSlider')) {
            putRevSlider($activeAlias);
            echo '<i class="icon-spinner icon-spin rev-slider-spinner"></i>';
            ?>
            <script type="text/javascript" class="revslider-support-script">
            (function( $ ){
                var spinnerIcon = $('#<?php 
            echo $this->htmlElementId;
            ?>
').find('.rev-slider-spinner');
                spinnerIcon.css({
                    top: '50%',
                    left: '50%',
                    marginTop: -(spinnerIcon.height()/2),
                    marginLeft: -(spinnerIcon.width()/2)
                });
                var ele = $('#<?php 
            echo $this->htmlElementId;
            ?>
');
                var revSliderWrapper = ele.find('.rev_slider_wrapper');
                var revSlider = revSliderWrapper.children('.rev_slider');
                var height = parseInt(revSlider.css('maxHeight'));
                
                revSlider.css({opacity: 0});
                revSliderWrapper.css({height: height});
                ele.css({display: 'block'});
            
                // revSlider.waitForImages(function(){
                //     spinnerIcon.hide('fade', 600, function(){
                //         $(this).remove();
                //     });
                // });
                revSlider.on('revolution.slide.onloaded', function(){

                    spinnerIcon.hide('fade', 300, function(){
                        $(this).remove();
                    });

                    revSliderWrapper.find('.tp-rightarrow.default').addClass('icon-chevron-right');
                    revSliderWrapper.find('.tp-leftarrow.default').addClass('icon-chevron-left');
                    revSliderWrapper.css({height: ''});
                    revSlider.css({opacity: ''});
                    ele.addClass('revslider-gumm-initialised').find('script.revslider-support-script').remove();
                });

            }) (jQuery);
            </script>
            <?php 
        }
    }
function kareless_instagram_header()
{
    if (!is_front_page()) {
        return;
    }
    ?>
	<div id="kareless-instagram-footer">
		<?php 
    putRevSlider('instagramfooter');
    ?>
	</div>
<?php 
}
Exemple #6
0
 function cpotheme_header_slider()
 {
     if (function_exists('putRevSlider')) {
         $current_id = cpotheme_current_id();
         if (is_tax() || is_category() || is_tag()) {
             $page_slider = cpotheme_tax_meta($current_id, 'page_slider');
         } else {
             $page_slider = get_post_meta($current_id, 'page_slider', true);
         }
         if ($page_slider != '0' && $page_slider != '') {
             echo '<div id="revslider" class="revslider">';
             putRevSlider($page_slider);
             echo '</div>';
         }
     }
 }
Exemple #7
0
function my_custom_loop()
{
    ?>
 <div id="slider"><?php 
    putRevSlider("main");
    ?>
</div> 
 <div id="main_container">
 	<div id="boxes">
<img src="/images/boxes.png">
 	</div>
 <div id="single-post" class="entry-content">

  
  </div> <!-- end single post -->
 </div> <!-- end main container -->
<?php 
}
function block_revslider_output($params)
{
    extract($params);
    // BLOCK CLASSES
    $block_classes = "outter-wrapper feature";
    if (!empty($custom_classes)) {
        $block_classes .= " " . $custom_classes;
    }
    ?>

		<!-- BLOCK: REVSLIDER-->
		<div <?php 
    pb_block_id_class($block_classes, $params);
    ?>
>
	            
            <!-- block styles -->
            <style type="text/css" scoped>
				<?php 
    include 'includes/inc_block_output_style.php';
    ?>
            </style>
	            
	    	<div class="fullwidthbanner-container">
	    		<div class="fullwidthbanner">

	                <?php 
    if (function_exists("putRevSlider")) {
        putRevSlider($alias);
    }
    ?>

	    		</div>
	    	</div>
		</div>	
		<!-- END BLOCK -->
		
		<?php 
    return true;
}
function ac_render_post_slideshow($full_width)
{
    // Check the slideshow type
    $slideshow_type = ac_get_meta('slideshow_type');
    if ($slideshow_type == '') {
        // No slideshow
        return false;
    } elseif ($slideshow_type == 'ac') {
        // Render the AC slideshow
        return ac_render_ac_easy_slideshow($full_width);
    } elseif ($slideshow_type == 'ac_carousel') {
        // Render the AC slideshow
        return ac_render_ac_easy_slideshow($full_width, 'slick');
    } elseif ($slideshow_type == 'revslider') {
        if (ac_revslider_is_installed()) {
            // Get the RevSlider id
            $revolution_slideshow = ac_get_meta('revolution_slideshow');
            if ($revolution_slideshow) {
                putRevSlider($revolution_slideshow);
                return true;
            }
        }
    }
}
Exemple #10
0
        }
        ?>
		</div>
	</div>
	<?php 
    }
    ?>
	<?php 
    // Flex Slider
    if (get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex' && (get_post_meta($slider_page_id, 'pyre_wooslider', true) || get_post_meta($slider_page_id, 'pyre_wooslider', true) != 0)) {
        echo do_shortcode('[wooslider slide_page="' . get_post_meta($slider_page_id, 'pyre_wooslider', true) . '" slider_type="slides" limit="' . $data['flexslider_number'] . '"]');
    }
    ?>
	<?php 
    if (get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'rev' && get_post_meta($slider_page_id, 'pyre_revslider', true) && !$data['status_revslider'] && function_exists('putRevSlider')) {
        putRevSlider(get_post_meta($slider_page_id, 'pyre_revslider', true));
    }
    ?>
	<?php 
    if (get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'flex2' && get_post_meta($slider_page_id, 'pyre_flexslider', true)) {
        include_once get_template_directory() . '/flexslider.php';
    }
    ?>
	<?php 
    // ThemeFusion Elastic Slider
    if (get_post_meta($slider_page_id, 'pyre_slider_type', true) == 'elastic' && (get_post_meta($slider_page_id, 'pyre_elasticslider', true) || get_post_meta($slider_page_id, 'pyre_elasticslider', true) != 0)) {
        include_once get_template_directory() . '/elastic-slider.php';
    }
    ?>
	</div>
	<?php 
function avada_revslider($name)
{
    if (function_exists('putRevSlider')) {
        putRevSlider($name);
    }
}
/**
 * Template Name: Homepage
 *
 * @package WordPress
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
get_header();
?>



 <?php 
putRevSlider("mainhomeslider");
?>

<?php 
//get_template_part( 'template-parts/form', 'job_search' );
get_template_part('template-parts/homepage', 'jobs_listing');
?>

<?php 
if (jobboard_option('enable_job_status')) {
    get_template_part('template-parts/homepage', 'job_stats');
}
//endif;
?>

<div id="testimonials">
			}
							
		});

		

	})
</script>

<div class="super-container full-width" id="rosa">
    <div class="row rosa"> <!-- Give this div your desired background color -->
        <div class="container">
            <div class="row ">
                <div class="col-md-8">
                   <div style="margin-top: 45px;"><?php 
putRevSlider("sliderHome");
?>
</div>
                </div>
                <div class="col-md-4">
                	<iframe src="http://aspirantes.unila.edu.mx/iframe/" frameborder="0" height="510px" class="iframe-form" scrolling="no" style="margin-top:45px;margin-bottom: 45px;"></iframe>
               	</div>
            </div>
        </div>
    </div>
</div>

<div class="container">			
	<div class="col-md-8" style="margin-bottom:80px">
			<div class="main">
Exemple #14
0
<?php

/*
Template Name: Home
*/
get_header();
?>

<?php 
putRevSlider('inicio');
?>

	<?php 
/* The loop */
?>
	<?php 
while (have_posts()) {
    the_post();
    ?>

		<div id="servicios-home">
			<div class="container">
				<div class="row">
						<ul class="listado-servicios">
						 	<?php 
    $catquery = new WP_Query('cat=1&posts_per_page=4&order=asc');
    while ($catquery->have_posts()) {
        $catquery->the_post();
        ?>
									<li id="post-<?php 
        the_ID();
Exemple #15
0
">
			<?php 
if (get_custom_option('slider_show') == 'yes') {
    $slider_display = $body_style == 'fullwidth' ? 'fullscreen' : get_custom_option('slider_display');
    $slider = get_custom_option('slider_engine');
    ?>
                <div id="main_slider" class="main_slider_<?php 
    echo $slider_display;
    ?>
">
                    <div id="main_slider_inner">
                        <?php 
    if ($slider == 'revo' && is_plugin_active('revslider/revslider.php')) {
        $slider_alias = get_custom_option('slider_alias');
        if (!empty($slider_alias)) {
            putRevSlider($slider_alias);
        }
    } else {
        if ($slider == 'flex') {
            $slider_cat = get_custom_option("slider_category");
            $slider_orderby = get_custom_option("slider_orderby");
            $slider_order = get_custom_option("slider_order");
            $slider_count = $slider_ids = get_custom_option("slider_posts");
            if (themerex_strpos($slider_ids, ',') !== false) {
                $slider_count = 0;
            } else {
                $slider_ids = '';
                if (empty($slider_count)) {
                    $slider_count = 3;
                }
            }
Exemple #16
0
<?php

get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $slider_active = get_post_meta(get_the_ID(), 'trav_page_slider', true);
        $slider = $slider_active == '' ? 'Deactivated' : $slider_active;
        if (class_exists('RevSlider') && $slider != 'Deactivated') {
            echo '<div id="slideshow">';
            putRevSlider($slider);
            echo '</div>';
        }
        ?>

		<section id="content">
			<div class="container">
				<div id="main" class="entry-content">
					<?php 
        if (has_post_thumbnail()) {
            ?>
						<figure class="image-container block">
							<?php 
            the_post_thumbnail();
            ?>
						</figure>
					<?php 
        }
        ?>
					<?php 
        the_content();
Template Name: Courses
*
 Courses page, links through to Course sections e.g Higher Education.
*
* @package knowsley_college
*/
get_header();
?>

  <!-- Slider
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->

  <div class="slider">

    <?php 
putRevSlider("homepage");
?>
  

  </div>

  


</header>


  
  <!-- Main content
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
    function sf_pageslider()
    {
        global $post;
        if (!is_page()) {
            return;
        }
        // Get page slider meta values
        $page_slider = sf_get_post_meta($post->ID, 'sf_page_slider', true);
        // Swift Slider meta
        $ss_type = sf_get_post_meta($post->ID, 'sf_ss_type', true);
        $ss_category = sf_get_post_meta($post->ID, 'sf_ss_category', true);
        $ss_fs = sf_get_post_meta($post->ID, 'sf_ss_fs', true);
        $ss_maxheight = sf_get_post_meta($post->ID, 'sf_ss_maxheight', true);
        $ss_slidecount = sf_get_post_meta($post->ID, 'sf_ss_slides', true);
        $ss_autoplay = sf_get_post_meta($post->ID, 'sf_ss_autoplay', true);
        $ss_transition = sf_get_post_meta($post->ID, 'sf_ss_transition', true);
        $ss_loop = sf_get_post_meta($post->ID, 'sf_ss_loop', true);
        $ss_nav = sf_get_post_meta($post->ID, 'sf_ss_nav', true);
        $ss_pagination = sf_get_post_meta($post->ID, 'sf_ss_pagination', true);
        $ss_continue = sf_get_post_meta($post->ID, 'sf_ss_continue', true);
        if ($ss_continue == "") {
            $ss_continue = 'true';
        }
        // Revolution Slider ID
        $rs_ID = sf_get_post_meta($post->ID, 'sf_rev_slider_alias', true);
        // LayerSlider ID
        $ls_ID = sf_get_post_meta($post->ID, 'sf_layerslider_id', true);
        // Master Slider ID
        $ms_ID = sf_get_post_meta($post->ID, 'sf_masterslider_id', true);
        ?>

            <?php 
        if ($page_slider == "swift-slider") {
            global $sf_has_swiftslider;
            $sf_has_swiftslider = true;
            echo do_shortcode('[swift_slider type="' . $ss_type . '" category="' . $ss_category . '" fullscreen="' . $ss_fs . '" max_height="' . $ss_maxheight . '" slide_count="' . $ss_slidecount . '" transition="' . $ss_transition . '" loop="' . $ss_loop . '" nav="' . $ss_nav . '" pagination="' . $ss_pagination . '" autoplay="' . $ss_autoplay . '" continue="' . $ss_continue . '"]');
        } else {
            if ($page_slider == "revslider" && $rs_ID != "") {
                ?>

                <div class="home-slider-wrap">
                    <a href="#container" id="slider-continue"><?php 
                echo apply_filters('swift_slider_continue_icon', '<i class="ss-navigatedown"></i>');
                ?>
</a>
                    <?php 
                if (function_exists('putRevSlider')) {
                    putRevSlider($rs_ID);
                }
                ?>
                </div>

            <?php 
            } else {
                if ($page_slider == "layerslider" && $ls_ID != "") {
                    ?>

                <div class="home-slider-wrap">
                    <?php 
                    echo do_shortcode('[layerslider id="' . $ls_ID . '"]');
                    ?>
                </div>

            <?php 
                } else {
                    if ($page_slider == "masterslider" && $ms_ID != "") {
                        ?>

                <div class="home-slider-wrap">
                    <?php 
                        echo do_shortcode('[masterslider id="' . $ms_ID . '"]');
                        ?>
                </div>

            <?php 
                    }
                }
            }
        }
    }
Exemple #19
0
		<?php 
    switch ($m['type']) {
        case 'layerslider':
            if (Everything::isPluginActive('layerslider')) {
                layerslider($m['id']);
            }
            break;
        case 'masterslider':
            if (Everything::isPluginActive('masterslider')) {
                masterslider($m['id']);
            }
            break;
        case 'revslider':
            if (Everything::isPluginActive('revslider')) {
                putRevSlider($m['id']);
            }
            break;
    }
    ?>

	<?php 
} elseif ($banner['type'] == 'map' && preg_match('/^(?P<type>wild-googlemap|wp-google-map-plugin)-(?P<id>[0-9]+)$/', $banner['map'], $m)) {
    // Map
    ?>

		<?php 
    switch ($m['type']) {
        case 'wild-googlemap':
            if (Everything::isPluginActive('wild-googlemap')) {
                echo WiLD_GooglemapManager::getInstance()->render(array('id' => $m['id']));
Exemple #20
0
while ($loop->have_posts()) {
    $loop->the_post();
    ?>
					<div class="col-md-3">
						<?php 
    get_template_part('template-parts/content');
    ?>
					</div>
				<?php 
}
?>
			</div>	
			<div class="row category">
				<div class="col-md-12">
					<?php 
putRevSlider("categoria4");
?>
				</div>
			</div>

			<div class="row">
				<div class="col-md-12">
					<h2 class="underline text-left">Celulares</h1>
				</div>
			</div>	
			<div class="row">
			    <?php 
$args = array('post_type' => 'product', 'posts_per_page' => 4, 'product_cat' => 'celulares', 'orderby' => 'rand');
$loop = new WP_Query($args);
while ($loop->have_posts()) {
    $loop->the_post();
Exemple #21
0
				
				<?php 
if (is_page()) {
    global $post;
    $show_posts_slider = get_post_meta($post->ID, 'sf_posts_slider', true);
    $rev_slider_alias = get_post_meta($post->ID, 'sf_rev_slider_alias', true);
    $layerSlider_ID = get_post_meta($post->ID, 'sf_layerslider_id', true);
    if ($show_posts_slider) {
        sf_swift_slider();
    } else {
        if ($rev_slider_alias != "") {
            ?>
						<div class="home-slider-wrap">
							<?php 
            if (function_exists('putRevSlider')) {
                putRevSlider($rev_slider_alias);
            }
            ?>
						</div>
				<?php 
        } else {
            if ($layerSlider_ID != "") {
                ?>
					<div class="home-slider-wrap">
						<?php 
                echo do_shortcode('[layerslider id="' . $layerSlider_ID . '"]');
                ?>
					</div>
				<?php 
            }
        }
<?php

get_header('blog');
?>

<section id="blog">
	<div class="container">
		<div class="row">
			<div class="col-md-8 text-left">
				<?php 
putRevSlider("banner-blog");
?>

				<?php 
$paged = get_query_var('paged') ? absint(get_query_var('paged')) : 1;
$i = 1;
$args = array('posts_per_page' => 4, 'orderby' => 'post_date', 'order' => 'DESC', 'category_name' => 'noticias', 'paged' => $paged);
$query = new WP_Query($args);
?>
	
				
				<?php 
if ($query->have_posts()) {
    ?>
					<div class="row">
						<?php 
    while ($query->have_posts()) {
        $query->the_post();
        ?>
							<div class="col-md-6">
								<article id="post-<?php 
Exemple #23
0
 function om_putRevSlider($data, $putIn = "")
 {
     if (function_exists('putRevSlider')) {
         putRevSlider($data, $putIn);
     }
 }
                            echo '<div class="container"><div class="sixteen columns">';
                        }
                        putRevSlider(ot_get_option('incr_revo_slider' . $l['language_code']));
                        if ($style == 'boxed') {
                            echo '</div></div>';
                        }
                        echo "</section>";
                    }
                }
            }
        } else {
            echo '<section class="slider">';
            if ($style == 'boxed') {
                echo '<div class="container"><div class="sixteen columns">';
            }
            putRevSlider(ot_get_option('incr_revo_slider'));
            if ($style == 'boxed') {
                echo '</div></div>';
            }
            echo "</section>";
        }
    }
}
while (have_posts()) {
    the_post();
    ?>
	<!-- 960 Container -->
	<div class="container">
	<div <?php 
    post_class('post home clearfix');
    ?>
Exemple #25
0
<div class="sliderclass">
<?php 
global $virtue_premium;
if (function_exists('putRevSlider')) {
    putRevSlider($virtue_premium['shop_rev_slider']);
}
?>
</div><!--sliderclass-->
Exemple #26
0
 * NULLED !!!!!!!!!!!!!!!
 * USE HOMEPAGE TEMPLATE!!!!
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
//header('Location: '.get_bloginfo('wpurl'));
?>

<?php 
get_header();
?>
<div class="home_revSlider">
<?php 
putRevSlider("home");
?>
</div>
<div class="main_container">
	<div class="home_event_area">
        <div class="home_feature_event">
        	<?php 
echo do_shortcode('[rev_slider home_featured_activity]');
?>
			<!--
            <div class="event_title">
                <a class="feature_title" href="<?php 
bloginfo('wpurl');
?>
/event-registration/?ee=<?php 
echo get_post_meta(136, 'wpcf-home-slider-featured-activity-link', true);
Exemple #27
0
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package site
 */
get_header();
?>

<section id="banner">
	<div class="container-fluid">
		<div class="row">		
			<?php 
putRevSlider("banner-index");
?>
		
		</div>
	</div>
</section>

<section id="tracking-buscar">
	<div class="container">
		<div class="row">
			<div class="col-md-4 news-left">
				<div class="tracking-rastreie cor-amarelo">RASTREIE SEU PEDIDO AQUI</div>
			</div>
			<div class="col-md-8 news-right">
				<form action="<?php 
echo home_url('/') . 'rastreamento';
        ?>
			
		<?php 
        /* ---------------------------------------------------------------------------------------*/
        ?>
		
		<?php 
    } elseif (get_post_meta(get_the_ID(), 'minti_titlebar', true) == 'revslider') {
        ?>
		<!-- Titlebar Type: Revolution Slider -->
		
			<div class="clear"></div>
	
			<?php 
        if (class_exists('RevSlider')) {
            putRevSlider(get_post_meta(get_the_ID(), 'minti_revolutionslider', true));
        }
        ?>
			
		<?php 
        /* ---------------------------------------------------------------------------------------*/
        ?>
			
		<?php 
    } elseif (get_post_meta(get_the_ID(), 'minti_titlebar', true) == 'flexslider') {
        ?>
		<!-- Titlebar Type: FlexSlider -->
			
			<div id="title-flexslider">
				<div class="container">
					<div class="sixteen columns">
Exemple #29
0
?>
            <div class="menu-btn reserve">
                <svg height="100%" style="enable-background:new 0 0 32 32;" version="1.1" viewBox="0 0 32 32" width="32px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                    <path d="M4,10h24c1.104,0,2-0.896,2-2s-0.896-2-2-2H4C2.896,6,2,6.896,2,8S2.896,10,4,10z M28,14H4c-1.104,0-2,0.896-2,2  s0.896,2,2,2h24c1.104,0,2-0.896,2-2S29.104,14,28,14z M28,22H4c-1.104,0-2,0.896-2,2s0.896,2,2,2h24c1.104,0,2-0.896,2-2  S29.104,22,28,22z"/>
                </svg>
            </div>

	        <?php 
get_template_part('parts/logo');
?>

        </div>

        <figure class="topline-video">
            <?php 
putRevSlider('MobileSlider');
?>
        </figure>

    </div>
</header>
<section id="about-us" class="box box-1">

    <div class="box-content">
        <div class="brand-text">
            <h1>Le restaurant</h1>
            <ul class="fenti">
                <li>
                    <figure>
                        <?php 
get_template_part('assets/svg/j1.svg');
Exemple #30
0
<?php

/**
 * Template Name: Menu Template
 */
?>

<?php 
while (have_posts()) {
    the_post();
    ?>
  <?php 
    #get_template_part('templates/page', 'header');
    ?>
  <?php 
    putRevSlider('menu-slider');
    ?>
  <?php 
    get_template_part('templates/content-menu', 'page');
}