Skip to content

Commit

Permalink
Dashboard icon data format updated (sovware#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowsar89 authored Sep 8, 2022
1 parent e86f7a3 commit 05494ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions includes/model/ListingDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public function get_action_dropdown_item() {
'class' => '',
'data_attr' => '',
'link' => add_query_arg( 'renew_from', 'dashboard', esc_url( ATBDP_Permalink::get_renewal_page_link( $post_id )) ),
'icon' => 'las la-hand-holding-usd',
'icon' => directorist_icon( 'las la-hand-holding-usd', false ),
'label' => __( 'Renew', 'directorist' )
);
}
Expand All @@ -565,7 +565,7 @@ public function get_action_dropdown_item() {
'class' => '',
'data_attr' => '',
'link' => ATBDP_Permalink::get_checkout_page_link( $post_id ),
'icon' => 'las la-ad',
'icon' => directorist_icon( 'las la-ad', false ),
'label' => __( 'Promote', 'directorist' )
);
}
Expand All @@ -574,7 +574,7 @@ public function get_action_dropdown_item() {
'class' => '',
'data_attr' => 'data-task="delete"',
'link' => '#',
'icon' => 'las la-trash',
'icon' => directorist_icon( 'las la-trash', false ),
'label' => __( 'Delete Listing', 'directorist' )
);

Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard/listing-row.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if( $dropdown_items ) {
foreach( $dropdown_items as $item ) {
?>
<a class="directorist-dropdown-item <?php echo esc_attr( $item['class'] ); ?>" <?php echo wp_kses_post( $item['data_attr'] ); ?> href="<?php echo esc_url( $item['link'] ); ?>"><?php directorist_icon( $item['icon'] ); ?><?php echo wp_kses_post( $item['label'] ); ?></a>
<a class="directorist-dropdown-item <?php echo esc_attr( $item['class'] ); ?>" <?php echo wp_kses_post( $item['data_attr'] ); ?> href="<?php echo esc_url( $item['link'] ); ?>"><?php echo wp_kses_post( $item['icon'] ); ?><?php echo wp_kses_post( $item['label'] ); ?></a>
<?php
}
}
Expand Down

0 comments on commit 05494ba

Please sign in to comment.