Add widget alignment

This commit is contained in:
Brian Miyaji
2015-04-16 23:02:05 +10:00
parent 1d725beacf
commit 390343fafe
10 changed files with 172 additions and 0 deletions

View File

@@ -13,7 +13,10 @@ class SP_Widget_Countdown extends WP_Widget {
$id = empty($instance['id']) ? null : $instance['id'];
$show_venue = empty($instance['show_venue']) ? false : $instance['show_venue'];
$show_league = empty($instance['show_league']) ? false : $instance['show_league'];
do_action( 'sportspress_before_widget', $args, $instance, 'countdown' );
echo $before_widget;
if ( $title )
echo $before_title . $title . $after_title;
@@ -26,6 +29,7 @@ class SP_Widget_Countdown extends WP_Widget {
do_action( 'sportspress_after_widget_template', $args, $instance, 'countdown' );
echo $after_widget;
do_action( 'sportspress_after_widget', $args, $instance, 'countdown' );
}
function update( $new_instance, $old_instance ) {