<?php
/*
 * This file belongs to the YIT Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

$settings = array(
	'woocommercesettings' => array(
		'general-options'              => array(
			'type'  => 'title',
			'desc'  => '',
		),
		'yith-amazon-s3-storage-permissions'        => array(
			'id'        => 'YITH_WC_amazon_s3_storage_private_public_radio_button',
			'name'      => __( 'Permissions', 'yith-amazon-s3-storage' ),
			'type'      => 'yith-field',
			'yith-type' => 'radio',
			'options'   => array(
				'public'  => 'Public',
				'private' => 'Private'
			),
			'default'   => 'private',
			'desc'      => __( 'By setting the files as public, anyone who knows the S3 URL will have complete access to it', 'yith-amazon-s3-storage' ),
		),

		'yith-amazon-s3-storage-url-validity-period'        => array(
			'id'        => 'YITH_WC_amazon_s3_storage_time_valid_number',
			'name'      => __( 'URL validity period', 'yith-amazon-s3-storage' ),
			'type'      => 'yith-field',
			'yith-type' => 'text',
			'default'   => 5,
			'desc'      => __( 'Set the time (minutes) during which the URL is valid for download', 'yith-amazon-s3-storage' ),
		),
		'yith-amazon-s3-storage-replace-url'        => array(
			'id'        => 'YITH_WC_amazon_s3_storage_order_link_checkbox',
			'name'      => __( 'Send order link', 'yith-amazon-s3-storage' ),
			'type'      => 'yith-field',
			'yith-type' => 'checkbox',
			'default'   => '',
			'desc'      => __( 'Link of the order under the user\'s account This link shows up in the email sent after purchasing and leads to the order under the account of the user. If the client does not have an account the link will not be sent', 'yith-amazon-s3-storage' ),
		),
		'yith-amazon-s3-storage-email-link'        => array(
			'id'        => 'YITH_WC_amazon_s3_storage_textarea_email_link',
			'name'      => __( 'Link of the email sent', 'yith-amazon-s3-storage' ),
			'type'      => 'yith-field',
			'yith-type' => 'textarea',
			'default'   => '',
			'desc'      => __( 'The text of the link that will be sent in the mail', 'yith-amazon-s3-storage' ),
		),




		'general-options-end'          => array(
			'type' => 'sectionend',
			'id'   => 'yith-wcbk-general-options'
		),
	)
);

return apply_filters( 'yith_wc_amazon_s3_storage_general_settings_options', $settings );