本文整理汇总了PHP中Load::js方法的典型用法代码示例。如果您正苦于以下问题:PHP Load::js方法的具体用法?PHP Load::js怎么用?PHP Load::js使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Load
的用法示例。
在下文中一共展示了Load::js方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Главная страница - панель управления</title>
<link rel="stylesheet" type="text/css" href="templates/default/css/style.css">
<!-- подключаем jquery -->
<script type="text/javascript" src="../client/js/jquery/jquery-1.11.3.min.js"></script>
<!-- подключаем ядро -->
<?php
Load::js(SITE_ROOT . '/client/js', '../client/js/');
?>
<!-- подключаем скрипты шаблона -->
<?php
Load::js(ADMIN_ROOT . '/templates/' . SConfig::ADMIN_TEMPLATE . '/js', 'templates/' . SConfig::ADMIN_TEMPLATE . '/js/');
?>
<!-- Подключаем редактор -->
<script type="text/javascript" src="../client/js/tinymce/tinymce.min.js"></script>
<!-- подключаем плагины JQuery -->
<?php
foreach (FileSys::getDirs(SITE_ROOT . '/client/js/jquery_plugins') as $plugin) {
?>
<script type="text/javascript" src="../client/js/jquery_plugins/<?php
echo $plugin;
?>
/<?php
echo $plugin;
?>
.js"></script>
<?php
示例2:
</div>
</div>
<div class="row uk-margin-top">
<div class="col-sm-10 col-sm-offset-1">
<div class="btn-group btn-group-justified uk-margin-top">
<div class="btn-group">
<button type="submit" form="matiere" class="btn btn-lg btn-success">Enregistrer</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="<?php
echo Load::js("edition");
?>
"></script>
<?php
} else {
?>
<div class="row">
<div class="alert alert-info">Oops, le cours n'existe pas ou n'existe plus.</div>
<div class="btn-group btn-group-justified">
<div class="btn-group">
<a href="/Users/Cours/Create" class="btn btn-default">Ajouter un cours</a>
</div>
</div>
示例3:
echo Load::js("uikit.min");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("sticky.min");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("notify.min");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("datepicker.min");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("timepicker.min");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("dropzone");
?>
"></script>
<script type="text/javascript" src="<?php
echo Load::js("site");
?>
"></script>
<title><?php
echo $title;
?>
</title>