Button_Display
in package
implements
Service, Registerable, Conditional
Handles the display of the Quick View button in the shop.
Tags
Interfaces, Classes and Traits
- Service
- Marker interface to denote a service.
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
- Conditional
- An object which is loaded conditionally.
Table of Contents
- $scripts : mixed
- $settings : mixed
- __construct() : mixed
- add_button_hooks() : mixed
- add_hover_button_hooks() : mixed
- add_product_qvp_class() : mixed
- add_thumbnail_wrapper_close() : mixed
- add_thumbnail_wrapper_open() : mixed
- get_button() : mixed
- get_button_html() : mixed
- is_category_allowed() : mixed
- is_required() : bool
- Is this object required?
- quick_view_button_enabled() : mixed
- quick_view_hover_button_enabled() : mixed
- register() : mixed
- show_button() : mixed
- show_hover_button() : mixed
- get_button_text() : mixed
Properties
$scripts
private
mixed
$scripts
$settings
private
mixed
$settings
Methods
__construct()
public
__construct(Frontend_Scripts $scripts) : mixed
Parameters
- $scripts : Frontend_Scripts
Return values
mixed —add_button_hooks()
public
add_button_hooks() : mixed
Return values
mixed —add_hover_button_hooks()
public
add_hover_button_hooks() : mixed
Return values
mixed —add_product_qvp_class()
public
add_product_qvp_class(mixed $classes, mixed $product) : mixed
Parameters
- $classes : mixed
- $product : mixed
Return values
mixed —add_thumbnail_wrapper_close()
public
add_thumbnail_wrapper_close() : mixed
Return values
mixed —add_thumbnail_wrapper_open()
public
add_thumbnail_wrapper_open() : mixed
Return values
mixed —get_button()
public
get_button([mixed $the_product = null ][, mixed $for_hover = false ]) : mixed
Parameters
- $the_product : mixed = null
- $for_hover : mixed = false
Return values
mixed —get_button_html()
public
get_button_html(mixed $product[, mixed $for_hover = false ]) : mixed
Parameters
- $product : mixed
- $for_hover : mixed = false
Return values
mixed —is_category_allowed()
public
is_category_allowed(mixed $setting[, mixed $the_product = null ]) : mixed
Parameters
- $setting : mixed
- $the_product : mixed = null
Return values
mixed —is_required()
Is this object required?
public
is_required() : bool
Return values
bool —true if required, false otherwise.
quick_view_button_enabled()
public
quick_view_button_enabled() : mixed
Return values
mixed —quick_view_hover_button_enabled()
public
quick_view_hover_button_enabled() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —show_button()
public
show_button([mixed $product = null ]) : mixed
Parameters
- $product : mixed = null
Return values
mixed —show_hover_button()
public
show_hover_button([mixed $product = null ]) : mixed
Parameters
- $product : mixed = null
Return values
mixed —get_button_text()
private
get_button_text() : mixed