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


PHP CMS_Asset::add_themes_js方法代码示例

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


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

示例1:

$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');
$asset->add_themes_js('js/material.min.js', '{{ used_theme }}', 'default');
$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>
        <![endif]-->
        <script type="text/javascript">{{ widget_name:section_custom_script }}</script>
        {{ widget_name:section_top_fix }}
        {{ widget_name:static_accessories_slideshow }}
        <div class="container">
            <div class="row-fluid">
                <div>     
                    <div id="__section-left-and-content" class="col-md-12">
开发者ID:rajuyohannan,项目名称:No-CMS,代码行数:31,代码来源:slide-one-column.php

示例2:

?>
    <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 }}">
  </head>
  <body>
    {{ widget_name:quicklink }}
    <!--{{ widget_name:quicklink }}-->
开发者ID:heruprambadi,项目名称:simpeg,代码行数:30,代码来源:default.php

示例3:

    <!-- 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>
    <![endif]-->
    {{ widget_name:section_top_fix }}
    {{ widget_name:static_accessories_slideshow }}
    <div class="container">
        <div class="row-fluid">
            <div>     
                <div id="__section-left-and-content" class="col-md-9">
                    <div>{{ navigation_path }}</div><hr />
                    <div>
                        <div id="__section-left" class="hidden">{{ widget_name:section_left }}</div>
开发者ID:heruprambadi,项目名称:sim_penyuratan,代码行数:30,代码来源:slide.php

示例4: base_url

    <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 
echo $cms['site_favicon'];
?>
">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php 
echo base_url() . "themes/" . $cms['site_theme'] . "/assets/default/";
开发者ID:rado-tsvetkov,项目名称:No-CMS,代码行数:31,代码来源:default.php


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