Example #1
0
<?php

/** @var $l OC_L10N */
vendor_script('jsTimezoneDetect/jstz');
script('core', ['visitortimezone', 'lostpassword', 'login']);
?>

<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
<form method="post" name="login">
	<fieldset>
	<?php 
if (!empty($_['redirect_url'])) {
    print_unescaped('<input type="hidden" name="redirect_url" value="' . OC_Util::sanitizeHTML($_['redirect_url']) . '">');
}
?>
		<?php 
if (isset($_['apacheauthfailed']) && $_['apacheauthfailed']) {
    ?>
			<div class="warning">
				<?php 
    p($l->t('Server side authentication failed!'));
    ?>
<br>
				<small><?php 
    p($l->t('Please contact your administrator.'));
    ?>
</small>
			</div>
		<?php 
}
?>
Example #2
0
<?php

/**
 * Copyright (c) 2011, Robin Appelman <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or later.
 * See the COPYING-README file.
 */
/**
 * @var array $_
 * @var \OCP\IL10N $l
 * @var OC_Defaults $theme
 */
style('settings', 'settings');
script('settings', ['settings', 'admin', 'log']);
script('core', ['multiselect', 'setupchecks']);
vendor_script('select2/select2');
vendor_style('select2/select2');
$levels = ['Debug', 'Info', 'Warning', 'Error', 'Fatal'];
$levelLabels = [$l->t('Everything (fatal issues, errors, warnings, info, debug)'), $l->t('Info, warnings, errors and fatal issues'), $l->t('Warnings, errors and fatal issues'), $l->t('Errors and fatal issues'), $l->t('Fatal issues only')];
$mail_smtpauthtype = ['' => $l->t('None'), 'LOGIN' => $l->t('Login'), 'PLAIN' => $l->t('Plain'), 'NTLM' => $l->t('NT LAN Manager')];
$mail_smtpsecure = ['' => $l->t('None'), 'ssl' => $l->t('SSL'), 'tls' => $l->t('TLS')];
$mail_smtpmode = ['php', 'smtp'];
if ($_['sendmail_is_available']) {
    $mail_smtpmode[] = 'sendmail';
}
if ($_['mail_smtpmode'] == 'qmail') {
    $mail_smtpmode[] = 'qmail';
}
?>

<div id="app-navigation">
Example #3
0
	'groups',
	'jquery.ocaddnew',
	'otherbackendconfig',
));

style('contacts', array(
	'multi-select',
	'jquery.ocaddnew',
	'contacts',
	'jquery.Jcrop.min',
));

vendor_script('contacts', array(
	'ui-multiselect/src/jquery.multiselect',
	'blueimp-md5/js/md5.min',
	'jcrop/js/jquery.Jcrop.min',
	'blueimp-file-upload/js/jquery.fileupload',
	'combobox'
));

vendor_style('contacts', array(
	'ui-multiselect/jquery.multiselect',
));

?>
<div id="app">
	<div id="app-navigation" class="loading">
		<ul id="grouplist" class="hidden-on-load">
			<li class="special">
				<a role="button" class="add-contact">
				  <?php p($l->t('New contact')); ?>
Example #4
0
<?php

