1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-21 14:02:59 +02:00
This commit is contained in:
Ryan Cramer
2019-10-18 10:59:11 -04:00
parent 34bc5094b0
commit a7a91b668e

View File

@@ -57,8 +57,13 @@ class ProcessList extends Process {
if($child->process) { if($child->process) {
$info = $this->modules->getModuleInfoVerbose($child->process, array('noCache' => true)); $info = $this->modules->getModuleInfoVerbose($child->process, array('noCache' => true));
if($settings['showIcon'] && $info['icon']) { if($settings['showIcon']) {
$icon = "<i style='float: right;' class='fa fa-3x fa-fw fa-$info[icon] ui-priority-secondary'></i> "; $icon = $child->get('page_icon');
if(!$icon) $icon = $info['icon'];
if($icon) {
if(strpos($icon, 'fa-') === 0) list(,$icon) = explode('-', 2);
$icon = "<i style='float: right;' class='fa fa-3x fa-fw fa-$icon ui-priority-secondary'></i> ";
}
} }
$title = $child->title; $title = $child->title;