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


PHP Theme::css方法代码示例

本文整理汇总了PHP中Theme::css方法的典型用法代码示例。如果您正苦于以下问题:PHP Theme::css方法的具体用法?PHP Theme::css怎么用?PHP Theme::css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Theme的用法示例。


在下文中一共展示了Theme::css方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: siteHead

 /**
  * AFFICHE LA FEUILLE DE STYLE ET LE JAVASCRIPT UNIQUEMENT SUR LA PAGE DEMANDÉE.
  *
  */
 public function siteHead()
 {
     global $Page, $Url;
     $html = '';
     if ($Url->whereAmI() === 'page' && $Page->slug() == $this->getDbField('page')) {
         $pluginPath = $this->htmlPath();
         /** 
          * ON INCLUT LA CSS PAR DÉFAUT DU PLUG-IN OU LA CSS PERSONNALISÉE STOCKER DANS NOTRE THÈME 
          */
         $css = PATH_THEME_CSS . 'contact.css';
         if (file_exists($css)) {
             $html .= Theme::css('contact.css');
         } else {
             $html .= '<link rel="stylesheet" href="' . $pluginPath . 'layout/contact.css">';
         }
     }
     return $html;
 }
开发者ID:acrox999,项目名称:bludit-plugins,代码行数:22,代码来源:plugin.php

示例2: elseif

?>
</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">
<meta name="author" content="Bludit - Theme design by Afnizar Nur Ghifari">

<?php 
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
/*
<link rel="stylesheet" href="css/kube.min.css" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
<link rel="stylesheet" href="css/custom.min.css" />
*/
Theme::css(array('kube.min.css', 'font-awesome.min.css', 'custom.css'));
/*
<link href="http://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
*/
Theme::css(array('http://fonts.googleapis.com/css?family=Lato:400,700', 'http://fonts.googleapis.com/css?family=Open+Sans:400,700'), false);
Theme::favicon();
// Plugins Site Head
Theme::plugins('siteHead');
开发者ID:clstrfcuk,项目名称:bludit-themes,代码行数:31,代码来源:head.php

示例3: array

<?php

/**
 *
 *   Copyright © 2010-2012 by xhost.ch GmbH
 *
 *   All rights reserved.
 *
 **/
$this->pageTitle = Yii::app()->name . ' - ' . Yii::t('admin', 'Minecraft Manager Settings');
$this->breadcrumbs = array(Yii::t('admin', 'Settings') => array('index'), Yii::t('admin', 'Settings'));
$this->menu = array(array('label' => Yii::t('admin', 'Update Minecraft'), 'url' => array('daemon/updateMC'), 'icon' => 'update'), array('label' => Yii::t('admin', 'Multicraft Status'), 'url' => array('daemon/status'), 'icon' => 'status'), array('label' => Yii::t('admin', 'Panel Configuration'), 'url' => array('daemon/panelConfig'), 'icon' => 'config'), array('label' => Yii::t('admin', 'Statistics'), 'url' => array('daemon/statistics'), 'icon' => 'statistics'), array('label' => Yii::t('admin', 'Operations'), 'url' => array('daemon/operations'), 'icon' => 'operations'), array('label' => Yii::t('admin', 'Config File Settings'), 'url' => array('configFile/index'), 'icon' => 'file'));
Yii::app()->clientScript->registerCssFile(Theme::css('detailview.css'));
Yii::app()->getClientScript()->registerCoreScript('jquery');
?>

<?php 
echo CHtml::beginForm();
echo CHtml::hiddenField('submit', 'true');
?>
<table class="detail-view">
<tr class="titlerow">
    <td><?php 
echo Yii::t('admin', 'Setting');
?>
</td>
    <td></td>
    <td><?php 
echo Yii::t('admin', 'Default');
?>
</td>
开发者ID:Jmainguy,项目名称:multicraft_install,代码行数:31,代码来源:index.php

示例4:

    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('ie.css');
?>
" media="screen, projection" />
    <![endif]-->

    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('main.css');
?>
" />
    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('form.css');
?>
" />
    <link rel="stylesheet" type="text/css" href="<?php 
echo Theme::css('theme.css');
?>
" />

    <title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>

<body>

<div id="frame">
<div id="border-left"></div>
<div id="border-right"></div>
<div class="container" id="page">
开发者ID:Jmainguy,项目名称:multicraft_install,代码行数:31,代码来源:main.php

示例5:

?>
">

<title><?php 
echo $Site->title();
?>
</title>

<!-- Bootstrap Core CSS -->
<?php 
Theme::css('bootstrap.min.css');
?>

<!-- Custom CSS -->
<?php 
Theme::css('clean-blog.min.css');
?>

<!-- Custom Fonts -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>

<!-- 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/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Plugins Site Head -->
开发者ID:clstrfcuk,项目名称:bludit-themes,代码行数:31,代码来源:head.php

