Format and add column filters
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -53,7 +53,7 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
|
||||
'sp_events' => __( 'Events', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_calendar_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,13 +64,13 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
|
||||
switch ( $column ):
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_venue':
|
||||
echo get_the_terms ( $post_id, 'sp_venue' ) ? the_terms( $post_id, 'sp_venue' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
@@ -90,14 +90,14 @@ class SP_Admin_CPT_Calendar extends SP_Admin_CPT {
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
break;
|
||||
break;
|
||||
case 'sp_events':
|
||||
$calendar = new SP_Calendar( $post_id );
|
||||
echo sizeof( $calendar->data() );
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.7
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -45,8 +45,9 @@ class SP_Admin_CPT_Column extends SP_Admin_CPT {
|
||||
'sp_equation' => __( 'Equation', 'sportspress' ),
|
||||
'sp_precision' => __( 'Rounding', 'sportspress' ),
|
||||
'sp_order' => __( 'Sort Order', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_column_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,16 +59,20 @@ class SP_Admin_CPT_Column extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name;
|
||||
break;
|
||||
break;
|
||||
case 'sp_equation':
|
||||
echo sp_get_post_equation( $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_precision':
|
||||
echo sp_get_post_precision( $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_order':
|
||||
echo sp_get_post_order( $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -97,7 +97,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
||||
'sp_venue' => __( 'Venue', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_event_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -111,15 +111,15 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
||||
switch ( $format ):
|
||||
case 'league':
|
||||
echo '<span class="dashicons sp-icon-crown tips" title="' . __( 'League', 'sportspress' ) . '"></span>';
|
||||
break;
|
||||
break;
|
||||
case 'friendly':
|
||||
echo '<span class="dashicons sp-icon-smile tips" title="' . __( 'Friendly', 'sportspress' ) . '"></span>';
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
break;
|
||||
break;
|
||||
case 'sp_time':
|
||||
echo get_post_time( 'H:i', false, $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
@@ -139,19 +139,19 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT {
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
break;
|
||||
break;
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_venue':
|
||||
echo get_the_terms ( $post_id, 'sp_venue' ) ? the_terms( $post_id, 'sp_venue' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -52,7 +52,7 @@ class SP_Admin_CPT_List extends SP_Admin_CPT {
|
||||
'sp_player' => __( 'Players', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_list_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,13 +63,13 @@ class SP_Admin_CPT_List extends SP_Admin_CPT {
|
||||
switch ( $column ):
|
||||
case 'sp_player':
|
||||
echo sizeof( array_filter( get_post_meta( $post_id, 'sp_player' ) ) );
|
||||
break;
|
||||
break;
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
@@ -82,10 +82,10 @@ class SP_Admin_CPT_List extends SP_Admin_CPT {
|
||||
if ( $team ) echo $team->post_title . '<br>';
|
||||
endforeach;
|
||||
endif;
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -42,8 +42,9 @@ class SP_Admin_CPT_Metric extends SP_Admin_CPT {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Label', 'sportspress' ),
|
||||
'sp_key' => __( 'Variable', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_metric_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +56,11 @@ class SP_Admin_CPT_Metric extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name;
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.7
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -42,8 +42,9 @@ class SP_Admin_CPT_Outcome extends SP_Admin_CPT {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Label', 'sportspress' ),
|
||||
'sp_key' => __( 'Variable', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_outcome_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +56,11 @@ class SP_Admin_CPT_Outcome extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name;
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -42,8 +42,9 @@ class SP_Admin_CPT_Performance extends SP_Admin_CPT {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Label', 'sportspress' ),
|
||||
'sp_key' => __( 'Variable', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_performance_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +56,11 @@ class SP_Admin_CPT_Performance extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name;
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -69,7 +69,7 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
||||
'sp_season' => __( 'Seasons', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_player_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,10 +80,10 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
||||
switch ( $column ):
|
||||
case 'sp_number':
|
||||
echo get_post_meta ( $post_id, 'sp_number', true );
|
||||
break;
|
||||
break;
|
||||
case 'sp_position':
|
||||
echo get_the_terms( $post_id, 'sp_position' ) ? the_terms( $post_id, 'sp_position' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
@@ -103,19 +103,19 @@ class SP_Admin_CPT_Player extends SP_Admin_CPT {
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
break;
|
||||
break;
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_venue':
|
||||
echo get_the_terms ( $post_id, 'sp_venue' ) ? the_terms( $post_id, 'sp_venue' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.7
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -42,8 +42,9 @@ class SP_Admin_CPT_Result extends SP_Admin_CPT {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'title' => __( 'Label', 'sportspress' ),
|
||||
'sp_key' => __( 'Variable', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_result_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,7 +56,11 @@ class SP_Admin_CPT_Result extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name . 'for, ' . $post->post_name . 'against';
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -68,7 +68,7 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
|
||||
'sp_season' => __( 'Seasons', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_staff_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,7 +80,7 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
|
||||
case 'sp_role':
|
||||
$role = get_post_meta ( $post_id, 'sp_role', true );
|
||||
echo $role ? $role : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
$teams = (array)get_post_meta( $post_id, 'sp_team', false );
|
||||
$teams = array_filter( $teams );
|
||||
@@ -100,16 +100,16 @@ class SP_Admin_CPT_Staff extends SP_Admin_CPT {
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
break;
|
||||
break;
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -44,8 +44,9 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT {
|
||||
'sp_key' => __( 'Key', 'sportspress' ),
|
||||
'sp_equation' => __( 'Equation', 'sportspress' ),
|
||||
'sp_precision' => __( 'Rounding', 'sportspress' ),
|
||||
'sp_description' => __( 'Description', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_statistic_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -57,13 +58,17 @@ class SP_Admin_CPT_Statistic extends SP_Admin_CPT {
|
||||
case 'sp_key':
|
||||
global $post;
|
||||
echo $post->post_name;
|
||||
break;
|
||||
break;
|
||||
case 'sp_equation':
|
||||
echo sp_get_post_equation( $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_precision':
|
||||
echo sp_get_post_precision( $post_id );
|
||||
break;
|
||||
break;
|
||||
case 'sp_description':
|
||||
global $post;
|
||||
echo '<span class="description">' . $post->post_excerpt . '</span>';
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8.4
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -51,7 +51,7 @@ class SP_Admin_CPT_Table extends SP_Admin_CPT {
|
||||
'sp_team' => __( 'Teams', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_table_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,16 +62,16 @@ class SP_Admin_CPT_Table extends SP_Admin_CPT {
|
||||
switch ( $column ):
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_team':
|
||||
echo sizeof( array_filter( get_post_meta( $post_id, 'sp_team' ) ) );
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author ThemeBoy
|
||||
* @category Admin
|
||||
* @package SportsPress/Admin/Post Types
|
||||
* @version 0.8
|
||||
* @version 0.9
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
@@ -67,7 +67,7 @@ class SP_Admin_CPT_Team extends SP_Admin_CPT {
|
||||
'sp_season' => __( 'Seasons', 'sportspress' ),
|
||||
'sp_views' => __( 'Views', 'sportspress' ),
|
||||
);
|
||||
return $columns;
|
||||
return apply_filters( 'sportspress_team_admin_columns', $columns );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,20 +78,20 @@ class SP_Admin_CPT_Team extends SP_Admin_CPT {
|
||||
switch ( $column ):
|
||||
case 'sp_icon':
|
||||
echo has_post_thumbnail( $post_id ) ? edit_post_link( get_the_post_thumbnail( $post_id, 'sportspress-fit-mini' ), '', '', $post_id ) : '';
|
||||
break;
|
||||
break;
|
||||
case 'sp_abbreviation':
|
||||
$abbreviation = get_post_meta ( $post_id, 'sp_abbreviation', true );
|
||||
echo $abbreviation ? $abbreviation : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_league':
|
||||
echo get_the_terms ( $post_id, 'sp_league' ) ? the_terms( $post_id, 'sp_league' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_season':
|
||||
echo get_the_terms ( $post_id, 'sp_season' ) ? the_terms( $post_id, 'sp_season' ) : '—';
|
||||
break;
|
||||
break;
|
||||
case 'sp_views':
|
||||
echo sp_get_post_views( $post_id );
|
||||
break;
|
||||
break;
|
||||
endswitch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user