Use new code style
This commit is contained in:
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Template_Selection;
|
||||
// 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 Clean_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_render_type(): string {
|
||||
|
||||
return 'ajax';
|
||||
|
||||
} // end get_render_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the field template.
|
||||
@ -66,8 +65,7 @@ class Clean_Template_Selection_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_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_description(): string {
|
||||
|
||||
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_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/clean-template-selection.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -106,7 +102,5 @@ class Clean_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
wu_get_template('checkout/templates/template-selection/clean', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class Clean_Template_Selection_Field_Template;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Template_Selection;
|
||||
// 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;
|
||||
|
||||
/**
|
||||
* Legacy Field Template Selector
|
||||
@ -41,8 +41,7 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_render_type(): string {
|
||||
|
||||
return 'ajax';
|
||||
|
||||
} // end get_render_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the field template.
|
||||
@ -55,8 +54,7 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_title() {
|
||||
|
||||
return __('Legacy', 'wp-ultimo');
|
||||
|
||||
} // end get_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* The description of the field template.
|
||||
@ -69,8 +67,7 @@ class Legacy_Template_Selection_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.
|
||||
@ -83,8 +80,7 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/legacy-template-selection.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -97,7 +93,5 @@ class Legacy_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
wu_get_template('checkout/templates/template-selection/legacy', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class Legacy_Template_Selection_Field_Template;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ namespace WP_Ultimo\Checkout\Signup_Fields\Field_Templates\Template_Selection;
|
||||
// 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 Minimal
|
||||
@ -41,8 +41,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_render_type(): string {
|
||||
|
||||
return 'ajax';
|
||||
|
||||
} // end get_render_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* The title of the field template.
|
||||
@ -55,8 +54,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_title() {
|
||||
|
||||
return __('Minimal', 'wp-ultimo');
|
||||
|
||||
} // end get_title;
|
||||
}
|
||||
|
||||
/**
|
||||
* The description of the field template.
|
||||
@ -69,8 +67,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_description() {
|
||||
|
||||
return __('A simple template with clean markup and no styling, ready to be customized with custom CSS.', 'wp-ultimo');
|
||||
|
||||
} // end get_description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The preview of the field template.
|
||||
@ -81,8 +78,7 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function get_preview(): string {
|
||||
|
||||
return wu_get_asset('checkout-forms/minimal-template-selection.png');
|
||||
|
||||
} // end get_preview;
|
||||
}
|
||||
|
||||
/**
|
||||
* The content of the template.
|
||||
@ -95,7 +91,5 @@ class Minimal_Template_Selection_Field_Template extends Base_Field_Template {
|
||||
public function output($attributes) {
|
||||
|
||||
wu_get_template('checkout/templates/template-selection/minimal', $attributes);
|
||||
|
||||
} // end output;
|
||||
|
||||
} // end class Minimal_Template_Selection_Field_Template;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user