...
Name | Description | Usage | Returns | ||
---|---|---|---|---|---|
is_user() | Checks to see if a user is logged in or not. |
| true on success, false on failure. | ||
is_admin() | Checks to see if a user is an admin. |
| true on success, false on failure. | ||
permalink(string $route, int $id, string $title)
$route URL path for your link. $id Unique ID number.
$title Title of the item
| Creates a permalink. This is an identical function provided by our PHP permalink() function. This is handy when you want to create an App that requires viewing an item, like a blog or video. This function follows our default permalink rules and structure. |
| Parsed permalink. | ||
url(string $route)
$route Route for your link. | Creates a link based on the route provided. |
| Parsed URL. | ||
_p(string $phrase)
$phrase Phrase to parse. | If your theme has any phrases or words you can wrap them in this function. It will automatically create a phrase for Admins in case they wish to translate your theme. |
| Returns the phrase passed to the function if the translation does not exist. Otherwise it returns the translated version. | ||
asset(string $image)
$image Relative path to image in your themes assets/ folder. | Include images in your themes. |
| URL of image. |