本文整理汇总了PHP中JS::require_jquery方法的典型用法代码示例。如果您正苦于以下问题:PHP JS::require_jquery方法的具体用法?PHP JS::require_jquery怎么用?PHP JS::require_jquery使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JS
的用法示例。
在下文中一共展示了JS::require_jquery方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetch
public static function fetch()
{
if (!self::is_fetched()) {
JS::require_jquery();
JS::require_script("/" . FRAMEWORK_CORE_PATH . "js/jquery/screen_resolution.js");
}
}
示例2: testJsOrder
function testJsOrder()
{
JS::clean();
JS::require_jquery();
JS::require_script("/js/jquery/pippo.js");
JS::require_script("/js/jquery/another_js.js");
$required_javascripts = PageData::instance()->get("/page/headers/required_javascripts/list");
$this->assertTrue(strstr("/framework/core/js/jquery/jquery.min.js", $required_javascripts[0]["script_path"]) == 0, "Il primo file non corrisponde!!");
$this->assertTrue(strstr("/js/jquery/pippo.js", $required_javascripts[1]["script_path"]) == 0, "Il secondo file non corrisponde!!");
$this->assertTrue(strstr("/js/jquery/another_js.js", $required_javascripts[2]["script_path"]) == 0, "Il terzo file non corrisponde!!");
}
示例3: isset
<?php
JS::require_jquery();
JS::require_script("/js/jquery/jquery.lightbox-0.5.min.js");
CSS::require_css_file("/css/jquery-lightbox/jquery.lightbox-0.5.css");
$html_gallery_name = str_replace("/", "_", $gallery_name);
$thumb_image_height = isset($thumb_image_height) ? $thumb_image_height : 50;
?>
<div id="gallery_<?php
echo $html_gallery_name;
?>
">
<ul>
<?php
foreach ($image_list as $k => $v) {
if (isset(Config::instance()->GALLERY_RESIZE_BY_WIDTH)) {
$final_image_path = image_w($v["path"], Config::instance()->GALLERY_RESIZE_BY_WIDTH);
} else {
if (isset(Config::instance()->GALLERY_RESIZE_BY_HEIGHT)) {
$final_image_path = image_h($v["path"], Config::instance()->GALLERY_RESIZE_BY_HEIGHT);
} else {
$final_image_path = $v["path"];
}
}
?>
<li>
<a href="<?php
echo $final_image_path;
?>
"><img height="<?php
echo $thumb_image_height;