<?php

global $allslider_settings;
?>
<!-- elastic slider --> 
<div id="smoothslider_container" class="nocsl">
	<div id="smoothslider" >
		<section id="smooth_header" class="header custom_header smoothslider"> 
				<?php 
$headervalue = get_post_custom_values("slideshow_name");
$headervalue = $headervalue[0];
allslider($type = "smooth", $name = $headervalue, $position = "Content");
?>
 
		</section>
	</div>
</div>
        <script type="text/javascript">
        jQuery(function($) 
		{
             	jQuery('#smooth_header').smoothDivScroll(
			{
			autoScrollingMode: "onStart",
			autoScrollingInterval: 10,
			autoScrollingStep: 1,
			scrollToAnimationDuration: 1000,
			autoScrollingDirection: "backAndForth",
			});
                	}); 
        </script>
예제 #2
0
function allslider_shortcode($atts)
{
    $output = "";
    extract(shortcode_atts(array("type" => 'nivo', "name" => ''), $atts));
    $allslider_position = "Content";
    $output .= allslider($type = "{$type}", $name = "{$name}", $position = "Content");
    return $output;
}
<?php

global $allslider_settings;
?>
<!-- flex slider -->
<div id="cycle_container" class="csl">
	<div id="cycleslider">
		<section id="cycle_header" class="header custom_header cycleslider wait"> 
 			<?php 
$headervalue = get_post_custom_values("slideshow_name");
$headervalue = $headervalue[0];
allslider($type = "cycle", $name = $headervalue, $position = "Content");
?>
 
		</section> 
	</div>
</div>