diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:07:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:07:11 -0300 |
commit | 1aa4270124992cff9e9014ce30270431dcffeee2 (patch) | |
tree | 5b7ae668b3deab655a53f44facd77c4f7d672c6c /mod/faq/views/default/expages/menu.php | |
parent | 6800aad47fb4208289171b1125eba69ccf93c08c (diff) | |
parent | eef8dc3c35a4d6339fae7d942388009afe1f78c1 (diff) | |
download | elgg-1aa4270124992cff9e9014ce30270431dcffeee2.tar.gz elgg-1aa4270124992cff9e9014ce30270431dcffeee2.tar.bz2 |
Merge commit 'eef8dc3c35a4d6339fae7d942388009afe1f78c1' as 'mod/faq'
Diffstat (limited to 'mod/faq/views/default/expages/menu.php')
-rw-r--r-- | mod/faq/views/default/expages/menu.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/faq/views/default/expages/menu.php b/mod/faq/views/default/expages/menu.php new file mode 100644 index 000000000..a88536924 --- /dev/null +++ b/mod/faq/views/default/expages/menu.php @@ -0,0 +1,23 @@ +<?php +/** + * External pages menu + * + * @uses $vars['type'] + */ + +$type = $vars['type']; + +//set the url +$url = $vars['url'] . "admin/site/expages?type="; + +$pages = array('about', 'terms', 'privacy', 'faq'); +$tabs = array(); +foreach ($pages as $page) { + $tabs[] = array( + 'title' => 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')); |