51 $lep_active_sections = [];
56 "SELECT * FROM `".TABLE_PREFIX.
"sections` WHERE `page_id` = '". $page_id .
"' ORDER BY `block`, `position`",
62 if (empty($aSections))
68 foreach ($aSections as $section)
71 if ( ($backend ===
false) && !(($now <= $section[
'publ_end'] || $section[
'publ_end'] == 0) && ($now >= $section[
'publ_start'] || $section[
'publ_start'] == 0)))
75 $lep_active_sections[$section[
'block']][] = $section;
78 $pages_seen[$page_id] =
true;
82 return ( isset($lep_active_sections[$block] ) )
83 ? $lep_active_sections[$block]
89 foreach ($lep_active_sections as $block => $values)
91 foreach ($values as $value)
100 "SELECT * FROM `".TABLE_PREFIX.
"addons` WHERE `function` = 'snippet' ",
105 foreach ($aSnippets as $temp_snippets)
108 'module' => $temp_snippets[
'directory'],