PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
downtown-rest-api
/
inc
<?php /*Theme Options For AdForest WordPress API Theme*/ if (!class_exists('Redux')) return; $opt_name = "dwt_listing_api"; $theme = wp_get_theme(); $args = array( 'opt_name' => 'dwt_listing_api', 'dev_mode' => false, 'display_name' => __('DWT React Native Apps', "dwt-listing-api") , 'display_version' => '1.0', 'page_title' => __('DWT React Native Apps', "dwt-listing-api") , 'update_notice' => true, 'admin_bar' => true, 'menu_type' => 'submenu', 'menu_title' => __('DWT API Options', "dwt-listing-api") , 'allow_sub_menu' => true, 'page_parent_post_type' => 'your_post_type', 'customizer' => true, 'default_show' => true, 'default_mark' => '*', 'hints' => array( 'icon_position' => 'right', 'icon_size' => 'normal', 'tip_style' => array( 'color' => 'light', ) , 'tip_position' => array( 'my' => 'top left', 'at' => 'bottom right', ) , 'tip_effect' => array( 'show' => array( 'duration' => '500', 'event' => 'mouseover', ) , 'hide' => array( 'duration' => '500', 'event' => 'mouseleave unfocus', ) , ) , ) , 'output' => true, 'output_tag' => true, 'settings_api' => true, 'cdn_check_time' => '1440', 'compiler' => true, 'global_variable' => 'dwt_listing_api', 'page_permissions' => 'manage_options', 'save_defaults' => true, 'show_import_export' => true, 'database' => 'options', 'transient_time' => '3600', 'network_sites' => true, ); $args['share_icons'][] = array( 'url' => 'https://www.facebook.com/scriptsbundle', 'title' => __('Like us on Facebook', "dwt-listing-api") , 'icon' => 'el el-facebook' ); Redux::setArgs($opt_name, $args); /* ------------------ App Settings ----------------------- */ Redux::setSection($opt_name, array( 'title' => __('App Settings', "dwt-listing-api") , 'id' => 'api_app_settings', 'desc' => '', 'icon' => 'el el-cogs', 'fields' => array( array( 'id' => 'dwt_app_logo', 'type' => 'media', 'url' => true, 'title' => esc_html__( 'App Logo', 'dwt-listing' ), 'compiler' => 'true', 'desc' => esc_html__( 'Upload main logo for your App.', 'dwt-listing' ), 'default' => array( 'url' => trailingslashit( get_template_directory_uri () ) . 'assets/images/logo.png' ), ), array( 'id' => 'dwt_app_slogans', 'type' => 'text', 'title' => esc_html__( 'App Main Tagline', 'dwt-listing' ), 'desc' => esc_html__( 'Enter Your App Tagline', 'dwt-listing' ), 'default' => 'Find & Explore World Top Places', ), array( 'id' => 'dwt_app_main_clr', 'type' => 'color', 'title' => esc_html__( 'App Main Color', 'dwt-listing' ), 'subtitle' => esc_html__( 'App main color (default: #e52d27) button colors as well.', 'dwt-listing' ), 'transparent' => false, 'default' => '#e52d27', 'validate' => 'color', ), array( 'id' => 'dwt_app_navbar_clr', 'type' => 'color', 'title' => esc_html__( 'App Navigation Bar Color', 'dwt-listing' ), 'subtitle' => esc_html__( 'App Navigation Bar Color (default: #222).', 'dwt-listing' ), 'transparent' => false, 'default' => '#222', 'validate' => 'color', ), array( 'id' => 'dwt_app_menu_clr', 'type' => 'color', 'title' => esc_html__( 'App Sidebar Menu Color', 'dwt-listing' ), 'subtitle' => esc_html__( 'App Sidebar Menu Color (default: #222).', 'dwt-listing' ), 'transparent' => false, 'default' => '#222', 'validate' => 'color', ), array( 'id' => 'sb_location_type', 'type' => 'button_set', 'title' => __('Address Type', 'dwt-listing-api') , 'options' => array( 'cities' => __('Cities', 'dwt-listing-api') , 'regions' => __('Adresses', 'dwt-listing-api') , ) , 'default' => 'cities' ) , ) )); Redux::setSection($opt_name, array( 'title' => __('Language Settings', "dwt-listing-api") , 'id' => 'api_app_language_settings', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'app_settings_rtl', 'type' => 'switch', 'title' => __('RTL', "dwt-listing-api") , 'desc' => __('Make app RTL', "dwt-listing-api") , 'default' => false, ) , array( 'id' => 'gmap_lang', 'type' => 'text', 'title' => __('App Language', 'dwt-listing-api') , 'desc' => dwt_listing_make_link('https://developers.google.com/maps/faq#languagesupport', __('List of available languages.', 'dwt-listing-api')) . __('If you have selected RTL put language code here like for arabic ar', "dwt-listing-api") , 'default' => 'en', ) , ) )); Redux::setSection($opt_name, array( 'title' => __('Social Login Settings', "dwt-listing-api") , 'id' => 'api_app_social_login_settings', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'app_settings_fb_btn', 'type' => 'switch', 'title' => __('Facebook Login/Register', "dwt-listing-api") , 'desc' => __('Show or hide google button.', "dwt-listing-api") , 'default' => true, ) , array( 'id' => 'app_settings_google_btn', 'type' => 'switch', 'title' => __('Google Login/Register', "dwt-listing-api") , 'desc' => __('Show or hide google button.', "dwt-listing-api") , 'default' => true, ) , ) )); Redux::setSection($opt_name, array( 'title' => __('App Key Settings', "dwt-listing-api") , 'id' => 'api_key_settings', 'desc' => '', 'icon' => 'el el-key', 'fields' => array( ) )); Redux::setSection($opt_name, array( 'title' => __('App Security Keys', "dwt-listing-api") , 'id' => 'api_key_settings_android', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'opt-info-info', 'type' => 'info', 'style' => 'warning', 'title' => __('Security Key Settings', 'dwt-listing-api') , 'desc' => __('Once added be carefull editing next time. Those Key Should Be Same In App Header.', 'dwt-listing-api') ) , array( 'id' => 'appKey_pCode', 'type' => 'text', 'title' => __('Enter You App Purchase Code Here', 'dwt-listing-api') , 'default' => '', 'desc' => __('Your android item purchase code got from codecanyon. You have purchased the item seprately.', 'dwt-listing-api') , 'text_hint' => array( 'title' => __('Alert', 'dwt-listing-api') , 'content' => __('Once added be carefull editing next time. This key Should be same in app header.') , ) , ) , array( 'id' => 'appKey_Scode', 'type' => 'text', 'title' => __('Enter Your App Secret Code Here', 'dwt-listing-api') , 'default' => '', 'desc' => __('Just a random number generated by you for app security.', 'dwt-listing-api') , ) , ) )); Redux::setSection($opt_name, array( 'title' => __('Menu Settings', "dwt-listing-api") , 'id' => 'api_menu_settings', 'desc' => '', 'icon' => 'el el-align-justify', 'fields' => array( array( 'id' => 'dwt_app_menu_home', 'type' => 'text', 'title' => esc_html__( 'Home Menu Text', 'dwt-listing-api' ), 'default' => 'Home', ), array( 'id' => 'dwt_app_menu_search', 'type' => 'text', 'title' => esc_html__( 'Listing Search Menu', 'dwt-listing-api' ), 'default' => 'Advanced Search', ), array( 'id' => 'dwt_app_menu_events', 'type' => 'text', 'title' => esc_html__( 'Events Search Menu', 'dwt-listing-api' ), 'default' => 'Events', ), array( 'id' => 'dwt_app_menu_categories', 'type' => 'text', 'title' => esc_html__( 'Listing Categories Menu', 'dwt-listing-api' ), 'default' => 'Categories', ), array( 'id' => 'dwt_app_menu_blog', 'type' => 'text', 'title' => esc_html__( 'Blog Menu', 'dwt-listing-api' ), 'default' => 'Blog', ), array( 'id' => 'dwt_app_menu_about', 'type' => 'text', 'title' => esc_html__( 'About Menu', 'dwt-listing-api' ), 'default' => 'About Us', ), array( 'id' => 'dwt_app_menu_contact', 'type' => 'text', 'title' => esc_html__( 'Contact Menu', 'dwt-listing-api' ), 'default' => 'Contact Us', ), array( 'id' => 'dwt_app_menu_reg', 'type' => 'text', 'title' => esc_html__( 'Login & Registration Menu', 'dwt-listing-api' ), 'default' => 'Login / Register', ), ) )); Redux::setSection($opt_name, array( 'title' => __('Home Screen', "dwt-listing-api") , 'id' => 'api_home_screen', 'desc' => '', 'icon' => 'el el-home', 'fields' => array( array( 'id' => 'sb_home_screen_title', 'type' => 'text', 'title' => __('Screen Title', 'dwt-listing-api') , 'default' => __('Home Screen', 'dwt-listing-api') , 'desc' => __('Set the title for homescreen', 'dwt-listing-api') , ) , array( 'id' => 'dwt_app_homes_listings', 'type' => 'spinner', 'title' => __( 'Listing on home screen', 'dwt-listing' ), 'subtitle' => __( 'Listing on home screen', 'dwt-listing' ), 'default' => '8', 'min' => '1', 'step' => '1', 'max' => '30', ), ) )); Redux::setSection($opt_name, array( 'title' => __("Home Search Section", "dwt-listing-api") , 'id' => 'api_home_search_section', 'subsection' => true, 'fields' => array( array( 'id' => 'search_section_show_title', 'type' => 'text', 'title' => __('Search Main Text', 'dwt-listing-api') , 'default' => __('Find Nearby Attractions', 'dwt-listing-api') , ) , array( 'id' => 'search_section_show_subtitle', 'type' => 'text', 'title' => __('Search Sub Text', 'dwt-listing-api') , 'default' => __("Let's discover the best places to eat, drink, and shop nearest to you..", 'dwt-listing-api') , ) , array( 'id' => 'search_section_show_placeholder', 'type' => 'text', 'title' => __('Input Placehoder', 'dwt-listing-api') , 'default' => __('What are you looking for...', 'dwt-listing-api') , ) , array( 'id' => 'search_section_show_bg_image', 'type' => 'media', 'url' => true, 'title' => __('Background Image', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('You must select the section background image here', 'dwt-listing-api') , 'default' => array( 'url' => dwt_listing_API_PLUGIN_URL . "images/search_screen.jpg" ) , ) , ) )); Redux::setSection($opt_name, array( 'title' => __("Categories Icons", "dwt-listing-api") , 'id' => 'api_home_ads_cat_icons', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'adforest-api-ad-cats-multi', 'type' => 'select', 'data' => 'terms', 'args' => array( 'taxonomies' => 'l_category', 'hide_empty' => false, ) , 'multi' => true, 'sortable' => true, 'title' => __('Select Categories', 'dwt-listing-api') , 'desc' => __('Select categories to show on home screen as icons.', 'dwt-listing-api') , ) , array( 'id' => 'adforest-api-ad-cats-default-icon', 'type' => 'media', 'url' => true, 'title' => __('Default Category Icon', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('Default Icon For categories on homepage. You can leave it empty if you want to show default for app.', 'dwt-listing-api') , 'subtitle' => __('Dimensions: 128 X 128', 'dwt-listing-api') , 'default' => array( 'url' => dwt_listing_API_PLUGIN_URL . "images/placeholder.png" ) , ) , array( 'id' => 'adforest-api-ad-cats-default-icon', 'type' => 'media', 'url' => true, 'title' => __('Default Category Icon', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('Default Icon For categories on homepage. You can leave it empty if you want to show default for app.', 'dwt-listing-api') , 'subtitle' => __('Dimensions: 128 X 128', 'dwt-listing-api') , 'default' => array( 'url' => dwt_listing_API_PLUGIN_URL . "images/placeholder.png" ) , ) , ) )); Redux::setSection($opt_name, array( 'title' => __("Latest Ads", "dwt-listing-api") , 'id' => 'api_home_latest', 'desc' => '', 'subsection' => true, 'fields' => array( /*latets ads */ array( 'id' => 'home-notice-info2', 'type' => 'info', 'style' => 'info', 'title' => __('Latest Ads Section', 'dwt-listing-api') , ) , array( 'required' => array( 'home-screen-sortable-enable', '=', true ) , 'id' => 'latest_on_home', 'type' => 'switch', 'title' => __('Latest Ads', 'dwt-listing-api') , 'default' => false, 'desc' => __('Show latest ads slider', 'dwt-listing-api') , ) , array( 'id' => 'sb_home_latest_ads_title', 'required' => array( 'latest_on_home', '=', true ) , 'type' => 'text', 'title' => __('Latest Ads Section Title', 'dwt-listing-api') , 'default' => 'Latest Ads', ) , array( 'id' => 'home_latest_posts_count', 'required' => array( 'latest_on_home', '=', true ) , 'type' => 'slider', 'title' => __('Latest Ads', 'dwt-listing-api') , 'subtitle' => __('On homepage', 'dwt-listing-api') , 'desc' => __('Select Number of latest ads', 'dwt-listing-api') , 'default' => 5, 'min' => 1, 'step' => 1, 'max' => 150, 'display_value' => 'label' ) , ) )); Redux::setSection($opt_name, array( 'title' => __("Ads Locations", "dwt-listing-api") , 'id' => 'api_home_locations', 'desc' => '', 'subsection' => true, 'fields' => array( /*locations*/ array( 'id' => 'home-notice-info5', 'type' => 'info', 'style' => 'info', 'title' => __('Locations icons Section', 'dwt-listing-api') , ) , array( 'id' => 'api_location_title', 'required' => array( 'home-screen-sortable-enable', '=', true ) , 'type' => 'text', 'title' => __('Location Section Title', 'dwt-listing-api') , 'default' => __('Locations', 'dwt-listing-api') , ) , /*array( 'required' => array( 'home-screen-sortable-enable', '=', true ), 'id' => 'api_location_columns', 'type' => 'button_set', 'title' => __( 'Locations Columns', 'dwt-listing-api' ), 'desc' => __( 'Select number of info columns', 'dwt-listing-api' ), 'options' => array( '1' => __( '1 Column', 'dwt-listing-api' ), '2' => __( '2 Columns', 'dwt-listing-api' ), ), 'default' => '2' ), */ array( 'required' => array( 'home-screen-sortable-enable', '=', true ) , 'id' => 'adforest-api-ad-loc-multi', 'type' => 'select', 'data' => 'terms', 'args' => array( 'taxonomies' => 'ad_country', 'hide_empty' => false, ) , 'multi' => true, 'sortable' => true, 'title' => __('Select Locations Categories', 'dwt-listing-api') , 'desc' => __('Select locations you want to show', 'dwt-listing-api') , ) , array( 'id' => 'adforest-api-ad-location-default-icon', 'type' => 'media', 'url' => true, 'title' => __('Default Location Icon', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('Default Icon For Location on homepage. You can leave it empty if you want to show default for app.', 'dwt-listing-api') , 'subtitle' => __('Dimensions: 230 x 230', 'dwt-listing-api') , 'default' => array( 'url' => dwt_listing_API_PLUGIN_URL . "images/placeholder-location.png" ) , ) , array( 'id' => 'adforest-api-ad-location-show-btn', 'type' => 'switch', 'title' => __('Show Button', 'dwt-listing-api') , 'default' => false, 'desc' => __('Show view all button under categories icons section', 'dwt-listing-api') , ) , array( 'id' => 'adforest-api-ad-location-show-text', 'required' => array( 'adforest-api-ad-location-show-btn', '=', true ) , 'type' => 'text', 'title' => __('Button Text', 'dwt-listing-api') , 'default' => __('View All Location', 'dwt-listing-api') , ) , ) )); Redux::setSection($opt_name, array( 'title' => __("Blog/News", "dwt-listing-api") , 'id' => 'api_home_blogNews', 'desc' => '', 'subsection' => true, 'fields' => array( /*locations*/ array( 'id' => 'home-notice-info7', 'type' => 'info', 'style' => 'info', 'title' => __('Blog and news section. (You must on Home Sortable to show blogs)', 'dwt-listing-api') , ) , array( 'required' => array( 'home-screen-sortable-enable', '=', true ) , 'id' => 'posts_blogNews_home', 'type' => 'switch', 'title' => __('News/Blog', 'dwt-listing-api') , 'default' => false, 'desc' => __('Show News/Blog ads slider', 'dwt-listing-api') , ) , array( 'id' => 'api_blogNews_title', 'required' => array( 'posts_blogNews_home', '=', true ) , 'type' => 'text', 'title' => __('Blog/News Setion Title', 'dwt-listing-api') , 'default' => __('Blog/News', 'dwt-listing-api') , ) , array( 'required' => array( 'posts_blogNews_home', '=', true ) , 'id' => 'adforest-api-blogNews-multi', 'type' => 'select', 'data' => 'terms', 'args' => array( 'taxonomies' => 'category', 'hide_empty' => false, ) , 'multi' => true, 'sortable' => true, 'title' => __('Select Categories', 'dwt-listing-api') , 'desc' => __('Select categories to show in the blog/news section. Leave empty if you want to show from all.', 'dwt-listing-api') , ) , array( 'id' => 'home_blogNews_posts_count', 'required' => array( 'posts_blogNews_home', '=', true ) , 'type' => 'slider', 'title' => __('Number of Posts', 'dwt-listing-api') , 'subtitle' => __('On homepage', 'dwt-listing-api') , 'desc' => __('Select max number of Posts to show', 'dwt-listing-api') , 'default' => 5, 'min' => 1, 'step' => 1, 'max' => 150, 'display_value' => 'label' ) , /*array( 'required' => array( 'home-screen-sortable-enable', '=', true ), 'id' => 'api_location_columns', 'type' => 'button_set', 'title' => __( 'Locations Columns', 'dwt-listing-api' ), 'desc' => __( 'Select number of info columns', 'dwt-listing-api' ), 'options' => array( '1' => __( '1 Column', 'dwt-listing-api' ), '2' => __( '2 Columns', 'dwt-listing-api' ), ), 'default' => '2' ), */ ) )); Redux::setSection($opt_name, array( 'title' => __("Pagination Settings", "dwt-listing-api") , 'id' => 'app_g_pagination', 'desc' => '', 'icon' => 'el el-adjust-alt', 'fields' => array( array( 'id' => 'app_listing_search_page', 'type' => 'spinner', 'title' => __( 'Listing Per Page', 'dwt-listing-api' ), 'desc' => __('Number of listings shown on search screen.', 'dwt-listing-api') , 'default' => '15', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_listing_event_page', 'type' => 'spinner', 'title' => __( 'Events Per Page', 'dwt-listing-api' ), 'desc' => __('Number of events shown on search screen.', 'dwt-listing-api') , 'default' => '15', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_listing_public_auth_page', 'type' => 'spinner', 'title' => __( 'Author Public Profile Page', 'dwt-listing-api' ), 'desc' => __('Number of listing shown on author profile page.', 'dwt-listing-api') , 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_listing_public_auth_events', 'type' => 'spinner', 'title' => __( 'Author Public Profile Events', 'dwt-listing-api' ), 'desc' => __('Number of events shown on author public profile page.', 'dwt-listing-api') , 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_listing_blog_limit', 'type' => 'spinner', 'title' => __( 'Blogs', 'dwt-listing-api' ), 'desc' => __('Number of blogs shown per page.', 'dwt-listing-api') , 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_listing_pagination_review_limit', 'type' => 'spinner', 'title' => __( 'Reviews Pagination Limit', 'dwt-listing' ), 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), ) )); Redux::setSection($opt_name, array( 'title' => __("User Profile", "dwt-listing-api") , 'id' => 'app_user_profile', 'desc' => '', 'icon' => 'el el-child', 'fields' => array( array( 'id' => 'app_dashboard_leads', 'type' => 'spinner', 'title' => __( 'Dashboard Leads Per Page', 'dwt-listing-api' ), 'desc' => __('Number of recent activity shown on user dashboard screen.', 'dwt-listing-api') , 'default' => '15', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_dashboard_user_listings', 'type' => 'spinner', 'title' => __( 'User Listings Per Page', 'dwt-listing-api' ), 'desc' => __('Number of public,pending,featured & expired listings per page.', 'dwt-listing-api') , 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), ) )); Redux::setSection($opt_name, array( 'title' => __("Placeholder Images", "dwt-listing-api") , 'id' => 'app_place_img', 'desc' => '', 'icon' => 'el el-camera', 'fields' => array( array( 'id' => 'app_lisitng_detial_placeholder', 'type' => 'media', 'url' => false, 'title' => __('Default Listing Detial Image', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('Recommended image size 750x400', 'dwt-listing-api') , 'default' => array( 'url' => dwt_listing_API_PLUGIN_URL . "images/l_detail.jpg" ) , ) , ) ));
[+]
..
[-] categories-images.php
[edit]
[-] notifications.php
[edit]
[-] options-init.php
[edit]
[-] basic-auth.php
[edit]
[+]
paypal
[+]
stripe-php
[-] index.php
[edit]
[-] auth.php
[edit]