$tpl_data['PAGE_ID'] = $results_array['page_id']; $tpl_data['PAGE_TITLE'] = $results_array['page_title']; $tpl_data['MENU_TITLE'] = $results_array['menu_title']; $tpl_data['PAGE_LINK'] = CAT_Helper_Page::getLink($results_array['page_id']); $tpl_data['MODIFIED_BY'] = $user['display_name']; $tpl_data['MODIFIED_BY_USERNAME'] = $user['username']; $tpl_data['MODIFIED_WHEN'] = $results_array['modified_when'] != 0 ? $modified_ts = CAT_Helper_DateTime::getDateTime($results_array['modified_when']) : false; $tpl_data['SECTION_BLOCKS'] = SECTION_BLOCKS; $tpl_data['SEC_ANCHOR'] = SEC_ANCHOR; $tpl_data['DATE_FORMAT'] = CAT_DATE_FORMAT; $tpl_data['CUR_TAB'] = 'modify'; $tpl_data['PAGE_HEADER'] = $backend->lang()->translate('Modify page'); // ========================================================= // ! Work-out if we should show the "manage sections" link // ========================================================= $section_id = CAT_Sections::getSectionForPage($page_id); $tpl_data['MANAGE_SECTIONS'] = $section_id || MANAGE_SECTIONS != 'enabled' ? false : true; // =========================================================================== // ! get template used for the displayed page (for displaying block details) // =========================================================================== $current_template = CAT_Helper_Page::getPageTemplate($page_id); // ============================== // ! Get sections for this page // ============================== $tpl_data['modules'] = $addons->get_addons(1, 'module', 'page'); // Remove menu_link from list foreach ($tpl_data['modules'] as $index => $module) { if ($module['VALUE'] == 'menu_link') { unset($tpl_data['modules'][$index]); } }