-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefaults.php
More file actions
executable file
·132 lines (118 loc) · 2.81 KB
/
defaults.php
File metadata and controls
executable file
·132 lines (118 loc) · 2.81 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
/**
* OwnCloud - B2DROP Theme File
*
* PHP Version 5-7, 8
*
* @category Owncloud
* @package Theme
* @author EUDAT <b2drop-devel@postit.csc.fi>, Marvin Winkens <m.winkens@fz-juelich.de>
* @copyright 2025 EUDAT
* @license AGPL3 https://github.com/EUDAT-B2DROP/b2drop-theme/blob/master/LICENSE
* @link https://github.com/EUDAT-B2DROP/b2drop-theme.git
*/
/**
* OwnCloud - B2DROP Theme Class
*
* PHP Version 5-7
*
* @category Owncloud
* @package Theme
* @author EUDAT <b2drop-devel@postit.csc.fi>
* @copyright 2016 EUDAT
* @license AGPL3 https://github.com/EUDAT-B2DROP/b2drop-theme/blob/master/LICENSE
* @link https://github.com/EUDAT-B2DROP/b2drop-theme.git
*/
class OC_Theme
{
/**
* Create theme object
*/
private string $baseUrl;
private string $iTunesAppId;
private string $themeName;
private string $themeFooter;
private string $slogan;
public function __construct()
{
$this->themeName = "b2drop";
$this->slogan = "Sync and Exchange Research Data";
$this->baseUrl = "https://b2drop.eudat.eu";
$this->iTunesAppId = "543672169";
$footer_links = [
"<a href=\"{$this->baseUrl}/themes/b2drop/apps/core/templates/impressum.html\">Impressum</a>",
"<a href=\"{$this->baseUrl}/themes/b2drop/apps/core/templates/data-privacy-statement.html\">Data Privacy Statement</a>",
];
$this->themeFooter = implode("<br>", $footer_links);
}
/**
* Get iTunes App Id
*
* @return string iTunesAppId
*/
public function getiTunesAppId(): string
{
return $this->iTunesAppId;
}
/**
* Get theme title
*
* @return string themeName
*/
public function getTitle(): string
{
return $this->themeName;
}
/**
* Get theme footer
*
* @return string themeFooter
*/
public function getLongFooter(): string
{
return $this->themeFooter;
}
/**
* Get theme name
*
* @return string themeName
*/
public function getName(): string
{
return $this->themeName;
}
/**
* Returns the short name of the software containing HTML strings
* @return string title
*/
public function getHTMLName(): string
{
return $this->themeName;
}
/**
* Get slogan
*
* @return string slogan
*/
public function getSlogan(): string
{
return $this->slogan;
}
/**
* Get bae url
*
* @return string baseurl
*/
public function getBaseUrl(): string
{
return $this->baseUrl;
}
/**
* Returns the documentation URL
* @return string URL
*/
public function getDocBaseUrl(): string
{
return 'https://docs.eudat.eu/b2drop/';
}
}