Procedural File: _skin.funcs.php
Source Location: /blogs/inc/skins/_skin.funcs.php
Functions
is_default_page [line 402]
boolean is_default_page(
)
|
|
Tells if we are on the default blog page
skin_404_header [line 661]
Sends the desired HTTP response header in case of a "404".
Template tag. Output HTML base tag to current skin.
This is needed for relative css and img includes.
skin_container [line 764]
void skin_container(
string $sco_name, [array $params = array()]
)
|
|
Display a container
Parameters:
|
string |
$sco_name: |
|
|
array |
$params: |
|
skin_content_header [line 699]
void skin_content_header(
[string $type = 'text/html']
)
|
|
Template tag. Output content-type header For backward compatibility
Parameters:
|
string |
$type: |
content-type; override for RSS feeds |
API Tags:
skin_content_meta [line 712]
void skin_content_meta(
[string $type = 'text/html']
)
|
|
Template tag. Output content-type http_equiv meta tag
Parameters:
|
string |
$type: |
content-type; override for RSS feeds |
API Tags:
skin_description_tag [line 571]
void skin_description_tag(
)
|
|
Template tag
Note for future mods: we do NOT want to repeat identical content on multiple pages.
boolean skin_exists(
skin $name, [ $filename = 'index.main.php']
)
|
|
Checks if a skin exists. This can either be a regular skin directory or can be in the list Plugin::GetProvidedSkins().
Used by front-end.
Parameters:
|
skin |
$name: |
name (directory name) |
|
|
$filename: |
|
API Tags:
| Return: | true is exists, false if not |
skin_file_exists [line 856]
boolean skin_file_exists(
skin $name, [file $filename = 'index.main.php']
)
|
|
Checks if a specific file exists for a skin.
Parameters:
|
skin |
$name: |
name (directory name) |
|
file |
$filename: |
name |
API Tags:
| Return: | true is exists, false if not |
void skin_include(
$template_name, [ $params = array()]
)
|
|
Template tag. Include a sub-template at the current position
Parameters:
void skin_init(
string $disp
)
|
|
Template tag. Initializes internal states for the most common skin displays.
For more specific skins, this function should not be called and equivalent code should be customized within the skin.
Parameters:
|
string |
$disp: |
What are we going to display. Most of the time the global $disp should be passed. |
Skin &skin_install(
string $skin_folder
)
|
|
Install a skin
Parameters:
|
string |
$skin_folder: |
Skin folder |
Information Tags:
| Todo: | do not install if skin doesn't exist. Important for upgrade. Need to NOT fail if ZERO skins installed though :/ |
skin_installed [line 877]
boolean skin_installed(
Skin $name
)
|
|
Check if a skin is installed.
This can either be a regular skin or a skin provided by a plugin.
Parameters:
|
Skin |
$name: |
name (directory name) |
API Tags:
| Return: | True if the skin is installed, false otherwise. |
skin_keywords_tag [line 620]
void skin_keywords_tag(
)
|
|
Template tag
Note for future mods: we do NOT want to repeat identical content on multiple pages.
skin_provided_by_plugin [line 799]
false|integer skin_provided_by_plugin(
$name
)
|
|
Checks if a skin is provided by a plugin.
Used by front-end.
Parameters:
API Tags:
void skin_widget(
array $params
)
|
|
Template tag. Display a Widget.
This load the widget class, instantiates it, and displays it.
Parameters: