mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
Issue #1625 body class definition in section init
Initialize body_classes in common.inc.php Add class for section and section id also add class with search id Class is added to $page in section_init now Also add tis info to the body dataset for javascript use
This commit is contained in:
@@ -48,10 +48,11 @@ $template->assign(
|
||||
|
||||
'SHOW_MOBILE_APP_BANNER' => $show_mobile_app_banner,
|
||||
|
||||
'BODY_CLASS' =>
|
||||
isset($page['body_class']) ?
|
||||
$page['body_class'] : '',
|
||||
));
|
||||
'BODY_CLASSES' => $page['body_classes'],
|
||||
|
||||
'BODY_DATA' => json_encode($page['body_classes']),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
// Header notes
|
||||
|
||||
Reference in New Issue
Block a user