Here is the working PHP code for the carousel:
Code: Select all
<?php
$content = "[smooth=id: 1; width:500; height:300; timed:true; arrows:true; carousel:true; links:false; info:false; align:center; frames:true; delay:35000; transition:fade; open:false; text:Pictures;]";
smooth_show($content);
?>
Code: Select all
<?php if(is_page('events')) { ?>
<img src="http://www.fakeurl.com/image1.jpg">
<?php } else { ?>
<?php } ?>
<?php if(is_home() ){
$content = "[smooth=id: 1; width:580; height:300; timed:true; arrows:true; carousel:false; links:false; info:true; align:center; frames:true; delay:9000; transition:fade; open:true; text:;]";
smooth_show($content); ?>
}
<?php } else { ?>
<?php } ?>