PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/polo-family.com/wp-content/plugins/wwcAliAff/modules/settings/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/polo-family.com/wp-content/plugins/wwcAliAff/modules/settings/options.php |
<?php /** * Dummy module return as json_encode * http://www.aa-team.com * ======================= * * @author Andrei Dinca, AA-Team * @version 0.1 - in development mode */ if ( !function_exists('__wwcAliAff_attributesList') ) { function __wwcAliAff_attributesList() { $attrList = array(); return $attrList; } } global $wwcAliAff; echo json_encode(array( $tryed_module['db_alias'] => array( /* define the form_sizes box */ 'settings' => array( 'title' => 'Plugins settings', 'icon' => '{plugin_folder_uri}assets/icon.png', 'size' => 'grid_4', // grid_1|grid_2|grid_3|grid_4 'header' => true, // true|false 'toggler' => false, // true|false 'buttons' => true, // true|false 'style' => 'panel', // panel|panel-widget // tabs 'tabs' => array( '__tab1' => array(__('Alibaba SETUP', $wwcAliAff->localizationName), 'protocol, AppKey, TrackingID, DigitalSignature, buttons, help_required_fields'), '__tab2' => array(__('Plugin SETUP', $wwcAliAff->localizationName), 'charset, services_used_forip, product_buy_is_original_url, frontend_show_free_shipping, checkout_type, 90day_cookie, remove_gallery, redirect_time, show_review_tab, redirect_checkout_msg'), '__tab3' => array(__('Import SETUP', $wwcAliAff->localizationName), 'import_price_zero_products, default_import, import_type, ratio_prod_validate, item_attribute, selected_attributes, attr_title_normalize, cron_number_of_images, number_of_images, rename_image, spin_at_import, spin_max_replacements'), ), // create the box elements array 'elements' => array( /*'protocol' => array( 'type' => 'select', 'std' => '', 'size' => 'large', 'force_width' => '200', 'title' => 'Request Type', 'desc' => 'How the script should make the request to Alibaba API.', 'options' => array( 'auto' => 'Auto Detect', 'xml' => 'XML', 'json' => 'JSON' ) ),*/ 'AppKey' => array( 'type' => 'text', 'std' => '', 'size' => 'large', 'title' => 'App Key', 'force_width' => '250', 'desc' => 'Required in order to send requests to Alibaba API.' ), 'TrackingID' => array( 'type' => 'text', 'std' => '', 'size' => 'large', 'force_width' => '300', 'title' => 'Tracking ID', 'desc' => 'Required in order to send requests to Alibaba API.' ), 'DigitalSignature' => array( 'type' => 'text', 'std' => '', 'size' => 'large', 'force_width' => '300', 'title' => 'Digital Signature', 'desc' => 'Optional - could be used in the future by the Alibaba API.' ), 'buttons' => array( 'type' => 'buttons', 'options' => array( 'check_alibaba' => array( 'width' => '192px', 'type' => 'button', 'value' => 'Check Alibaba Webservice Keys', 'color' => 'blue', 'action' => 'wwcAliAffCheckAlibabaKeys' ) ) ), 'help_required_fields' => array( 'type' => 'message', 'status' => 'info', 'html' => 'The above fields are required in order to send requests to Alibaba API and retrieve data about products and listings. If you applied to Aliexpress for these keys, you can find them on <a href="http://portals.aliexpress.com/adcenter/api_setting.htm" target="_blank">API Settings</a> page.' ), 'charset' => array( 'type' => 'text', 'std' => '', 'size' => 'large', 'force_width'=> '400', 'title' => __('Server Charset:', $wwcAliAff->localizationName), 'desc' => __('Server Charset (used by php-query class)', $wwcAliAff->localizationName) ), 'services_used_forip' => array( 'type' => 'select', 'std' => 'www.geoplugin.net', 'size' => 'large', 'force_width' => '200', 'title' => 'External server country detection:', 'desc' => 'We use an external server for detecting client country per IP address.', 'options' => array( 'api.hostip.info' => 'api.hostip.info', 'www.geoplugin.net' => 'www.geoplugin.net', 'www.telize.com' => 'www.telize.com', 'ipinfo.io' => 'ipinfo.io', ) ), 'product_buy_is_original_url' => array( 'type' => 'select', 'std' => 'yes', 'size' => 'large', 'force_width' => '100', 'title' => 'Show Alibaba Product Url as Buy Url', 'desc' => 'If you choose YES then the product buy url will be the original alibaba product url.', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), 'frontend_show_free_shipping' => array( 'type' => 'select', 'std' => 'yes', 'size' => 'large', 'force_width' => '100', 'title' => 'Show Free Shipping', 'desc' => 'Show Free Shipping text on frontend.', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), /*'checkout_type' => array( 'type' => 'select', 'std' => '_self', 'size' => 'large', 'force_width' => '200', 'title' => 'Checkout type:', 'desc' => 'This option will allow you to setup how the Alibaba Checkout process will happen. If you wish to open the alibaba products into a new tab, or in the same tab.', 'options' => array( 'self' => 'Self - into same tab', '_blank' => 'Blank - open new tab' ) ), '90day_cookie' => array( 'type' => 'select', 'std' => 'yes', 'size' => 'large', 'force_width' => '100', 'title' => '90 days cookies', 'desc' => 'This option will activate the 90 days cookies feature', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ),*/ 'remove_gallery' => array( 'type' => 'select', 'std' => 'no', 'size' => 'large', 'force_width' => '100', 'title' => 'Gallery', 'desc' => 'Show gallery in product description.', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), /*'redirect_time' => array( 'type' => 'text', 'std' => '3', 'size' => 'large', 'force_width' => '120', 'title' => 'Redirect in', 'desc' => 'How many seconds to wait before redirect to Alibaba!' ), 'show_review_tab' => array( 'type' => 'select', 'std' => 'yes', 'size' => 'large', 'force_width' => '100', 'title' => 'Review tab', 'desc' => 'Show Alibaba reviews tab in product description.', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), 'redirect_checkout_msg' => array( 'type' => 'textarea', 'std' => 'You will be redirected to {alibaba_website} to complete your checkout!', 'size' => 'large', 'force_width' => '160', 'title' => 'Checkout message', 'desc' => 'Message for checkout redirect box.' ),*/ 'import_price_zero_products' => array( 'type' => 'select', 'std' => 'no', 'size' => 'large', 'force_width' => '100', 'title' => 'Import products with price 0', 'desc' => 'Choose Yes if you want to import products with price 0', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), 'default_import' => array( 'type' => 'select', 'std' => 'publish', 'size' => 'large', 'force_width' => '100', 'title' => 'Import as', 'desc' => 'Default import products with status "publish" or "draft"', 'options' => array( 'publish' => 'Publish', 'draft' => 'Draft' ) ), 'import_type' => array( 'type' => 'select', 'std' => 'default', 'size' => 'large', 'force_width' => '280', 'title' => 'Image Import type', 'options' => array( 'default' => 'Default - download images at import', 'asynchronous' => 'Asynchronous image download' ) ), 'ratio_prod_validate' => array( 'type' => 'select', 'std' => 90, 'size' => 'large', 'title' => __('Ratio product validation:', $wwcAliAff->localizationName), 'force_width'=> '100', 'desc' => __('The minimum percentage of total assets download (product + variations) from which a product is considered valid!', $wwcAliAff->localizationName), 'options' => $wwcAliAff->doRange( range(10, 100, 5) ) ), 'item_attribute' => array( 'type' => 'select', 'std' => 'yes', 'size' => 'large', 'force_width' => '100', 'title' => 'Import Attributes', 'desc' => 'This option will allow to import or not the product item attributes.', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), /*'selected_attributes' => array( 'type' => 'multiselect_left2right', 'std' => array(), 'size' => 'large', 'rows_visible' => 18, 'force_width'=> '300', 'title' => __('Select attributes', $wwcAliAff->localizationName), 'desc' => __('Choose what attributes to be added on import process.', $wwcAliAff->localizationName), 'info' => array( 'left' => 'All Alibaba Attributes list', 'right' => 'Your chosen items from list' ), 'options' => __wwcAliAff_attributesList() ),*/ 'attr_title_normalize' => array( 'type' => 'select', 'std' => 'no', 'size' => 'large', 'force_width' => '100', 'title' => 'Beautify attribute title', 'desc' => 'separate attribute title words by space', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), 'cron_number_of_images' => array( 'type' => 'text', 'std' => '10', 'size' => 'large', 'force_width' => '100', 'title' => 'Cron number of images', 'desc' => 'The number of images your cronjob file will download at each execution.' ), 'number_of_images' => array( 'type' => 'text', 'std' => 'all', 'size' => 'large', 'force_width' => '100', 'title' => 'Number of images', 'desc' => 'How many images to download for each products. Default is <code>all</code>' ), 'rename_image' => array( 'type' => 'select', 'std' => 'product_title', 'size' => 'large', 'force_width' => '130', 'title' => 'Image names', 'options' => array( 'product_title' => 'Product title', 'random' => 'Random number' ) )/*, 'spin_at_import' => array( 'type' => 'select', 'std' => 'no', 'size' => 'large', 'force_width' => '100', 'title' => 'Spin on Import', 'desc' => 'Choose YES if you want to auto spin post, page content at alibaba import', 'options' => array( 'yes' => 'YES', 'no' => 'NO' ) ), 'spin_max_replacements' => array( 'type' => 'select', 'std' => '10', 'force_width' => '150', 'size' => 'large', 'title' => 'Spin max replacements', 'desc' => 'Choose the maximum number of replacements for auto spin post, page content at alibaba import.', 'options' => array( '10' => '10 replacements', '30' => '30 replacements', '60' => '60 replacements', '80' => '80 replacements', '100' => '100 replacements', '0' => 'All possible replacements', ) )*/ ) ) ) ));