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
f4885f6d
Commit
f4885f6d
authored
9 years ago
by
Thomas Müller
Browse files
Options
Downloads
Plain Diff
Merge pull request #19576 from owncloud/update-example-theme
Update example theme with App URLs and PHPDoc
parents
34951efe
ed2ed4be
Branches
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
themes/example/defaults.php
+81
-0
81 additions, 0 deletions
themes/example/defaults.php
with
81 additions
and
0 deletions
themes/example/defaults.php
+
81
−
0
View file @
f4885f6d
...
...
@@ -20,34 +20,106 @@
class
OC_Theme
{
/**
* Returns the base URL
* @return string URL
*/
public
function
getBaseUrl
()
{
return
'https://owncloud.org'
;
}
/**
* Returns the URL where the sync clients are listed
* @return string URL
*/
public
function
getSyncClientUrl
()
{
return
'https://owncloud.org/install'
;
}
/**
* Returns the URL to the App Store for the iOS Client
* @return string URL
*/
public
function
getiOSClientUrl
()
{
return
'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8'
;
}
/**
* Returns the AppId for the App Store for the iOS Client
* @return string AppId
*/
public
function
getiTunesAppId
()
{
return
'543672169'
;
}
/**
* Returns the URL to Google Play for the Android Client
* @return string URL
*/
public
function
getAndroidClientUrl
()
{
return
'https://play.google.com/store/apps/details?id=com.owncloud.android'
;
}
/**
* Returns the documentation URL
* @return string URL
*/
public
function
getDocBaseUrl
()
{
return
'https://doc.owncloud.org'
;
}
/**
* Returns the title
* @return string title
*/
public
function
getTitle
()
{
return
'Custom Cloud'
;
}
/**
* Returns the short name of the software
* @return string title
*/
public
function
getName
()
{
return
'Custom Cloud'
;
}
/**
* Returns the short name of the software containing HTML strings
* @return string title
*/
public
function
getHTMLName
()
{
return
'Custom Cloud'
;
}
/**
* Returns entity (e.g. company name) - used for footer, copyright
* @return string entity name
*/
public
function
getEntity
()
{
return
'Custom Cloud Co.'
;
}
/**
* Returns slogan
* @return string slogan
*/
public
function
getSlogan
()
{
return
'Your custom cloud, personalized for you!'
;
}
/**
* Returns logo claim
* @return string logo claim
*/
public
function
getLogoClaim
()
{
return
''
;
}
/**
* Returns short version of the footer
* @return string short footer
*/
public
function
getShortFooter
()
{
$footer
=
'© 2015 <a href="'
.
$this
->
getBaseUrl
()
.
'" target="_blank\">'
.
$this
->
getEntity
()
.
'</a>'
.
'<br/>'
.
$this
->
getSlogan
();
...
...
@@ -55,6 +127,10 @@ class OC_Theme {
return
$footer
;
}
/**
* Returns long version of the footer
* @return string long footer
*/
public
function
getLongFooter
()
{
$footer
=
'© 2015 <a href="'
.
$this
->
getBaseUrl
()
.
'" target="_blank\">'
.
$this
->
getEntity
()
.
'</a>'
.
'<br/>'
.
$this
->
getSlogan
();
...
...
@@ -66,6 +142,11 @@ class OC_Theme {
return
$this
->
getDocBaseUrl
()
.
'/server/8.0/go.php?to='
.
$key
;
}
/**
* Returns mail header color
* @return string
*/
public
function
getMailHeaderColor
()
{
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