Преглед на файлове

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

Victor De la Rocha преди 15 години
родител
ревизия
c532259cef

+ 7 - 7
admin/index.php Целия файл

180
                 switch ($_GET["new"]) {
180
                 switch ($_GET["new"]) {
181
                         case "post":
181
                         case "post":
182
                                 $form->set('editTitle',$title);
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
                                 break;
184
                                 break;
185
                         case "photo":
185
                         case "photo":
186
                                 $url = str_replace("../", $conf->urlGelato."/", $url);
186
                                 $url = str_replace("../", $conf->urlGelato."/", $url);
187
                                 $form->set('editUrl',$url);
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
                                 break;
189
                                 break;
190
                         case "quote":
190
                         case "quote":
191
                                 $form->set('editTitle',$title);
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
                                 break;
193
                                 break;
194
                         case "url":
194
                         case "url":
195
                                 $form->set('editTitle',$title);
195
                                 $form->set('editTitle',$title);
196
                                 $form->set('editUrl',$url);
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
                                 break;
198
                                 break;
199
                         case "conversation":
199
                         case "conversation":
200
                                 $form->set('editTitle',$title);
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
                                 break;
202
                                 break;
203
                         case "video":
203
                         case "video":
204
                                 $form->set('editUrl',$url);
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
                                 break;
206
                                 break;
207
                         case "mp3":
207
                         case "mp3":
208
                                 $form->set('editUrl',$url);
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
                                 break;
210
                                 break;
211
                         }
211
                         }
212
 
212
 

admin/themes/admin/template_add_conversation.htm → admin/themes/admin/parts/template_add_conversation.htm Целия файл


admin/themes/admin/template_add_link.htm → admin/themes/admin/parts/template_add_link.htm Целия файл


admin/themes/admin/template_add_mp3.htm → admin/themes/admin/parts/template_add_mp3.htm Целия файл


admin/themes/admin/template_add_photo.htm → admin/themes/admin/parts/template_add_photo.htm Целия файл

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


admin/themes/admin/template_add_post.htm → admin/themes/admin/parts/template_add_post.htm Целия файл


admin/themes/admin/template_add_quote.htm → admin/themes/admin/parts/template_add_quote.htm Целия файл


admin/themes/admin/template_add_video.htm → admin/themes/admin/parts/template_add_video.htm Целия файл


admin/themes/admin/template_bm.htm → admin/themes/admin/parts/template_bm.htm Целия файл


admin/themes/admin/template_comment.htm → admin/themes/admin/parts/template_comment.htm Целия файл


admin/themes/admin/template_comment_post.htm → admin/themes/admin/parts/template_comment_post.htm Целия файл


admin/themes/admin/template_conversation.htm → admin/themes/admin/parts/template_conversation.htm Целия файл


admin/themes/admin/template_mp3.htm → admin/themes/admin/parts/template_mp3.htm Целия файл


admin/themes/admin/template_photo.htm → admin/themes/admin/parts/template_photo.htm Целия файл

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

admin/themes/admin/template_quote.htm → admin/themes/admin/parts/template_quote.htm Целия файл


admin/themes/admin/template_regular_post.htm → admin/themes/admin/parts/template_regular_post.htm Целия файл


admin/themes/admin/template_url.htm → admin/themes/admin/parts/template_url.htm Целия файл


admin/themes/admin/template_video.htm → admin/themes/admin/parts/template_video.htm Целия файл