-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc.php
executable file
·60 lines (48 loc) · 1.41 KB
/
config.inc.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
52
53
54
55
56
57
58
59
60
<?php
/**
* REDAXO PPX Skin - (be_style Plugin)
*
* @author peter[at]polarpixel[dot]de Peter Bickel
* @author <a href="http://www.polarpixel.de">www.polarpixel.de</a>
*/
$mypage = 'ppx';
$REX['ADDON']['rxid'][$mypage] = '912';
$REX['ADDON']['page'][$mypage] = $mypage;
$REX['ADDON']['name'][$mypage] = 'PPX Skin';
$REX['ADDON']['version'][$mypage] = '1.1';
$REX['ADDON']['author'][$mypage] = 'Peter Bickel';
$REX['ADDON']['supportpage'][$mypage] = 'forum.redaxo.de';
if($REX['REDAXO']) {
$REX['ADDON']['logo'] = '';
$REX['ADDON']['logo_distance_top'] = '10';
$sql = rex_sql::factory();
$sql_query = '
SELECT
logo, logo_distance_top
FROM
rex_912_ppx';
$sql->setQuery($sql_query);
if ($sql->getValue('logo') != '') {
$REX['ADDON']['logo'] = $sql->getValue('logo');
}
if ($sql->getValue('logo_distance_top') != '') {
$REX['ADDON']['logo_distance_top'] = $sql->getValue('logo_distance_top');
}
rex_register_extension('PAGE_HEADER', 'AddCSS');
function AddCSS($params) {
global $REX;
echo '
<link rel="stylesheet" type="text/css" href="../files/addons/ppx/css_main.css" media="screen, projection, print" />';
if ($REX['ADDON']['logo'] != '') {
echo '
<style>
div#rex-navi-logout {
background-image: url(../files/'.$REX['ADDON']['logo'].');
background-size: 50px auto;
background-position: left '.$REX['ADDON']['logo_distance_top'].'px;
}
</style>';
}
}
}
?>