aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/www/include/menu
diff options
context:
space:
mode:
authorM.Gergo2018-07-06 11:34:04 +0200
committerM.Gergo2018-07-06 11:34:04 +0200
commit095e5987eadbe3786be5e12ef385bda9640155b0 (patch)
treee796dcd1c575094cf43e0b0b7d4c8fb22896e66f /mayor-orig/www/include/menu
parent43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff)
downloadmayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz
mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'mayor-orig/www/include/menu')
-rw-r--r--mayor-orig/www/include/menu/parent/hu_HU/module-portal.php11
-rw-r--r--mayor-orig/www/include/menu/private/hu_HU/module-portal.php43
-rw-r--r--mayor-orig/www/include/menu/public/hu_HU/module-portal.php8
3 files changed, 62 insertions, 0 deletions
diff --git a/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php b/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php
new file mode 100644
index 00000000..802a2d6e
--- /dev/null
+++ b/mayor-orig/www/include/menu/parent/hu_HU/module-portal.php
@@ -0,0 +1,11 @@
+<?php
+
+ if ($page != 'naplo') array_unshift($NAV[1], array('page' => 'naplo'));
+
+ if (is_array($MENU['modules']['portal']['sub'][$sub])) foreach ($MENU['modules']['portal']['sub'][$sub] as $_f => $M) {
+ $NAV[2][] = array('page' => 'portal', 'sub' => $sub, 'f' => $_f);
+ } elseif (is_array($MENU['modules']['portal'])) foreach ($MENU['modules']['portal'] as $_sub => $M) {
+ if ($_sub != 'sub') $NAV[2][] = array('page' => 'portal', 'sub' => $_sub);
+ }
+
+?> \ No newline at end of file
diff --git a/mayor-orig/www/include/menu/private/hu_HU/module-portal.php b/mayor-orig/www/include/menu/private/hu_HU/module-portal.php
new file mode 100644
index 00000000..eeb70da8
--- /dev/null
+++ b/mayor-orig/www/include/menu/private/hu_HU/module-portal.php
@@ -0,0 +1,43 @@
+<?php
+
+ if (defined('__HIREKADMIN') && __HIREKADMIN === true) {
+// $MENU['portal'] = array(array('txt' => 'Portál', 'url' => 'index.php?page=portal&sub=hirek&f=egyhir'));
+ $MENU['portal'] = array(array('txt' => 'Kezdőlap', 'url' => 'index.php'));
+ $MENU['modules']['portal']['hirek'] = array(array('txt'=>'Hírek szerkesztése','url'=>'index.php?page=portal&sub=hirek&f=hirekAdmin'));
+ $MENU['modules']['portal']['sub']['hirek'] = array(
+ 'hirekAdmin'=>array(array('txt' => 'Hírek')),
+ 'egyhir'=>array(array('txt' => 'Új hír')),
+// array('txt' => 'Új kérdés', 'url' => 'index.php?page=portal&sub=kerdoiv&f=kerdoivAdmin')
+ );
+ $MENU['modules']['portal']['kerdoiv'] = array(
+ array('txt' => 'Új kérdés', 'url' => 'index.php?page=portal&sub=kerdoiv&f=kerdoivAdmin')
+ );
+
+ //if ($page != 'portal')
+ // $NAV[1][] = array('page'=>'portal', 'sub' => 'hirek');
+ } else {
+ /* Mégse rakjuk ki a többieknek */
+ // $MENU['portal'] = array(array('txt' => 'Hír beküldése', 'url' => 'index.php?page=portal&sub=hirek&f=egyhir'));
+ }
+
+// if (memberOf(_USERACCOUNT, $AUTH[_POLICY]['adminGroup'])) {
+// $NAV[1][] = array('page'=>'session');
+// } else {
+// $NAV[1][] = array('page'=>'session','f'=>'changeMyPassword');
+// }
+
+ //if ($page != 'naplo') $NAV[1][] = array('page' => 'naplo');
+
+
+
+if ($page=='portal') {
+ if (is_array($MENU['modules']['portal']['sub'][$sub])) foreach ($MENU['modules']['portal']['sub'][$sub] as $_f => $M) {
+ $NAV[2][] = array('page' => 'portal', 'sub' => $sub, 'f' => $_f);
+ } elseif (is_array($MENU['modules']['portal'])) foreach ($MENU['modules']['portal'] as $_sub => $M) {
+ if ($_sub != 'sub') $NAV[2][] = array('page' => 'portal', 'sub' => $_sub);
+ }
+}
+
+
+
+?>
diff --git a/mayor-orig/www/include/menu/public/hu_HU/module-portal.php b/mayor-orig/www/include/menu/public/hu_HU/module-portal.php
new file mode 100644
index 00000000..53b4315c
--- /dev/null
+++ b/mayor-orig/www/include/menu/public/hu_HU/module-portal.php
@@ -0,0 +1,8 @@
+<?php
+/*
+ module: naplo
+*/
+
+// $MENU['portal'] = array(array('txt' => 'Portál', 'url' => 'index.php?page=portal'));
+
+?>