From 0a16d25724d7af29282556cf04a343786a64c466 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Wed, 6 Feb 2013 15:20:43 +0100 Subject: [PATCH] make it possible to modify the links to the clients --- config/config.sample.php | 6 +++++- settings/personal.php | 7 +++++++ settings/templates/personal.php | 6 +++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/config/config.sample.php b/config/config.sample.php index 9ac39c439d..cfef3d5117 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -161,5 +161,9 @@ $CONFIG = array( 'class'=>'OC_User_IMAP', 'arguments'=>array('{imap.gmail.com:993/imap/ssl}INBOX') ) -) +), +//links to custom clients +'customclient_desktop' => '', //http://owncloud.org/sync-clients/ +'customclient_android' => '', //https://play.google.com/store/apps/details?id=com.owncloud.android +'customclient_ios' => '' //https://itunes.apple.com/us/app/owncloud/id543672169?mt=8 ); diff --git a/settings/personal.php b/settings/personal.php index ac2c4704ed..c2df8db1cc 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -39,12 +39,19 @@ foreach($languageCodes as $lang) { $languages[]=array('code'=>$lang, 'name'=>$lang); } } +//links to clients +$clients = array( + 'desktop' => OC_Config::getValue('customclient_desktop', 'http://owncloud.org/sync-clients/'), + 'android' => OC_Config::getValue('customclient_android', 'https://play.google.com/store/apps/details?id=com.owncloud.android'), + 'ios' => OC_Config::getValue('customclient_ios', 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8') +); // Return template $tmpl = new OC_Template( 'settings', 'personal', 'user'); $tmpl->assign('usage', OC_Helper::humanFileSize($storageInfo['used'])); $tmpl->assign('total_space', OC_Helper::humanFileSize($storageInfo['total'])); $tmpl->assign('usage_relative', $storageInfo['relative']); +$tmpl->assign('clients', $clients); $tmpl->assign('email', $email); $tmpl->assign('languages', $languages); $tmpl->assign('passwordChangeSupported', OC_User::canUserChangePassword(OC_User::getUser())); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 0f195d86d3..398e65c008 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -10,9 +10,9 @@
t('Clients');?> - t('Download Desktop Clients');?> - t('Download Android Client');?> - t('Download iOS Client');?> + t('Download Desktop Clients');?> + t('Download Android Client');?> + t('Download iOS Client');?>