Buy Print URL fix

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
Philip M. Hofer (Frumph) 2009-12-05 14:53:55 -08:00
parent 68cc7fb0b2
commit d1b03c4903
2 changed files with 5 additions and 4 deletions

View File

@ -34,8 +34,8 @@ class BuyThisPrintWidget extends WP_Widget {
}
function buy_print_structure($content = '') {
global $buy_print_url; ?>
<div class="buythis"><form method="post" action="<?php echo $buy_print_url; ?>">
$comicpress_options = comicpress_load_options(); ?>
<div class="buythis"><form method="post" action="<?php echo $comicpress_options['buy_print_url']; ?>">
<input type="hidden" name="comic" value="<?php echo get_the_ID(); ?>" />
<button class="buythisbutton" type="submit" value="submit" name="submit"></button></form></div>
<div class="clear"></div>

View File

@ -135,9 +135,10 @@ class GraphicalNavigationWidget extends WP_Widget {
$id = $temp_id;
break;
case 'buyprint':
$comicpress_options = comicpress_load_options();
?><form method="post"
title="<?php echo $instance['buyprint_title']; ?>"
action="<?php echo apply_filters('comicpress_get_buy_print_url', ''); ?>"
action="<?php echo $comicpress_options['buy_print_url']; ?>"
class="navi-buyprint-form">
<input type="hidden" name="comic" value="<?php echo $current->ID; ?>" />
<button class="navi navi-buyprint"