當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CSS::require_css_file方法代碼示例

本文整理匯總了PHP中CSS::require_css_file方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSS::require_css_file方法的具體用法?PHP CSS::require_css_file怎麽用?PHP CSS::require_css_file使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CSS的用法示例。


在下文中一共展示了CSS::require_css_file方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: testCssAddIntoResult

 function testCssAddIntoResult()
 {
     CSS::clean();
     CSS::require_css_file("/" . FRAMEWORK_CORE_PATH . "tests/html/example_css/my_css_file.css");
     $this->assertEqual(1, CSS::get_loaded_css(), "Il numero di css caricati non corrisponde!!");
     $this->assertTrue(PageData::instance()->is_set("/page/headers/required_css_files"));
     $this->assertEqual(1, count(PageData::instance()->get("/page/headers/required_css_files/css_file_list")), "Il numero di css caricati non corrisponde!!");
 }
開發者ID:mbcraft,項目名稱:frozen,代碼行數:8,代碼來源:css_test.php

示例2: 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;
開發者ID:mbcraft,項目名稱:frozen,代碼行數:31,代碼來源:image_list.block.php

示例3:

<?php

JS::require_jquery();
JS::require_script("/js/lightbox/jquery.lightbox-0.5.min.js");
CSS::require_css_file("/css/gallery/base/jquery.lightbox-0.5.css");
?>
<div id="gallery_<?php 
echo $gallery_name;
?>
">
    <ul>
    <?php 
foreach ($image_list as $k => $v) {
    ?>
    <li>
        <a href="<?php 
    echo $v["path"];
    ?>
"><img height="50" src="<?php 
    echo $v["path"];
    ?>
" alt="<?php 
    echo $v["title"];
    ?>
" /></a>
    </li>
    <?php 
}
?>
    </ul>
</div>
開發者ID:mbcraft,項目名稱:frozen,代碼行數:31,代碼來源:default.block.php

示例4:

<?php

JS::require_jquery();
JS::require_script("/framework/core/js/jquery/jquery.mousewheel.js");
JS::require_script("/framework/core/js/jquery/mwheelIntent.js");
JS::require_script("/framework/core/js/jquery/jquery.jscrollpane.min.js");
JS::require_script("/framework/core/js/jquery/content_scroller.js");
CSS::require_css_file("/framework/core/js/jquery/css/jquery.jscrollpane.css");
開發者ID:mbcraft,項目名稱:frozen,代碼行數:8,代碼來源:content_scroller.block.php

示例5: require_jquery_ui

 public static function require_jquery_ui()
 {
     self::require_jquery();
     self::require_script(self::JQUERY_UI_PATH);
     CSS::require_css_file("/" . FRAMEWORK_CORE_PATH . "js/jquery/css/jquery-ui.css");
 }
開發者ID:mbcraft,項目名稱:frozen,代碼行數:6,代碼來源:JS.class.php


注:本文中的CSS::require_css_file方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。