本文整理汇总了PHP中Html::style方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::style方法的具体用法?PHP Html::style怎么用?PHP Html::style使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Html
的用法示例。
在下文中一共展示了Html::style方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(array $files)
{
parent::__construct([]);
foreach ($files as $i => $file) {
$this->content(\Html::style($file . '.css'));
}
}
示例2: action_index
public function action_index()
{
$this->template->header->css = Html::style("themes/default/media/css/home.css");
$this->template->header->title = __('Welcome');
$this->template->content = View::factory('pages/welcome/main');
$this->template->content->set(array('public_registration_enabled' => (bool) Model_Setting::get_setting('public_registration_enabled'), 'anonymous' => $this->anonymous));
}
示例3: css
/**
* Load and output a css link tag from array
*
* @param array $array
* @param array $params
* @return string
* @throws \Exception
*/
public static function css(array $array, $params = array('attributes' => [], 'secure' => null))
{
Arr::mergeWithDefaultParams($params);
$out = "\n";
foreach ($array as $key => $item) {
if (is_array($item)) {
$out .= Html::style($item[0], $item[1], $item[2]) . "\n";
} else {
$out .= Html::style($item, $params['attributes'], $params['secure']) . "\n";
}
}
return $out;
}
示例4: RDirList
function RDirList($start_folder = '', $dirlistDirActionJs = '', $dirlistFileActionJs = '', $show_only_folders = false, $hilited_file = null)
{
$this->list_id = $start_folder;
$this->dirlistDirActionJs = $dirlistDirActionJs;
$this->dirlistFileActionJs = $dirlistFileActionJs;
$this->show_only_folders = $show_only_folders;
$this->hilited_file = $hilited_file;
$this->start_folder = $start_folder != '' ? INSTALL_PATH . '/Download/' . $start_folder : INSTALL_PATH . '/Download';
$this->icons = array();
$this->icons['folder'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/folder.png');
$this->icons['file'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/file.png');
$this->icons['pdf'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/pdf.png');
$this->icons['excel'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/excel.png');
$this->icons['word'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/word.png');
$this->icons['jpg'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/jpg.png');
$this->icons['gif'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/png.png');
$this->icons['png'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/png.png');
$this->icons['sound'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/sound.png');
$this->icons['zip'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/zip.png');
$this->icons['download'] = Html::img('/' . INSTALL_PATH . '/Module/DirList/Icons/download.png');
$GLOBALS['other_css'] .= Html::style('
.filelist ul{
list-style-type:none;
list-style-position:inside;
margin-left:16px;
padding:0;
}
.filelist ul ul {
padding-left:8px;
margin-left:8px;
border-left:1px black dotted;
}
.filelist a{
text-decoration:none;
white-space:nowrap;
}
');
/*$GLOBALS['scripts'] .= Html::script('
function dirlistDirAction(el)
{
var url = el.getAttribute("href",2);
return false;
}
');*/
if ($dirlistDirActionJs || $dirlistFileActionJs) {
$GLOBALS['scripts'] .= Html::script($dirlistDirActionJs . "\n" . $dirlistFileActionJs);
}
}
示例5: head
function head()
{
$template = new Template(INSTALL_PATH . '/Templates/HTML_Frame.template.html', $this->pObj);
$anc = $this->pObj->page_props['Ancestors'];
while ($anc) {
if ($anc[0]['CSS']) {
$vars['other_css'] .= '<link rel="stylesheet" href="' . $anc[0]['CSS'] . '" media="screen" type="text/css" />' . "\n";
}
array_shift($anc);
}
if ($this->pObj->page_props['CSS']) {
$vars['other_css'] .= '<link rel="stylesheet" href="' . $this->pObj->page_props['CSS'] . '" media="screen" type="text/css" />' . "\n";
}
if ($this->pObj->page_props['inline_CSS']) {
$vars['other_css'] .= Html::style($this->pObj->page_props['inline_CSS']);
}
return $this->template->parse_template('HTML_FRAME', $this->pObj['page_props']);
}
示例6: class_init
function class_init($db_connection = '', $path_information = '')
{
if ($this->check_right('KalenderIntern') && !stristr(SELF, 'admin') && stristr(SELF, 'Kalender')) {
header("Location: http://" . $_SERVER['SERVER_NAME'] . "/Admin/KalenderAdmin");
} else {
$GLOBALS['TemplateVars']['NaviLogin'] = true;
}
$this->connection = $db_connection != '' ? $db_connection : new RheinaufDB();
//$this->connection->debug =true;
if (!class_exists('FormScaffold')) {
include_once 'FormScaffold.php';
}
if (!class_exists('KalFormScaff')) {
include_once 'Kalender/KalFormScaff.php';
}
$this->scaff = new KalFormScaff($this->db_table, $this->connection, $this->path_information);
$this->scaff->monate = $this->monate;
$this->scaff->cols_array['STATUS']['options'] = array('CONFIRMED' => 'fest', 'TENTATIVE' => 'vorläufig', 'CANCELLED' => 'storniert');
$this->scaff->cols_array['CLASS']['options'] = array('PUBLIC' => 'öffentlich', 'PRIVATE' => 'nicht öffentlich');
$this->scaff->cols_array['DESCRIPTION']['html'] = true;
$this->scaff->cols_array['DTSTART']['type'] = 'timestamp';
$this->scaff->cols_array['DTEND']['type'] = 'timestamp';
$this->categories = $this->connection->db_assoc("SELECT * FROM `RheinaufCMS>Kalender>Kategorien`");
$GLOBALS['other_css'] = Html::style('
table {border-collapse:collapse;}
#termine {width:100%;margin-bottom:10px;border-bottom:1px solid #33466B}
#monatskalender .calendarHeader {text-align:right;color:#33466B}
#monatskalender .termin a {font-weight:900;cursor:pointer}
#monatskalender .calendarToday {background-color:#33466B;color:white}
#monatskalender .termin{background-color:rgb(206, 211, 214)}
#monatskalender .calendar td {width:2em;height:2em;vertical-align:middle;text-align:center;padding:0;cursor:default}
#cat_select td {padding:0;line-height:auto}
caption,thead,#termine .month-head {background-color:#33466B;color:white;font-weight:normal}
#box-mitte {float:left;padding:0 2px 10px 2px;min-height:800px;width:500px}
label {font-size:0.8em;color:#33466B;line-height:0.85em;}
.alt_row_0 {background-color:white}
');
$this->event_listen();
}
示例7:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />
<meta name="description" content="T-shirts for hackers." />
<meta name="keywords" content="hacker t-shirts, hacker tees, geek t-shirts, programming t-shirts, computer t-shirts" />
<title><?php
echo $title;
?>
</title>
<?php
echo Html::style('public/css/screen.css');
?>
</head>
<body>
<div id="wrapper">
<div id="header">
<h1><a href="<?php
echo URL::site();
?>
">Hacker Tees</a></h1>
<ul id="nav">
<li><a href="<?php
echo URL::site();
?>
">Tees</a></li>
<li><a href="<?php
echo URL::site('about');
?>
">About</a></li>
示例8: e
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Halaman Guru</title>
<?php
echo e(Html::style('assets/css/spacelab.css'));
?>
<?php
echo e(Html::style('assets/css/jquery.dataTables.css'));
?>
<?php
echo e(HTML::style('assets/datetimepicker/jquery.datetimepicker.css'));
?>
<?php
echo $__env->yieldContent('head');
?>
</head>
<body>
<?php
echo $__env->make('guru.navbar', array_except(get_defined_vars(), array('__data', '__path')))->render();
?>
<div class="container">
<?php
echo $__env->yieldContent('content');
?>
示例9:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Asoyaracuy | Admin</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 2 | Log in</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<?php
echo Html::style('css/bootstrap.min.css');
?>
<?php
echo Html::script('js/jquery.min.js');
?>
<?php
echo Html::script('js/bootstrap.min.js');
?>
<!-- Font Awesome -->
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet"
href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="backend/dist/css/AdminLTE.min.css">
<!-- iCheck -->
<link rel="stylesheet" href="backend/plugins/iCheck/square/blue.css">
示例10: editor
function editor()
{
$rubrik = $this->I18n_get_real($this->navi[$_GET['edit']]['Rubrik']);
$rubrik = $this->path_encode($rubrik);
$seite = $this->I18n_get_real($this->navi[$_GET['edit']]['Subnavi'][$_GET['edit_page']]['Seite']);
$seite = $this->path_encode($seite);
$folder = INSTALL_PATH . "/Content/{$rubrik}/{$seite}";
$wokingversion = isset($_GET['workingversion']) ? true : false;
if ($wokingversion && RheinaufFile::is_file($folder . "/Arbeitsversion/content.html")) {
$contents = RheinaufFile::get_file($folder . "/Arbeitsversion/content.html");
} else {
$contents = RheinaufFile::get_file($folder . "/content.html");
}
$_SESSION['rubrik'] = $this->path_encode($rubrik);
$_SESSION['seite'] = $this->path_encode($seite);
$_SESSION['docroot'] = DOCUMENT_ROOT;
$editor_page = new Html();
//$editor_page->body_attributes=array('onunload'=>'catchClose(xinha_editors.editor)');
$title = 'Editor für ' . PROJECT_NAME . ' -> ' . $rubrik . ' -> ' . $seite;
$title .= $wokingversion ? ' (Arbeitsversion)' : ' (Liveversion)';
$editor_page->title = $title;
$editor_page->script(' _editor_url = "/' . INSTALL_PATH . '/Libraries/Xinha/";_editor_lang = "de";_document_root = "' . DOCUMENT_ROOT . '"');
$editor_page->script('', array('src' => '/' . INSTALL_PATH . '/Libraries/Xinha/XinhaLoader.js'));
$editor_page->script('', array('src' => '/' . INSTALL_PATH . '/Libraries/XinhaConfig/editor.php'));
$editor_page->script("var project_name = '" . addslashes(PROJECT_NAME) . "';");
$styles = 'BODY {
margin: 0;
background-color:Menu;
font-size:12px;
padding:0;
font-family: sans-serif;
}
#editor {
width:100%;
height:500px;
}
/*---DropDowns*/
ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
position:absolute;
top:2px;
left:0px;
z-index:999;
cursor:default;
}
ul a {
cursor:default;
color:black;
text-decoration:none;
display:block;
}
li { /* all list items */
float: left;
position: relative;
width: 10em;
border:1px solid;
border-color:Menu;
padding-left:2px;
}
li:hover,li.over {
border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}
li ul { /* second-level lists */
display: none;
position: absolute;
top: 15px;
left: 0;
-moz-opacity:1;
filter:alpha(opacity = 100);
padding-bottom:5px;
}
li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}
li:hover ul, li.over ul { /* lists nested under hovered list items */
display: block;
background-color: Menu;
border:1px solid;
border-color:Menu ButtonShadow ButtonShadow ButtonHighlight;
}
li:hover ul a:hover, li.over ul a:hover {
color:white;
background-color:darkblue;
}
#content {
clear: left;
//.........这里部分代码省略.........
示例11: foreach
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
echo $title;
?>
</title>
<?php
foreach ($styles as $style) {
echo "\t" . Html::style($style) . "\n";
}
foreach ($scripts as $script) {
echo "\t" . Html::script($script) . "\n";
}
?>
</head>
<body>
<div class="wrapper">
<div class="header"><?php
echo $header;
?>
</div>
<div class="middle">
<div class="container">
<div class="content"><?php
echo $content;
?>
</div>
</div>
<div class="right-sidebar"><?php
示例12: foreach
<title><?php
if (isset($title)) {
echo $title;
}
?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="description" content="Demo app" />
<?php
foreach ($script as $key => $value) {
echo Html::script($value);
echo "\r\n";
}
foreach ($style as $key => $value) {
echo Html::style($value);
echo "\r\n";
}
?>
<!--[if lt IE 9]>
<script src="/assets/js/html5.js"></script>
<script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery.fn.cookiesFN();
});
示例13:
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php
echo $title;
?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le styles -->
@section('header')
@include('admin.block.header')
<?php
echo Html::style('/assets/css/mail.css');
?>
<?php
echo Html::style('/bootstrap-table/src/bootstrap-table.css');
?>
@show
</head>
<body>
<!-- Preloader -->
<div id="preloader">
<div id="status"> </div>
</div>
<!-- TOP NAVBAR -->
@section('top_side')
@include('admin.block.top_side')
@show
<!-- /END OF TOP NAVBAR -->
示例14: url
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>管理系统</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
@include('admin.block.base_header')
<?php
echo Html::style('/assets/css/signin.css');
?>
<link rel="stylesheet" href="http://static.womenshuo.com/@/womenshuo/lib/notice/toastr/toastr.css"/>
<script>
$(function(){
//验证表单
// $('form').Validform({
// label:".label",
// showAllError:true,
// tiptype:3
//
// });
//验证表单
//提交表单
$('form').ajaxForm({
url : '<?php
echo url("admin/login/login");
?>
',
type : 'post',
示例15: e
<?php
$__env->startSection('head');
?>
<?php
echo e(Html::style('assets/fancybox/jquery.fancybox.css'));
?>
<style>
img.kecil{
width: 200px;
}
</style>
<?php
$__env->stopSection();
?>
<?php
$__env->startSection('content');
?>
<legend>Data Soal # <?php
echo e($soal->kd_mapel);
?>
</legend>
<table class="table table-bordered">
<tr>
<td style="width:40%">Mata Pelajaran</td>
<td> : <?php
echo e($soal->kd_mapel);
?>