protected function _set_options_defaults()
 {
     if ($this->_options) {
         // Create Gateway options, if needed
         return;
     }
     $this->_options = array('quittance_redirect_page' => array('type' => 'select', 'default' => leyka_get_default_success_page(), 'title' => __('Page to redirect a donor after a donation', 'leyka'), 'description' => __('Select a page for donor to redirect to after he has acquired a quittance.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => leyka_get_pages_list(), 'validation_rules' => array()));
 }
<?php

if (!defined('WPINC')) {
    die;
}
$email_placeholders = "<span class='placeholders-help'>\n<code>#SITE_NAME#</code> - " . __('a title of the website', 'leyka') . "<br>\n<code>#ORG_NAME#</code> - " . __('an official title of the organization', 'leyka') . "<br>\n<code>#DONATION_ID#</code> - " . __('an ID of current donation', 'leyka') . "<br>\n<code>#DONOR_NAME#</code> - " . __('a name of the donor', 'leyka') . "<br>\n<code>#SUM#</code> - " . __('a full sum of donation (without taking into account some payment commissions)', 'leyka') . "<br>\n<code>#PAYMENT_METHOD_NAME#</code> - " . __('a name of payment method used', 'leyka') . "<br>\n<code>#CAMPAIGN_NAME#</code> - " . __('a campaign to which donation was made', 'leyka') . "<br>\n<code>#PURPOSE#</code> - " . __('a campaign title meant for payment system (see campaign settings)', 'leyka') . "<br>\n<code>#DATE#</code> - " . __('a date of donation', 'leyka') . "<br>\n</span>";
$agreement_placeholders = "<span class='placeholders-help'>\n<code>#LEGAL_NAME#</code> - " . __("a legal representative of the organization", 'leyka') . "<br>\n<code>#LEGAL_FACE#</code> - " . __("a legal representative of the organization", 'leyka') . "<br>\n<code>#LEGAL_FACE_RP#</code> - " . __("a legal representative of the organization (in genitive case)", 'leyka') . "<br>\n<code>#LEGAL_FACE_POSITION#</code> - " . __("an official position of the legal representative", 'leyka') . "<br>\n<code>#LEGAL_ADDRESS#</code> - " . __("an official organization's address", 'leyka') . "<br>\n<code>#STATE_REG_NUMBER#</code> - " . __("a state registration number of your organization", 'leyka') . "<br>\n<code>#KPP#</code> - " . __("an organization's statement of the account number", 'leyka') . "<br>\n<code>#INN#</code> - " . __("an organization's individual taxpayer number", 'leyka') . "<br>\n<code>#BANK_ACCOUNT#</code> - " . __("an organization's bank account number", 'leyka') . "<br>\n<code>#BANK_NAME#</code> - " . __("an organization's bank name", 'leyka') . "<br>\n<code>#BANK_BIC#</code> - " . __("an organization's bank indentification code", 'leyka') . "<br>\n<code>#BANK_CORR_ACCOUNT#</code> - " . __("an organization's bank correspondent account", 'leyka') . "<br>\n</span>";
// This "self" is Leyka_Options_Controller
self::$_options_meta = apply_filters('leyka_core_options_meta', array('org_full_name' => array('type' => 'text', 'default' => '', 'title' => __('NGO name', 'leyka'), 'description' => __('Full official name of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., Eastern charity foundation', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_face_fio_ip' => array('type' => 'text', 'default' => '', 'title' => __('A full name of person representing the NGO', 'leyka'), 'description' => __("Enter a person's full name in nominative case.", 'leyka'), 'required' => 1, 'placeholder' => __('For ex., John Frederic Dow', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_face_fio_rp' => array('type' => 'text', 'default' => '', 'title' => __('A full name of person representing the NGO, in genitive case', 'leyka'), 'description' => __("Enter a person's full name in genitive case.", 'leyka'), 'required' => 1, 'placeholder' => __('For ex., John Frederic Dow (in genitive case, if it exists)', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_face_position' => array('type' => 'text', 'default' => '', 'title' => __('Position of a person representing an NGO', 'leyka'), 'description' => __('Enter an official position of a person representing the NGO.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., Director', 'leyka'), 'length' => '60', 'list_entries' => array(), 'validation_rules' => array()), 'org_address' => array('type' => 'text', 'default' => '', 'title' => __("NGO's official address", 'leyka'), 'description' => __('Enter an official address of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., Malrose str., 4, Washington, DC, USA', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_state_reg_number' => array('type' => 'text', 'default' => '', 'title' => __('A state registration number of an NGO', 'leyka'), 'description' => __('Enter a state registration number of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_kpp' => array('type' => 'text', 'default' => '', 'title' => __("NGO's statement of the account number", 'leyka'), 'description' => __("Enter a statement of the account number of an NGO.", 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_inn' => array('type' => 'text', 'default' => '', 'title' => __("NGO's individual number of a taxpayer", 'leyka'), 'description' => __('Enter an individual number of a taxpayer of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_bank_account' => array('type' => 'text', 'default' => '', 'title' => __("NGO's bank account number", 'leyka'), 'description' => __('Enter a bank account number of an NGO', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_bank_name' => array('type' => 'text', 'default' => '', 'title' => __("NGO's bank name", 'leyka'), 'description' => __('Enter a full name for a bank of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., First Columbia Credit Bank', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_bank_bic' => array('type' => 'text', 'default' => '', 'title' => __("NGO's bank BIC number", 'leyka'), 'description' => __("Enter a BIC of the NGO's bank.", 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'org_bank_corr_account' => array('type' => 'text', 'default' => '', 'title' => __("NGO's correspondent bank account number", 'leyka'), 'description' => __('Enter a correspondent account number of an NGO.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'donation_purpose_text' => array('type' => 'text', 'default' => __('Charity donation', 'leyka'), 'title' => __('A payment purpose text in the bank order', 'leyka'), 'description' => '', 'required' => 1, 'placeholder' => __('For ex., Charity donation', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'pm_available' => array('type' => 'multi_checkbox', 'default' => array('text-text_box'), 'title' => __('Payment methods available on donation forms', 'leyka'), 'description' => __("Check out payment methods through that you'd want to receive a donation payments.", 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => 'leyka_get_gateways_pm_list', 'validation_rules' => array()), 'pm_order' => array('type' => 'text', 'default' => '', 'title' => __('Payment methods order on donation forms', 'leyka'), 'description' => '', 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => '', 'validation_rules' => array()), 'auto_refresh_currency_rates' => array('type' => 'checkbox', 'default' => '1', 'title' => __('Automatically refresh currency rates', 'leyka'), 'description' => __('Check to enable auto-refresh of currency rates. It will be performed every 24 hours and will require connection with http://cbr.ru website.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'currency_rur2usd' => array('type' => 'text', 'default' => '', 'title' => __('RUR to USD currency rate', 'leyka'), 'description' => __('Please set the RUR to USD currency rate here.', 'leyka'), 'required' => 1, 'placeholder' => '70.01', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur2eur' => array('type' => 'text', 'default' => '', 'title' => __('RUR to EUR currency rate', 'leyka'), 'description' => __('Please set the RUR to EUR currency rate here.', 'leyka'), 'required' => 1, 'placeholder' => '80.81', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur_label' => array('type' => 'text', 'default' => __('RUR', 'leyka'), 'title' => __('RUR label', 'leyka'), 'description' => __('Please set the RUR currency label here.', 'leyka'), 'required' => 1, 'placeholder' => 'For ex., «Roub.»', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur_min_sum' => array('type' => 'text', 'default' => 100, 'title' => __('Minimum sum available for RUR', 'leyka'), 'description' => __('Please set minimum sum available for RUR donations.', 'leyka'), 'required' => 1, 'placeholder' => '100', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur_max_sum' => array('type' => 'text', 'default' => 30000, 'title' => __('Maximum sum available for RUR', 'leyka'), 'description' => __('Please set maximum sum available for RUR donations.', 'leyka'), 'required' => 1, 'placeholder' => '30000', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur_flexible_default_amount' => array('type' => 'text', 'default' => 500, 'title' => __('Default amount of donation in RUR (for «flexible» donation type)', 'leyka'), 'description' => __('Please, set a default amount of donation when RUR selected as currency.', 'leyka'), 'required' => 1, 'placeholder' => '500', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_rur_fixed_amounts' => array('type' => 'text', 'default' => '100,300,500,1000', 'title' => __('Possible amounts of donation in RUR (for «fixed» donation type)', 'leyka'), 'description' => __('Please, set possible amounts of donation in RUR when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'), 'required' => 1, 'placeholder' => '100,300,500,1000', 'length' => 25, 'list_entries' => '', 'validation_rules' => array()), 'currency_usd_label' => array('type' => 'text', 'default' => __('$', 'leyka'), 'title' => __('USD label', 'leyka'), 'description' => __('Please set the USD currency label here.', 'leyka'), 'required' => 1, 'placeholder' => 'For ex., «USD»', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_usd_min_sum' => array('type' => 'text', 'default' => 10, 'title' => __('Minimum sum available for USD', 'leyka'), 'description' => __('Please set minimum sum available for USD donations.', 'leyka'), 'required' => 1, 'placeholder' => '0', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_usd_max_sum' => array('type' => 'text', 'default' => 1000, 'title' => __('Maximum sum available for USD', 'leyka'), 'description' => __('Please set maximum sum available for USD donations.', 'leyka'), 'required' => 1, 'placeholder' => '1000', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_usd_flexible_default_amount' => array('type' => 'text', 'default' => 10, 'title' => __('Default amount of donation in USD (for «flexible» donation type)', 'leyka'), 'description' => __('Please, set a default amount of donation when RUR selected as currency.', 'leyka'), 'required' => 1, 'placeholder' => '10', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_usd_fixed_amounts' => array('type' => 'text', 'default' => '3,5,10,15,50', 'title' => __('Possible amounts of donation in USD (for «fixed» donation type)', 'leyka'), 'description' => __('Please, set possible amounts of donation in USD when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'), 'required' => 1, 'placeholder' => '3,5,10,15,50', 'length' => 25, 'list_entries' => '', 'validation_rules' => array()), 'currency_eur_label' => array('type' => 'text', 'default' => __('euro', 'leyka'), 'title' => __('EUR label', 'leyka'), 'description' => __('Please set the EUR currency label here.', 'leyka'), 'required' => 1, 'placeholder' => 'For ex., «euro»', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_eur_min_sum' => array('type' => 'text', 'default' => 3, 'title' => __('Minimum sum available for EUR', 'leyka'), 'description' => __('Please set minimum sum available for EUR donations.', 'leyka'), 'required' => 1, 'placeholder' => '0', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_eur_max_sum' => array('type' => 'text', 'default' => 650, 'title' => __('Maximum sum available for EUR', 'leyka'), 'description' => __('Please set maximum sum available for EUR donations.', 'leyka'), 'required' => 1, 'placeholder' => '650', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_eur_flexible_default_amount' => array('type' => 'text', 'default' => 5, 'title' => __('Default amount of donation in EUR (for «flexible» donation type)', 'leyka'), 'description' => __('Please, set a default amount of donation when EUR selected as currency.', 'leyka'), 'required' => 1, 'placeholder' => '5', 'length' => 6, 'list_entries' => '', 'validation_rules' => array()), 'currency_eur_fixed_amounts' => array('type' => 'text', 'default' => '3,5,10,100,500', 'title' => __('Possible amounts of donation in EUR (for «fixed» donation type)', 'leyka'), 'description' => __('Please, set possible amounts of donation in EUR when «fixed» donation type is selected. Only an integer non-negative values, separated with commas.', 'leyka'), 'required' => 1, 'placeholder' => '3,5,10,100,500', 'length' => 25, 'list_entries' => '', 'validation_rules' => array()), 'email_from_name' => array('type' => 'text', 'default' => get_bloginfo('name'), 'title' => __('Notification emails sender name', 'leyka'), 'description' => __('Enter the name that would be used in all notification emails as «from whom» field', 'leyka'), 'required' => 0, 'placeholder' => __('Ex., Daisy Foundation website', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_from' => array('type' => 'text', 'default' => leyka_get_default_email_from(), 'title' => __("Notification emails sender's email", 'leyka'), 'description' => __('Enter the email from which all Leyka emails would be sended', 'leyka'), 'required' => 0, 'placeholder' => __('Ex., donations@daisyfoundation.org', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_thanks_title' => array('type' => 'text', 'default' => __('Thank you for your donation!', 'leyka'), 'title' => __('A title of after-donation notice sended to a donor', 'leyka'), 'description' => __('Enter the title of the notification (or thankful) email with donation data that would be sended to each donor right after his donation is made.', 'leyka'), 'required' => 1, 'placeholder' => __('Ex., Daisy Foundation thanks you for your kindness', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_thanks_text' => array('type' => 'html', 'default' => __('Hello, #DONOR_NAME#!<br><br>You have chosed to make a #SUM# donation to the following charity campaign: #CAMPAIGN_NAME#, using #PAYMENT_METHOD_NAME#.<br><br>Sincerely thank you,<br>#ORG_NAME#', 'leyka'), 'title' => __('A text of after-donation notice sent to a donor', 'leyka'), 'description' => __('Enter the text of the notification email that would be sended to each donor right after his donation is made. It may include the following special entries:', 'leyka') . $email_placeholders, 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_recurrents_thanks_title' => array('type' => 'text', 'default' => __('Thank you for your unwavering support!', 'leyka'), 'title' => __('A title of after-rebill donation notice sended to a donor', 'leyka'), 'description' => __('Enter the title of the notification (or thankful) email with donation data that would be sended to each donor on each rebill donation.', 'leyka'), 'required' => 1, 'placeholder' => __('Ex., Daisy Foundation thanks you for your kindness', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_recurrents_thanks_text' => array('type' => 'html', 'default' => __('Hello, #DONOR_NAME#!<br><br>We just take a #SUM# as your regular donation to the following charity campaign: #CAMPAIGN_NAME#, using #PAYMENT_METHOD_NAME#.<br><br>If you, regretfully, wish to stop the future regular donations to this campaign, please <a href="mailto:#SITE_EMAIL#">write us a letter about it</a>.<br><br>Sincerely thank you,<br>#ORG_NAME#', 'leyka'), 'title' => __('A text of after-rebill donation notice sent to a donor', 'leyka'), 'description' => __('Enter the text of the notification email that would be sended to each donor on each rebill donation. It may include the following special entries:', 'leyka') . $email_placeholders, 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'notify_donations_managers' => array('type' => 'checkbox', 'default' => '1', 'title' => __('Notify website personal of each incoming donation', 'leyka'), 'description' => __('Check to notify some website personnel (donations managers) of each incoming donation.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'notify_managers_on_recurrents' => array('type' => 'checkbox', 'default' => '1', 'title' => __('Notify website personal of each incoming recurrent donation', 'leyka'), 'description' => __('Check to notify some website personnel (donations managers) of each incoming recurrent donation.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'donations_managers_emails' => array('type' => 'text', 'default' => leyka_get_default_dm_list(), 'title' => __('A comma-separated emails to notify of incoming donation', 'leyka'), 'description' => '', 'required' => 0, 'placeholder' => __('For ex., admin@daisyfoundation.org,yourmail@domain.com', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_notification_title' => array('type' => 'text', 'default' => __('New donation incoming', 'leyka'), 'title' => __('A title of new donation notification email', 'leyka'), 'description' => '', 'required' => 0, 'placeholder' => __('For ex., new donation incoming', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'email_notification_text' => array('type' => 'html', 'default' => __('Hello!<br><br>A new donation has been made on a #SITE_NAME#:<br><ul><li>Campaign: #CAMPAIGN_NAME#.</li><li>Donation purpose: #PURPOSE#</li><li>Amount: #SUM#.</li><li>Payment method: #PAYMENT_METHOD_NAME#.</li><li>Date: #DATE#</li></ul><br><br>Your Leyka', 'leyka'), 'title' => __('A text of after-donation notification sended to a website personnel', 'leyka'), 'description' => __("Enter the text of the notification email that would be sended to each email stated before right after donation is made. It may include the following special entries:", 'leyka') . $email_placeholders, 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'donation_form_template' => array('type' => 'radio', 'default' => 'radios', 'title' => __('Select a default template for all your donation forms', 'leyka'), 'description' => __('Select one of the form templates.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => 'leyka_get_form_templates_list', 'validation_rules' => array()), 'donation_sum_field_type' => array('type' => 'radio', 'default' => 'flexible', 'title' => __('Select a type of the sum field for all your donation forms', 'leyka'), 'description' => __('Select a type of the sum field. «Fixed» means a set of stable sum variants, while «flexible» is a free input field.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array('flexible' => __('Flexible', 'leyka'), 'fixed' => __('Fixed', 'leyka')), 'validation_rules' => array()), 'donation_form_mode' => array('type' => 'checkbox', 'default' => 1, 'title' => __('Display all payment elements on campaign page automatically', 'leyka'), 'description' => __('When unchecked, all payment elements like donation forms or target completion level widgets will not be displayed automatically. To output them manually, use shortcodes inside campaign\'s content or template tags in campaign\'s template file.', 'leyka'), 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'scale_widget_place' => array('type' => 'radio', 'default' => 'top', 'title' => __('Select where Target completion widget will be placed at campaign pages', 'leyka'), 'description' => '', 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array('top' => __('Above page content', 'leyka'), 'bottom' => __('Below page content', 'leyka'), 'both' => __('Both', 'leyka'), '-' => __('Nowhere', 'leyka')), 'validation_rules' => array()), 'donations_history_under_forms' => array('type' => 'checkbox', 'default' => 1, 'title' => __('Display a Donations history widget below donation form', 'leyka'), 'description' => __('Check to display a Donations history widget below donation form', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'show_campaign_sharing' => array('type' => 'checkbox', 'default' => 1, 'title' => __('Display a campaign sharing widget below donation form', 'leyka'), 'description' => __('Check to display a campaign sharing widget below donation form', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'agree_to_terms_needed' => array('type' => 'checkbox', 'default' => 1, 'title' => __('To donate, donor must agree to the Terms of service', 'leyka'), 'description' => __('Check if you must have donor to accept some terms before donating.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'agree_to_terms_text' => array('type' => 'text', 'default' => __('I agree to the Terms of this donation service', 'leyka'), 'title' => __('Label of checkbox of Terms acception', 'leyka'), 'description' => __('Enter the text to show next to the checkbox to accept the Terms of service.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., I agree to the Terms of this donation service', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'terms_of_service_text' => array('type' => 'rich_html', 'default' => __('Terms of donation service text. Use <br /> for line-breaks, please.', 'leyka'), 'title' => __('A text of the Terms of donation service', 'leyka'), 'description' => __('Enter a text that will be shown to the donors to read the Terms of service. It have to include the following special entries:', 'leyka') . $agreement_placeholders, 'required' => 1, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'donation_submit_text' => array('type' => 'text', 'default' => __('Donate', 'leyka'), 'title' => __('Label of the button to submit a donation form', 'leyka'), 'description' => __('Enter the text for a submit buttons on a donation forms.', 'leyka'), 'required' => 1, 'placeholder' => __('For ex., «Donate» or «Support»', 'leyka'), 'length' => '', 'list_entries' => array(), 'validation_rules' => array()), 'success_page' => array('type' => 'select', 'default' => leyka_get_default_success_page(), 'title' => __('Page of successful donation', 'leyka'), 'description' => __('Select a page for donor to redirect to when payment is successful.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => 'leyka_get_pages_list', 'validation_rules' => array()), 'failure_page' => array('type' => 'select', 'default' => leyka_get_default_failure_page(), 'title' => __('Page of failed donation', 'leyka'), 'description' => __('Select a page for donor to redirect to when payment is failed for some reason.', 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => 'leyka_get_pages_list', 'validation_rules' => array()), 'load_scripts_if_need' => array('type' => 'checkbox', 'default' => 0, 'title' => __('Load plugin scripts only if necessary', 'leyka'), 'description' => __("Check this to load Leyka scripts and styles only on an applicable pages. If this box is unchecked, plugin will load it's scripts on every website page.", 'leyka'), 'required' => 0, 'placeholder' => '', 'length' => '', 'list_entries' => array(), 'validation_rules' => array())));