source: extensions/AMetaData/amd_aip_release.class.inc.php @ 32023

Last change on this file since 32023 was 28815, checked in by Youp3, 10 years ago

Advanced Meta Data : prise en compte de la modification l10n / translate + sprintf

File size: 1.6 KB
RevLine 
[6977]1<?php
2/*
3 * -----------------------------------------------------------------------------
4 * Plugin Name: Advanced MetaData
5 * -----------------------------------------------------------------------------
6 * Author     : Grum
7 *   email    : grum@piwigo.org
8 *   website  : http://photos.grum.fr
9 *   PWG user : http://forum.piwigo.org/profile.php?id=3706
10 *
11 *   << May the Little SpaceFrog be with you ! >>
12 *
13 * -----------------------------------------------------------------------------
14 *
15 * See main.inc.php for release information
16 *
17 * AIPRealse class => display warning if GPC release is not up to date
18 *
19 * -----------------------------------------------------------------------------
20 */
21
22
23if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
24
25include_once('amd_root.class.inc.php');
26
27class AMD_AIPRelease extends AMD_root
28{
29  public function __construct($prefixeTable, $filelocation)
30  {
31    parent::__construct($prefixeTable, $filelocation);
32    $this->loadConfig();
33    $this->initEvents();
34  }
35
36  /*
37    display administration page
38  */
39  public function manage()
40  {
41    global $template;
42
[16465]43    GPCCore::setTemplateToken();
44
[6977]45    $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/amd_admin.tpl");
46
47    $pluginInfo=array(
48      'AMD_VERSION' => "<i>".$this->getPluginName()."</i> ".l10n('g003_version').AMD_VERSION,
49      'PATH' => AMD_PATH
50    );
51
52    $template->assign('plugin', $pluginInfo);
[28815]53    $template->assign('AMD_BODY_PAGE', '<p class="warnings">'.l10n('g003_gpc_not_up_to_date',AMD_GPC_NEEDED, GPC_VERSION).'</p>');
[6977]54    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
55  }
56
57
58
59
60} //class
61
62
63?>
Note: See TracBrowser for help on using the repository browser.