Use new code style
This commit is contained in:
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Pricing_Table;
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
use \WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Base_Field_Template;
|
||||
use WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Base_Field_Template;
|
||||
|
||||
/**
|
||||
* Template Selection Clean
|
||||
@ -52,8 +52,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_render_type(): string {
|
||||
|
||||
return 'dynamic';
|
||||
|
||||
} // end get_render_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the field template.
|
||||
@ -66,8 +65,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_title() {
|
||||
|
||||
return __('Legacy', 'wp-ultimo');
|
||||
|
||||
} // end get_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* The description of the field template.
|
||||
@ -80,8 +78,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_description() {
|
||||
|
||||
return __('Implementation of the layout that shipped with WP Ultimo < 1.10.X.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The preview image of the field template.
|
||||
@ -94,8 +91,7 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/legacy-pricing-table.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -108,7 +104,5 @@ class Legacy_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
wu_get_template('checkout/templates/pricing-table/legacy', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class Legacy_Pricing_Table_Field_Template;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Pricing_Table;
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
use \WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Base_Field_Template;
|
||||
use WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Base_Field_Template;
|
||||
|
||||
/**
|
||||
* Base Field Template
|
||||
@ -43,8 +43,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_title() {
|
||||
|
||||
return __('Simple List', 'wp-ultimo');
|
||||
|
||||
} // end get_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* The description of the field template.
|
||||
@ -57,8 +56,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_description() {
|
||||
|
||||
return __('Simple stylized list with price, recurrence, and the plan description.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The preview image of the field template.
|
||||
@ -71,8 +69,7 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/list-pricing-table.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -85,7 +82,5 @@ class List_Pricing_Table_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
wu_get_template('checkout/templates/pricing-table/list', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class List_Pricing_Table_Field_Template;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user