Sfoglia il codice sorgente

Replaced old and deleted PHP functions and slightly modified themes.

Klectik 7 anni fa
parent
commit
3072457fb3

+ 1 - 1
archive.php Vedi File

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

+ 1 - 1
classes/gettext.class.php Vedi File

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

+ 1 - 1
classes/pagination.class.php Vedi File

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

+ 1 - 1
index.php Vedi File

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

File diff suppressed because it is too large
+ 1 - 1
themes/SorbetDark/css/bootstrap.min.css


+ 4 - 4
themes/SorbetDark/index.htm Vedi File

@@ -12,10 +12,6 @@
12 12
   </head>
13 13
   <body>
14 14
     <div class="container">
15
-      <header>
16
-        <h1><a href="{URL_Tumble}">{Title}</a></h1>
17
-        <p class="lead">{Description}</p>
18
-      </header>
19 15
       {if $isAuthenticated}
20 16
       <nav class="navbar navbar-default">
21 17
         <div class="container-fluid">
@@ -38,6 +34,10 @@
38 34
         </div>
39 35
       </nav>
40 36
       {/if}
37
+      <header>
38
+        <h1><a href="{URL_Tumble}">{Title}</a></h1>
39
+        <p class="lead">{Description}</p>
40
+      </header>
41 41
       {if $error}
42 42
         <div>{$error}</div>
43 43
       {else}

+ 4 - 4
themes/SorbetLight/index.htm Vedi File

@@ -12,10 +12,6 @@
12 12
   </head>
13 13
   <body>
14 14
     <div class="container">
15
-      <header>
16
-        <h1><a href="{URL_Tumble}">{Title}</a></h1>
17
-        <p class="lead">{Description}</p>
18
-      </header>
19 15
       {if $isAuthenticated}
20 16
       <nav class="navbar navbar-default">
21 17
         <div class="container-fluid">
@@ -38,6 +34,10 @@
38 34
         </div>
39 35
       </nav>
40 36
       {/if}
37
+      <header>
38
+        <h1><a href="{URL_Tumble}">{Title}</a></h1>
39
+        <p class="lead">{Description}</p>
40
+      </header>
41 41
       {if $error}
42 42
         <div>{$error}</div>
43 43
       {else}