Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / modules / template [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
02 Aug 2002 15:20:35 | postnuke_official/html/modules/template | pnuser.php,1.14,1.15 | Mike |
make user menu API-callable too + some little template changes - designers wanted |
Update of /home/cvsroot/postnuke_official/html/modules/template In directory ns7.hostnuke.net:/tmp/cvs-serv26959 Modified Files: pnuser.php Log Message: make user menu API-callable too + some little template changes - designers wanted Index: pnuser.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/template/pnuser.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** pnuser.php 1 Aug 2002 18:25:40 -0000 1.14 --- pnuser.php 2 Aug 2002 15:20:33 -0000 1.15 *************** *** 41,46 **** // generally either 'overview' or 'read' if (!pnSecAuthAction(0, 'Template::', '::', ACCESS_OVERVIEW)) { ! $output->Text(_TEMPLATENOAUTH); ! return $output->GetOutput(); } --- 41,45 ---- // generally either 'overview' or 'read' if (!pnSecAuthAction(0, 'Template::', '::', ACCESS_OVERVIEW)) { ! return _TEMPLATENOAUTH; } *************** *** 53,57 **** // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_usermenu(); // Specify some other variables used in the blocklayout template --- 52,56 ---- // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_user_menu(); // Specify some other variables used in the blocklayout template *************** *** 87,91 **** // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_usermenu(); // Prepare the variable that will hold some status message if necessary --- 86,90 ---- // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_user_menu(); // Prepare the variable that will hold some status message if necessary *************** *** 222,225 **** --- 221,227 ---- $data['pager'] = $output->GetOutput(); + // Specify some other variables for use in the function template + $data['someheader'] = _TEMPLATENAME; + // Return the template variables defined in this function return $data; *************** *** 278,282 **** // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_usermenu(); // Prepare the variable that will hold some status message if necessary --- 280,284 ---- // helps if all of the module pages have a standard menu at the top to // support easy navigation ! $data = template_user_menu(); // Prepare the variable that will hold some status message if necessary *************** *** 340,344 **** // access than READ for this function, you *must* check this here ! // if (!pnSecAuthAction(0, 'Templates::', "$item[name]::$item[tid]", ! // ACCESS_READ)) { // // Fill in the status variable with the status to be shown // $data['status'] = _TEMPLATENOAUTH; --- 342,346 ---- // access than READ for this function, you *must* check this here ! // if (!pnSecAuthAction(0, 'Templates::', "$item[name]::$item[tid]", ! // ACCESS_COMMENT)) { // // Fill in the status variable with the status to be shown // $data['status'] = _TEMPLATENOAUTH; *************** *** 363,372 **** // whether or not parts of the item information should be displayed in // bold type or not ! $data['namelabel'] = _TEMPLATENAME; ! $data['namevalue'] = pnVarCensor($item['name']); ! $data['numberlabel'] = _TEMPLATENUMBER; ! $data['numbervalue'] = $item['number']; ! $data['bold'] = pnModGetVar('template', 'bold'); // Note : module variables can also be specified directly in the // blocklayout template by using &pnt-mod-<modname>-<varname>; --- 365,374 ---- // whether or not parts of the item information should be displayed in // bold type or not ! $data['name_label'] = _TEMPLATENAME; ! $data['name_value'] = pnVarCensor($item['name']); ! $data['number_label'] = _TEMPLATENUMBER; ! $data['number_value'] = $item['number']; ! $data['is_bold'] = pnModGetVar('template', 'bold'); // Note : module variables can also be specified directly in the // blocklayout template by using &pnt-mod-<modname>-<varname>; *************** *** 405,409 **** * generate the common menu configuration */ ! function template_usermenu() { // Initialise the array that will hold the menu configuration --- 407,411 ---- * generate the common menu configuration */ ! function template_user_menu() { // Initialise the array that will hold the menu configuration *************** *** 414,425 **** // Specify the menu items to be used in your blocklayout template ! $menu['menulabelview'] = _TEMPLATEVIEW; ! $menu['menulinkview'] = pnModURL('template', ! 'user', ! 'view'); // Specify the labels/links for more menu items if relevant ! // $menu['menulabelother'] = pnML('Some other menu item'); ! // $menu['menulinkother'] = pnModURL('template','user','other'); // ... --- 416,425 ---- // Specify the menu items to be used in your blocklayout template ! $menu['menulabel_view'] = _TEMPLATEVIEW; ! $menu['menulink_view'] = pnModURL('template','user','view'); // Specify the labels/links for more menu items if relevant ! // $menu['menulabel_other'] = pnML('Some other menu item'); ! // $menu['menulink_other'] = pnModURL('template','user','other'); // ... *************** *** 448,452 **** // // in the templates of your module. Or you could even pass an argument ! // to the usermenu() function to turn links on/off automatically // depending on which function is currently called... // --- 448,452 ---- // // in the templates of your module. Or you could even pass an argument ! // to the user_menu() function to turn links on/off automatically // depending on which function is currently called... //
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |