소스 검색

Replaced old and deleted PHP functions and slightly modified themes.

Klectik 7 년 전
부모
커밋
3072457fb3
7개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 1
      archive.php
  2. 1 1
      classes/gettext.class.php
  3. 1 1
      classes/pagination.class.php
  4. 1 1
      index.php
  5. 1 1
      themes/SorbetDark/css/bootstrap.min.css
  6. 4 4
      themes/SorbetDark/index.htm
  7. 4 4
      themes/SorbetLight/index.htm

+ 1 - 1
archive.php 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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);

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1 - 1
themes/SorbetDark/css/bootstrap.min.css


+ 4 - 4
themes/SorbetDark/index.htm 파일 보기

@@ -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 파일 보기

@@ -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}