Source
485 // CAUTION: No spaces allowed between arguments for all i18n calls!
486 ereg('.*[\/](.*)',$template,$path);
487
488 // i18n _t(...) - with entity only (no dots in namespace), meaning the current template filename will be added as a namespace
489 $content = ereg_replace('<' . '% +_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\''. $path[1] . '.\\2\\3\'\\4) ?>', $content);
490 // i18n _t(...)
491 $content = ereg_replace('<' . '% +_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\'\\2\\3\'\\4) ?>', $content);
492
493 // i18n sprintf(_t(...),$argument) with entity only (no dots in namespace), meaning the current template filename will be added as a namespace
494 $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\''. $path[1] . '.\\2\\3\'\\4),\\6) ?>', $content);
495 // i18n sprintf(_t(...),$argument)
496 $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\'\\2\\3\'\\4),\\6) ?>', $content);
497
498 // </base> isnt valid html? !?
499 $content = ereg_replace('<' . '% +base_tag +%' . '>', '<base href="<?= Director::absoluteBaseURL(); ?>" />', $content);
500
Trace
- mb_ereg_replace(<% +sprintf\(_t\(('([^\.']*)'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%>,<?= sprintf(_t('Page.ss.\2\3'\4),\6) ?>,<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" ><!-- template /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Page.ss -->
<head>
<% base_tag %>
<title><?= $item->XML_val("MetaTitle",null,true) ?> » Your Site Name</title>
<?= $item->XML_val("MetaTags",array("false"),true) ?>
<link rel="shortcut icon" href="/favicon.ico" />
<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>
<!--[if IE 6]>
<style type="text/css">
@import url(themes/blackcandy/css/ie6.css);
</style>
<![endif]-->
<!--[if IE 7]>
<style type="text/css">
@import url(themes/blackcandy/css/ie7.css);
</style>
<![endif]-->
</head>
<body>
<div id="BgContainer">
<div id="Container">
<div id="Header">
<?= $item->XML_val("SearchForm",null,true) ?>
<h1>Your Site Name</h1>
<p>your site's tagline here</p>
</div>
<div id="Navigation">
<!-- include /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Includes/Navigation.ss -->
<ul>
<? array_push($itemStack, $item); if($loop = $item->obj("Menu", array("1"))) foreach($loop as $key => $item) { ?>
<li><a href="<?= $item->XML_val("Link",null,true) ?>" title="Go to the <?= $item->obj("Title",null,true)->XML_val("XML",null,true) ?> page" class="<?= $item->XML_val("LinkingMode",null,true) ?>"><span><?= $item->obj("MenuTitle",null,true)->XML_val("XML",null,true) ?></span></a></li>
<? } $item = array_pop($itemStack); ?>
</ul>
<!-- end include /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Includes/Navigation.ss -->
</div>
<div class="clear"><!-- --></div>
<div id="Layout">
<?= $item->XML_val("Layout",null,true) ?>
</div>
<div class="clear"><!-- --></div>
</div>
<div id="Footer">
<!-- include /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Includes/Footer.ss -->
<div class="footerTop">
<!-- -->
</div>
<p>Copyright © 2007-2008 | Powered by <a href="http://www.silverstripe.com" title="This site runs on the SilverStripe CMS">SilverStripe Open Source CMS</a></p>
<!-- end include /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Includes/Footer.ss -->
</div>
</div>
</body>
</html><!-- end template /var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Page.ss -->
)
Line 494 of SSViewer.php
- SSViewer::parseTemplateContent(<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<% base_tag %>
<title>$MetaTitle » Your Site Name</title>
$MetaTags(false)
<link rel="shortcut icon" href="/favicon.ico" />
<% require themedCSS(layout) %>
<% require themedCSS(typography) %>
<% require themedCSS(form) %>
<!--[if IE 6]>
<style type="text/css">
@import url(themes/blackcandy/css/ie6.css);
</style>
<![endif]-->
<!--[if IE 7]>
<style type="text/css">
@import url(themes/blackcandy/css/ie7.css);
</style>
<![endif]-->
</head>
<body>
<div id="BgContainer">
<div id="Container">
<div id="Header">
$SearchForm
<h1>Your Site Name</h1>
<p>your site's tagline here</p>
</div>
<div id="Navigation">
<% include Navigation %>
</div>
<div class="clear"><!-- --></div>
<div id="Layout">
$Layout
</div>
<div class="clear"><!-- --></div>
</div>
<div id="Footer">
<% include Footer %>
</div>
</div>
</body>
</html>
,/var/www/vhosts/srschihuahua.com.mx/httpdocs/en/themes/blackcandy/templates/Page.ss)
Line 321 of SSViewer.php
- SSViewer->process(Object id #231)
Line 166 of Controller.php
- Controller->handleAction(Object id #7)
Line 107 of RequestHandler.php
- RequestHandler->handleRequest(Object id #7)
Line 122 of Controller.php
- Controller->handleRequest(Object id #7)
Line 28 of ModelAsController.php
- ModelAsController->handleRequest(Object id #7)
Line 277 of Director.php
- Director::handleRequest(Object id #7,Session)
Line 121 of Director.php
- Director::direct(/home/successfullyinstalled)
Line 115 of main.php