Pages, Articles & News
Tools & Plugins
Example / Placeholder Title


Description as an example placeholder. Sample text content for further customization of the "Index36" template.

You are free to edit and customize the template however you like. If you don’t have time or enough knowledge — you can always order template adaptation by contacting me via GitHub or private messages on the digital goods marketplace.

2024-02-13 11:25
Avatar" alt="" class="rounded-circle border border-2 border-light" width="54" height="54">

Alex300 добавил в планы на релиз  0.9.25 внести измения и сделать подобно как в модуле Pages:

$mskin = cot_tplfile(array('forums' ,'sections', Cot::$structure['forums'][$c]['tpl']));

/* === Hook === */
foreach (cot_getextplugins('forums.sections.main') as $pl) {
	include $pl;
}
/* ===== */

$t = new XTemplate(cot_tplfile($mskin));

а пока, это можно сделать через собственный маленький плагин с хуком:

<?php
/* ====================
  [BEGIN_COT_EXT]
  Hooks=forums.sections.main
  [END_COT_EXT]
  ==================== */

defined('COT_CODE') or die('Wrong URL');

$mskin = cot_tplfile(array('forums' ,'sections', Cot::$structure['forums'][$c]['tpl']));
$t = new XTemplate($mskin);

 

This post was edited by Administrator (2024-02-13 11:29, 2 years ago)
Account