1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

Include a unique ID for every 'page'

This commit is contained in:
Cameron 2014-01-31 04:30:56 -08:00
parent 4e3217c79b
commit fedf63f1f5
2 changed files with 5 additions and 2 deletions

View File

@ -297,7 +297,10 @@ class cpage_shortcodes extends e_shortcode
return $this->page['page_metadscr'];
}
function sc_cpagesef()
{
return vartrue($this->page['page_sef'],'page-no-sef');
}
// -------------------- Book - specific to the current page. -------------------------

View File

@ -35,7 +35,7 @@ $sc_style['CPAGENAV|default']['post'] = '</div>';
';
// always used - it's inside the {PAGE} sc from 'page' template
$PAGE_TEMPLATE['default']['start'] = '<div class="cpage_body">';
$PAGE_TEMPLATE['default']['start'] = '<div id="{CPAGESEF}" class="cpage_body">';
// page body
$PAGE_TEMPLATE['default']['body'] = '