Add widget alignment
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
@@ -17,7 +17,10 @@ class SP_Widget_Event_Blocks extends WP_Widget {
|
||||
$number = empty($instance['number']) ? null : $instance['number'];
|
||||
$order = empty($instance['order']) ? 'default' : $instance['order'];
|
||||
$show_all_events_link = empty($instance['show_all_events_link']) ? false : $instance['show_all_events_link'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'event-blocks' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -30,6 +33,7 @@ class SP_Widget_Event_Blocks extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'event-blocks' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'event-blocks' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -15,7 +15,10 @@ class SP_Widget_Event_Calendar extends WP_Widget {
|
||||
$date_from = empty($instance['date_from']) ? 'default' : $instance['date_from'];
|
||||
$date_to = empty($instance['date_to']) ? 'default' : $instance['date_to'];
|
||||
$show_all_events_link = empty($instance['show_all_events_link']) ? false : $instance['show_all_events_link'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'event-calendar' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -28,6 +31,7 @@ class SP_Widget_Event_Calendar extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'event-calendar' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'event-calendar' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -18,7 +18,10 @@ class SP_Widget_Event_List extends WP_Widget {
|
||||
$columns = empty($instance['columns']) ? null : $instance['columns'];
|
||||
$order = empty($instance['order']) ? 'default' : $instance['order'];
|
||||
$show_all_events_link = empty($instance['show_all_events_link']) ? false : $instance['show_all_events_link'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'event-list' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -31,6 +34,7 @@ class SP_Widget_Event_List extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'event-list' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'event-list' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -15,7 +15,10 @@ class SP_Widget_League_Table extends WP_Widget {
|
||||
$columns = empty($instance['columns']) ? array() : $instance['columns'];
|
||||
$show_team_logo = empty($instance['show_team_logo']) ? false : $instance['show_team_logo'];
|
||||
$show_full_table_link = empty($instance['show_full_table_link']) ? false : $instance['show_full_table_link'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'league-table' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -28,6 +31,7 @@ class SP_Widget_League_Table extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'league-table' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'league-table' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -17,7 +17,10 @@ class SP_Widget_Player_Gallery extends WP_Widget {
|
||||
$order = empty($instance['order']) ? 'ASC' : $instance['order'];
|
||||
$show_all_players_link = empty($instance['show_all_players_link']) ? false : $instance['show_all_players_link'];
|
||||
$show_names_on_hover = empty($instance['show_names_on_hover']) ? false : $instance['show_names_on_hover'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'player-gallery' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -30,6 +33,7 @@ class SP_Widget_Player_Gallery extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'player-gallery' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'player-gallery' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -16,7 +16,10 @@ class SP_Widget_Player_list extends WP_Widget {
|
||||
$orderby = empty($instance['orderby']) ? 'default' : $instance['orderby'];
|
||||
$order = empty($instance['order']) ? 'ASC' : $instance['order'];
|
||||
$show_all_players_link = empty($instance['show_all_players_link']) ? false : $instance['show_all_players_link'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'player-list' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -29,6 +32,7 @@ class SP_Widget_Player_list extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'player-list' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'player-list' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
@@ -10,7 +10,10 @@ class SP_Widget_Staff extends WP_Widget {
|
||||
extract($args);
|
||||
$title = apply_filters('widget_title', empty($instance['title']) ? null : $instance['title'], $instance, $this->id_base);
|
||||
$id = empty($instance['id']) ? null : $instance['id'];
|
||||
|
||||
do_action( 'sportspress_before_widget', $args, $instance, 'staff' );
|
||||
echo $before_widget;
|
||||
|
||||
if ( $title )
|
||||
echo $before_title . $title . $after_title;
|
||||
|
||||
@@ -24,6 +27,7 @@ class SP_Widget_Staff extends WP_Widget {
|
||||
do_action( 'sportspress_after_widget_template', $args, $instance, 'staff' );
|
||||
|
||||
echo $after_widget;
|
||||
do_action( 'sportspress_after_widget', $args, $instance, 'staff' );
|
||||
}
|
||||
|
||||
function update( $new_instance, $old_instance ) {
|
||||
|
||||
Reference in New Issue
Block a user