Browse Source

* Changes on class themes.

Victor De la Rocha 15 years ago
parent
commit
756faf3220
5 changed files with 108 additions and 86 deletions
  1. 24 24
      admin/themes/admin/index.htm
  2. 49 27
      classes/themes.class.php
  3. 2 2
      index.php
  4. 16 16
      themes/Dreamscape/index.htm
  5. 17 17
      themes/tumblr/index.htm

File diff suppressed because it is too large
+ 24 - 24
admin/themes/admin/index.htm


File diff suppressed because it is too large
+ 49 - 27
classes/themes.class.php


+ 2 - 2
index.php View File

@@ -312,6 +312,6 @@ $theme = new themes;
312 312
 				$theme->set('rows',$rows);
313 313
         }
314 314
 
315
-		$theme->set('URL_Tumble',$conf->urlGelato);
315
+		$theme->set('URL_Tumble',$conf->urlGelato);
316 316
 		$theme->display(Absolute_Path.'themes/'.$conf->template.'/index.htm');
317
-?>
317
+?>

+ 16 - 16
themes/Dreamscape/index.htm View File

@@ -48,70 +48,70 @@
48 48
             <div id="description">
49 49
                 {Description}
50 50
             </div>
51
-			{if {$error}}
51
+			{if $error}
52 52
 				<div class="error">{$error}</div>
53 53
 			{else}
54
-				{block {$rows} as {$row}}
54
+				{block $rows as $row}
55 55
 					<div class="post">
56 56
 						<div class="permalink"><a href="{$row.Permalink}">•</a></div>
57 57
 						<div class="date">
58 58
 							{$row.Date_Added}
59 59
 						</div>
60 60
 
61
-					{if {$row.postType}=='post'}
61
+					{if $row.postType=='post'}
62 62
 						<div class="regular">
63 63
 							<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
64 64
 							{$row.Body}
65 65
 						</div>
66
-					{elseif {$row.postType}=='photo'}
66
+					{elseif $row.postType=='photo'}
67 67
 						<div class="photo">
68 68
 							<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}"></a>
69 69
 							<div class="caption">
70 70
 								{$row.Caption}
71 71
 							</div>
72 72
 						</div>
73
-					{elseif {$row.postType}=='quote'}
73
+					{elseif $row.postType=='quote'}
74 74
 						<div class="quote">
75 75
 							<span class="quote">
76 76
 								<big class="quote">“</big> <a href="{$row.Permalink}">{$row.Quote}</a>
77 77
 							</span>
78 78
 							<span class="source">{$row.Source}</span>
79 79
 						</div>
80
-					{elseif {$row.postType}=='url'}
80
+					{elseif $row.postType=='url'}
81 81
 	                    <div class="link">
82 82
 		                    <a href="{$row.URL}" class="link" >{$row.Name}</a>
83 83
 	                        <div class="description">{$row.Description}</div>
84 84
 	                    </div>
85
-					{elseif {$row.postType}=='conversation'}
85
+					{elseif $row.postType=='conversation'}
86 86
 						<div class="conversation">
87 87
 							...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
88 88
 							{$row.Conversation}
89 89
 						</div>
90
-					{elseif {$row.postType}=='video'}
90
+					{elseif $row.postType=='video'}
91 91
 						<div class="video">
92 92
 							{$row.Video}
93 93
 							<div class="caption">{$row.Caption}</div>
94 94
 						</div>
95
-					{elseif {$row.postType}=='mp3'}
95
+					{elseif $row.postType=='mp3'}
96 96
 						<div class="video">
97 97
 							{$row.Mp3}
98 98
 							<div class="caption">{$row.Caption}</div>
99 99
 						</div>
100 100
 					{/if}
101 101
 					</div>
102
-					{if !{$id_post}}
102
+					{if !$id_post}
103 103
 						<div class="totalComments">
104
-							<h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
104
+							<h3>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
105 105
 						</div>
106 106
 					{/if}
107 107
 				{/block}
108 108
 
109
-				{if {$id_post}}
110
-					{if {$row.Comments_Number}>0}
109
+				{if $id_post}
110
+					{if $row.Comments_Number>0}
111 111
 						<div class="containerComments">
112 112
 							<h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
113 113
 							<ol class="commentlist">
114
-								{block {$comments} as {$comment}}
114
+								{block $comments as $comment}
115 115
 								<li class="alt" id="comment-{$comment.Id_Comment}">
116 116
 									<cite>
117 117
 										<a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
@@ -127,7 +127,7 @@
127 127
 						</div>
128 128
 					{/if}
129 129
 
130
-					{if {$allowComments}}
130
+					{if $allowComments}
131 131
 						<div class="containerFormComments">
132 132
 							<h3 id="respond">{__("Add your comment")}</h3>
133 133
 
@@ -185,4 +185,4 @@
185 185
         </div>
186 186
 
187 187
 	</body>
188
-</html>
188
+</html>

+ 17 - 17
themes/tumblr/index.htm View File

@@ -28,7 +28,7 @@
28 28
                 {Description}
