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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
64203331
Commit
64203331
authored
9 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
[example theme] make it easier for non PHP people to understand what to change
parent
0ef7b84d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
themes/example/defaults.php
+8
-30
8 additions, 30 deletions
themes/example/defaults.php
with
8 additions
and
30 deletions
themes/example/defaults.php
+
8
−
30
View file @
64203331
...
@@ -20,54 +20,32 @@
...
@@ -20,54 +20,32 @@
class
OC_Theme
{
class
OC_Theme
{
private
$themeEntity
;
private
$themeName
;
private
$themeTitle
;
private
$themeBaseUrl
;
private
$themeDocBaseUrl
;
private
$themeSyncClientUrl
;
private
$themeSlogan
;
private
$themeMailHeaderColor
;
/* put your custom text in these variables */
function
__construct
()
{
$this
->
themeEntity
=
'Custom Cloud Co.'
;
$this
->
themeName
=
'Custom Cloud'
;
$this
->
themeTitle
=
'Custom Cloud'
;
$this
->
themeBaseUrl
=
'https://owncloud.org'
;
$this
->
themeDocBaseUrl
=
'https://doc.owncloud.org'
;
$this
->
themeSyncClientUrl
=
'https://owncloud.org/install'
;
$this
->
themeSlogan
=
'Your custom cloud, personalized for you!'
;
$this
->
themeMailHeaderColor
=
'#745bca'
;
}
/* nothing after this needs to be adjusted */
public
function
getBaseUrl
()
{
public
function
getBaseUrl
()
{
return
$this
->
themeBaseUrl
;
return
'https://owncloud.org'
;
}
}
public
function
getSyncClientUrl
()
{
public
function
getSyncClientUrl
()
{
return
$this
->
themeSyncClientUrl
;
return
'https://owncloud.org/install'
;
}
}
public
function
getDocBaseUrl
()
{
public
function
getDocBaseUrl
()
{
return
$this
->
themeDocBaseUrl
;
return
'https://doc.owncloud.org'
;
}
}
public
function
getTitle
()
{
public
function
getTitle
()
{
return
$this
->
themeTitle
;
return
'Custom Cloud'
;
}
}
public
function
getName
()
{
public
function
getName
()
{
return
$this
->
themeName
;
return
'Custom Cloud'
;
}
}
public
function
getEntity
()
{
public
function
getEntity
()
{
return
$this
->
themeEntity
;
return
'Custom Cloud Co.'
;
}
}
public
function
getSlogan
()
{
public
function
getSlogan
()
{
return
$this
->
themeSlogan
;
return
'Your custom cloud, personalized for you!'
;
}
}
public
function
getShortFooter
()
{
public
function
getShortFooter
()
{
...
@@ -89,7 +67,7 @@ class OC_Theme {
...
@@ -89,7 +67,7 @@ class OC_Theme {
}
}
public
function
getMailHeaderColor
()
{
public
function
getMailHeaderColor
()
{
return
$this
->
themeMailHeaderColor
;
return
'#745bca'
;
}
}
}
}
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