web/wp-content/themes/bgw/includes/slide.php
changeset 1 0d28b7c10758
equal deleted inserted replaced
0:0d9a58d2c515 1:0d28b7c10758
       
     1 <script type="text/javascript">
       
     2 stepcarousel.setup({
       
     3 	galleryid: 'mygallery', //id of carousel DIV
       
     4 	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
       
     5 	panelclass: 'panel', //class of panel DIVs each holding content
       
     6 	panelbehavior: {speed:500, wraparound:true, persist:true},
       
     7 	defaultbuttons: {enable: true, moveby: 1, leftnav: ['<?php bloginfo('template_directory'); ?>/images/left.png', -27, 60], rightnav: ['<?php bloginfo('template_directory'); ?>/images/right.png', -5, 60]},
       
     8 	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
       
     9 	contenttype: ['external'] //content setting ['inline'] or ['external', 'path_to_external_file']
       
    10 })
       
    11 
       
    12 
       
    13 </script>
       
    14 
       
    15 <div id="mygallery" class="stepcarousel">
       
    16 <div class="belt">
       
    17 <?php 
       
    18 	$slidecat = get_option('pov_slide_category');
       
    19 	$slidecount = get_option('pov_slide_count');
       
    20 	
       
    21 	$my_query = new WP_Query('category_name= '. $slidecat .'&showposts='.$slidecount.'');
       
    22 while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
       
    23 ?>
       
    24 
       
    25 <div class="panel">
       
    26 
       
    27 		<div class="slideimg">
       
    28 		<?php $screen = get_post_meta($post->ID,'slide', true); ?>
       
    29 		<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" > <img src="<?php echo ($screen); ?>" width="250" height="250" 	alt="<?php the_title(); ?>"/> </a>
       
    30 		</div>
       
    31 
       
    32 		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php 	the_title(); ?></a>
       
    33         </h2>
       
    34         <div class="slideex">
       
    35         <?php the_excerpt(); ?>
       
    36         <p><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>">Read More &raquo;</a></p>
       
    37 		</div>
       
    38 </div>
       
    39 
       
    40 <?php endwhile; ?>
       
    41 
       
    42 
       
    43 
       
    44 </div>
       
    45 
       
    46 </div>
       
    47