<div id="notification" style="display: none;"></div>
</div>
+<?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
<input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
+
+ <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+
<head>
<title>
<?php p(OC_Defaults::getName()); ?>
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
+
+ <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
<title>
<?php p(OC_Defaults::getName()); ?>
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
+
+ <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+
<head data-user="<?php p($_['user_uid']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
<title>
<?php p(!empty($_['application'])?$_['application'].' | ':'');
class OC_Defaults {
- private static $defaultEntity = "ownCloud";
- private static $defaultName = "ownCloud";
- private static $defaultBaseUrl = "http://owncloud.org";
- private static $defaultSyncClientUrl = " http://owncloud.org/sync-clients/";
- private static $defaultDocBaseUrl = "http://doc.owncloud.org";
- private static $defaultSlogan = "web services under your control";
- private static $defaultLogoClaim = "";
+ private static $defaultEntity;
+ private static $defaultName;
+ private static $defaultBaseUrl;
+ private static $defaultSyncClientUrl;
+ private static $defaultDocBaseUrl;
+ private static $defaultSlogan;
+ private static $defaultLogoClaim;
+
+ public static function init() {
+ $l = OC_L10N::get('core');
+
+ self::$defaultEntity = "ownCloud";
+ self::$defaultName = "ownCloud";
+ self::$defaultBaseUrl = "http://owncloud.org";
+ self::$defaultSyncClientUrl = " http://owncloud.org/sync-clients/";
+ self::$defaultDocBaseUrl = "http://doc.owncloud.org";
+ self::$defaultSlogan = $l->t("web services under your control");
+ self::$defaultLogoClaim = "";
+
+ if (class_exists("OC_Theme")) {
+ OC_Theme::init();
+ }
+ }
private static function themeExist($method) {
if (OC_Util::getTheme() !== '' && method_exists('OC_Theme', $method)) {
}
public static function getSlogan() {
- $l = OC_L10N::get('core');
if (self::themeExist('getSlogan')) {
return OC_Theme::getSlogan();
} else {
- return $l->t(self::$defaultSlogan);
+ return self::$defaultSlogan;
}
}
*/
public static function getfooter() {
+ OC_Defaults::init();
+
$txt="\n--\n";
$txt.=OC_Defaults::getName() . "\n";
$txt.=OC_Defaults::getSlogan() . "\n";
OC_Util::checkLoggedIn();
OC_App::loadApps();
+OC_Defaults::init(); // initialize themable default strings and urls
+
// Highlight navigation entry
OC_Util::addScript( 'settings', 'personal' );
OC_Util::addStyle( 'settings', 'settings' );
* See the COPYING-README file.
*/
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
+
+OC_Defaults::init(); // initialize themable default strings and urls
?>
<?php
* See the COPYING-README file.
*/?>
+<?php OC_Defaults::init(); // initialize themable default strings and urls ?>
<div class="clientsbox">
<h2><?php p($l->t('Get the apps to sync your files'));?></h2>