51 $lep_active_sections = [];
56 "SELECT * FROM `".TABLE_PREFIX.
"sections` WHERE `page_id` = '". $page_id .
"' ORDER BY `block`, `position`",
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]
88 foreach( $lep_active_sections as $block => $values )
90 foreach( $values as $value )
99 "SELECT * FROM `".TABLE_PREFIX.
"addons` WHERE `function` = 'snippet' ",
104 foreach($aSnippets as $temp_snippets)
107 'module' => $temp_snippets[
'directory'],