rework buy print url fix to take advantage of filtering
This commit is contained in:
parent
001411a42a
commit
8a160873a9
|
@ -44,8 +44,8 @@ class GraphicalNavigationWidget extends WP_Widget {
|
||||||
* Handles hitting the global namespace for you.
|
* Handles hitting the global namespace for you.
|
||||||
*/
|
*/
|
||||||
function comicpress_get_buy_print_url($url = '') {
|
function comicpress_get_buy_print_url($url = '') {
|
||||||
global $buy_print_url;
|
$comicpress_options = comicpress_load_options();
|
||||||
return $buy_print_url;
|
return $comicpress_options['buy_print_url'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -135,10 +135,9 @@ class GraphicalNavigationWidget extends WP_Widget {
|
||||||
$id = $temp_id;
|
$id = $temp_id;
|
||||||
break;
|
break;
|
||||||
case 'buyprint':
|
case 'buyprint':
|
||||||
$comicpress_options = comicpress_load_options();
|
|
||||||
?><form method="post"
|
?><form method="post"
|
||||||
title="<?php echo $instance['buyprint_title']; ?>"
|
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">
|
class="navi-buyprint-form">
|
||||||
<input type="hidden" name="comic" value="<?php echo $current->ID; ?>" />
|
<input type="hidden" name="comic" value="<?php echo $current->ID; ?>" />
|
||||||
<button class="navi navi-buyprint"
|
<button class="navi navi-buyprint"
|
||||||
|
|
Loading…
Reference in New Issue