Styles
Class to load all the pro style features.
Namespace: WebberZone\Top_Ten\Pro
Since: 4.0.0
Source: includes/pro/class-styles.php line 22
Methods
__construct()
Constructor class.
Since: 4.0.0
Line: 29
public function __construct( );
add_styles()
Add the grid_thumbs style
Since: 4.0.0
Line: 42
public function add_styles( $styles ): array;
| Type | Name | Description |
|---|---|---|
array |
$styles |
Array of styles. |
Returns: array — Updated styles
override_current_style()
Add the style array for the grid_thumbs style
Since: 4.0.0
Line: 62
public function override_current_style( $style_array, $tptn_style, $thumb_width, $thumb_height ): array;
| Type | Name | Description |
|---|---|---|
array |
$style_array |
Style array containing name and extra_css. |
string |
$tptn_style |
Current style. |
int |
$thumb_width |
Thumbnail width. |
int |
$thumb_height |
Thumbnail height. |
Returns: array — Updated style array.