Source for file pnuser.php
Documentation is available at pnuser.php
* Zikula Application Framework
* @link http://www.zikula.org
* @version $Id: Loader.class.php 22543 2007-07-31 12:50:09Z rgasch $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @author Simon Birtwistle simon@itbegins.co.uk
* Main user function, simply returnt he tour index page.
* @author Simon Birtwistle
* @return string HTML string
* @author Simon Birtwistle
* @return string HTML string
if ($page == 'extensions') {
$content = pnModFunc('Tour', 'user', 'extensions');
if ($render->template_exists($lang. '/tour_user_display_'. $page. '.htm')) {
$content = $render->fetch($lang. '/tour_user_display_'. $page. '.htm');
$content = $render->fetch('tour_user_display_'. $page. '.htm');
* Cycle through all installed modules looking for available module tours
* @author Simon Birtwistle
* @return string HTML string
foreach ($modules as $mod) {
if (file_exists('modules/'. $mod['directory']. '/pndocs/tour_page1.htm')) {
$modpages[] = $mod['name'];
foreach ($themes as $theme) {
if (file_exists('themes/'. $theme['directory']. '/pndocs/tour_page1.htm')) {
$themepages[] = $theme['name'];
$render->assign('modpages', $modpages);
$render->assign('themepages', $themepages);
if ($render->template_exists($lang. '/tour_user_extensions.htm')) {
$content = $render->fetch($lang. '/tour_user_extensions.htm');
$content = $render->fetch('tour_user_extensions.htm');
* Display a tour page from an installed extension, or the distribution's tour page
* @author Simon Birtwistle
* @return string HTML string
$directory = 'docs/distribution';
$directory = 'modules/'. $info['directory']. '/pndocs';
$directory = $info['directory']. '/pndocs';
$files = array($directory. '/'. $lang. '/tour_page'. $page. '.htm', $directory. '/tour_page'. $page. '.htm');
foreach ($files as $file) {
return $render->fetch('tour_user_menu.htm'). $render->fetch('file://'. $file);
|