__CLASS__, 'description' => __('Adds a button that goes to the buy print template page.','comicpress') ); $this->WP_Widget(__CLASS__, __('ComicPress Buy This Print','comicpress'), $widget_ops); } } function init() { add_filter('comicpress_buy_print_structure', array(&$this, 'buy_print_structure')); } function widget($args, $instance) { extract($args, EXTR_SKIP); echo $before_widget; $title = apply_filters('widget_title', $instance['title']); if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; if ( get_post_meta( get_the_ID(), "buythiscomic", true ) !== 'sold' ) { echo apply_filters('comicpress_buy_print_structure', ''); } echo $after_widget; } function buy_print_structure($content = '') { $comicpress_options = comicpress_load_options(); ?>
'' ) ); $title = strip_tags($instance['title']); ?>