Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/units/fck/fck_eh.php
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | |||||
foreach ($pages as $id => $title) { | foreach ($pages as $id => $title) { | ||||
$template = $templates[$id]; | $template = $templates[$id]; | ||||
$page_path = preg_replace('/^Content\//i', '', strtolower($template).'.html'); | $page_path = preg_replace('/^Content\//i', '', strtolower($template).'.html'); | ||||
$title = $title . ' (' . $page_path . ')'; | $title = $title . ' (' . $page_path . ')'; | ||||
$real_url = $this->Application->HREF($template, '_FRONT_END_', array('pass' => 'm'), 'index.php'); | $real_url = $this->Application->HREF($template, '_FRONT_END_', array('pass' => 'm'), 'index.php'); | ||||
$res .= '<CmsPage real_url="' . $real_url . '" path="@@' . $id . '@@" title="' . kUtil::escape($title, kUtil::ESCAPE_HTML) . '" st_id="' . $id . '" serverpath="" />' . "\n"; | $res .= '<CmsPage real_url="' . kUtil::escape($real_url, kUtil::ESCAPE_HTML) . '" path="@@' . $id . '@@" title="' . kUtil::escape($title, kUtil::ESCAPE_HTML) . '" st_id="' . $id . '" serverpath="" />' . "\n"; | ||||
} | } | ||||
$res.= "</CmsPages>"; | $res.= "</CmsPages>"; | ||||
$this->CreateXmlHeader(); | $this->CreateXmlHeader(); | ||||
echo $res; | echo $res; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |