i propose we pass a comma separated list of values to a smarty function, which does the rest
|
|
the template stuff:
|
-{code color=smarty}
|
+{code source=Html4Strict} |
...
|
-<th>
|
-{smartlink ititle="foo" isort="title" isort_mode=$sort_mode}
|
-</th>
|
+<th> |
+{smartlink ititle="foo" isort="title" isort_mode=$sort_mode} |
+</th> |
...
|
-{code}
|
+{/code} |
additional notes:
|
to view a full list of options please see the file
|
kernel/smarty_tiki/function.smartlink.php
|
|
|
!! reducing number of divs
|
-the number of divs used in tikipro is still a bit excessive. perhaps we can find a couple more places where these can removed / changed to something else:
|
-{code(color=css)}
|
-<div class="box">
|
- <div class="boxtitle">foo</div>
|
- <div class="boxcontent">bar</div>
|
-</div>
|
-{code}
|
+the number of divs used in bitweaver is still a bit excessive. perhaps we can find a couple more places where these can removed / changed to something else: |
+{code source=Html4Strict} |
+<div class="box"> |
+ <div class="boxtitle">foo</div> |
+ <div class="boxcontent">bar</div> |
+</div> |
+{/code} |
|
could become:
|
-{code(color=css)}
|
-<div class="box">
|
- <h3>foo</h3>
|
- <p>bar</p>
|
-</div>
|
-{code}
|
+{code source=Html4Strict} |
+<div class="box"> |
+ <h3>foo</h3> |
+ <p>bar</p> |
+</div> |
+{/code} |
|
-would allow for same amount of styling freedom. the only downside is that <p> doesn't allow block elements in xhtml, which means that we have to close off </p> before adding divs and lists
|
+would allow for same amount of styling freedom. the only downside is that <p> doesn't allow block elements in xhtml, which means that we have to close off </p> before adding divs and lists |
|
-{code(color=css)}
|
-<div class="header">
|
- <h1>foo</h1>
|
- <div class="date">bar</div>
|
-</div>
|
-{code}
|
+{code source=Html4Strict} |
+<div class="header"> |
+ <h1>foo</h1> |
+ <div class="date">bar</div> |
+</div> |
+{/code} |
|
could become:
|
-{code(color=css)}
|
-<div class="header">
|
- <h1>foo</h1>
|
- <p class="date">bar</p>
|
-</div>
|
-{code}
|
+{code source=Html4Strict} |
+<div class="header"> |
+ <h1>foo</h1> |
+ <p class="date">bar</p> |
+</div> |
+{/code} |
|
|
!! themes manager
|