-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin.php
51 lines (36 loc) · 1001 Bytes
/
Admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* 'Other Page Languages' plugin for Typesetter CMS
* Author: Jürgen Krausz
* License: GPL version 2
*
* NOT IMPLEMENTED YET
*
*/
namespace Addon\OtherPageLangs;
defined('is_running') or die('Not an entry point...');
class Admin extends \Addon\OtherPageLangs\Common{
public $admin_url;
public function __construct(){
parent::__construct();
}
private function AdminPage(){
global $langmessage, $page;
\gp\tool\Plugins::css('css/admin_page.css', false);
}
/**
* New filter hook as of 5.1.1-b1
* we may now use translated Admin Link labels
* @param array $array [string $link_label, string $link_name]
* @return string changed $link_label
*/
public function AdminLinkLabel($link_label, $link_name) {
if( $link_name !== 'Admin_OtherPageLangs' ){
return $link_label;
}
if( !empty($this->$i18n['Admin_OtherPageLangs']) ){
$link_label = $this->$i18n['Admin_OtherPageLangs'];
}
return $link_label;
}
}