diff options
author | M.Gergo | 2018-07-06 11:34:04 +0200 |
---|---|---|
committer | M.Gergo | 2018-07-06 11:34:04 +0200 |
commit | 095e5987eadbe3786be5e12ef385bda9640155b0 (patch) | |
tree | e796dcd1c575094cf43e0b0b7d4c8fb22896e66f /mayor-orig/www/include/menu | |
parent | 43de9af71f7f4ca5731b94a06d688ae8412ba427 (diff) | |
download | mayor-095e5987eadbe3786be5e12ef385bda9640155b0.tar.gz mayor-095e5987eadbe3786be5e12ef385bda9640155b0.zip |
checkupdate.sh + portal 2018/Feb kiinduló
Diffstat (limited to 'mayor-orig/www/include/menu')
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')); + +?> |