Use new code style
This commit is contained in:
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Order_Summary;
|
||||
// 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;
|
||||
|
||||
/**
|
||||
* Order Summary Clean
|
||||
@ -52,8 +52,7 @@ class Clean_Order_Summary_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 Clean_Order_Summary_Field_Template extends Base_Field_Template {
|
||||
public function get_title() {
|
||||
|
||||
return __('Clean', 'wp-ultimo');
|
||||
|
||||
} // end get_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* The description of the field template.
|
||||
@ -80,8 +78,7 @@ class Clean_Order_Summary_Field_Template extends Base_Field_Template {
|
||||
public function get_description() {
|
||||
|
||||
return __('A simple layout with minimal styling, just enough to make it usable out-of-the-box.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The preview of the field template.
|
||||
@ -92,8 +89,7 @@ class Clean_Order_Summary_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/clean-order-summary.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -106,10 +102,8 @@ class Clean_Order_Summary_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
/**
|
||||
* Loads the actual order-summary template
|
||||
*/
|
||||
* Loads the actual order-summary template
|
||||
*/
|
||||
wu_get_template('checkout/templates/order-summary/simple', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class Clean_Order_Summary_Field_Template;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user