mirror of
https://github.com/processwire/processwire.git
synced 2025-08-24 23:31:01 +02:00
Add PR #212 - add module class names on hover of module titles in ProcessModule
This commit is contained in:
committed by
Ryan Cramer
parent
b3dd6fae7a
commit
39a4db1ecd
@@ -847,6 +847,7 @@ class ProcessModule extends Process {
|
||||
$info = $modules->getModuleInfoVerbose($name);
|
||||
$configurable = $info['configurable'];
|
||||
$title = !empty($info['title']) ? $sanitizer->entities1($info['title']) : substr($name, strlen($section));
|
||||
$title = "<span title='$name' uk-tooltip='delay:1000'>$title</span>";
|
||||
if($options['allowClasses']) $title .= "<br /><small class='ModuleClass ui-priority-secondary'>$name</small>";
|
||||
if($info['icon']) $title = wireIconMarkup($info['icon'], 'fw') . " $title";
|
||||
$class = $configurable ? 'ConfigurableModule' : '';
|
||||
|
Reference in New Issue
Block a user