Updated with new toolbar.tpl (adds sprite support); fixed modal editor and JS headers
authorDan Fuhry <dan@enanocms.org>
Mon, 15 Nov 2010 17:54:59 -0500
changeset 3 90390da47ea7
parent 2 ade40c219b05
child 4 ced89265500d
Updated with new toolbar.tpl (adds sprite support); fixed modal editor and JS headers
darkritual/footer.tpl
darkritual/header.tpl
darkritual/toolbar.tpl
--- a/darkritual/footer.tpl	Fri Apr 25 13:55:08 2008 -0400
+++ b/darkritual/footer.tpl	Mon Nov 15 17:54:59 2010 -0500
@@ -24,6 +24,14 @@
 
 </div>
 
+{JS_FOOTER}
+
+<!-- Enable the modal page editor -->
+<script type="text/javascript">
+    editor_use_modal_window = true;
+    tinymce_skin = 'o2k7';
+</script>
+
 </body>
 
 </html>
--- a/darkritual/header.tpl	Fri Apr 25 13:55:08 2008 -0400
+++ b/darkritual/header.tpl	Mon Nov 15 17:54:59 2010 -0500
@@ -15,16 +15,9 @@
     var tinymce_skin = 'o2k7';
     </script>
     
-    <!-- This script automatically loads the other 15 JS files -->
-    <script type="text/javascript" src="{SCRIPTPATH}/includes/clientside/jsres.php"></script>
+    {JS_HEADER}
     {ADDITIONAL_HEADERS}
     
-    <!-- Enable the modal page editor -->
-    <script type="text/javascript">
-    editor_use_modal_window = true;
-    tinymce_skin = 'o2k7';
-    </script>
-  
   </head>
 
   <body>
--- a/darkritual/toolbar.tpl	Fri Apr 25 13:55:08 2008 -0400
+++ b/darkritual/toolbar.tpl	Mon Nov 15 17:54:59 2010 -0500
@@ -1,56 +1,62 @@
 <!-- Stuff related to toolbars and clickable buttons.
-     The plan was to use this on the toolbar for most pages. Never made it into the release,
-     but still provided as an otherwise-unused component for plugins to make use of.
-     -->
+ 		The plan was to use this on the toolbar for most pages. Never made it into the release,
+ 		but still provided as an otherwise-unused component for plugins to make use of.
+ 		-->
 
 <!-- VAR toolbar_start -->
-  <div class="toolbar">
-  <ul>
+	<div class="toolbar">
+	<ul>
 <!-- ENDVAR toolbar_start -->
 <!-- VAR toolbar_button -->
-  <li>
-    <a title="{TITLE}" {FLAGS}>
-      <!-- BEGINNOT no_image -->
-      <img alt="{TITLE}" src="{IMAGE}" />
-      <!-- END no_image -->
-      <!-- BEGIN show_title -->
-        <!-- BEGIN no_image -->
-        <span class="noimage">{TITLE}</span>
-        <!-- BEGINELSE no_image -->
-        <span>{TITLE}</span>
-        <!-- END no_image -->
-      <!-- END show_title -->
-    </a>
-  </li>
+	<li>
+		<a title="{TITLE}" {FLAGS}>
+			<!-- IFSET SPRITE -->
+				{SPRITE}
+			<!-- BEGINELSE SPRITE -->
+				<!-- IFSET IMAGE -->
+					<!-- BEGINNOT no_image -->
+						<img alt="{TITLE}" src="{IMAGE}" />
+					<!-- END no_image -->
+				<!-- END IMAGE -->
+			<!-- END SPRITE -->
+			<!-- BEGIN show_title -->
+				<!-- BEGIN no_image -->
+					<span class="noimage">{TITLE}</span>
+				<!-- BEGINELSE no_image -->
+					<span>{TITLE}</span>
+				<!-- END no_image -->
+			<!-- END show_title -->
+		</a>
+	</li>
 <!-- ENDVAR toolbar_button -->
 <!-- VAR toolbar_label -->
-  <li>
-    <span>{TITLE}</span>
-  </li>
+	<li>
+		<span>{TITLE}</span>
+	</li>
 <!-- ENDVAR toolbar_label -->
 <!-- VAR toolbar_end -->
-  </ul>
-  </div>
+	</ul>
+	</div>
 <!-- ENDVAR toolbar_end -->
 
 <!-- VAR toolbar_vert_start -->
-  <div class="toolbar_vert">
-  <ul>
+	<div class="toolbar_vert">
+	<ul>
 <!-- ENDVAR toolbar_vert_start -->
 <!-- VAR toolbar_vert_button -->
-  <li>
-    <a title="{TITLE}" {FLAGS}>
-      <img alt="{TITLE}" src="{IMAGE}" />
-      <span>{TITLE}</span>
-    </a>
-  </li>
+	<li>
+		<a title="{TITLE}" {FLAGS}>
+			<img alt="{TITLE}" src="{IMAGE}" />
+			<span>{TITLE}</span>
+		</a>
+	</li>
 <!-- ENDVAR toolbar_vert_button -->
 <!-- VAR toolbar_vert_label -->
-  <li>
-    <span>{TITLE}</span>
-  </li>
+	<li>
+		<span>{TITLE}</span>
+	</li>
 <!-- ENDVAR toolbar_vert_label -->
 <!-- VAR toolbar_vert_end -->
-  </ul>
-  </div>
+	</ul>
+	</div>
 <!-- ENDVAR toolbar_vert_end -->