Skip to content

Commit

Permalink
Fixed All listings icons from backend (sovware#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowsar89 authored Sep 26, 2022
1 parent 363105b commit 5992cd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/asset-loader/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ public static function is_admin_page( $page ) {
}
break;

case 'all_listings':
if ( $_GET['post_type'] == 'at_biz_dir' && $screen == 'edit' ) {
$status = true;
}
break;

case 'add_listing':
if ( $screen == 'post' ) {
if ( get_post_type( get_the_ID() ) === 'at_biz_dir' ) {
Expand Down
2 changes: 2 additions & 0 deletions includes/asset-loader/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ public static function admin_scripts() {
wp_enqueue_style( 'directorist-admin-style' );
wp_enqueue_script( 'directorist-admin-script' );
wp_enqueue_script( 'directorist-import-export' );
} elseif ( Helper::is_admin_page( 'all_listings' ) ) {
wp_enqueue_style( 'directorist-font-awesome' );
} elseif ( Helper::is_admin_page( 'add_listing' ) ) {
wp_enqueue_style( 'directorist-admin-style' );
wp_enqueue_style( 'directorist-unicons' );
Expand Down

0 comments on commit 5992cd7

Please sign in to comment.