Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
7f47cc06
Commit
7f47cc06
authored
11 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
fix defaults.php doc
parent
b7ddc786
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/defaults.php
+44
-6
44 additions, 6 deletions
lib/private/defaults.php
with
44 additions
and
6 deletions
lib/private/defaults.php
+
44
−
6
View file @
7f47cc06
<?php
/**
* Default strings and values which differ between the enterprise and the
* community edition. Use the get methods to always get the right strings.
*/
if
(
file_exists
(
OC
::
$SERVERROOT
.
'/themes/'
.
OC_Util
::
getTheme
()
.
'/defaults.php'
))
{
require_once
'themes/'
.
OC_Util
::
getTheme
()
.
'/defaults.php'
;
}
/**
* Default strings and values which differ between the enterprise and the
* community edition. Use the get methods to always get the right strings.
*/
class
OC_Defaults
{
private
$theme
;
...
...
@@ -48,6 +46,10 @@ class OC_Defaults {
return
false
;
}
/**
* Returns the base URL
* @return string URL
*/
public
function
getBaseUrl
()
{
if
(
$this
->
themeExist
(
'getBaseUrl'
))
{
return
$this
->
theme
->
getBaseUrl
();
...
...
@@ -56,6 +58,10 @@ class OC_Defaults {
}
}
/**
* Returns the URL where the sync clients are listed
* @return string URL
*/
public
function
getSyncClientUrl
()
{
if
(
$this
->
themeExist
(
'getSyncClientUrl'
))
{
return
$this
->
theme
->
getSyncClientUrl
();
...
...
@@ -64,6 +70,10 @@ class OC_Defaults {
}
}
/**
* Returns the documentation URL
* @return string URL
*/
public
function
getDocBaseUrl
()
{
if
(
$this
->
themeExist
(
'getDocBaseUrl'
))
{
return
$this
->
theme
->
getDocBaseUrl
();
...
...
@@ -72,6 +82,10 @@ class OC_Defaults {
}
}
/**
* Returns the title
* @return string title
*/
public
function
getTitle
()
{
if
(
$this
->
themeExist
(
'getTitle'
))
{
return
$this
->
theme
->
getTitle
();
...
...
@@ -80,6 +94,10 @@ class OC_Defaults {
}
}
/**
* Returns the short name of the software
* @return string title
*/
public
function
getName
()
{
if
(
$this
->
themeExist
(
'getName'
))
{
return
$this
->
theme
->
getName
();
...
...
@@ -88,6 +106,10 @@ class OC_Defaults {
}
}
/**
* Returns entity (e.g. company name) - used for footer, copyright
* @return string entity name
*/
public
function
getEntity
()
{
if
(
$this
->
themeExist
(
'getEntity'
))
{
return
$this
->
theme
->
getEntity
();
...
...
@@ -96,6 +118,10 @@ class OC_Defaults {
}
}
/**
* Returns slogan
* @return string slogan
*/
public
function
getSlogan
()
{
if
(
$this
->
themeExist
(
'getSlogan'
))
{
return
$this
->
theme
->
getSlogan
();
...
...
@@ -104,6 +130,10 @@ class OC_Defaults {
}
}
/**
* Returns logo claim
* @return string logo claim
*/
public
function
getLogoClaim
()
{
if
(
$this
->
themeExist
(
'getLogoClaim'
))
{
return
$this
->
theme
->
getLogoClaim
();
...
...
@@ -112,6 +142,10 @@ class OC_Defaults {
}
}
/**
* Returns short version of the footer
* @return string short footer
*/
public
function
getShortFooter
()
{
if
(
$this
->
themeExist
(
'getShortFooter'
))
{
$footer
=
$this
->
theme
->
getShortFooter
();
...
...
@@ -123,6 +157,10 @@ class OC_Defaults {
return
$footer
;
}
/**
* Returns long version of the footer
* @return string long footer
*/
public
function
getLongFooter
()
{
if
(
$this
->
themeExist
(
'getLongFooter'
))
{
$footer
=
$this
->
theme
->
getLongFooter
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment