Replaced old and deleted PHP functions and slightly modified themes.

dev
Klectik 2017-03-22 23:16:03 +01:00
parent b43ca639a3
commit 3072457fb3
7 changed files with 13 additions and 13 deletions

View File

@ -128,7 +128,7 @@ function handleNode($node)
<meta name="generator" content="sorbet <?php echo $util_class->codeName()." (".$util_class->version().")"; ?>" />
<link rel="shortcut icon" href="<?php echo $conf->urlSorbet;?>/images/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $conf->urlSorbet.($conf->urlFriendly ? "/rss/" : "/rss.php"); ?>"/>
<title><?php echo $conf->title." &raquo; ".__(" archive"); ?></title>
<title><?php echo $conf->title." - ".__(" archive"); ?></title>
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet;?>/admin/scripts/jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlSorbet;?>/admin/scripts/jquery.scrollTo-min.js"></script>
<link href="<?php echo $conf->urlSorbet;?>/admin/css/archive.css" type="text/css" rel="stylesheet">

View File

@ -303,7 +303,7 @@ class gettext_reader
} else {
$header = $this->get_translation_string(0);
}
if (eregi("plural-forms: ([^\n]*)\n", $header, $regs)) {
if (preg_match("/plural-forms: ([^\n]*)\n/i", $header, $regs)) {
$expr = $regs[1];
} else {
$expr = "nplurals=2; plural=n == 1 ? 0 : 1;";

View File

@ -101,7 +101,7 @@ Author URI: http://www.mis-algoritmos.com
#to change urlFriendly
public function urlFriendly($value="%")
{
if (eregi('^ *$', $value)) {
if (preg_match('/^ *$/i', $value)) {
$this->urlF=false;
return false;
}

View File

@ -59,7 +59,7 @@ $util_class = new util();
$sorbet_includes .= "\t<link rel=\"shortcut icon\" href=\"".$conf->urlSorbet."/images/favicon.ico\" />";
$page_title = $conf->title;
$page_title_divisor = " &raquo; "; // it should be set in configuration
$page_title_divisor = " - "; // it should be set in configuration
$page_title_len = 50; // it should be set in configuration
if ($id_post) {
$register = $tumble->getPost($id_post);

File diff suppressed because one or more lines are too long

View File

@ -12,10 +12,6 @@
</head>
<body>
<div class="container">
<header>
<h1><a href="{URL_Tumble}">{Title}</a></h1>
<p class="lead">{Description}</p>
</header>
{if $isAuthenticated}
<nav class="navbar navbar-default">
<div class="container-fluid">
@ -38,6 +34,10 @@
</div>
</nav>
{/if}
<header>
<h1><a href="{URL_Tumble}">{Title}</a></h1>
<p class="lead">{Description}</p>
</header>
{if $error}
<div>{$error}</div>
{else}

View File

@ -12,10 +12,6 @@
</head>
<body>
<div class="container">
<header>
<h1><a href="{URL_Tumble}">{Title}</a></h1>
<p class="lead">{Description}</p>
</header>
{if $isAuthenticated}
<nav class="navbar navbar-default">
<div class="container-fluid">
@ -38,6 +34,10 @@
</div>
</nav>
{/if}
<header>
<h1><a href="{URL_Tumble}">{Title}</a></h1>
<p class="lead">{Description}</p>
</header>
{if $error}
<div>{$error}</div>
{else}