ana sayfadaki foto galeride dönen resimler var buraya tıklayınca http://www.safakurankursu.net/foto-galeri sayfasına gitmesini istiyorum.
yardımlarınızı bekliyorum arkadaşlar
buradaki hangi kodla oynamam lazım?
Foto galeri kodları;
function get_home_scroll( $cat_data ){ ?>
wp_enqueue_script( 'tie-cycle' );
$Cat_ID = $cat_data['id'];
$offset = $Box_Title = $Posts = '';
if( !empty($cat_data['number']) )
$Posts = $cat_data['number'];
if( !empty($cat_data['title']) )
$Box_Title = $cat_data['title'];
if( !empty($cat_data['offset']) )
$offset = $cat_data['offset'];
$cat_query = new WP_Query('cat='.$Cat_ID.'&no_found_rows=1&posts_pe r_page='.$Posts.'&offset='.$offset);
?>
<script>
jQuery(document).ready(function() {
var vids = jQuery("#slideshow .scroll-item");
for(var i = 0; i < vids.length; i+=4) {
vids.slice(i, i+4).wrapAll('');
}
jQuery(function() {
jQuery('#slideshow').cycle({
fx: 'scrollHorz',
timeout: 3000,
pager: '#nav',
slideExpr: '.group_items',
speed: 300,
pause: true
});
});
});
</script>
2 resimler için kod;
function get_home_news_pic( $cat_data ){ ?>
$Cat_ID = $cat_data['id'];
$Posts = 13;
$offset = $Box_style = $Box_Title ='';
if( !empty($cat_data['title']) )
$Box_Title = $cat_data['title'];
if( !empty($cat_data['style']) )
$Box_style = $cat_data['style'];
if($Box_style == 'row') $Posts = 16;
if( !empty($cat_data['offset']) )
$offset = $cat_data['offset'];
$cat_query = new WP_Query('cat='.$Cat_ID.'&no_found_rows=1&posts_per_page='.$Posts.'&offset='.$offset);
?>