style('settings', 'settings');
vendor_style('core', ['select2/select2']);
vendor_script('core', ['handlebars/handlebars', 'select2/select2']);
script('settings', ['settings', 'apps']);
/** @var array $_ */
?>
<script id="categories-template" type="text/x-handlebars-template">
{{#each this}}
	<li id="app-category-{{id}}" data-category-id="{{id}}" tabindex="0">
		<a>{{displayName}}</a>
	</li>
{{/each}}

<?php 
if (OC_Config::getValue('appstoreenabled', true) === true) {
    ?>
	<li>
		<a class="app-external" target="_blank" href="https://apps.owncloud.com/?xsortmode=high"><?php 
    p($l->t('More apps'));
    ?>
 …</a>
	</li>
	<li>
		<a class="app-external" target="_blank" href="https://owncloud.org/dev"><?php 
    p($l->t('Developer documentation'));
    ?>
 …</a>
	</li>
<?php 
Example #5
0
<?php

\OCP\Util::addScript('core', 'placeholder');
if (version_compare(implode('.', \OCP\Util::getVersion()), '7.8', '<=')) {
    \OCP\Util::addScript('3rdparty', 'md5/md5.min');
} else {
    vendor_script('blueimp-md5/js/md5');
}
\OCP\Util::addScript('music', 'vendor/underscore/underscore-min');
\OCP\Util::addScript('music', 'vendor/angular/angular.min');
\OCP\Util::addScript('music', 'vendor/angular-route/angular-route.min');
\OCP\Util::addScript('music', 'vendor/soundmanager/script/soundmanager2-nodebug-jsmin');
\OCP\Util::addScript('music', 'vendor/restangular/dist/restangular.min');
\OCP\Util::addScript('music', 'vendor/angular-gettext/dist/angular-gettext.min');
\OCP\Util::addScript('music', 'vendor/aurora/aurora');
\OCP\Util::addScript('music', 'vendor/aurora/flac');
\OCP\Util::addScript('music', 'vendor/aurora/mp3');
\OCP\Util::addScript('music', 'public/app');
\OCP\Util::addStyle('music', 'style-controls');
\OCP\Util::addStyle('music', 'style-sidebar');
\OCP\Util::addStyle('music', 'style');
\OCP\Util::addStyle('music', 'mobile');
\OCP\Util::addStyle('music', 'tablet');
// stylesheets for different OC versions
$version = \OCP\Util::getVersion();
// owncloud 6
if ($version[0] === 6 || $version[0] === 5 && $version[1] >= 80) {
    \OCP\Util::addStyle('music', 'stable6-fixes');
}
?>
Example #6
0
<?php

vendor_script('user_ldap', 'ui-multiselect/src/jquery.multiselect');
vendor_style('user_ldap', 'ui-multiselect/jquery.multiselect');
script('user_ldap', ['wizard/controller', 'wizard/configModel', 'wizard/view', 'wizard/wizardObject', 'wizard/wizardTabGeneric', 'wizard/wizardTabElementary', 'wizard/wizardTabAbstractFilter', 'wizard/wizardTabUserFilter', 'wizard/wizardTabLoginFilter', 'wizard/wizardTabGroupFilter', 'wizard/wizardTabAdvanced', 'wizard/wizardTabExpert', 'wizard/wizardDetectorQueue', 'wizard/wizardDetectorGeneric', 'wizard/wizardDetectorPort', 'wizard/wizardDetectorBaseDN', 'wizard/wizardDetectorFeatureAbstract', 'wizard/wizardDetectorUserObjectClasses', 'wizard/wizardDetectorGroupObjectClasses', 'wizard/wizardDetectorGroupsForUsers', 'wizard/wizardDetectorGroupsForGroups', 'wizard/wizardDetectorSimpleRequestAbstract', 'wizard/wizardDetectorFilterUser', 'wizard/wizardDetectorFilterLogin', 'wizard/wizardDetectorFilterGroup', 'wizard/wizardDetectorUserCount', 'wizard/wizardDetectorGroupCount', 'wizard/wizardDetectorEmailAttribute', 'wizard/wizardDetectorUserDisplayNameAttribute', 'wizard/wizardDetectorUserGroupAssociation', 'wizard/wizardDetectorAvailableAttributes', 'wizard/wizardDetectorTestAbstract', 'wizard/wizardDetectorTestLoginName', 'wizard/wizardDetectorTestBaseDN', 'wizard/wizardDetectorTestConfiguration', 'wizard/wizardDetectorClearUserMappings', 'wizard/wizardDetectorClearGroupMappings', 'wizard/wizardFilterOnType', 'wizard/wizardFilterOnTypeFactory', 'wizard/wizard']);
style('user_ldap', 'settings');
?>

<form id="ldap" class="section" action="#" method="post">
	<h2><?php 
p($l->t('LDAP'));
?>
</h2>

	<div id="ldapSettings">
	<ul>
		<?php 
foreach ($_['toc'] as $id => $title) {
    ?>
			<li id="<?php 
    p($id);
    ?>
"><a href="<?php 
    p($id);
    ?>
"><?php 
    p($title);
    ?>
</a></li>
		<?php 
}
Example #7
0
<?php

include __DIR__ . '/../lib/compat.php';
// Vendor client-side code
vendor_script('chat', 'all.min');
vendor_style('chat', array('emojione/assets/sprites/emojione.sprites', 'emojione/assets/css/emojione.min'));
if (defined('DEBUG') && DEBUG) {
    vendor_script('chat', 'angular-mocks/angular-mocks');
}
// Chat app client-side code
script('chat', 'app.min');
style('chat', 'main.min');
?>

<div
	ng-app="chat"
	ng-click="view.hide('invite', $event, ['invite-no-hide', 'invite-button']);view.hide('files', $event, ['files-no-hide', 'file-element', 'files-button']);view.hide('emojiContainer', $event, ['emoji-no-hide']);"
	ng-controller="ConvController"
	id="app"
	>
	<!-- Variables which are needed to boot up the Chat app in JS-->
	<div style="display:none;" id="initvar">
		<?php 
echo $_['initvar'];
?>
	</div>
	<div
		id="app-navigation"
		ng-cloak
		>
		<?php 
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the license, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library.
* If not, see <http://www.gnu.org/licenses/>.
*
*/
vendor_style('imprint', 'chosen.jquery.min');
vendor_script('imprint', 'chosen.jquery.min');
?>

<?php 
/**
 * @file templates/tmpl_settings.php
 * Dialog to change app settings, to be included in the clouds settings page.
 * @access public
 * @author Christian Reiner
 */
?>


<!-- settings of app 'imprint' -->
<div class="section" id="imprint">
	<img src="<?php 
<?php

script('popularitycontestserver', 'script');
vendor_script('popularitycontestserver', 'Chart');
style('popularitycontestserver', 'style');
?>

<div id="app">
	<div id="app-navigation">
		<?php 
print_unescaped($this->inc('part.navigation'));
?>
		<?php 
print_unescaped($this->inc('part.settings'));
?>
	</div>

	<div id="app-content">
		<div id="app-content-wrapper">
			<?php 
print_unescaped($this->inc('part.content'));
?>
		</div>
	</div>
</div>