Its the most useful feature provided by Templates system. Linking Template is to Import Template into one or more Code Block. The method of how the Template would be linked by CJT is based on the Template Type/Language. Each Type is linked differently. We’re going to show how each type would be linked.

HTML & PHP

CJT Template Linker is appending all the Templatee Code that being linked to the Block and then execute them all (including Block code) as PHP code.

Example:

Block

<div id="block-layer">
<span><?php echo 'Hello World'; ?></span>
</div>

Linked HTML Template

<div class="block-footer"></div>

Linked PHP Template

<span><?php echo "Footer Text"; ?></span>

All the above Codes would be aggregated as following and then executed as PHP.

<div id="block-layer">
<span><?php echo 'Hello World'; ?></span>
</div>
<div class="block-footer"></div>
<span><?php echo "Footer Text"; ?></span>

The Final Result would be:

<div id="block-layer">
<span>Hello World</span>
</div>
<div></div>
<span>Footer Text</span>

Javascript and Stylesheets

CJT is linked Javascript and Stylesheet Templates by using <script> and <link> HTML tags respectively.