Recent

Styles_Handlerclass

Styles_Handler

Styles Handler Class.

Namespace: WebberZone\Top_Ten\Frontend
Since: 3.3.0
Source: includes/frontend/class-styles-handler.php line 22

Methods

__construct()

Constructor class.

Since: 3.3.0
Line: 29

public function __construct(  );

header() static

Function to add CSS to header.

Since: 1.9
Line: 40

static public function header(  );

enqueue_all_styles() static

Enqueue every registered style. Elementor’s preview iframe can switch widget styles without a full reload, so all style choices need to be available there.

Since: 4.5.0
Line: 56

static public function enqueue_all_styles(  );

enqueue_style() static

Register and enqueue one style by ID.

Since: 4.5.0
Line: 69

static public function enqueue_style( $style_id );
Type Name Description
string $style_id Style ID.

enqueue_style_now() static

Enqueue and print one style immediately when rendering happens after wp_head.

Since: 4.5.0
Line: 101

static public function enqueue_style_now( $style_id );
Type Name Description
string $style_id Style ID.

resolve_style_id() static

Resolve a style ID using the same thumbnail-placement precedence everywhere.

Since: 4.5.0
Line: 126

static public function resolve_style_id( $post_thumb_op = ..., $style_id = ... ): string;
Type Name Description
string|null $post_thumb_op Thumbnail placement override.
string|null $style_id Style override.

Returns: string — Resolved style ID.

register_styles() static

Enqueue styles for the site-wide setting and any builder/shortcode instance on the queried post.

Since: 4.5.0
Line: 148

static public function register_styles(  );

get_stylesheet_path() static

Get stylesheet path accounting for minified and pro files.

Since: 4.2.0
Line: 304

static public function get_stylesheet_path( $style, $is_rtl = ... ): string;
Type Name Description
string $style Style name.
bool $is_rtl Whether RTL stylesheet should be loaded.

Returns: string

get_style() static

Get the current style for the popular posts.

Since: 3.0.0
Line: 328

static public function get_style( $style = ... ): array;
Type Name Description
string $style Style parameter.

Returns: array — Contains two elements: