本文整理汇总了PHP中CMS_Asset::add_themes_css方法的典型用法代码示例。如果您正苦于以下问题:PHP CMS_Asset::add_themes_css方法的具体用法?PHP CMS_Asset::add_themes_css怎么用?PHP CMS_Asset::add_themes_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMS_Asset
的用法示例。
在下文中一共展示了CMS_Asset::add_themes_css方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<html lang="{{ language:language_alias }}">
<head>
<meta charset="utf-8">
<title><?php
echo $template['title'];
?>
</title>
<?php
echo $template['metadata'];
?>
<link rel="icon" href="{{ site_favicon }}">
<!-- Le styles -->
<?php
echo $template['css'];
$asset = new CMS_Asset();
$asset->add_themes_css('bootstrap.min.css', '{{ used_theme }}', 'default');
$asset->add_themes_css('style.css', '{{ used_theme }}', 'default');
$asset->add_themes_css('css/roboto.min.css', '{{ used_theme }}', 'default');
$asset->add_themes_css('css/material.min.css', '{{ used_theme }}', 'default');
$asset->add_themes_css('css/ripples.min.css', '{{ used_theme }}', 'default');
echo $asset->compile_css();
?>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site_favicon }}">
<style type="text/css">{{ widget_name:section_custom_style }}</style>
</head>
<body>
<?php
echo $template['js'];
$asset->add_cms_js("bootstrap/js/bootstrap.min.js");
$asset->add_themes_js('js/ripples.min.js', '{{ used_theme }}', 'default');
示例2:
<head>
<meta charset="utf-8">
<title><?php
echo $template['title'];
?>
</title>
<?php
echo $template['metadata'];
?>
<link rel="icon" href="{{ site_favicon }}">
<!-- Le styles -->
<?php
$asset = new CMS_Asset();
$asset->add_cms_css('bootstrap/css/bootstrap.min.css');
$asset->add_themes_css('style.css', '{{ used_theme }}', 'default');
echo $asset->compile_css();
?>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site_favicon }}">
</head>
<body>
<?php
$asset->add_cms_js("bootstrap/js/bootstrap.min.js");
$asset->add_themes_js('script.js', '{{ used_theme }}', 'default');
echo $asset->compile_js();
?>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
示例3:
<html lang="{{ language:language_alias }}">
<head>
<meta charset="utf-8">
<title><?php
echo $template['title'];
?>
</title>
<?php
echo $template['metadata'];
?>
<link rel="icon" href="{{ site_favicon }}">
<!-- Le styles -->
<?php
echo $template['css'];
$asset = new CMS_Asset();
$asset->add_themes_css('bootstrap.min.css', '{{ used_theme }}', 'default');
$asset->add_themes_css('style.css', '{{ used_theme }}', 'default');
echo $asset->compile_css();
?>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site_favicon }}">
<style type="text/css">{{ widget_name:section_custom_style }}</style>
</head>
<body>
<?php
echo $template['js'];
$asset->add_cms_js("bootstrap/js/bootstrap.min.js");
$asset->add_themes_js('script.js', '{{ used_theme }}', 'default');
echo $asset->compile_js();
?>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
示例4:
echo $template['title'];
?>
</title>
<?php
echo $template['metadata'];
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="{{ site_favicon }}">
<!-- Le styles -->
<?php
$asset = new CMS_Asset();
$asset->add_themes_css('style.css', 'minimal', 'default');
$asset->add_themes_css('bootstrap.min.css', 'minimal', 'default');
echo $asset->compile_css();
$asset->add_cms_js("bootstrap/js/bootstrap.min.js");
$asset->add_cms_js('validate/js/number.js');
$asset->add_themes_js('script.js', 'minimal', 'default');
echo $asset->compile_js(TRUE);
?>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site_favicon }}">
示例5:
echo $template['title'];
?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="<?php
echo $cms['site_favicon'];
?>
">
<!-- Le styles -->
<?php
$asset = new CMS_Asset();
$asset->add_themes_css('style.css', $cms['site_theme'], 'default');
$asset->add_cms_css('bootstrap/css/bootstrap-all.min.css');
echo $asset->compile_css();
$asset->add_cms_js('nocms/js/jquery.js');
$asset->add_cms_js("bootstrap/js/bootstrap-all.min.js");
$asset->add_themes_js('script.js', $cms['site_theme'], 'default');
echo $asset->compile_js(TRUE);
?>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="<?php
示例6:
echo $template['title'];
?>
</title>
<?php
echo $template['metadata'];
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="{{ site_favicon }}">
<!-- Le styles -->
<?php
$asset = new CMS_Asset();
$asset->add_themes_css('style.css', '{{ site_theme }}', 'default');
$asset->add_themes_css('bootstrap.min.css', '{{ site_theme }}', 'default');
$asset->add_themes_css('bootstrap-responsive.min.css', '{{ site_theme }}', 'default');
echo $asset->compile_css();
$asset->add_cms_js("bootstrap/js/bootstrap.min.js");
$asset->add_themes_js('script.js', '{{ site_theme }}', 'default');
echo $asset->compile_js();
?>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="{{ site_favicon }}">