Browse Source

Change in the structure of the "theme admin" folder.

Victor De la Rocha 15 years ago
parent
commit
c532259cef

+ 7 - 7
admin/index.php View File

@@ -180,33 +180,33 @@ if ($user->isAuthenticated()) {
180 180
                 switch ($_GET["new"]) {
181 181
                         case "post":
182 182
                                 $form->set('editTitle',$title);
183
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_post.htm'));
183
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_post.htm'));
184 184
                                 break;
185 185
                         case "photo":
186 186
                                 $url = str_replace("../", $conf->urlGelato."/", $url);
187 187
                                 $form->set('editUrl',$url);
188
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_photo.htm'));
188
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_photo.htm'));
189 189
                                 break;
190 190
                         case "quote":
191 191
                                 $form->set('editTitle',$title);
192
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_quote.htm'));
192
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_quote.htm'));
193 193
                                 break;
194 194
                         case "url":
195 195
                                 $form->set('editTitle',$title);
196 196
                                 $form->set('editUrl',$url);
197
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_link.htm'));
197
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_link.htm'));
198 198
                                 break;
199 199
                         case "conversation":
200 200
                                 $form->set('editTitle',$title);
201
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_conversation.htm'));
201
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_conversation.htm'));
202 202
                                 break;
203 203
                         case "video":
204 204
                                 $form->set('editUrl',$url);
205
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_video.htm'));
205
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_video.htm'));
206 206
                                 break;
207 207
                         case "mp3":
208 208
                                 $form->set('editUrl',$url);
209
-                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/template_add_mp3.htm'));
209
+                                $theme->set('form',$form->fetch(Absolute_Path.'admin/themes/admin/parts/template_add_mp3.htm'));
210 210
                                 break;
211 211
                         }
212 212
 

admin/themes/admin/template_add_conversation.htm → admin/themes/admin/parts/template_add_conversation.htm View File


admin/themes/admin/template_add_link.htm → admin/themes/admin/parts/template_add_link.htm View File


admin/themes/admin/template_add_mp3.htm → admin/themes/admin/parts/template_add_mp3.htm View File


admin/themes/admin/template_add_photo.htm → admin/themes/admin/parts/template_add_photo.htm View File

@@ -1,5 +1,3 @@
1
-
2
-
3 1
 	<div id="photo_upload">
4 2
 		<label for="description">Photo</label>												
5 3
 		<br /><input type="file" name="photo" id="photo" accept="image/gif,image/jpeg,image/jpg,image/png"/>
@@ -30,15 +28,13 @@
30 28
 	<input type="hidden" name="date" id="date" value="{date}" />
31 29
 	<input type="hidden" name="id_user" id="id_user" value="{id_user}" />
32 30
 
33
-
34
-
35
-
36 31
 	<script>
37 32
 		$('#photo_url').css('display','none');
33
+
38 34
 		$("#autosave").validate({
39 35
 			rules: {				
40 36
 				photo: { 
41
-					required:  function() {
37
+					required:  function() {
42 38
  						return ($('#photo_upload').css('display')!= 'none') ? true : false;
43 39
   					},
44 40
 					accept: "(jpe?g|gif|png)" 
@@ -64,7 +60,7 @@
64 60
 				return false;
65 61
 			} 
66 62
 		);
67
-		
63
+
68 64
 		$("#photo_url a.linkFrm").click( function() {
69 65
 				$('#photo_url').css('display','none');				
70 66
 				$('#photo_upload').css('display','block'); 
@@ -72,5 +68,4 @@
72 68
 				return false;
73 69
 			} 
74 70
 		);
75
-
76
-	</script>
71
+	</script>

admin/themes/admin/template_add_photo_bm.htm → admin/themes/admin/parts/template_add_photo_bm.htm View File


admin/themes/admin/template_add_post.htm → admin/themes/admin/parts/template_add_post.htm View File


admin/themes/admin/template_add_quote.htm → admin/themes/admin/parts/template_add_quote.htm View File


admin/themes/admin/template_add_video.htm → admin/themes/admin/parts/template_add_video.htm View File


admin/themes/admin/template_bm.htm → admin/themes/admin/parts/template_bm.htm View File


admin/themes/admin/template_comment.htm → admin/themes/admin/parts/template_comment.htm View File


admin/themes/admin/template_comment_post.htm → admin/themes/admin/parts/template_comment_post.htm View File


admin/themes/admin/template_conversation.htm → admin/themes/admin/parts/template_conversation.htm View File


admin/themes/admin/template_mp3.htm → admin/themes/admin/parts/template_mp3.htm View File


admin/themes/admin/template_photo.htm → admin/themes/admin/parts/template_photo.htm View File

@@ -6,4 +6,5 @@
6 6
 					<span class="option">{Caption}</span>
7 7
 					<p><a {Effect}><img src="{PhotoURL}" alt="{PhotoAlt}" /></a></a></p>
8 8
 				</div>
9
-			</div>
9
+			</div>
10
+

admin/themes/admin/template_quote.htm → admin/themes/admin/parts/template_quote.htm View File


admin/themes/admin/template_regular_post.htm → admin/themes/admin/parts/template_regular_post.htm View File


admin/themes/admin/template_url.htm → admin/themes/admin/parts/template_url.htm View File


admin/themes/admin/template_video.htm → admin/themes/admin/parts/template_video.htm View File