summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-09-30 19:12:49 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-09-30 19:12:49 +0200
commitb53b77d0dcf2ea89087d23ad037063dd8f620331 (patch)
tree306a107b90455f7b4be679cd8d034878cf13ec52 /data/templates
parent95c05e49a70d007f41be60f90a7ae0ed7e5996a2 (diff)
downloadsemanticscuttle-b53b77d0dcf2ea89087d23ad037063dd8f620331.tar.gz
semanticscuttle-b53b77d0dcf2ea89087d23ad037063dd8f620331.tar.bz2
make sidebar menu2 use jquery.jstree. ajax loading of subtags is still missing
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/sidebar.block.menu2.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/data/templates/sidebar.block.menu2.php b/data/templates/sidebar.block.menu2.php
index 00ad74f..81ee121 100644
--- a/data/templates/sidebar.block.menu2.php
+++ b/data/templates/sidebar.block.menu2.php
@@ -1,3 +1,5 @@
+<script type="text/javascript" src="<?php echo ROOT ?>js/jquery-1.4.2.js"></script>
+<script type="text/javascript" src="<?php echo ROOT ?>js/jquery.jstree.js"></script>
<?php
/* Service creation: only useful services are created */
$tag2tagservice =SemanticScuttle_Service_Factory::get('Tag2Tag');
@@ -31,7 +33,7 @@ if (count($menu2Tags) > 0) {
foreach ($menu2Tags as $menu2Tag) {
echo ' <li>'
. sprintf(
- '<a href="%s">%s</a>',
+ '<a href="%s">%s</a><ul><li><a href="#">foo</a></li><li><a href="#">bar</a></li></ul>',
sprintf($cat_url, $menu2Tag),
$menu2Tag
)
@@ -46,10 +48,22 @@ foreach ($menu2Tags as $menu2Tag) {
echo '</div>';
*/
}
+//ROOT.'ajax/getadminlinkedtags.php?tag='.filter($menu2Tag, 'url')
?>
</ul>
</div>
-
+<script type="text/javascript">
+jQuery("#maintagsmenu")
+.jstree({
+ "themes" : {
+ "theme": "default",
+ "dots": false,
+ "icons": true,
+ "url": '<?php echo ROOT ?>js/themes/default/style.css'
+ },
+ plugins : [ "themes", "html_data"],
+});
+</script>
<?php
}
?>