2009-11-13 16:00:25 +00:00
< ? php
/*
Template Name : Buy Print
Template Author : Philip M . Hofer ( Frumph )
2009-11-14 15:12:36 +00:00
Template URL : http :// frumph . net / forum /
2009-11-13 16:00:25 +00:00
Template Author Email : philip @ frumph . net
Template Version : 2.14
*/
if ( isset ( $_REQUEST [ 'comic' ])) $comicnum = ( int ) $_REQUEST [ 'comic' ];
?>
< ? php get_header (); ?>
< ? php include ( get_template_directory () . '/layout-head.php' ); ?>
2009-12-20 12:05:59 +00:00
< ? php
if ( ! empty ( $comicnum )) :
2010-01-03 08:13:41 +00:00
$this_post = & get_post ( $comicnum );
2009-12-20 12:05:59 +00:00
?>
2009-12-24 23:15:30 +00:00
< div < ? php post_class (); ?> >
2009-12-23 18:43:05 +00:00
< ? php comicpress_display_post_thumbnail (); ?>
2009-12-24 23:15:30 +00:00
< div class = " post-head " ></ div >
2009-12-24 23:22:28 +00:00
< div class = " post-content " >
2009-11-22 18:06:19 +00:00
< ? php if ( ! $comicpress_options [ 'disable_page_titles' ]) { ?>
2010-01-03 08:13:41 +00:00
< h2 class = " pagetitle " >< ? php the_title (); ?> </h2>
2009-11-17 08:33:18 +00:00
< ? php } ?>
2009-11-13 16:00:25 +00:00
< ? php _e ( 'Comic ID' , 'comicpress' ); ?> - #<?php echo $comicnum; ?><br />
2010-01-03 08:13:41 +00:00
< ? php _e ( 'Title:' , 'comicpress' ); ?> <?php echo get_the_title($this_post); ?><br />
2009-11-13 16:00:25 +00:00
< br />
2010-01-03 08:13:41 +00:00
< ? php
echo comicpress_display_comic_image ( " archive,comic " , false , $this_post , get_the_title ( $this_post ));
2009-11-13 16:00:25 +00:00
?>
< table >
< tr >
2010-01-03 08:13:41 +00:00
< td align = " left " >
2009-11-13 16:00:25 +00:00
< form target = " paypal " action = " https://www.paypal.com/cgi-bin/webscr " method = " post " >
2010-01-03 08:13:41 +00:00
< input type = " hidden " name = " add " value = " 1 " />
< input type = " hidden " name = " cmd " value = " _cart " />
< input type = " hidden " name = " item_name " value = " <?php _e('Print','comicpress'); ?> " />
< input type = " hidden " name = " return " value = " <?php echo bloginfo('wpurl'); ?> " />
< input type = " hidden " name = " amount " value = " <?php echo $comicpress_options['buy_print_us_amount'] ; ?> " />
< input type = " hidden " name = " item_number " value = " <?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum ; ?>) - <?php echo get_the_title( $this_post ); ?> " />
< input type = " hidden " name = " business " value = " <?php echo $comicpress_options['buy_print_email'] ; ?> " />
2009-11-22 18:06:19 +00:00
< ? php if ( $comicpress_options [ 'buy_print_add_shipping' ]) { ?>
2010-01-03 08:13:41 +00:00
< input type = " hidden " name = " shipping " value = " <?php echo $comicpress_options['buy_print_us_ship'] ; ?> " />
US / Canada < br />
2009-11-22 18:06:19 +00:00
$ < ? php echo $comicpress_options [ 'buy_print_us_amount' ]; ?> + $<?php echo $comicpress_options['buy_print_us_ship']; ?> <?php _e('shipping','comicpress'); ?><br />
2009-11-13 16:00:25 +00:00
< ? php } else { ?>
2010-01-03 08:13:41 +00:00
US / Canada < br />
2009-11-22 18:06:19 +00:00
$ < ? php echo $comicpress_options [ 'buy_print_us_amount' ]; ?> <br />
2009-11-13 16:00:25 +00:00
< ? php } ?>
< input type = " image " src = " <?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png " name = " submit32 " alt = " <?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?> " />
</ form >
</ td >
< td width = " 40 " >
</ td >
2010-01-03 08:13:41 +00:00
< td align = " left " >
2009-11-13 16:00:25 +00:00
< form target = " paypal " action = " https://www.paypal.com/cgi-bin/webscr " method = " post " >
2010-01-03 08:13:41 +00:00
< input type = " hidden " name = " add " value = " 1 " />
< input type = " hidden " name = " cmd " value = " _cart " />
< input type = " hidden " name = " item_name " value = " <?php _e('Print','comicpress'); ?> " />
< input type = " hidden " name = " return " value = " <?php echo bloginfo('wpurl'); ?> " />
< input type = " hidden " name = " amount " value = " <?php echo $comicpress_options['buy_print_int_amount'] ; ?> " />
< input type = " hidden " name = " item_number " value = " <?php _e('Comic ID','comicpress'); ?> (<?php echo $comicnum ; ?>) - <?php echo get_the_title( $this_post ); ?> " />
< input type = " hidden " name = " business " value = " <?php echo $comicpress_options['buy_print_email'] ; ?> " />
2009-11-22 18:06:19 +00:00
< ? php if ( $comicpress_options [ 'buy_print_add_shipping' ]) { ?>
2010-01-03 08:13:41 +00:00
< input type = " hidden " name = " shipping " value = " <?php echo $buy_print_int_ship ; ?> " />
International < br />
2009-11-22 18:06:19 +00:00
$ < ? php echo $comicpress_options [ 'buy_print_int_amount' ]; ?> + $<?php echo $comicpress_options['buy_print_int_ship']; ?> <?php _e('shipping','comicpress'); ?><br />
2009-11-13 16:00:25 +00:00
< ? php } else { ?>
2010-01-03 08:13:41 +00:00
International < br />
2009-11-22 18:06:19 +00:00
$ < ? php echo $comicpress_options [ 'buy_print_int_amount' ]; ?> <br />
2009-11-13 16:00:25 +00:00
< ? php } ?>
< input type = " image " src = " <?php echo get_template_directory_uri(); ?>/images/buynow_paypal.png " name = " submit32 " alt = " <?php _e('Make payments with PayPal - it is fast, free and secure!','comicpress'); ?> " />
</ form >
</ td >
</ tr >
</ table >
< br />
< ? php _e ( 'The purchase of this strip is based on availability. A Print of this strip is what you are purchasing.' , 'comicpress' ); ?> <br />
</ center >
2009-12-20 12:05:59 +00:00
< br class = " clear-margins " />
2009-11-13 16:00:25 +00:00
</ div >
2009-12-24 23:15:30 +00:00
< div class = " post-foot " ></ div >
2009-11-13 16:00:25 +00:00
</ div >
2009-12-20 12:05:59 +00:00
< ? php else : ?>
< ? php while ( have_posts ()) : the_post () ?>
2009-12-24 23:15:30 +00:00
< div < ? php post_class (); ?> >
2009-12-23 18:43:05 +00:00
< ? php comicpress_display_post_thumbnail (); ?>
2009-12-24 23:15:30 +00:00
< div class = " post-head " ></ div >
2009-12-24 23:22:28 +00:00
< div class = " post-content " >
2009-12-20 12:05:59 +00:00
< ? php if ( ! $comicpress_options [ 'disable_page_titles' ]) { ?>
< h2 class = " pagetitle " >< ? php the_title () ?> </h2>
< ? php } ?>
< div class = " entry " >
< ? php the_content (); ?>
</ div >
2009-11-29 12:40:02 +00:00
< br class = " clear-margins " />
2009-12-20 12:05:59 +00:00
< ? php edit_post_link ( __ ( 'Edit this page.' , 'comicpress' ), '<p>' , '</p>' ) ?>
</ div >
2009-12-24 23:15:30 +00:00
< div class = " post-foot " ></ div >
2009-11-13 16:00:25 +00:00
</ div >
2009-12-20 12:05:59 +00:00
< ? php endwhile ; ?>
< ? php if ( 'open' == $post -> comment_status ) { comments_template ( '' , true ); } ?>
< ? php endif ; ?>
2009-11-13 16:00:25 +00:00
< ? php include ( get_template_directory () . '/layout-foot.php' ); ?>
< ? php get_footer () ?>