skin_include( '$disp$' template tag includes a sub-template, a.k.a. "disp" template based on the value of the
$disp variable, i-e: based on the type of content that should be displayed on the current page. "disp" templates have a filename ending in
By passing specific
$disp => 'filename.disp.php' pairs in the param array, you can control what template you want to have called based on any $disp value.
This is mostly useful for disabling some
$disp values (as in the example above) if display of that content has already been taken care of.
More info below.
Some skins have the most common disp values disabled like this:
This is because the index.main.php file already includes the code for those display cases within the main template. Thus calling them again as disp templates would produce duplicate content.
If you want to externalize those disp cases to a separate
.disp.php file, you need to:
- delete the section that displays them in the main template
- and delete the lines that disable the calling of the disp template in
Created by • Last edit by on Jan 09, 2015