From ef47af966edaf727834758f1a4fc7b1c19a0f230 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 14:50:57 -0300 Subject: Squashed 'mod/simple_faq/' content from commit 1852794 git-subtree-dir: mod/simple_faq git-subtree-split: 1852794b849fcbab29c2b37ca6c106dc0cb9903d --- views/default/expages/menu.php | 23 +++++++++++++++++++++++ views/default/js/simple_faq/toc.php | 24 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 views/default/expages/menu.php create mode 100644 views/default/js/simple_faq/toc.php (limited to 'views/default') diff --git a/views/default/expages/menu.php b/views/default/expages/menu.php new file mode 100644 index 000000000..a88536924 --- /dev/null +++ b/views/default/expages/menu.php @@ -0,0 +1,23 @@ + elgg_echo("expages:$page"), + 'url' => "admin/appearance/expages?type=$page", + 'selected' => $page == $type, + ); +} + +echo elgg_view('navigation/tabs', array('tabs' => $tabs, 'class' => 'elgg-form-settings')); diff --git a/views/default/js/simple_faq/toc.php b/views/default/js/simple_faq/toc.php new file mode 100644 index 000000000..2b1621f88 --- /dev/null +++ b/views/default/js/simple_faq/toc.php @@ -0,0 +1,24 @@ + + +elgg.provide('elgg.simple_faq'); + +elgg.simple_faq.init = function() { + $(function(){ + $("
").prependTo(".elgg-main .elgg-output").stoc({ + search: ".elgg-main .elgg-output", + stocTitle: "", + listType: "ol", + }); + }); +}; + +elgg.register_hook_handler('init', 'system', elgg.simple_faq.init); -- cgit v1.2.3