class Prefix (View source)

The Prefix class provides helper to use standard UIkit classes without needing to prefix them manually to avoid conflicts (in page editing).

Methods

static string
attributes(string $str)

Replace the prefixes of UIkit classes and data attributes in a string.

static string
tags(string $str)

Search for HTML tags in a string and replace the prefixes of UIkit classes and data attributes.

Details

static string attributes(string $str)

Replace the prefixes of UIkit classes and data attributes in a string.

Parameters

string $str

Return Value

string The processed $str

static string tags(string $str)

Search for HTML tags in a string and replace the prefixes of UIkit classes and data attributes.

Parameters

string $str

Return Value

string The processed $str