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


PHP js_tag函数代码示例

本文整理汇总了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>
开发者ID:soarmorrow,项目名称:booking-demo,代码行数:22,代码来源:login_head.php

示例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'));
?>
,
            {
开发者ID:pulibrary,项目名称:Scribe,代码行数:31,代码来源:transcribe.php

示例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;
    ?>
        }],
开发者ID:Daniel-KM,项目名称:VideoStream,代码行数:31,代码来源:video-stream-internal-control.php

示例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>
开发者ID:lchen01,项目名称:STEdwards,代码行数:30,代码来源:search-form.php

示例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;
     }
 }
开发者ID:patrova,项目名称:OpenLayersZoom,代码行数:31,代码来源:OpenLayersZoomPlugin.php

示例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 
开发者ID:soarmorrow,项目名称:ci-kindergarden,代码行数:31,代码来源:head.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);
}
开发者ID:BackupTheBerlios,项目名称:stato-svn,代码行数:14,代码来源:ajax_helper.php

示例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";
        }
    }
开发者ID:GerZah,项目名称:plugin-ItemReferences,代码行数:62,代码来源:ItemReferencesPlugin.php

示例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 
开发者ID:pulibrary,项目名称:Scripto,代码行数:31,代码来源:transcribe.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]-->

开发者ID:soarmorrow,项目名称:ci-kindergarden,代码行数:29,代码来源:head.php

示例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());
?>
, 
开发者ID:kluther,项目名称:MappingThe4th,代码行数:31,代码来源:transcribe.php

示例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>
开发者ID:mjlassila,项目名称:BookReader,代码行数:30,代码来源:view.php

示例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>
开发者ID:andela-cnnadi,项目名称:paruto,代码行数:31,代码来源:application.php

示例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">
开发者ID:soarmorrow,项目名称:booking-demo,代码行数:30,代码来源:head.php

示例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();
开发者ID:jimsafley,项目名称:plugin-Ngram,代码行数:31,代码来源:validate.php


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