当前位置: 首页>>代码示例>>PHP>>正文


PHP vendor_script函数代码示例

本文整理汇总了PHP中vendor_script函数的典型用法代码示例。如果您正苦于以下问题:PHP vendor_script函数的具体用法?PHP vendor_script怎么用?PHP vendor_script使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了vendor_script函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: vendor_script

<?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 
}
?>
开发者ID:0x17de,项目名称:core,代码行数:31,代码来源:login.php

示例2: style

<?php

/**
 * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
 * 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">
开发者ID:henkRW,项目名称:core,代码行数:31,代码来源:admin.php

示例3: style

	'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')); ?>
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:contacts.php

示例4: style

<?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 
开发者ID:adolfo2103,项目名称:hcloudfilem,代码行数:31,代码来源:apps.php

示例5: vendor_script

<?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');
}
?>
开发者ID:Graf-Zahl,项目名称:music,代码行数:30,代码来源:main.php

示例6: vendor_script

<?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 
}
开发者ID:farukuzun,项目名称:core-1,代码行数:31,代码来源:settings.php

示例7: vendor_script

<?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 
开发者ID:arun-TK,项目名称:chat,代码行数:31,代码来源:main.php

示例8: vendor_style

* 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 
开发者ID:DOM-Digital-Online-Media,项目名称:apps,代码行数:31,代码来源:tmpl_settings.php

示例9: script

<?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>
开发者ID:schiessle,项目名称:popularitycontestserver,代码行数:25,代码来源:main.php


注:本文中的vendor_script函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。