示例6: elseif

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
// Javascript from theme/js/
Theme::javascript('rainbow.min.js');
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
开发者ID:roberthchan,项目名称:bludit,代码行数:31,代码来源:head.php

示例7:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('main.css'));
//if IE <= 8
if (preg_match('/(?i)msie [5-8]/', $_SERVER['HTTP_USER_AGENT'])) {
    Theme::css(array('ie8.css'));
    Theme::javascript('html5shiv.js');
} else {
    //if IE > 8
    Theme::css(array('ie9.css'));
}
// Favicon from theme/img/
Theme::favicon('favicon.png');
?>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
开发者ID:HarleyDavidson86,项目名称:bludit-themes,代码行数:25,代码来源:head.php

示例8: elseif

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('blog.css', 'bootstrap.css', 'bootstrap.min.css', 'business-casual.css'));
// Javascript from theme/js/
Theme::javascript(array('rainbow.min.js', 'bootstrap.js', 'bootstrap.min.js', 'jquery.js'));
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
开发者ID:hxii,项目名称:bludit-themes,代码行数:31,代码来源:head.php

示例9:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">

    <!-- Meta tag Title -->
    <title><?php 
echo $Site->title();
?>
</title>

    <!-- CSS -->
    <?php 
Theme::css('blog.css');
?>

    <!-- Javascript -->
    <?php 
Theme::javascript('blog.js');
?>

    <!-- Plugins site head -->
    <?php 
Theme::plugins('siteHead');
?>
</head>
<body>
    <!-- Plugins site body begin -->
    <?php 
Theme::plugins('siteBodyBegin');
?>
开发者ID:HarleyDavidson86,项目名称:bludit-themes,代码行数:31,代码来源:index.php

