mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
Feature "Admin Advices !" (Standard plugin) : May give you always now an advice on the administration page.
Quick solved list: 1 - Wording on EXIF/IPTC Advices 2 - Default language is English 3 - Some Transparency issues under IE 4 - Some Border issues 5 - PWG Menu moved from Advices Box to Intro. 6 - phpwebgallery.net URLs are available thru a new admin function pwg_URL() 7 - PWG Menu URL open in a new target (XHTML strict compliant (JS)). git-svn-id: http://piwigo.org/svn/trunk@1724 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
+4
-1
@@ -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');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user