first commit

This commit is contained in:
2026-04-28 15:13:50 +02:00
commit a95acc355b
63745 changed files with 9487948 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
<?php
/**
*
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Section')):
class WCFE_Checkout_Section {
public $id = '';
public $name = '';
public $position = '';
public $order = '';
public $type = '';
public $cssclass = '';
public $enabled = true;
public $custom_section = 1;
public $show_title = 1;
public $show_title_my_account = 1;
public $title = '';
public $title_type = '';
public $title_color = '';
public $title_position = '';
public $title_class = '';
public $subtitle = '';
public $subtitle_type = '';
public $subtitle_color = '';
public $subtitle_position = '';
public $subtitle_class = '';
public $rules_action = '';
public $rules_action_ajax = '';
public $conditional_rules_json = '';
public $conditional_rules = array();
public $conditional_rules_ajax_json = '';
public $conditional_rules_ajax = array();
public $repeat_rules = '';
public $rpt_name_suffix = '';
public $rpt_label_suffix = '';
public $rpt_incl_parent = 0;
public $inherit_display_rule = 1;
public $inherit_display_rule_ajax = 1;
public $auto_adjust_display_rule_ajax = 1;
public $fields = array();
public $condition_sets = array();
public function __construct() {}
public function set_property($name, $value){
if(property_exists($this, $name)){
$this->$name = $value;
}
}
public function get_property($name){
if(property_exists($this, $name)){
return $this->$name;
}else{
return '';
}
}
}
endif;

View File

@@ -0,0 +1,29 @@
<?php
/**
* Checkout Field - Checkbox
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Checkbox')):
class WCFE_Checkout_Field_Checkbox extends WCFE_Checkout_Field{
public $checked = 0;
public function __construct() {
$this->type = 'checkbox';
}
public function prepare_field($name, $field){
if(!empty($field) && is_array($field)){
parent::prepare_field($name, $field);
$this->set_property('checked', isset($field['checked']) ? $field['checked'] : 0 );
}
}
}
endif;

View File

@@ -0,0 +1,21 @@
<?php
/**
* Checkout Field - City
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_City')):
class WCFE_Checkout_Field_City extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'city';
}
}
endif;

View File

@@ -0,0 +1,20 @@
<?php
/**
* Checkout Field - Country
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Country')):
class WCFE_Checkout_Field_Country extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'country';
}
}
endif;

View File

@@ -0,0 +1,20 @@
<?php
/**
* Checkout Field - Email
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Email')):
class WCFE_Checkout_Field_Email extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'email';
}
}
endif;

View File

@@ -0,0 +1,20 @@
<?php
/**
* Checkout Field - Input Text
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_InputText')):
class WCFE_Checkout_Field_InputText extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'text';
}
}
endif;

View File

@@ -0,0 +1,21 @@
<?php
/**
* Checkout Field - Radio
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Radio')):
class WCFE_Checkout_Field_Radio extends WCFE_Checkout_Field{
public $options = array();
public function __construct() {
$this->type = 'radio';
}
}
endif;

View File

@@ -0,0 +1,20 @@
<?php
/**
* Checkout Field - Select
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Select')):
class WCFE_Checkout_Field_Select extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'select';
}
}
endif;

View File

@@ -0,0 +1,21 @@
<?php
/**
* Checkout Field - State
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_State')):
class WCFE_Checkout_Field_State extends WCFE_Checkout_Field{
public $country_field = '';
public function __construct() {
$this->type = 'state';
}
}
endif;

View File

@@ -0,0 +1,20 @@
<?php
/**
* Checkout Field - Telephone
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field_Tel')):
class WCFE_Checkout_Field_Tel extends WCFE_Checkout_Field{
public function __construct() {
$this->type = 'tel';
}
}
endif;

View File

@@ -0,0 +1,112 @@
<?php
/**
* Checkout Field Properties
*
* @author ThemeHiGH
* @category Admin
*/
if(!defined('ABSPATH')){ exit; }
if(!class_exists('WCFE_Checkout_Field')):
class WCFE_Checkout_Field{
public $custom_field = 0;
public $order = '';
public $priority = '';
public $id = '';
public $autocomplete = '';
public $hidden = '';
public $name = '';
public $name_old = '';
public $type = '';
public $order_meta = 1;
public $user_meta = 0;
public $disable_select2 = 0;
public $value = '';
public $placeholder = '';
public $validate = '';
public $cssclass = '';
public $input_class = '';
public $description = '';
public $input_mask = '';
//public $cssclass_str = '';
public $price_field = false;
public $price = 0;
public $price_unit = 0;
public $price_type = '';
public $taxable = '';
public $tax_class = '';
public $required = 0;
public $enabled = 1;
public $clear = 0;
// public $enable_country_code = 0;
public $show_in_email = 1;
public $show_in_email_customer = 1;
public $show_in_order = 1;
public $show_in_thank_you_page = 1;
public $show_in_my_account_page = 0;
public $title = '';
public $title_type = '';
public $title_color = '';
public $title_class = '';
///public $title_class_str = '';
public $subtitle = '';
public $subtitle_type = '';
public $subtitle_color = '';
public $subtitle_class = '';
//public $subtitle_class_str = '';
public $minlength = '';
public $maxlength = '';
public $repeat_x = 1;
public $repeat_rules = '';
public $rpt_name_suffix = '';
public $rpt_label_suffix = '';
public $rpt_incl_parent = 0;
public $inherit_display_rule = 1;
public $inherit_display_rule_ajax = 1;
public $auto_adjust_display_rule_ajax = 1;
public $options_json = '';
public $options = array();
//public $validator_arr = array();
public $rules_action = '';
public $rules_action_ajax = '';
public $conditional_rules_json = '';
public $conditional_rules = array();
public $conditional_rules_ajax_json = '';
public $conditional_rules_ajax = array();
public $property_set = false;
public function __construct(){}
public function set_property($name, $value){
if(property_exists($this, $name)){
$this->$name = $value;
}
}
public function get_property($name){
if(property_exists($this, $name)){
return $this->$name;
}else{
return '';
}
}
}
endif;