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


PHP CMS_Asset::add_themes_css方法代碼示例

本文整理匯總了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');
開發者ID:rajuyohannan,項目名稱:No-CMS,代碼行數:31,代碼來源:slide-one-column.php

示例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>
開發者ID:heruprambadi,項目名稱:sim_penyuratan,代碼行數:31,代碼來源:slide.php

示例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 -->
開發者ID:ishawge,項目名稱:No-CMS,代碼行數:31,代碼來源:slide-one-column.php

示例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 }}">
開發者ID:heruprambadi,項目名稱:simpeg,代碼行數:31,代碼來源:default.php

示例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 
開發者ID:rado-tsvetkov,項目名稱:No-CMS,代碼行數:31,代碼來源:default.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 }}">
開發者ID:heruprambadi,項目名稱:simpeg,代碼行數:31,代碼來源:default.php


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