本文整理汇总了PHP中js_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP js_tag函数的具体用法?PHP js_tag怎么用?PHP js_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了js_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: base_url
<head>
<meta charset="UTF-8">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<title><?php
echo $template['title'];
?>
</title>
<link rel='shortcut icon' type='image/x-icon' href='<?php
echo base_url('themes/parent/images/favicon.ico');
?>
'/>
<?php
echo css_tag(array_merge(array($theme_path . 'bootstrap/css/bootstrap.min.css', $theme_path . 'dist/css/AdminLTE.min.css', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', $theme_path . 'plugins/iCheck/square/blue.css'), $stylesheets));
echo js_tag(array($theme_path . 'plugins/jQuery/jQuery-2.1.4.min.js', $theme_path . 'bootstrap/js/bootstrap.min.js', $theme_path . 'plugins/iCheck/icheck.min.js'));
?>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
示例2: array
<?php
$titleArray = array(__('Princeton'), __('Transcribe Page'));
$head = array('title' => html_escape(implode(' | ', $titleArray)));
echo head($head);
if (get_option('scripto_image_viewer') == 'openseadragon') {
// echo js_tag('ol');
echo js_tag('openseadragon.min');
// jQuery is enabled by default in Omeka and in most themes.
// echo js_tag('jquery', 'javascripts/vendor');
}
?>
<script type="text/javascript">
jQuery(document).ready(function() {
// Handle edit transcription page.
//jQuery("#wrap").attr('class', 'container-fluid');
jQuery('#scripto-transcription-page-edit').click(function() {
jQuery('#scripto-transcription-page-edit').
prop('disabled', true).
text('<?php
echo __('Editing transcription...');
?>
');
jQuery.post(
<?php
echo js_escape(url('scripto/index/page-action'));
?>
,
{
示例3: js_tag
<?php
if ($segment_start) {
echo js_tag('jwplayer', 'javascripts/jwplayer');
echo js_tag('pfUtils', 'javascripts');
echo js_tag('jquery', 'javascripts/jwplayer');
echo js_tag('jquery-ui-1.10.3.custom', 'javascripts/jwplayer');
?>
<div id="vid_player" style="width:100%; margin:0 auto;">
<div id="jwplayer_plugin" style="margin:0 auto;"><?php
echo __('Player failed to load...');
?>
</div>
</div>
<script type="text/javascript">
var is_play = true;
var startTime= calculateTime(<?php
echo json_encode($segment_start);
?>
);
var endTime = calculateTime(<?php
echo json_encode($segment_end);
?>
);
jwplayer("jwplayer_plugin").setup({
playlist: [{
sources: <?php
echo $sources;
?>
}],
示例4: js_tag
if (isset($useSidebar) && $useSidebar) {
?>
<div class="three columns omega">
<div id="save" class="panel">
<input type="submit" class="submit big green button" name="submit_search" id="submit_search_advanced" value="<?php
echo $buttonText;
?>
">
</div>
</div>
<?php
} else {
?>
<input type="submit" class="submit big green button" name="submit_search" id="submit_search_advanced" value="<?php
echo $buttonText;
?>
">
<?php
}
?>
</form>
<?php
echo js_tag('items-search');
?>
<script type="text/javascript">
jQuery(document).ready(function () {
Omeka.Search.activateSearchButtons();
});
</script>
示例5: shortcodeOpenLayersZoom
/**
* Shortcode to display viewer.
*
* @param array $args
* @param Omeka_View $view
* @return string
*/
public static function shortcodeOpenLayersZoom($args, $view)
{
// Check required arguments
$recordType = isset($args['record_type']) ? $args['record_type'] : 'Item';
$recordType = ucfirst(strtolower($recordType));
if (!in_array($recordType, array('Item', 'File'))) {
return;
}
// Get the specified record.
if (isset($args['record_id'])) {
$recordId = (int) $args['record_id'];
$record = get_record_by_id($recordType, $recordId);
} else {
$record = get_current_record(strtolower($recordType));
}
if (empty($record)) {
return;
}
$html = $view->openLayersZoom()->zoom($record);
if ($html) {
$html = '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >' . js_tag('ol') . js_tag('OpenLayersZoom') . $html;
return $html;
}
}
示例6: base_url
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0 " />
<meta property="og:image" content="http://localhost/ims_new1/uploads/album_item/Sample_Picture1s/Chrysanthemum.jpg" />
<link rel="image_src" href="http://localhost/ims_new1/uploads/album_item/Sample_Picture1s/Chrysanthemum.jpg" />
<link rel='shortcut icon' type='image/x-icon' href='<?php
echo base_url('themes/parent/images/favicon.ico');
?>
'/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
echo css_tag(array_merge(array($theme_path . 'css/style.css', $theme_path . 'css/curriculum_style.css', $theme_path . 'plugins/jqueryui/jquery-ui-1.10.3.custom.min.css', $theme_path . 'plugins/colorbox-master/example1/colorbox.css', 'themes/backend/plugins/jgrowl/jquery.jgrowl.css', 'modules/parent/feedback/css/feedback_style.css', 'themes/backend/plugins/cytoscape/cytoscape.js-panzoom.css', 'themes/backend/plugins/qtip/jquery.qtip.css'), $stylesheets));
echo js_tag(array_merge(array($theme_path . 'js/jquery.js', $theme_path . 'js/custom-ims.js', $theme_path . 'js/jquery.address-1.5.min.js', $theme_path . 'js/links.js', 'themes/backend/plugins/jgrowl/jquery.jgrowl.min.js', 'themes/backend/plugins/jgrowl/jquery.jgrowl.min.js', $theme_path . 'plugins/jqueryui/jquery-ui-1.10.3.custom.min.js', $theme_path . 'plugins/colorbox-master/jquery.colorbox-min.js', $theme_path . 'js/jquery.viewport.js', $theme_path . 'js/lazyload.min.js', $theme_path . 'js/mustache.js', $theme_path . 'js/googlejspi.js', 'themes/backend/plugins/qtip/jquery.qtip.js', 'themes/backend/plugins/cytoscape/cytoscape.min.js', 'themes/backend/plugins/cytoscape/cytoscape.js-panzoom.js', 'themes/backend/plugins/cytoscape/cytoscape.js-qtip.js'), $javascripts));
?>
<script type="text/javascript">
google.load('visualization', '1.0', {'packages':['corechart']});
var theme_path = '<?php
echo $theme_path;
?>
';
var baseUrl = '<?php
echo base_url();
?>
';
var siteUrl = '<?php
示例7: build_observer
function build_observer($class, $id, $options = array())
{
if (isset($options['update']) && !isset($options['with'])) {
$options['with'] = 'value';
}
$callback = remote_function($options);
$js = "new {$class}('{$id}', ";
if (isset($options['frequency'])) {
$js .= $options['frequency'] . ", ";
}
$js .= "function(element, value) {";
$js .= "{$callback}})";
return js_tag($js);
}
示例8: _displaySelfReferences
/**
* Display list of reverse references (1st level only)
*/
protected function _displaySelfReferences($args)
{
$referenceElements = SELF::_retrieveReferenceElements();
if (!$referenceElements) {
return;
}
$referenceElementsStr = implode(",", $referenceElements);
$item = $args['item'];
$itemId = $item->id;
$db = get_db();
$sql = "\n SELECT DISTINCT et.record_id, el.item_type_id, it.name\n FROM `{$db->ElementTexts}` et\n LEFT JOIN `{$db->Items}` el ON et.record_id = el.id\n LEFT JOIN `{$db->ItemTypes}` it ON el.item_type_id = it.id\n WHERE et.element_id in ({$referenceElementsStr})\n AND et.text = '{$itemId}'\n ORDER BY it.name ASC, el.modified DESC\n ";
$referencers = $db->fetchAll($sql);
// echo "<pre>$sql - ".count($referencers)."\n" . print_r($referencers,true) . "</pre>";
$itemTypes = array();
foreach ($referencers as $referencer) {
$typeName = @$referencer["name"] ? $referencer["name"] : __("[n/a]");
$itemTypes[$referencer["item_type_id"]] = $typeName;
}
if ($referencers) {
echo "<h2>" . __("Items Referencing this Item") . "</h2>\n";
$refItemTypeShowHide = __("Show / Hide");
$refItemTypeShowHideAll = __("Show / Hide All");
?>
<script type='text/javascript'>
var refItemTypeShowHide = <?php
echo json_encode($refItemTypeShowHide);
?>
;
var refItemTypeShowHideAll = <?php
echo json_encode($refItemTypeShowHideAll);
?>
;
</script>
<?php
echo js_tag('item-references-item-type-toggle');
echo "<table id='refItemTypeTable'>\n";
$lastType = -1;
foreach ($referencers as $referencer) {
if ($referencer["item_type_id"] != $lastType) {
$lastType = $referencer["item_type_id"];
echo "<tr class='refItemTypeHead' data-item-type='{$lastType}'>" . "<th colspan='3'>" . $itemTypes[$lastType] . "</th></tr>\n";
}
$referencerId = $referencer["record_id"];
$referencerUrl = url('items/show/' . $referencerId);
$title = $details = "";
if ($data = SELF::getDataForId($referencerId)) {
$title = $data["title"];
$details = $data["details"];
// echo "<pre>" . print_r($data,true) . "</pre>";
}
echo "<tr class='refItemTypeRow refItemType_" . $lastType . "'>";
echo "<td><a href='" . $referencerUrl . "'>#{$referencerId}</a></td>";
echo "<td><a href='" . $referencerUrl . "'>{$title}</a></td>";
echo "<td>" . (!$details ? "" : "<span class='itemRefDetailsLink'>" . __("Details") . "</span>" . "<div class='itemRefDetailsText'>{$details}</div>") . "</td>";
echo "</tr>\n";
}
echo "</table>\n";
}
}
示例9: array
<?php
$titleArray = array(__('Scripto'), __('Transcribe Page'));
queue_css_file('scripto-transcribe');
$head = array('title' => html_escape(implode(' | ', $titleArray)));
echo head($head);
if (get_option('scripto_image_viewer') == 'openlayers') {
echo '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >';
echo js_tag('ol');
}
?>
<script type="text/javascript">
jQuery(document).ready(function() {
// Handle edit transcription page.
jQuery('#scripto-transcription-page-edit').click(function() {
jQuery('#scripto-transcription-page-edit').
prop('disabled', true).
text('<?php
echo __('Editing transcription...');
?>
');
jQuery.post(
<?php
echo js_escape(url('scripto/index/page-action'));
?>
,
{
page_action: 'edit',
page: 'transcription',
item_id: <?php
示例10: base_url
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<!-- iOS webapp icons -->
<link rel="apple-touch-icon" href="touch-icon-iphone.html" />
<link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.html" />
<link rel="apple-touch-icon" sizes="114x114" href="touch-icon-retina.html" />
<link rel='shortcut icon' type='image/x-icon' href='<?php
echo base_url('themes/parent/images/favicon.ico');
?>
'/>
<?php
echo css_tag(array_merge(array($theme_path . 'css/reset.css', $theme_path . 'css/fluid.css', $theme_path . 'css/dandelion.theme.css', $theme_path . 'css/dandelion.css', $theme_path . 'jui/css/jquery.ui.all.css', $theme_path . 'plugins/fullcalendar/fullcalendar.css', $theme_path . 'plugins/fullcalendar/fullcalendar.print.css', $theme_path . 'plugins/colorbox-master/example1/colorbox.css', $theme_path . 'plugins/tipsy/tipsy.css', $theme_path . 'plugins/jgrowl/jquery.jgrowl.css', $theme_path . 'js/dropzone/basic.css', $theme_path . 'js/dropzone/dropzone.css', $theme_path . 'css/jquery.tagsinput.css'), $stylesheets));
echo js_tag(array_merge(array($theme_path . 'js/jquery-1.7.2.min.js', $theme_path . 'js/jquery.address-1.5.min.js', $theme_path . 'jui/js/jquery-ui-1.8.20.min.js', $theme_path . 'jui/js/jquery.ui.timepicker.min.js', $theme_path . 'jui/js/jquery.ui.touch-punch.min.js', $theme_path . 'js/jquery.fileinput.js', $theme_path . 'js/jquery.placeholder.js', $theme_path . 'js/jquery.mousewheel.min.js', $theme_path . 'js/jquery.tinyscrollbar.min.js', $theme_path . 'plugins/validate/jquery.validate.min.js', $theme_path . 'plugins/tipsy/jquery.tipsy-min.js', $theme_path . 'js/jquery.metadata.js', $theme_path . 'js/core/plugins/dandelion.circularstat.min.js', $theme_path . 'js/core/plugins/dandelion.wizard.min.js', $theme_path . 'plugins/fullcalendar/fullcalendar.min.js', $theme_path . 'plugins/fullcalendar/gcal.js', $theme_path . 'plugins/jgrowl/jquery.jgrowl.min.js', $theme_path . 'js/jquery.debouncedresize.js', $theme_path . 'js/core/dandelion.core.js', $theme_path . 'js/core/dandelion.customizer.js', $theme_path . 'js/links.js', $theme_path . 'js/mustache.js', $theme_path . 'js/general.js', $theme_path . 'js/dropzone/dropzone.js', $theme_path . 'js/jquery.tagsinput.js', $theme_path . 'plugins/colorbox-master/jquery.colorbox-min.js', $theme_path . 'js/googlejspi.js', $theme_path . 'plugins/datatables/jquery.dataTables.min.js'), $javascripts));
?>
<!--<base href="<?php
echo base_url();
?>
">[if lte IE 6]></base><![endif]-->
<!--[if IE]>
<style>
#loader {
background:transparent;
}
</style>
<![endif]-->
示例11: array
<?php
$titleArray = array(__('Scripto'), __('Transcribe Page'));
$head = array('title' => html_escape(implode(' | ', $titleArray)));
echo head($head);
echo js_tag('OpenLayers');
echo js_tag('jquery', 'javascripts/vendor');
?>
<script type="text/javascript">
jQuery(document).ready(function() {
// Handle edit transcription page.
jQuery('#scripto-transcription-page-edit').click(function() {
jQuery('#scripto-transcription-page-edit').
prop('disabled', true).
text('<?php
echo __('Editing transcription...');
?>
');
jQuery.post(
<?php
echo js_escape(url('scripto/index/page-action'));
?>
,
{
page_action: 'edit',
page: 'transcription',
item_id: <?php
echo js_escape($this->doc->getId());
?>
,
示例12: css_src
</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="<?php
echo css_src('BookReader');
?>
" />
<!-- JavaScripts -->
<?php
echo js_tag('jquery-1.4.2.min');
echo js_tag('jquery-ui-1.8.5.custom.min');
echo js_tag('dragscrollable');
echo js_tag('jquery.colorbox-min');
echo js_tag('jquery.ui.ipad');
echo js_tag('jquery.bt.min');
echo js_tag('BookReader');
echo js_tag('ToCmenu');
?>
</head>
<body>
<div></div>
<div id="BookReader">
<br />
<noscript>
<p>
<?php
echo __('The BookReader requires JavaScript to be enabled. Please check that your browser supports JavaScript and that it is enabled in the browser settings.');
?>
</p>
</noscript>
</div>
示例13: js_tag
echo js_tag('lib/foundation/js/foundation.min.js');
?>
<?php
echo js_tag('lib/foundation/js/foundation/foundation.magellan.js');
?>
<?php
echo js_tag('assets/js/ckeditor/ckeditor.js');
?>
<?php
echo js_tag('assets/js/ckeditor/adapters/jquery.js');
?>
<?php
echo js_tag('assets/js/jquery.selectric.min.js');
?>
<?php
echo js_tag('assets/js/app.js');
?>
<script type="text/javascript">
var disqus_shortname = 'paruto'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>
示例14: base_url
<meta property="fb:admins" content="1731064127129378" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="<?php
echo base_url($theme_path . 'resources/assets/js/plugins/html5shiv.js');
?>
"></script>
<script src="<?php
echo base_url($theme_path . 'resources/assets/js/plugins/respond.min.js');
?>
"></script>
<![endif]-->
<?php
echo css_tag(array_merge(array($theme_path . 'resources/bootstrap/css/bootstrap.min.css', $theme_path . 'resources/assets/css/plugins/animate.min.css', $theme_path . 'resources/assets/selectize/selectize.css', $theme_path . 'resources/assets/fontawesome/css/font-awesome.min.css', 'https://fonts.googleapis.com/icon?family=Material+Icons', $theme_path . 'resources/material/dist/css/material-fullpalette.min.css', $theme_path . 'resources/material/dist/css/ripples.min.css', $theme_path . 'resources/material/dist/css/roboto.min.css', $theme_path . 'resources/material_timepicker/css/bootstrap-material-datetimepicker.css', $theme_path . 'resources/assets/css/common.css', $theme_path . 'resources/assets/css/custom.css'), $stylesheets));
?>
<?php
echo js_tag(array_merge(array($theme_path . 'resources/jquery/jquery.min.js', $theme_path . 'resources/assets/js/countries.js'), $javascripts));
?>
<!--favicon-->
<link rel="shortcut icon" href="<?php
echo base_url($theme_path . 'resources/assets/images/fav.png');
?>
" type="image/x-icon"/>
<link href="http://vjs.zencdn.net/5.3.0/video-js.css" rel="stylesheet">
示例15: head
<?php
echo head(array('title' => 'Validate Corpus Items'));
echo js_tag('tabs');
$validCount = count($validItems);
$invalidCount = count($invalidItems);
$outOfRangeCount = count($outOfRangeItems);
?>
<script type="text/javascript" charset="utf-8">
jQuery(window).load(function () {
Omeka.Tabs.initialize();
});
</script>
<ul id="section-nav" class="navigation tabs">
<li><a href="#valid-items">Valid Items</a></li>
<li><a href="#invalid-items">Invalid Items</a></li>
<li><a href="#out-of-range-items">Out of Range Items</a></li>
</ul>
<h2><?php
echo $corpus->name;
?>
(<?php
echo count($corpus->ItemsPool);
?>
total items)</h2>
<ul>
<li>Sequence Type: <?php
echo $corpus->getSequenceTypeLabel();