-
Notifications
You must be signed in to change notification settings - Fork 27
7.3.x to 7.4.x Developer Migration Notes
Kowsar Hossain edited this page Oct 4, 2022
·
2 revisions
Directorist v7.4.0 is solely focused on icon optimization. As a part of the optimization process, we have refactored all the codes related to rendering icons. Previously font-awesome and line-awesome webfonts have been used for generating icons. From this version, these webfonts have been replaced with the respective svg icons. This way, webpage speed will be improved slightly.
This version isn’t fully backward compatible, which means additional work needs to be done to all existing themes and extensions to ensure compatibility.
They will continue to work like before, except the icons will be missing or invisible. That's why compatibility must be added for them to work perfectly.
- In the frontend: font-awesome, line-awesome and unicons web-fonts are not enqueued anymore. Previously they were enqueued in all pages.
- In the backend: the above web-fonts are enqueued like before, but only on selected admin pages. Previously they were enqueued in all admin pages.
- Function
directorist_icon()
has been modified, now it renders svg icons of font-awesome and line-awesome instead of web-fonts. - Icon style updated.
- Icon version updated, now font-awesome v5.15.4 and line-awesome v1.3.0 is used.
- In the frontend, all icons must be rendered using the
directorist_icon()
function. If any icons were rendered without using this function before, they should be replaced. - Avoid using legacy icon code inside
directorist_icon()
function, make sure your icon code is compatible with font-awesome v5.15.4 and line-awesome v1.3.0. For example, don't usedirectorist_icon('fa fa-home')
, usedirectorist_icon('fas fa-home')
instead. - In the backend, since web-fonts are still enqueued, no changes are necessary. But if you have any custom admin pages, web-fonts may not be enqueued in those pages. For those pages, you have to enqueue the web-fonts manually.
- Since
directorist_icon()
function now renders different output, icon style will be changed. You may have to update the CSS accordingly to deal with the style changes.
atbdp_single_listing_tags_icon
atbdp_icon_type
atbdp_get_term_icon
get_fa_icons
get_fa_icons_full
\Directorist\Helper::get_icon_src( $icon )
directorist.assets_url
directorist.icon_markup
templates/all-authors.php
templates/single-reviews.php
templates/account/registration.php
templates/archive/directory-type-nav.php
templates/archive/fields/category.php
templates/archive/fields/google-map.php
templates/archive/fields/openstreet-map.php
templates/archive/fields/posted_date.php
templates/archive/fields/view_count.php
templates/author/about.php
templates/author/header.php
templates/dashboard/listing-row.php
templates/dashboard/navigation.php
templates/dashboard/notice.php
templates/dashboard/restrict-access.php
templates/dashboard/tab-announcement.php
templates/dashboard/tab-fav-listings.php
templates/dashboard/tab-my-listings.php
templates/dashboard/tab-profile.php
templates/listing-form/add-listing-type.php
templates/listing-form/quick-login.php
templates/listing-form/fields/map.php
templates/listing-form/fields/pricing.php
templates/payment/checkout.php
templates/search-form/directory-type-nav.php
templates/search-form/more-buttons.php
templates/search-form/top-cats.php
templates/search-form/fields/location.php
templates/single/section-author_info.php
templates/single/section-related_listings.php
templates/single/top-actions.php
templates/single/fields/category.php
templates/single/fields/location.php
templates/single/fields/ratings_count.php
templates/single/fields/share.php
templates/single/fields/social_info.php
templates/single/fields/tag.php
templates/taxonomies/categories-grid.php
templates/widgets/author-info.php
templates/widgets/featured-listing.php
templates/widgets/login-form.php
templates/widgets/popular-listings.php
templates/widgets/similar-listing.php
General
Release Notes