1.x Atlas -
+ i18n. See upgrade-from-1.0.txt for more details.
+ PHP 8.1 stuff
+ + Search
1.0 Lykos - 2022-11-12
* i18n constructor.
*/
public function __construct() {
- $_langFile = ABSOLUTE_PATH.'/lib/i18n/'.$this->_defaultLangToUse.'.ini';
+ $_langFile = PATH_ABSOLUTE.'/lib/i18n/'.$this->_defaultLangToUse.'.ini';
if(defined('FRONTEND_LANGUAGE')) {
- $_langFile = ABSOLUTE_PATH.'/lib/i18n/'.FRONTEND_LANGUAGE.'.ini';
+ $_langFile = PATH_ABSOLUTE.'/lib/i18n/'.FRONTEND_LANGUAGE.'.ini';
if(file_exists($_langFile)) {
$_langData = parse_ini_file($_langFile);
if($_langData !== false) {
+ <footer>
+ <small><a href="https://www.bananas-playground.net/projekt/scientia/" target=_blank>scientia</small>
+ </footer>
</body>
</html>
-<?php if(!empty($TemplateData['data'])) { ?>
-<p>Created: <?php echo Summoner::ifset($TemplateData['data'],'created'); ?>, Updated: <?php echo Summoner::ifset($TemplateData['data'],'modified'); ?></p>
-<?php } ?>
-<form method="post">
- <textarea rows="25" placeholder="write here" name="fdata[entry]"><?php echo Summoner::ifset($TemplateData['data'],'body'); ?></textarea>
- <input type="submit" name="submitForm" value="<?php echo $i18n->('form.button.save'); ?>">
- <input type="checkbox" name="deleteEntry" value="yes" /> <small style="color: indianred"><?php echo $i18n->('form.checkbox.deleteentry'); ?></small>
-</form>
<p>
-<a href="<?php echo PATH_WEBROOT; ?>"><?php echo $i18n->('text.home'); ?></a>
-<?php if(!empty($TemplateData['data'])) {
+ <a href="<?php echo PATH_WEBROOT; ?>"><?php echo $i18n->t('text.home'); ?></a>
+ <?php if(!empty($TemplateData['data'])) {
echo ' | ';
$_link = '';
foreach($TemplateData['data']['breadcrumb'] as $be) {
$_link .= '/'.$be;
echo '<a href="'.PATH_WEBROOT.$_link.'">'.$be.'</a> | ';
}
-?>
- <a href="<?php echo PATH_WEBROOT; ?>/new"><?php echo $i18n->('text.new'); ?></a>
-<?php } ?>
+ ?>
+ <a href="<?php echo PATH_WEBROOT; ?>/new"><?php echo $i18n->t('text.new'); ?></a>
+ <?php } ?>
</p>
+<?php if(!empty($TemplateData['data'])) { ?>
+<p>Created: <?php echo Summoner::ifset($TemplateData['data'],'created'); ?>, Updated: <?php echo Summoner::ifset($TemplateData['data'],'modified'); ?></p>
+<?php } ?>
+<form method="post">
+ <textarea rows="25" placeholder="write here" name="fdata[entry]"><?php echo Summoner::ifset($TemplateData['data'],'body'); ?></textarea>
+ <input type="submit" name="submitForm" value="<?php echo $i18n->t('form.button.save'); ?>">
+ <input type="checkbox" name="deleteEntry" value="yes" /> <small style="color: indianred"><?php echo $i18n->t('form.checkbox.deleteentry'); ?></small>
+</form>
<form method="post">
<input type="text" name="searchInput" size="50" />
- <input type="submit" name="submitForm" value="<?php echo $i18n->('form.button.search'); ?>">
+ <input type="submit" name="submitForm" value="<?php echo $i18n->t('form.button.search'); ?>">
</form>
-<p>
- <a href="<?php echo PATH_WEBROOT; ?>/"><?php echo $i18n->('text.home'); ?></a> | <a href="<?php echo PATH_WEBROOT; ?>/new"><?php echo $i18n->('text.new'); ?></a>
-</p>
<?php if(!empty($TemplateData['entries'])) { ?>
+<p>
+ <a href="<?php echo PATH_WEBROOT; ?>/"><?php echo $i18n->t('text.home'); ?></a> |
<?php
foreach($TemplateData['entries'] as $k=>$v) {
$_link = '';
foreach($v['breadcrumb'] as $be) {
$_link .= '/'.$be;
- echo '<a href="'.PATH_WEBROOT.$_link.'">'.$be.'</a> ';
+ echo '<a href="'.PATH_WEBROOT.$_link.'">'.$be.'</a> | ';
}
?>
+ <a href="<?php echo PATH_WEBROOT; ?>/new"><?php echo $i18n->t('text.new'); ?></a>
+<p>
<ul>
<?php foreach($v['e'] as $e) { ?>
<li><a href="<?php echo PATH_WEBROOT; ?>/<?php echo $e['link']; ?>"><?php echo $e['ident']; ?></a> <?php echo $e['date']; ?> <?php echo htmlspecialchars($e['body'],ENT_HTML5); ?></li>
<?php
}
} else { ?>
-<p><?php echo $i18n->('text.noentries'); ?></p>
+<p><?php echo $i18n->t('text.noentries'); ?></p>
<?php } ?>