Zikula_System_Modules
[ class tree: Zikula_System_Modules ] [ index: Zikula_System_Modules ] [ all elements ]

Source for file function.adminonlinemanual.php

Documentation is available at function.adminonlinemanual.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2002, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: function.adminonlinemanual.php 24342 2008-06-06 12:03:14Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  * @package      Zikula_System_Modules
  10.  * @subpackage   Admin
  11.  */
  12.  
  13.  
  14. /**
  15.  * Smarty function to displaya modules online manual
  16.  *
  17.  * Admin
  18.  * <!--[adminonlinemanual]-->
  19.  *
  20.  * @author       Frank Schummertz
  21.  * @since        16.01.2005
  22.  * @see          function.admincategorymenu.php::smarty_function_admincategoreymenu()
  23.  * @param        array       $params      All attributes passed to this function from the template
  24.  * @param        object      &$smarty     Reference to the Smarty object
  25.  * @param        int         xhtml        if set, the link to the navtabs.css will be xhtml compliant
  26.  * @return       string      the results of the module function
  27.  */
  28. function smarty_function_adminonlinemanual($params&$smarty)
  29. {
  30.     extract($params);
  31.     unset($params);
  32.  
  33.     $lang pnUserGetLang();
  34.     $modinfo pnModGetInfo(pnModGetIDFromName(pnModGetName()));
  35.     $modpath ($modinfo['type'== 3'system' 'modules';
  36.     $file DataUtil::formatForOS("$modpath/$modinfo[directory]/lang/$lang/manual.html");
  37.     $man_link '';
  38.     if (file_exists($file&& is_readable($file)) {
  39.         PageUtil::setVar('javascript''javascript/openwindow.js');
  40.         $man_link '<div style="margin-top: 20px; text-align:center">[ <a href="javascript:openwindow(\'' $file '\')">'._ADMIN_ONLINEMANUAL.'</a> ]</div>'."\n";
  41.     }
  42.     return $man_link;
  43. }

Documentation generated on Fri, 18 Jul 2008 21:45:07 +0200 by phpDocumentor 1.4.1