29 29
             </div>
30 30
 
31
-		{if {$isAuthenticated}}
31
+		{if $isAuthenticated}
32 32
 			<div style="padding:4px; border:solid 2px #bbb; display:inline; background-color:#ddd; position:absolute; top:3px; right:3px;">
33 33
 				<b>Hi, {User}.</b>&nbsp;&nbsp;
34 34
 				<a target="_top" href="{URL_Tumble}/admin/index.php">{__("Add or Edit my posts")}</a>&nbsp;&nbsp;
@@ -36,65 +36,65 @@
36 36
 			</div>
37 37
 		{/if}
38 38
 
39
-		{if {$error}}
39
+		{if $error}
40 40
 			<div class="error">{$error}</div>
41 41
 		{else}
42
-			{block {$rows} as {$row}}
42
+			{block $rows as $row}
43 43
 				<div class="date">
44 44
 					{$row.Date_Added}
45 45
 				</div>
46 46
 				<div class="post">
47 47
 					<a href="{$row.Permalink}"><img src="{URL_Tumble}/themes/tumblr/img/link.gif" class="permalink" alt="Permalink"/></a>
48
-				{if {$row.postType}=='post'}
48
+				{if $row.postType=='post'}
49 49
 						<div class="regular">
50 50
 							<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
51 51
 							{$row.Body}
52 52
 						</div>
53
-				{elseif {$row.postType}=='photo'}
53
+				{elseif $row.postType=='photo'}
54 54
 						<div class="photo">
55 55
 							<a {$row.Effect}><img src="{$row.PhotoURL}" alt="{$row.PhotoAlt}" /></a><br/>
56 56
 							<div class="caption">{$row.Caption}</div>
57 57
 						</div>
58
-				{elseif {$row.postType}=='quote'}
58
+				{elseif $row.postType=='quote'}
59 59
 						<div class="quote">
60 60
 							<span class="quote"><big class="quote"><a href="{$row.Permalink}">&#147;</a></big> {$row.Quote}</span>
61 61
 							<div class="source">&mdash; {$row.Source}</div>
62 62
 						</div>
63
-				{elseif {$row.postType}=='url'}
63
+				{elseif $row.postType=='url'}
64 64
 						<div class="link">
65 65
 							&#187; <a href="{$row.URL}">{$row.Name}</a>
66 66
 							<div class="description">{$row.Description}</div>
67 67
 						</div>
68
-				{elseif {$row.postType}=='conversation'}
68
+				{elseif $row.postType=='conversation'}
69 69
 						<div class="conversation">
70 70
 							...<h2><a href="{$row.Permalink}">{$row.Title}</a></h2>
71 71
 							{$row.Conversation}
72 72
 						</div>
73
-				{elseif {$row.postType}=='video'}
73
+				{elseif $row.postType=='video'}
74 74
 						<div class="video">
75 75
 							{$row.Video}
76 76
 							<div class="caption">{$row.Caption}</div>
77 77
 						</div>
78
-				{elseif {$row.postType}=='mp3'}
78
+				{elseif $row.postType=='mp3'}
79 79
 						<div class="video">
80 80
 							{$row.Mp3}
81 81
 							<div class="caption">{$row.Caption}</div>
82 82
 						</div>
83 83
 				{/if}
84 84
 				</div>
85
-				{if !{$id_post}}
85
+				{if !$id_post}
86 86
 					<div class="totalComments">
87
-						<h3>{__("Posted by")} {$row.User} {if {$allowComments}}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
87
+						<h3>{__("Posted by")} {$row.User} {if $allowComments}- <a href="{$row.Permalink}#comments">( {$row.Comments_Number} ) {__("comments")}{/if}</a></h3>
88 88
 					</div>
89 89
 				{/if}
90 90
 			{/block}
91 91
 
92
-			{if {$id_post}}
93
-				{if {$row.Comments_Number}>0}
92
+			{if $id_post}
93
+				{if $row.Comments_Number>0}
94 94
 					<div class="containerComments">
95 95
 						<h3 id="comments">{$row.Comments_Number} {__("answers to")} &#8220;{$row.Post_Title}&#8221;</h3>
96 96
 						<ol class="commentlist">
97
-							{block {$comments} as {$comment}}
97
+							{block $comments as $comment}
98 98
 							<li class="alt" id="comment-{$comment.Id_Comment}">
99 99
 								<cite>
100 100
 									<a href="#comment-{$comment.Id_Comment}" title="Comment permalink">#</a>&nbsp;&nbsp;
@@ -110,7 +110,7 @@
110 110
 					</div>
111 111
 				{/if}
112 112
 
113
-				{if {$allowComments}}
113
+				{if $allowComments}
114 114
 					<div class="containerFormComments">
115 115
 						<h3 id="respond">{__("Add your comment")}</h3>
116 116
 
@@ -165,4 +165,4 @@
165 165
 		{__("powered by")} <a href="http://www.gelatocms.com/">gelato cms</a>
166 166
 	</div>
167 167
 </body>
168
-</html>
168
+</html>