diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/functions.php | 27 | ||||
-rw-r--r-- | admin/intro.php | 5 |
2 files changed, 31 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 061de2740..6fc649e0e 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1920,4 +1920,31 @@ function check_conf() } } +/** + * Refer main PhpWebGallery URLs (currently phpwebgallery.net domain) + * + * @param void + * @return array like $conf['links'] + */ +function pwg_URL() +{ + global $lang_info; + $urls = array( + 'WIKI' => 'http://phpwebgallery.net/doc/', + 'HOME' => 'http://phpwebgallery.net/', + 'DEMO' => 'http://demo.phpwebgallery.net/', + 'FORUM' => 'http://forum.phpwebgallery.net/', + 'BUGS' => 'http://bugs.phpwebgallery.net/', + 'EXTENSIONS' => 'http://phpwebgallery.net/ext', + ); + if ( isset($lang_info['code']) and + in_array($lang_info['code'], array('fr','en')) ) + { /* current wiki languages are French or English */ + $urls['WIKI'] = + 'http://phpwebgallery.net/doc/doku.php?id='.$lang_info['code'].':start'; + $urls['HOME'] = 'http://phpwebgallery.net/?lang='.$lang_info['code']; + } + return $urls; +} + ?> diff --git a/admin/intro.php b/admin/intro.php index d855bc870..afb61576c 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -267,10 +267,13 @@ if ($nb_comments > 0) ); } +// Add the PhpWebGallery Official menu + $template->assign_block_vars( 'pwgmenu', pwg_URL() ); + // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ $template->assign_var_from_handle('ADMIN_CONTENT', 'intro'); -?>
\ No newline at end of file +?> |