PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
dwt-listing-rest-api
/
inc
<?php /*Theme Options For AdForest WordPress API Theme*/ if (!class_exists('Redux')) return; $opt_name = "dwt_listing_api"; $my_theme = wp_get_theme(); if($my_theme->get( 'Name' ) == 'DWT Listing' && $my_theme->exists()) { $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 Listing Apps', "dwt-listing-api") , 'allow_sub_menu' => true, '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-api' ), 'compiler' => 'true', 'desc' => esc_html__( 'Upload main logo for your App.', 'dwt-listing-api' ), '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-api' ), 'desc' => esc_html__( 'Enter Your App Tagline', 'dwt-listing-api' ), 'default' => 'Find & Explore World Top Places', ), array( 'id' => 'dwt_app_main_clr', 'type' => 'color', 'title' => esc_html__( 'App Main Color', 'dwt-listing-api' ), 'subtitle' => esc_html__( 'App main color (default: #e52d27) button colors as well.', 'dwt-listing-api' ), 'transparent' => false, 'default' => '#e52d27', 'validate' => 'color', ), array( 'id' => 'dwt_app_navbar_clr', 'type' => 'color', 'title' => esc_html__( 'App Navigation Bar Color', 'dwt-listing-api' ), 'subtitle' => esc_html__( 'App Navigation Bar Color (default: #222).', 'dwt-listing-api' ), 'transparent' => false, 'default' => '#222', 'validate' => 'color', ), array( 'id' => 'dwt_app_menu_clr', 'type' => 'color', 'title' => esc_html__( 'App Sidebar Menu Color', 'dwt-listing-api' ), 'subtitle' => esc_html__( 'App Sidebar Menu Color (default: #222).', 'dwt-listing-api' ), 'transparent' => false, 'default' => '#222', 'validate' => 'color', ), array( 'id' => 'app_title_limit', 'type' => 'select', 'title' => esc_html__( 'Title Limit For Blog, Events & Listings Titles', 'dwt-listing-api' ), 'options' => array(10 => 10,15 => 15,20 => 20,25 => 25,30 => 30,35), 'default' => 20, 'subtitle' => esc_html__( 'Limitize title text to maintain app aesthetic design.', 'dwt-listing-api' ), ), array( 'id' => 'app_title_event_venue', 'type' => 'select', 'title' => esc_html__( 'Display Title Limit For Event Venue', 'dwt-listing-api' ), 'options' => array(10 => 10,15 => 15,20 => 20,25 => 25,30 => 30,35 => 35,40 ), 'default' => 15, 'subtitle' => esc_html__( 'Limitize event venue text to maintain app aesthetic design.', 'dwt-listing-api' ), ), ) )); 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', ), array( 'id' => 'dwt_app_user_dash', 'type' => 'info', 'style' => 'info', 'icon' => 'el el-info-circle', 'title' => __( 'User Personal Dashboard Menu.', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_profile', 'type' => 'text', 'title' => esc_html__( 'My Profile', 'dwt-listing-api' ), 'default' => esc_html__( 'My Profile', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_create_listing', 'type' => 'text', 'title' => esc_html__( 'Create Listing', 'dwt-listing-api' ), 'default' => esc_html__( 'Create Listing', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_dash', 'type' => 'text', 'title' => esc_html__( 'Dashboard', 'dwt-listing-api' ), 'default' => esc_html__( 'Dashboard', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_rev', 'type' => 'text', 'title' => esc_html__( 'Reviews', 'dwt-listing-api' ), 'default' => esc_html__( 'Reviews', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_events', 'type' => 'text', 'title' => esc_html__( 'Events', 'dwt-listing-api' ), 'default' => esc_html__( 'Events', 'dwt-listing-api' ), ), array( 'id' => 'dwt_app_menu_saved', 'type' => 'text', 'title' => esc_html__( 'Saved Listings', 'dwt-listing-api' ), 'default' => esc_html__( 'Saved Listings', 'dwt-listing-api' ), ), ) )); 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') , ) , ) )); 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", "dwt-listing-api") , 'id' => 'api_home_ads_cat_icons', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'dwt_app_catz_selection', 'type' => 'switch', 'title' => __('Enable Categories', "dwt-listing-api") , 'default' => true, ) , array( 'id' => 'adforest-api-ad-cats-multi', 'type' => 'select', 'data' => 'terms', 'args' => array( 'taxonomies' => 'l_category', 'hide_empty' => false, ), 'required' => array('dwt_app_catz_selection','=',true), '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, 'required' => array('dwt_app_catz_selection','=',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, 'required' => array('dwt_app_catz_selection','=',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' => __("Listings", "dwt-listing-api") , 'id' => 'api_home_latest', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'dwt_app_home_listingz', 'type' => 'switch', 'title' => __('Enable Listings', "dwt-listing-api") , 'default' => true, ) , array( 'id' => 'dwt_app_listing_txt', 'type' => 'text', 'title' => esc_html__( 'Listing Section Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Latest Listings', 'dwt-listing-api' ), 'required' => array('dwt_app_home_listingz','=',true), ), array( 'id' => 'dwt_app_listing_btn_txt', 'type' => 'text', 'title' => esc_html__( 'Listing Section Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'View All', 'dwt-listing-api' ), 'required' => array('dwt_app_home_listingz','=',true), ), array( 'id' => 'dwt_app_homes_listings', 'type' => 'spinner', 'title' => __( 'Listing On Home Screen', 'dwt-listing-api' ), 'default' => '8', 'min' => '1', 'step' => '1', 'max' => '30', 'required' => array('dwt_app_home_listingz','=',true), ), ) )); Redux::setSection($opt_name, array( 'title' => __("Events", "dwt-listing-api") , 'id' => 'api_home_locations', 'desc' => '', 'subsection' => true, 'fields' => array( array( 'id' => 'dwt_app_home_eventz', 'type' => 'switch', 'title' => __('Enable Events', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_event_txt', 'type' => 'text', 'title' => esc_html__( 'Event Section Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Latest Events', 'dwt-listing-api' ), 'required' => array('dwt_app_home_eventz','=',true), ), array( 'id' => 'dwt_app_event_btn_txt', 'type' => 'text', 'title' => esc_html__( 'Event Section Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'View All Events', 'dwt-listing-api' ), 'required' => array('dwt_app_home_eventz','=',true), ), array( 'id' => 'dwt_app_homes_events_pagination', 'type' => 'spinner', 'title' => esc_html__( 'Events On Home Screen', 'dwt-listing-api' ), 'default' => '8', 'min' => '1', 'step' => '1', 'max' => '30', 'required' => array('dwt_app_home_eventz','=',true), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__("Search Filter Screen", "dwt-listing-api") , 'id' => 'app_s_filters', 'desc' => '', 'icon' => 'el el-search', 'fields' => array( array( 'id' => 'dwt_app_search_title', 'type' => 'switch', 'title' => esc_html__('Enable Search By Title', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_title_label', 'type' => 'text', 'title' => esc_html__( 'Event Section Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Search (e.g Pizza or Burger)', 'dwt-listing-api' ), 'required' => array('dwt_app_search_title','=',true), ), array( 'id' => 'dwt_app_title_place', 'type' => 'text', 'title' => esc_html__( 'Title Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'What Are You Looking For?', 'dwt-listing-api' ), 'required' => array('dwt_app_search_title','=',true), ), array( 'id' => 'dwt_app_search_category', 'type' => 'switch', 'title' => esc_html__('Enable Category Filters', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_category_place', 'type' => 'text', 'title' => esc_html__( 'Category Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Select Category', 'dwt-listing-api' ), 'required' => array('dwt_app_search_category','=',true), ), array( 'id' => 'dwt_app_search_price_type', 'type' => 'switch', 'title' => esc_html__('Enable Price Type', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_price_type_place', 'type' => 'text', 'title' => esc_html__( 'Price Type Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Select Price Type', 'dwt-listing-api' ), 'required' => array('dwt_app_search_price_type','=',true), ), array( 'id' => 'dwt_app_search_google_loc', 'type' => 'switch', 'title' => esc_html__('Enable Search By Google Location', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_search_google_loc_label', 'type' => 'text', 'title' => esc_html__( 'Google Locations Field Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Where to look?', 'dwt-listing-api' ), 'required' => array('dwt_app_search_google_loc','=',true), ), array( 'id' => 'dwt_app_search_google_loc_place', 'type' => 'text', 'title' => esc_html__( 'Google Locations Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Address or city', 'dwt-listing-api' ), 'required' => array('dwt_app_search_google_loc','=',true), ), array( 'id' => 'dwt_app_search_status', 'type' => 'switch', 'title' => esc_html__('Enable Search By Status', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_search_status_label', 'type' => 'text', 'title' => esc_html__( 'Status Field Label', 'dwt-listing-api' ), 'default' => esc_html__( 'Status', 'dwt-listing-api' ), 'required' => array('dwt_app_search_status','=',true), ), array( 'id' => 'dwt_app_search_status_place', 'type' => 'text', 'title' => esc_html__( 'Status Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Open Now', 'dwt-listing-api' ), 'required' => array('dwt_app_search_status','=',true), ), array( 'id' => 'dwt_app_search_rated', 'type' => 'switch', 'title' => esc_html__('Enable Search By Rating', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_search_rated_label', 'type' => 'text', 'title' => esc_html__( 'Rating Field Label', 'dwt-listing-api' ), 'default' => esc_html__( 'Rated As', 'dwt-listing-api' ), 'required' => array('dwt_app_search_rated','=',true), ), array( 'id' => 'dwt_app_search_rated_high', 'type' => 'text', 'title' => esc_html__( 'High Rated Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'High to Low', 'dwt-listing-api' ), 'required' => array('dwt_app_search_rated','=',true), ), array( 'id' => 'dwt_app_search_rated_low', 'type' => 'text', 'title' => esc_html__( 'High Rated Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Low to High', 'dwt-listing-api' ), 'required' => array('dwt_app_search_rated','=',true), ), array( 'id' => 'dwt_app_search_cur_loc', 'type' => 'switch', 'title' => esc_html__('Enable Current Location Detection', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_search_cur_loc_title', 'type' => 'text', 'title' => esc_html__( 'Current Location Field Label', 'dwt-listing-api' ), 'default' => esc_html__( 'Current Location', 'dwt-listing-api' ), 'required' => array('dwt_app_search_cur_loc','=',true), ), array( 'id' => 'dwt_app_search_btn_txt', 'type' => 'text', 'title' => esc_html__( 'Search Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Search','dwt-listing-api'), ), array( 'id' => 'dwt_app_search_notification', 'type' => 'info', 'style' => 'info', 'icon' => 'el el-info-circle', 'title' => __( 'Additional Screen Fields.', 'dwt-listing-api' ), 'desc' => __( 'Additional screen fields for advanced search screen.', 'dwt-listing-api' ) ), array( 'id' => 'dwt_app_search_scr_title', 'type' => 'text', 'title' => esc_html__( 'Search Screen Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Advanced Search','dwt-listing-api'), ), array( 'id' => 'dwt_app_search_btn_filter', 'type' => 'text', 'title' => esc_html__( 'Filter Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Filter','dwt-listing-api'), ), array( 'id' => 'dwt_app_search_btn_sort', 'type' => 'text', 'title' => esc_html__( 'Sort Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Sort','dwt-listing-api'), ), array( 'id' => 'dwt_app_search_btn_reset', 'type' => 'text', 'title' => esc_html__( 'Reset Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Reset','dwt-listing-api'), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__("Events Filter Screen", "dwt-listing-api") , 'id' => 'app_events_filters', 'desc' => '', 'icon' => 'el el-calendar-sign', 'fields' => array( array( 'id' => 'dwt_app_event_title', 'type' => 'switch', 'title' => esc_html__('Enable Search By Title', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_event_title_label', 'type' => 'text', 'title' => esc_html__( 'Event Title Field', 'dwt-listing-api' ), 'default' => esc_html__( 'Search By Keyword', 'dwt-listing-api' ), 'required' => array('dwt_app_event_title','=',true), ), array( 'id' => 'dwt_app_event_title_place', 'type' => 'text', 'title' => esc_html__( 'Title Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'What Are You Looking For...', 'dwt-listing-api' ), 'required' => array('dwt_app_event_title','=',true), ), array( 'id' => 'dwt_app_event_google_loc', 'type' => 'switch', 'title' => esc_html__('Enable Search By Google Location', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_event_google_loc_label', 'type' => 'text', 'title' => esc_html__( 'Google Locations Field Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Where to look?', 'dwt-listing-api' ), 'required' => array('dwt_app_event_google_loc','=',true), ), array( 'id' => 'dwt_app_event_google_loc_place', 'type' => 'text', 'title' => esc_html__( 'Google Locations Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Address Or City', 'dwt-listing-api' ), 'required' => array('dwt_app_event_google_loc','=',true), ), array( 'id' => 'dwt_app_event_category', 'type' => 'switch', 'title' => esc_html__('Enable Category Filters', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_event_category_place', 'type' => 'text', 'title' => esc_html__( 'Category Field Placeholder', 'dwt-listing-api' ), 'default' => esc_html__( 'Select Category', 'dwt-listing-api' ), 'required' => array('dwt_app_event_category','=',true), ), array( 'id' => 'dwt_app_event_notification', 'type' => 'info', 'style' => 'info', 'icon' => 'el el-info-circle', 'title' => __( 'Additional Screen Fields.', 'dwt-listing-api' ), 'desc' => __( 'Additional screen fields for event filter screen.', 'dwt-listing-api' ) ), array( 'id' => 'dwt_app_event_btn_txt', 'type' => 'text', 'title' => esc_html__( 'Event Search Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Search','dwt-listing-api'), ), array( 'id' => 'dwt_app_event_scr_title', 'type' => 'text', 'title' => esc_html__('Event Screen Text', 'dwt-listing-api' ), 'default' => esc_html__('Events Search','dwt-listing-api'), ), array( 'id' => 'dwt_app_event_btn_filter', 'type' => 'text', 'title' => esc_html__( 'Filter Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Filter','dwt-listing-api'), ), array( 'id' => 'dwt_app_event_btn_sort', 'type' => 'text', 'title' => esc_html__( 'Sort Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Sort','dwt-listing-api'), ), array( 'id' => 'dwt_app_event_btn_reset', 'type' => 'text', 'title' => esc_html__( 'Reset Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Reset','dwt-listing-api'), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__("Listing Detial Screen", "dwt-listing-api") , 'id' => 'app_l_detail_screen', 'desc' => '', 'icon' => 'el el-bullhorn', 'fields' => array( array( 'id' => 'dwt_app_enabled_save_listing', 'type' => 'switch', 'title' => esc_html__('Enable Saved Listing', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_enabled_save_txt', 'type' => 'text', 'title' => esc_html__( 'Saved Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Saved','dwt-listing-api'), 'required' => array('dwt_app_enabled_save_listing','=',true), ), array( 'id' => 'dwt_app_enabled_report_listing', 'type' => 'switch', 'title' => esc_html__('Enable Report Listing', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_enabled_report_txt', 'type' => 'text', 'title' => esc_html__( 'Report Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Report','dwt-listing-api'), 'required' => array('dwt_app_enabled_report_listing','=',true), ), array( 'id' => 'dwt_app_enabled_claim_listing', 'type' => 'switch', 'title' => esc_html__('Enable Claim Listing', "dwt-listing-api") , 'default' => true, ), array( 'id' => 'dwt_app_enabled_claim_txt', 'type' => 'text', 'title' => esc_html__( 'Claim Button Text', 'dwt-listing-api' ), 'default' => esc_html__( 'Claim','dwt-listing-api'), 'required' => array('dwt_app_enabled_claim_listing','=',true), ), ) )); Redux::setSection($opt_name, array( 'title' => esc_html__("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-api' ), 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_profile_notification', 'type' => 'info', 'style' => 'info', 'icon' => 'el el-info-circle', 'title' => __( 'User Personal Profile.', 'dwt-listing-api' ), 'desc' => __( 'Pagination settings for user personal profile.', 'dwt-listing-api' ) ), array( 'id' => 'app_received_rev_limit', 'type' => 'spinner', 'title' => __( 'Received Reviews', 'dwt-listing' ), 'desc' => __('Number of received reviews shown per page.', 'dwt-listing-api') , 'default' => '10', 'min' => '1', 'step' => '1', 'max' => '30', ), array( 'id' => 'app_received_subb_limit', 'type' => 'spinner', 'title' => __( 'Submitted Reviews', 'dwt-listing' ), 'desc' => __('Number of submitted reviews shown per page.', 'dwt-listing-api') , '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', ), array( 'id' => 'app_dashboard_user_events', 'type' => 'spinner', 'title' => __( 'User Events Per Page', 'dwt-listing-api' ), 'desc' => __('Number of public,pending & expired events 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"), ) , array( 'id' => 'app_lisitng_thumb', 'type' => 'media', 'url' => false, 'title' => __('Default Thumbnail Image', 'dwt-listing-api') , 'compiler' => 'true', 'desc' => __('Recommended image size 750x400', 'dwt-listing-api') , 'default' => array('url' => dwt_listing_API_PLUGIN_URL . "images/282x264.png"), ) , ) )); /*Only show if woocommerce plugin activated */ if(class_exists( 'WooCommerce' ) && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' )) )) { Redux::setSection($opt_name, array( 'title' => __("Packages", "dwt-listing-api") , 'id' => 'app_lisitng_package', 'desc' => '', 'icon' => 'el el-list-alt', 'fields' => array( array( 'id' => 'dwt_listing_app_not', 'type' => 'info', 'title' => esc_html__('Package Alert', 'dwt-listing-api'), 'style' => 'critical', 'desc' => esc_html__('This option will only work when ( WooCommerce Plugin ) is activeted & ( Downtown Packages ) are created.', 'dwt-listing-api'), ), array( 'id' => 'app_lisitng_package_type', 'type' => 'select', 'multi' => true, 'sortable' => true, 'data' => 'post', 'args' => array( 'post_type' => array('product') , 'post_status' => 'publish', 'posts_per_page' => -1, 'order'=> 'DESC', 'orderby' => 'date', ) , 'title' => esc_html__('Select Packages', 'dwt-listing-api') , 'desc' => esc_html__('Only select package not shop products.', 'dwt-listing-api'), ) , array( 'id' => 'app_lisitng_payment_type', 'type' => 'select', 'multi' => true, 'sortable' => true, 'title' => __('Payment Methods For Android App', 'dwt-listing-api') , 'desc' => __('Select the payment methods you want to add.', 'dwt-listing-api') , 'options' => dwt_listing_payment_types() , 'default' => array( 'stripe' ) ) , ) )); } } Redux::setSection($opt_name, array( 'title' => __("Stripe Settings", "dwt-listing-api") , 'id' => 'api_stripe_sett', 'icon' => 'el el-credit-card', 'subsection' => true, 'fields' => array( array( 'id' => 'dwt_listing_app_nots', 'type' => 'info', 'title' => esc_html__('Payment Setup', 'dwt-listing-api'), 'style' => 'critical', 'desc' => esc_html__('Setup your Keys.', 'dwt-listing-api'), ), array( 'id' => 'stripe_pub_key', 'type' => 'text', 'title' => __('Stripe Publishable Key', 'dwt-listing-api') , ) , array( 'id' => 'stripe_sec_key', 'type' => 'text', 'title' => __('Stripe Secret Key', 'dwt-listing-api') , ) , ) )); Redux::setSection( $opt_name, array( 'title' => __( 'Paypal Settings', "dwt-listing-api" ), 'id' => 'api_payment_paypal', 'desc' => '', 'icon' => 'el el-path', 'subsection' => true, 'fields' => array( array( 'id' => 'dwt_listing_app_notss', 'type' => 'info', 'title' => esc_html__('Payment Setup', 'dwt-listing-api'), 'style' => 'critical', 'desc' => esc_html__('Setup your Keys.', 'dwt-listing-api'), ), array( 'id' => 'paypal_mode', 'type' => 'button_set', 'title' => __( 'Paypal Mode', 'dwt-listing-api' ), 'options' => array( 'live' => __('Live', 'dwt-listing-api' ), 'sandbox' => __('Sandbox', 'dwt-listing-api' ), ), 'default' => 'live', ), array( 'id' => 'pay_clientid', 'type' => 'text', 'title' => __( 'Paypal Client Id', 'dwt-listing-api' ), 'default' => '', 'desc' => __( 'Enter you paypal client id here', 'dwt-listing-api' ), ), array( 'id' => 'pay_secret', 'type' => 'text', 'title' => __( 'Paypal Secret', 'dwt-listing-api' ), 'default' => '', 'desc' => __( 'Enter you paypal Secret id here', 'dwt-listing-api' ), ), array( 'id' => 'paypalKey_privecy_url', 'type' => 'text', 'title' => __( 'Privecy Url', 'dwt-listing-api' ), 'default' => '', 'desc' => __( 'Example link ', 'dwt-listing-api' ) . 'https://www.example.com/privacy', ), array( 'id' => 'paypalKey_agreement', 'type' => 'text', 'title' => __( 'Agreement Url', 'dwt-listing-api' ), 'default' => '', 'desc' => __( 'Example link ', 'dwt-listing-api' ) . 'https://www.example.com/legal', ), ) ));
[+]
..
[+]
stripe-php
[-] categories-images.php
[edit]
[-] basic-auth.php
[edit]
[+]
paypal
[-] notifications.php
[edit]
[-] index.php
[edit]
[-] options-init.php
[edit]
[-] auth.php
[edit]