Code Tags
The code tags plugin is one of the simplest add-ons for the I-Metrics CMS. There are no configuration options as everything is controlled via an additional stylesheet. There are template dependencies and during installation the plugin displays the available templates supported. The selected template is then copied under the includes/template/code_tags folder.
Code tags hooks on the html_start entry point, this is where the framework sets up the document type. The plugin then adds to the g_media global array the additional stylesheet to display in a pre-formatted manner, different code styles depending on the CSS classes setup in the text page. The following tags are set with the default stylesheet of the plugin:
- .php_red
- .php_red
- .php_red
- .mysql_blue
- .html_brown
- .css_blue
The prefixes used indicate the type of programmin language the plugin will display the content of the text page with. Use a DIV tag to enclose the code with the associated programming language. For example
<div class="php_red">PHP Code to display here</div>
There is also an array of scripts where the plugin operates. This is setup to FILENAME_GENERIC_PAGES which means the Plugin will only be activated when a text page is loaded.
Files installed:
DIR_WS_TEMPLATE . code_tags.css
DIR_WS_TEMPLATE . code-php1.png
DIR_WS_TEMPLATE . code-php2.png
DIR_WS_TEMPLATE . code-php3.png
There are no comments on Code Tags
Using the advanced Plugin system of the I-Metrics CMS create your own plugins or integrate existing ones to gear your website around your niche.
This section contains technical information of the Plugins Manager, integrated Plugins and each of these add-ons operates on the web-front and back end of the framework



