mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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:
@@ -627,12 +627,6 @@ if ( $metadata_showable and pwg_get_session_var('show_metadata') )
|
||||
|
||||
$page['body_id'] = 'thePicturePage';
|
||||
|
||||
if (isset($page['image_id']))
|
||||
{
|
||||
$page['body_class'] = 'image_'.$page['image_id'];
|
||||
}
|
||||
|
||||
|
||||
// allow plugins to change what we computed before passing data to template
|
||||
$picture = trigger_change('picture_pictures_data', $picture);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user