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.

2025-07-06 17:14

открываем plugins/search/search.php  
в районе 586 строки после строки

'PLUGIN_FR_CATEGORY' => cot_breadcrumbs(cot_forums_buildpath($row['ft_cat']), false, false),

 

добавляем 

'PLUGIN_FR_CATEGORY_SHORT' => isset(Cot::$structure['forums'][$row['ft_cat']]['title']) ? cot_rc_link(cot_url('forums', 'm=topics&s=' . $row['ft_cat']), htmlspecialchars(Cot::$structure['forums'][$row['ft_cat']]['title'])) : '',

затем открываем свой шаблон поиска, - search.tpl 
находим {PLUGIN_FR_CATEGORY} и вместо

<p class="small">{PHP.L.plu_section}: {PLUGIN_FR_CATEGORY}</p>

вставляем

<!-- IF {PLUGIN_FR_CATEGORY_SHORT} --> 
<div class="small">{PLUGIN_FR_CATEGORY_SHORT}</div> 
<!-- ELSE --> 
<p class="small">{PHP.L.plu_section}: {PLUGIN_FR_CATEGORY}</p> 
<!-- ENDIF -->

 

 

Account