示例10: init

 public function init()
 {
     parent::init();
     // Subset of http://detectmobilebrowsers.com/
     if (preg_match('/android.+mobile|avantgo|bada\\/|blackberry|blazer|compal|elaine|fennec|' . 'hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i' . '|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone' . '|wap|windows (ce|phone)|xda|xiino/i', Yii::app()->request->userAgent)) {
         Yii::app()->theme = 'mobile';
     }
     $pf = @$_REQUEST['mc_platform'];
     $pf = $pf ? $pf : @$_SESSION['mc_platform'];
     if ($pf && preg_match('/^[-_\\w\\d]{2,16}$/', $pf)) {
         Yii::app()->params['platform'] = $pf;
         Yii::app()->theme = 'platform' . DIRECTORY_SEPARATOR . $pf;
     }
     Yii::app()->widgetFactory->widgets['CGridView']['cssFile'] = Theme::css('gridview.css');
     Yii::app()->widgetFactory->widgets['CDetailView']['cssFile'] = Theme::css('detailview.css');
     Yii::app()->widgetFactory->widgets['CDetailView']['itemTemplate'] = "<tr class=\"{class}\"><th>{label}</th><td>{value}</td><td class=\"hintRow\">{hint}</td></tr>\n";
     Yii::app()->widgetFactory->widgets['CLinkPager']['cssFile'] = Theme::css('pager.css');
     if (@Yii::app()->params['installer'] === 'show' || Yii::app()->params['superuser_check_only'] && !Yii::app()->user->isSuperuser()) {
         return;
     }
     $checkKey = 'mcUpdateCheck';
     $noticeKey = 'mcUpdateNotice';
     $last = (int) Yii::app()->user->getState($checkKey, 0);
     $this->notice = Yii::app()->user->getState($noticeKey, '');
     if (!($check = time() - $last >= 3600)) {
         //Check every hour
         return;
     }
     Yii::app()->user->setState($checkKey, time());
     try {
         $s = Setting::model()->findByPk('updateChecks');
         if ($s && ($s->value == '0' || $s->value == 'False' || $s->value == 'false')) {
             $check = false;
         }
     } catch (Exception $e) {
     }
     if (!$check) {
         return;
     }
     $context = stream_context_create(array('http' => array('timeout' => 5, 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded' . "\r\n" . 'Referer: ' . Yii::app()->request->getBaseUrl(true) . "\r\n", 'content' => http_build_query(array('version' => $this->version)))));
     $remote = @file_get_contents('http://www.multicraft.org/site/version?panel=true', 0, $context);
     $pattern = '[\\w]?([\\d]+)\\.([\\d]+)\\.([\\d]+)(-(.*))?';
     $ml = array();
     $mr = array();
     preg_match('/' . $pattern . '/', $this->version, $ml);
     preg_match('/<v>' . $pattern . '<\\/v>/', $remote, $mr);
     if (count($ml) < 3) {
         $this->notice = '';
     } else {
         if (count($mr) < 3) {
             $this->notice = 'Update check failed';
         } else {
             if ($mr[1] > $ml[1] || $mr[1] == $ml[1] && $mr[2] > $ml[2] || $mr[1] == $ml[1] && $mr[2] == $ml[2] && $mr[3] > $ml[3] || $mr[1] == $ml[1] && $mr[2] == $ml[2] && $mr[3] == $ml[3] && (count($ml) >= 6 && preg_match('/^pre/', $ml[5]))) {
                 $this->notice = Yii::t('mc', 'Update available') . ': <a href="http://www.multicraft.org/"><b>' . $remote . '</b></a>';
             } else {
                 $this->notice = '';
             }
         }
     }
     Yii::app()->user->setState($noticeKey, $this->notice);
 }
开发者ID:Jmainguy,项目名称:multicraft_install,代码行数:61,代码来源:Controller.php

示例11: elseif

<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php 
echo $Site->title();
?>
</title>
<?php 
// CSS from theme/css/
Theme::css(array('aqua.css'));
// Javascript from theme/js/
// Theme::javascript('file.name.js');
// Favicon from theme/img/
Theme::favicon('favicon.png');
// Where Am I
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
    Theme::description($Post->description());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
    Theme::description($Page->description());
} else {
    Theme::description($Site->description());
}
?>
<!-- Custom Fonts and Scripts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,800,700|Merriweather:400,700' rel='stylesheet' type='text/css'>
<script src="<?php 
echo HTML_PATH_THEME;
?>
js/modernizr-2.8.3-respond-1.4.2.min.js"></script>
<!-- Plugins Site Head -->
开发者ID:HarleyDavidson86,项目名称:bludit-themes,代码行数:31,代码来源:head.php

示例12: siteHead

 /**
  * AFFICHE LA FEUILLE DE STYLE ET LE JAVASCRIPT UNIQUEMENT SUR LA PAGE DEMANDÉE.
  *
  */
 public function siteHead()
 {
     global $Page, $Url;
     $html = '';
     if ($Url->whereAmI() === 'page' && $Page->slug() == $this->getDbField('page')) {
         $pluginPath = $this->htmlPath() . 'libs' . DS;
         /** 
          * ON INCLUT LA CSS PAR DÉFAUT DU PLUG-IN OU LA CSS PERSONNALISÉE STOCKER DANS NOTRE THÈME 
          */
         $css = PATH_THEME_CSS . 'foliogallery.css';
         if (file_exists($css)) {
             $html .= Theme::css('foliogallery.css');
         } else {
             $html .= '<link rel="stylesheet" href="' . $pluginPath . 'foliogallery' . DS . 'foliogallery.css">' . PHP_EOL;
         }
         $html .= '<link rel="stylesheet" type="text/css" href="' . $pluginPath . 'colorbox' . DS . 'colorbox.css" media="screen">' . PHP_EOL;
     }
     return $html;
 }
开发者ID:Dipchikov,项目名称:bludit-plugins,代码行数:23,代码来源:plugin.php

示例13:

<?php

// <meta charset="utf-8">
Theme::charset('utf-8');
// <meta name="viewport" content="width=device-width, initial-scale=1">
Theme::viewport('width=device-width, initial-scale=1');
// <title>...</title>
Theme::title();
// <meta name="description" content=".....">
Theme::description();
// <link rel="shortcut icon" href="favicon.png">
Theme::favicon('favicon.png');
// CSS files
Theme::css('style.css');
Theme::css('bludit.css');
?>

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<!-- Google Webfont
-->
<link href='//fonts.googleapis.com/css?family=Roboto:400,300,100,500' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,300,100,500' rel='stylesheet' type='text/css'>

<!-- Load plugins
- Hook: Site head
-->
<?php 
Theme::plugins('siteHead');
开发者ID:vorons,项目名称:bludit,代码行数:29,代码来源:head.php

示例14: elseif

// <title>Site title</title>
Theme::title($Site->title());
// <meta name="description" content="Site description">
Theme::description($Site->description());
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
// <link rel="stylesheet" type="text/css" href="pure-min.css">
// <link rel="stylesheet" type="text/css" href="grids-responsive-min.css">
// <link rel="stylesheet" type="text/css" href="blog.css">
// <link rel="stylesheet" type="text/css" href="rainbow.github.css">
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
Theme::css(array('http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext'), '');
// <script src="rainbow.min.js"></script>
Theme::javascript(array('rainbow.min.js'));
?>

<!-- Pure and Google Fonts -->
<style>
html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
	font-family: 'Open Sans', sans-serif;
}
</style>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
开发者ID:joryphillips,项目名称:bludit,代码行数:31,代码来源:head.php

示例15: elseif

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS
Theme::css(array('style.css', 'bludit.css'));
// Javascript
Theme::javascript(array('jquery-1.12.0.min.js', 'jquery-migrate-1.2.1.min.js'));
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
    Theme::description($Post->description());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
    Theme::description($Page->description());
} else {
    Theme::description($Site->description());
}
?>

<!-- Custom Fonts -->
<link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Raleway:600,500,400" rel="stylesheet" type="text/css">

<!-- Favicon -->
<link rel="shortcut icon" href="<?php 
echo $Site->url();
?>
开发者ID:acrox999,项目名称:lingonberry,代码行数:31,代码来源:head.php


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