当前位置: 首页>>代码示例>>PHP>>正文


PHP putRevSlider函数代码示例

本文整理汇总了PHP中putRevSlider函数的典型用法代码示例。如果您正苦于以下问题:PHP putRevSlider函数的具体用法?PHP putRevSlider怎么用?PHP putRevSlider使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了putRevSlider函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: revolutionslider_top

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>';
                }
            }
        }
    }
}
开发者ID:Kang8M,项目名称:gaonhat,代码行数:32,代码来源:custom.php

示例2: sf_return_slider

function sf_return_slider($revslider_shortcode)
{
    ob_start();
    if (function_exists('putRevSlider')) {
        putRevSlider($revslider_shortcode);
    }
    return ob_get_clean();
}
开发者ID:arobbins,项目名称:spellestate,代码行数:8,代码来源:sf-media.php

示例3: rev_slider

function rev_slider()
{
    if (is_front_page()) {
        if (function_exists('rev_slider')) {
            echo putRevSlider("main");
        }
    }
}
开发者ID:aroldoa,项目名称:alicepediatric,代码行数:8,代码来源:functions.php

示例4: _render

    /**
     * @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 
        }
    }
开发者ID:nikolaskarica,项目名称:bds-alliance,代码行数:56,代码来源:revolution_slider.php

示例5: kareless_instagram_header

function kareless_instagram_header()
{
    if (!is_front_page()) {
        return;
    }
    ?>
	<div id="kareless-instagram-footer">
		<?php 
    putRevSlider('instagramfooter');
    ?>
	</div>
<?php 
}
开发者ID:ebinnion,项目名称:Kareless-Original-Storefront-Child-Theme,代码行数:13,代码来源:functions.php

示例6: cpotheme_header_slider

 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>';
         }
     }
 }
开发者ID:saki1001,项目名称:sj-2015,代码行数:16,代码来源:markup.php

示例7: my_custom_loop

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 
}
开发者ID:aroldoa,项目名称:alicepediatric,代码行数:18,代码来源:home-page.php

示例8: block_revslider_output

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;
}
开发者ID:jameymcelveen,项目名称:com.flyingtigersrc.www,代码行数:40,代码来源:block_revslider_output.php

示例9: ac_render_post_slideshow

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;
            }
        }
    }
}
开发者ID:Jhorton4,项目名称:Bohldfeys_Portfolio,代码行数:24,代码来源:functions.slideshows.php

示例10: do_shortcode

        }
        ?>
		</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 
开发者ID:sniezekjp,项目名称:blue-ridge-theme,代码行数:31,代码来源:header.php

示例11: avada_revslider

function avada_revslider($name)
{
    if (function_exists('putRevSlider')) {
        putRevSlider($name);
    }
}
开发者ID:ftopolovec,项目名称:proart,代码行数:6,代码来源:custom_functions.php

示例12: get_header

/**
 * 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">
开发者ID:bunnywong,项目名称:freshlinker,代码行数:30,代码来源:template-homepage.php

示例13: putRevSlider

			}
							
		});

		

	})
</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">
开发者ID:estrategasdigitales,项目名称:Golone,代码行数:30,代码来源:template-masonry.php

示例14: get_header

<?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();
开发者ID:davidrosado,项目名称:prueba,代码行数:31,代码来源:home.php

示例15: get_custom_option

">
			<?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;
                }
            }
开发者ID:eq0rip,项目名称:Hamroreview.com,代码行数:31,代码来源:header.php


注:本文中的putRevSlider函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。