wrap arrows in span like make_arrows
authorAdrian Oldham <adriann@visualthought.com.au>
Mon, 11 Nov 2013 11:36:30 +0000 (22:36 +1100)
committerTony Cook <tony@develop-help.com>
Mon, 24 Feb 2014 22:23:58 +0000 (09:23 +1100)
site/templates/preload.tmpl

index 775747fa6fdfa09791a34127f18cc44b9cf5545b..e24dc9a98fbf548dad850c85f5db3bec4d749819 100644 (file)
@@ -370,19 +370,22 @@ parameters:
   <:.set width = cfg.entry("arrows", "image_width", 17) -:>
   <:.set height = cfg.entry("arrows", "image_height", 13) -:>
   <:.set extras = 'width="' _ width _ '" height="' _ height _ '"' -:>
+  <:.set class = cfg.entry("arrows", "class", "bse_arrows") -:>
   <:.set blank_img = '<img src="' _ (dist_image_uri _ "/trans_pixel.gif").escape("html") _ '" alt="" ' _ extras _ ' />' -:>
   <:.set down_img = '<img src="' _ cfg.entry("arrows", "downimg", dist_image_uri _ "/admin/move_down.gif").escape("html") _ '" alt="Down" ' _ extras _ ' />' -:>
   <:.set up_img = '<img src="' _ cfg.entry("arrows", "upimg", dist_image_uri _ "/admin/move_up.gif").escape("html") _ '" alt="Up" ' _ extras _ ' />' -:>
-  <:.if loop.next -:>
+  <span class="<:= class :>">
+  <:-.if loop.next -:>
   <a href="<:= cfg.admin_url("move", { "stepparent":parent.id, "d":"swap", "id":loop.current.id, "other":loop.next.id, "r":top.admin }) :>"><:= down_img |raw:></a>
-  <:.else -:>
-    <:= blank_img |raw-:>
-  <:.end if -:>
+  <:-.else -:>
+    <:= blank_img |raw:>
+  <:-.end if -:>
   <:.if loop.prev -:>
   <a href="<:= cfg.admin_url("move", { "stepparent":parent.id, "d":"swap", "id":loop.current.id, "other":loop.prev.id, "r":top.admin }) :>"><:= up_img |raw:></a>
-  <:.else -:>
-    <:= blank_img |raw-:>
-  <:.end if -:>
+  <:-.else -:>
+    <:= blank_img |raw:>
+  <:-.end if -:>
+  </span>
 <:.end if -:>
 
 <:.end define -:>