rework buy print url fix to take advantage of filtering

This commit is contained in:
John Bintz 2009-12-06 14:56:08 -05:00
parent 001411a42a
commit 8a160873a9
1 changed files with 3 additions and 4 deletions

View File

@ -44,8 +44,8 @@ class GraphicalNavigationWidget extends WP_Widget {
* Handles hitting the global namespace for you.
*/
function comicpress_get_buy_print_url($url = '') {
global $buy_print_url;
return $buy_print_url;
$comicpress_options = comicpress_load_options();
return $comicpress_options['buy_print_url'];
}
/**
@ -135,10 +135,9 @@ 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 $comicpress_options['buy_print_url']; ?>"
action="<?php echo apply_filters('comicpress_get_buy_print_url', ''); ?>"
class="navi-buyprint-form">
<input type="hidden" name="comic" value="<?php echo $current->ID; ?>" />
<button class="navi navi-buyprint"