本文整理汇总了PHP中html::stylesheet方法的典型用法代码示例。如果您正苦于以下问题:PHP html::stylesheet方法的具体用法?PHP html::stylesheet怎么用?PHP html::stylesheet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类html
的用法示例。
在下文中一共展示了html::stylesheet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: codemirror
function codemirror($attrs)
{
$url = zotop::module('codemirror', 'url');
$options = new stdClass();
$options->path = $url . '/codemirror/js/';
$options->parserfile = array('parsexml.js');
$options->stylesheet = array($url . '/codemirror/css/xmlcolors.css');
$options->height = is_numeric($attrs['height']) ? $attrs['height'] . 'px' : $attrs['height'];
$options->width = is_numeric($attrs['width']) ? $width . 'px' : $attrs['width'];
$options->continuousScanning = 500;
$options->autoMatchParens = true;
if ($attrs['linenumbers'] !== false) {
$options->lineNumbers = true;
$options->textWrapping = false;
}
if ($attrs['tabmode'] == '') {
$options->tabMode = 'shift';
}
$html = array();
$html[] = html::script($url . '/codemirror/js/codemirror.js');
$html[] = html::stylesheet($url . '/codemirror/css/codemirror.css');
$html[] = ' ' . field::textarea($attrs);
$html[] = '<script type="text/javascript">';
$html[] = ' var editor = CodeMirror.fromTextArea("' . $attrs['name'] . '", ' . json_encode($options) . ');';
$html[] = '$(function(){';
$html[] = ' $("form").submit(function(){';
$html[] = ' $("textarea[name=+' . $attrs['name'] . '+]").val(editor.getCode());';
$html[] = ' });';
$html[] = '})';
$html[] = '</script>';
return implode("\n", $html);
}
示例2: auth
/**
* Méthode : formulaire d'authentification a l'administration
*/
public function auth()
{
$template = new View('template/no_html');
$template->css = html::stylesheet('index.php/css_' . base64_encode(implode('--', array('core', 'auth'))));
$template->contenu = new View('auth/form');
$template->render(true);
}
示例3: _header_css
/**
* Css Items
*/
private function _header_css()
{
$core_css = "";
$core_css .= html::stylesheet($this->css_url . "media/css/jquery-ui-themeroller", "", true);
foreach (Kohana::config("settings.site_style_css") as $theme_css) {
$core_css .= html::stylesheet($theme_css, "", true);
}
$core_css .= "<!--[if lte IE 7]>" . html::stylesheet($this->css_url . "media/css/iehacks", "", true) . "<![endif]-->";
$core_css .= "<!--[if IE 7]>" . html::stylesheet($this->css_url . "media/css/ie7hacks", "", true) . "<![endif]-->";
$core_css .= "<!--[if IE 6]>" . html::stylesheet($this->css_url . "media/css/ie6hacks", "", true) . "<![endif]-->";
if ($this->map_enabled) {
$core_css .= html::stylesheet($this->css_url . "media/css/openlayers", "", true);
}
if ($this->treeview_enabled) {
$core_css .= html::stylesheet($this->css_url . "media/css/jquery.treeview", "", true);
}
if ($this->photoslider_enabled) {
$core_css .= html::stylesheet($this->css_url . "media/css/picbox/picbox", "", true);
}
if ($this->videoslider_enabled) {
$core_css .= html::stylesheet($this->css_url . "media/css/videoslider", "", true);
}
if ($this->colorpicker_enabled) {
$core_css .= html::stylesheet($this->css_url . "media/css/colorpicker", "", true);
}
if ($this->site_style and $this->site_style != "default") {
$core_css .= html::stylesheet($this->css_url . "themes/" . $site_style . "/style.css");
}
// Render CSS
$plugin_css = plugin::render('stylesheet');
return $core_css . $plugin_css;
}
示例4: header_top
static function header_top($theme)
{
$session = Session::instance();
$highroller_theme = $session->get("highroller_theme", "");
if ($highroller_theme) {
print html::stylesheet(url::abs_file("modules/highroller/themes/{$highroller_theme}/theme.css"));
}
}
示例5: tri
public function tri($disable = false, $pager = false, $actif = true)
{
$this->limit_pager = $pager;
if (Table::$css === NULL) {
if (is_file(DOCROOT . 'css/table.css')) {
$this->display_glob .= html::stylesheet('css/table');
}
Table::$css = true;
}
if ($actif !== false && Table::$script === NULL) {
if (is_file(DOCROOT . 'js/jquery.table.js')) {
$this->display_glob .= html::script(array('js/jquery.table', 'js/jquery.tablesorter.filer'));
}
Table::$script = true;
}
if ($this->limit_pager !== false && Table::$pager === NULL) {
if (is_file(DOCROOT . 'js/jquery.table.pager.js') && is_file(DOCROOT . 'js/jquery.latest.js')) {
$this->display_glob .= html::script('js/jquery.table.pager');
}
Table::$pager = true;
}
if ($actif !== false) {
$this->display_glob .= '<script language="javascript" type="text/javascript">' . "\n";
$this->display_glob .= "\t" . '$(document).ready(function() { $("#' . $this->id_table . '").tablesorter({';
if ($disable && is_array($disable)) {
$this->display_glob .= 'headers: { ' . implode(': { sorter: false }, ', $disable) . ': { sorter: false } } ';
}
if ($disable && is_array($disable) && $pager) {
$this->display_glob .= ',';
}
if ($this->limit_pager) {
$this->display_glob .= 'widthFixed: true, widgets: [\'zebra\']';
}
$this->display_glob .= '})';
if ($this->limit_pager) {
$this->display_glob .= '.tablesorterPager({container: $("#pager_' . $this->id_table . '"), size : ' . $this->limit_pager . ', positionFixed: false})';
}
$this->display_glob .= '.tablesorterFilter({ filterContainer: $("#search_tri"), filterClearContainer: $("#delete_tri"),
filterCaseSensitive: false
})';
$this->display_glob .= '; } );' . "\n";
$this->display_glob .= '</script>' . "\n";
}
return $this;
}
示例6: header
public function header()
{
$header = $this->render('header');
if (!$header) {
$javascript = (array) $this->js;
$css = (array) $this->css;
$metas = (array) $this->meta;
$html[] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
$html[] = '<html xmlns="http://www.w3.org/1999/xhtml">';
$html[] = '<head>';
$html[] = ' <title>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
$html[] = ' ' . html::meta('keywords', $this->keywords . ' ' . zotop::config("zotop.keywords"));
$html[] = ' ' . html::meta('description', $this->description . ' ' . zotop::config("zotop.description"));
$html[] = ' ' . html::meta('Content-Type', 'text/html;charset=utf-8');
$html[] = ' ' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
foreach ($metas as $meta) {
$html[] = ' ' . html::meta($meta);
}
$html[] = ' ' . html::stylesheet('$theme/css/zotop.css', array('id' => 'zotop'));
$html[] = ' ' . html::stylesheet('$theme/css/global.css', array('id' => 'global'));
foreach ($css as $stylesheet) {
$html[] = ' ' . html::stylesheet($stylesheet);
}
$html[] = ' ' . html::script('$common/js/jquery.js', array('id' => 'jquery'));
$html[] = ' ' . html::script('$common/js/jquery.plugins.js', array('id' => 'plugins'));
$html[] = ' ' . html::script('$common/js/zotop.js', array('id' => 'zotop'));
$html[] = ' ' . html::script('$common/js/global.js', array('id' => 'global'));
foreach ($javascript as $js) {
$html[] = ' ' . html::script($js);
}
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
$html[] = '</head>';
$html[] = '<body' . html::attributes($this->body) . '>';
$html[] = '<div id="wrapper">';
$html[] = '<div id="page">';
$html[] = '';
$header = implode("\n", $html);
}
echo $header;
}
示例7: header
public function header()
{
$html[] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
$html[] = '<html xmlns="http://www.w3.org/1999/xhtml">';
$html[] = '<head>';
$html[] = ' <title>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
$html[] = ' ' . html::meta('keywords', $this->keywords);
$html[] = ' ' . html::meta('description', $this->description);
$html[] = ' ' . html::meta('Content-Type', 'text/html;charset=utf-8');
$html[] = ' ' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
$html[] = ' ' . html::stylesheet(ZOTOP_APP_URL_CSS . '/zotop.css', array('id' => 'zotop'));
$html[] = ' ' . html::stylesheet(ZOTOP_APP_URL_CSS . '/global.css', array('id' => 'global'));
$html[] = ' ' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link(ZOTOP_APP_URL_IMAGE . '/fav.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
$html[] = '</head>';
$html[] = '<body' . html::attributes($this->body) . '>';
$str = implode("\n", $html);
echo $str;
}
示例8: header
public function header()
{
$javascript = (array) $this->js;
$css = (array) $this->css;
$metas = (array) $this->meta;
$html[] = '<!DOCTYPE html>';
$html[] = '<html>';
$html[] = '<head>';
$html[] = ' <title>' . $this->title . ' ' . zotop::config("zotop.title") . '</title>';
$html[] = ' ' . html::meta('keywords', $this->keywords . ' ' . zotop::config("zotop.keywords"));
$html[] = ' ' . html::meta('description', $this->description . ' ' . zotop::config("zotop.description"));
$html[] = ' ' . html::meta('Content-Type', 'text/html;charset=utf-8');
$html[] = ' ' . html::meta('X-UA-Compatible', 'IE=EmulateIE7');
foreach ($metas as $meta) {
$html[] = ' ' . html::meta($meta);
}
$html[] = ' ' . html::stylesheet('$theme/css/zotop.css', array('id' => 'zotop'));
$html[] = ' ' . html::stylesheet('$theme/css/global.css', array('id' => 'global'));
foreach ($css as $stylesheet) {
$html[] = ' ' . html::stylesheet($stylesheet);
}
$html[] = ' ' . html::script('$common/js/jquery.js', array('id' => 'jquery'));
$html[] = ' ' . html::script('$common/js/jquery.plugins.js', array('id' => 'plugins'));
$html[] = ' ' . html::script('$common/js/zotop.js', array('id' => 'zotop'));
$html[] = ' ' . html::script('$common/js/global.js', array('id' => 'global'));
foreach ($javascript as $js) {
$html[] = ' ' . html::script($js);
}
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'shortcut icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'icon', 'type' => 'image/x-icon'));
$html[] = ' ' . html::link('$theme/image/favicon.ico', array('rel' => 'bookmark', 'type' => 'image/x-icon'));
$html[] = '</head>';
$html[] = '<body' . html::attributes($this->body) . '>';
$html[] = '<div id="wrapper">';
$html[] = '<div id="container" class="clearfix">';
$html[] = '';
echo implode("\n", $html);
}
示例9: jlib
public static function jlib()
{
if (@$_GET['AJAX_NO_LOAD'] == 'TRUE') {
return null;
}
$str = null;
$jsdir = Kohana::config('fpp_config.directory_js');
$str .= "\n <script type='text/javascript'>\n baseurl= '" . url::base(FALSE) . "';\n var BASE_OPENW = baseurl+'{$jsdir}openwysiwyg/';\n </script>";
$str .= html::script(array($jsdir . 'jquery-1.3.2.min.js', $jsdir . 'ui.core.js', $jsdir . 'jui/js/jquery-ui-1.7.2.custom.min.js', $jsdir . 'jquerylib.js', $jsdir . 'timepicker.js', $jsdir . 'i18n/ui.datepicker-es.js', $jsdir . 'jquery.prettyPhoto.js', $jsdir . 'ui.spinner.js', $jsdir . 'openwysiwyg/scripts/openwysiwyg.modified.js', $jsdir . 'openwysiwyg/scripts/wysiwyg-settings.js'));
$str .= html::stylesheet(array($jsdir . 'jui/css/le-frog/jquery-ui-1.7.2.custom.css', $jsdir . 'ui.spinner.css', $jsdir . 'prettyphoto/css/prettyPhoto.css'));
$str .= <<<EOF
<style type="text/css">
/*demo page css*/
body.nostyles{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
.demoHeaders { margin-top: 2em; }
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
ul#icons {margin: 0; padding: 0; width:30px;}
ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
ul#icons span.ui-icon {float: left; margin: 0 4px;}
</style>
<script type='text/javascript'>
\$(document).ready(function(){
\$('#dialog_link, ul#icons li').hover(
function() { \$(this).addClass('ui-state-hover'); },
function() { \$(this).removeClass('ui-state-hover'); }
);
\$("input[name\$='boleta_factura']").change(function(){
var current = \$(this).val();
\$(".area-boleta-factura").hide();
\$("#area-"+current).show(800);
});
})
</script>
EOF;
return $str;
}
示例10: foreach
<!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="text/html; charset=utf-8"/>
<title><?php
echo $title;
?>
| Kodoc</title>
<?php
foreach ($styles as $style => $media) {
echo html::stylesheet($style, $media, TRUE), "\n";
}
?>
<?php
foreach ($scripts as $script) {
echo html::script($script, TRUE), "\n";
}
?>
</head>
<body>
<div id="topline">
<ul id="quicklinks">
<li class="first"><?php
echo html::anchor('http://kohanaframework.org', ' ');
?>
</li>
<li class="active"><?php
echo html::anchor('/en/userguide', 'User Guide');
?>
</li>
<li><?php
示例11: renderLinks
public static function renderLinks($inline = FALSE, $index = FALSE)
{
// build a var with the included css files
$styles = self::$stylePaths;
self::$stylePaths = array();
// Get the session so we can track what assets are on the page
$session = Session::instance();
// If this is a full page load (ie not ajax) then there are no assest already on page
if (!request::is_ajax()) {
$session->delete('stylesheet.onPageAssets');
}
// Initialize the vars to track what has been added, and convience wrappers
$onPageAssets = $session->get('stylesheet.onPageAssets', array());
// loop all the css includes and determine what needs to go on this page
// and in what order
$styleOutputBuffer = array();
foreach ($styles as $cond => $condblock) {
// sort this condblock of style paths by weight
ksort($condblock);
$styleOutputBuffer[$cond] = array();
foreach ($condblock as $stylePaths) {
// make sure there are no duplicates in this array
$stylePaths = array_unique($stylePaths);
// make sure these css links are not already on the page
// via ajax/parent or in another weight category (lowest weight wins)
$stylePaths = array_diff($stylePaths, $onPageAssets);
// add the filtered list to the array of assets to put on the page
$styleOutputBuffer[$cond] = array_merge($styleOutputBuffer[$cond], $stylePaths);
// keep track of what we add to the pages
$onPageAssets = array_merge($onPageAssets, $stylePaths);
}
}
// NOTICE: setting $session here causes segfault during ajax
// made a hack to move this set outside the event .....
Bluebox_Controller::$onPageAssets['css'] = $onPageAssets;
//$session->set('stylesheet.onPageAssets', $onPageAssets);
// run through everything that needs to be on the page and
// make in conditional where apropriate then convert them into css links
$linkList = '';
foreach ($styleOutputBuffer as $cond => $stylePaths) {
// if all the includes are already on page move on
if (empty($stylePaths)) {
continue;
}
// create the css links
$links = html::stylesheet($stylePaths, 'screen', $index);
// if these are conditional css pages then wrap the links
// in the conditional statement
if (array_key_exists($cond, self::$cssconditional)) {
$links = sprintf(self::$cssconditional[$cond], "\n" . rtrim($links, "\n") . "\n");
}
// add these links to our string
$linkList .= $links;
}
// are we displaying this inline or returning the string
if ($inline) {
echo $linkList;
} else {
return $linkList;
}
}
示例12:
<!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">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php
if (isset($seoTitle)) {
echo html::specialchars($seoTitle);
}
?>
</title>
<?php
echo html::stylesheet(array('assets/css/reset.css', 'assets/css/forms.css', 'assets/css/navigation.css', 'assets/css/layout.css', 'assets/css/typography.css', 'assets/css/design.css', 'assets/css/jquery.thickbox.css', 'assets/css/jquery.datePicker.css'), 'screen', FALSE);
echo html::script(array('assets/js/jquery-1.2.6.min.js', 'assets/js/ui.jquery.js', 'assets/js/jquery.thickbox.js', 'assets/js/jquery.cycle.js'), FALSE);
if (isset($extraHead)) {
echo $extraHead;
}
?>
<script type="text/javascript">
$(function() {
$('#s1').cycle('fade');
$('#s3').cycle({
fx: 'scrollRight',
timeout: 8000,
speed: 3000 ,
});
$('#s2').cycle({
fx: 'custom',
示例13:
echo 'var impact_json = { ' . $impact_json . ' };';
echo '</script>';
echo html::script('media/js/raphael-ushahidi-impact', true);
}
// Load ColorPicker
if ($colorpicker_enabled) {
echo html::stylesheet('media/css/colorpicker', '', true);
echo html::script('media/js/colorpicker', true);
}
// Load TinyMCE
if ($editor_enabled) {
echo html::script('media/js/tinymce/tiny_mce', true);
}
// Turn on picbox
echo html::script('media/js/picbox', true);
echo html::stylesheet('media/css/picbox/picbox');
?>
<script type="text/javascript" charset="utf-8">
<?php
echo $js . "\n";
?>
function info_search(){
$("#info-search").submit();
}
</script>
</head>
<body>
<div class="holder">
<!-- header -->
<div id="header">
<!-- top-area -->
示例14:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php
echo Kohana::lang('ui_main.login');
?>
</title>
<?php
echo html::stylesheet(url::file_loc('css') . 'media/css/jquery-ui-themeroller', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/login', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/openid', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'media/css/global', '', TRUE);
echo html::stylesheet(url::file_loc('css') . 'themes/peace/css/_global.css', '', TRUE);
echo html::script(url::file_loc('js') . 'media/js/jquery', TRUE);
echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery', TRUE);
echo html::script(url::file_loc('js') . 'media/js/openid/openid-jquery-en', TRUE);
echo html::script(url::file_loc('js') . 'media/js/global', TRUE);
?>
<script type="text/javascript">
<?php
echo $js;
?>
</script>
</head>
<body>
<?php
echo $header_nav;
?>
示例15:
echo '<![endif]-->';
echo html::script('media/js/protochart/ProtoChart', true);
}
// Load Raphael
if ($raphael_enabled) {
// The only reason we include prototype is to keep the div element naming convention consistent
//echo html::script('media/js/protochart/prototype', true);
echo html::script('media/js/raphael', true);
echo '<script type="text/javascript" charset="utf-8">';
echo 'var impact_json = { ' . $impact_json . ' };';
echo '</script>';
echo html::script('media/js/raphael-ushahidi-impact', true);
}
// Load ColorPicker
if ($colorpicker_enabled) {
echo html::stylesheet('media/css/colorpicker', '', true);
echo html::script('media/js/colorpicker', true);
}
// Load TinyMCE
if ($editor_enabled) {
echo html::script('media/js/tinymce/tiny_mce', true);
}
?>
<script type="text/javascript" charset="utf-8">
<?php
echo $js . "\n";
?>
function info_search(){
$("#info-search").submit();
}
</script>