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


PHP Stylesheet::add方法代碼示例

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


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

示例1:

        <link rel="stylesheet" href="<?php 
echo Site::url();
?>
/public/assets/css/messenger.css" type="text/css" />
        <link rel="stylesheet" href="<?php 
echo Site::url();
?>
/public/assets/css/messenger-theme-flat.css" type="text/css" />
        <?php 
Stylesheet::add('public/assets/css/bootstrap-lightbox.css', 'backend', 2);
?>
        <?php 
Stylesheet::add('public/assets/css/bootstrap-fileupload.css', 'backend', 3);
?>
        <?php 
Stylesheet::add('admin/themes/default/css/default.css', 'backend', 5);
?>
        <?php 
Stylesheet::load();
?>

        <!-- JavaScripts -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
        <script src="<?php 
echo Site::url();
?>
/public/assets/js/bootstrap.min.js"></script>
        <script src="<?php 
echo Site::url();
?>
/public/assets/js/messenger.min.js"></script>
開發者ID:rowena-altastratus,項目名稱:altastratus,代碼行數:31,代碼來源:login.template.php

示例2: main

<?php

// Add Plugin Javascript
Stylesheet::add('public/assets/css/daterangepicker-bs3.css', 'backend', 11);
Javascript::add('public/assets/js/moment.min.js', 'backend', 11);
Javascript::add('public/assets/js/daterangepicker.js', 'backend', 12);
Javascript::add('plugins/box/dashboard/js/ganalytics.js', 'backend', 13);
/**
 * Dashboard admin class
 */
class DashboardAdmin extends Backend
{
    /**
     * Main Dashboard admin function
     */
    public static function main()
    {
        // set/update google analytics settings
        if (Request::post('ga_settings_update')) {
            if (Security::check(Request::post('csrf'))) {
                // client id
                $ga_client_id = trim(Request::post('ga_client_id'));
                if (!empty($ga_client_id)) {
                    $opt_client_id = Option::get('ga_client_id');
                    if (empty($opt_client_id)) {
                        Option::add('ga_client_id', $ga_client_id);
                    } else {
                        Option::update('ga_client_id', $ga_client_id);
                    }
                }
                // API key
開發者ID:rowena-altastratus,項目名稱:altastratus,代碼行數:31,代碼來源:dashboard.admin.php

示例3:

 *	Events plugin admin
 *
 *  Provides CRUD for events and different output possibilities for event lists
 *
 *	@package    Monstra
 *  @subpackage Plugins
 *	@author     Andreas Müller | devmount <mail@devmount.de>
 *	@license    MIT
 *  @link       https://github.com/devmount-monstra/events
 *
 */
// Add plugin styles and scripts
Stylesheet::add('plugins/events/css/events.admin.css', 'backend', 11);
Javascript::add('plugins/events/js/events.admin.js', 'backend', 11);
// lib: Image Picker http://rvera.github.io/image-picker/
Stylesheet::add('plugins/events/lib/image-picker/image-picker.css', 'backend', 11);
Javascript::add('plugins/events/lib/image-picker/image-picker.js', 'backend', 11);
// Admin Navigation: add new item
Navigation::add(__('Events', 'events'), 'content', 'events', 10);
// Add action on admin_pre_render hook
Action::add('admin_pre_render', 'EventsAdmin::_getAjaxData');
// register repository classes
require_once 'repositories/repository.events.php';
require_once 'repositories/repository.categories.php';
require_once 'repositories/repository.locations.php';
/**
 * Events class
 *
 */
class EventsAdmin extends Backend
{
開發者ID:devmount-monstra,項目名稱:events,代碼行數:31,代碼來源:events.admin.php

示例4:

    <!-- Google+ Snippets -->
    <meta itemprop="url" content="<?php 
echo Url::current();
?>
">
    <meta itemprop="name" content="<?php 
echo Site::title();
?>
 | <?php 
echo Site::name();
?>
">

    <!-- Styles -->
    <?php 
Stylesheet::add('public/assets/css/app.css', 'frontend', 2);
?>
    <?php 
Stylesheet::load();
?>

    <?php 
Action::run('theme_header');
?>

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
    <![endif]-->

    <!-- Fav-icons -->
開發者ID:jessicaGithub,項目名稱:portfolio2016,代碼行數:31,代碼來源:header.chunk.php

示例5: main

<?php

// Add Plugin Javascript
Stylesheet::add('plugins/box/filesmanager/css/style.css', 'backend', 11);
Javascript::add('plugins/box/filesmanager/js/fileuploader.js', 'backend', 11);
Javascript::add('plugins/box/filesmanager/js/filesmanager.js', 'backend', 11);
// Add plugin navigation link
Navigation::add(__('Files', 'filesmanager'), 'content', 'filesmanager', 3);
/**
 * Filesmanager Admin Class
 */
class FilesmanagerAdmin extends Backend
{
    /**
     * Main function
     */
    public static function main()
    {
        // Array of forbidden types
        $forbidden_types = array('html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'shtml', 'jhtml', 'pl', 'py', 'cgi', 'sh', 'ksh', 'bsh', 'c', 'htaccess', 'htpasswd', 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl', 'empty');
        // Array of image types
        $image_types = array('jpg', 'png', 'bmp', 'gif', 'tif');
        // Get Site url
        $site_url = Option::get('siteurl');
        // Init vars
        if (Request::get('path')) {
            $path = Request::get('path');
        } else {
            $path = 'uploads/';
        }
        // Add slash if not exists
開發者ID:rowena-altastratus,項目名稱:altastratus,代碼行數:31,代碼來源:filesmanager.admin.php

示例6:

">
    <meta itemprop="name" content="<?php 
echo Site::title();
?>
 | <?php 
echo Site::name();
?>
">

    <!-- Styles -->
    <link rel="stylesheet" href="<?php 
echo Site::url();
?>
/public/assets/css/bootstrap.css" type="text/css" />
    <?php 
Stylesheet::add('public/themes/default/css/default.css', 'frontend', 2);
?>
    <?php 
Stylesheet::load();
?>

    <!-- JavaScripts -->
    <?php 
Javascript::add('public/assets/js/jquery.min.js', 'frontend', 1);
?>
    <?php 
Javascript::add('public/assets/js/bootstrap.min.js', 'frontend', 2);
?>
    <?php 
Javascript::load();
?>
開發者ID:cmroanirgo,項目名稱:monstra,代碼行數:31,代碼來源:header.chunk.php


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