1. What is Area?
Area is a plugin for IncPlugins for web site areas control.
2. Area installation
Download the latest Area release. It comes with IncPlugins Free and Pro. Unzip it to any temporary directory. Copy area.php to your IncPlugins directory. Add the plugin include line to the IncPlugins settings file settings.php.
3. Using Area
3.1. Print Current Area Path
To print web page area path, use variable $area_path. It contains HTML code with full path to the current page from the homepage.
Example:
<?=$area_path?>
This code will produce this HTML output:
To change links separators use variable $area_path_separator
3.2. Define Area Path
To define it you should call function: function area($name, $homepage).
Here are:
- $name — name of the current area;
- $homepage — area homepage link;
Example of a definition of the current plugin area:
area('IncPlugins Home', $homepage); area('Plugins', $root.'p/'); area('Area', $root.'p/area/');
3.3 Getting Area Homepage
You can use these variables:
- $area_name — name of the current area;
- $area_homepage — area homepage link.

