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


PHP Theme::javascript方法代码示例

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


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

示例1:

-->
<footer id="fh5co-footer">
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<p><?php 
echo $Site->footer();
?>
 <br> Powered by <a href="https://www.bludit.com" target="_blank">BLUDIT</a></p>
</div>
</div>
</div>
</footer>

<!-- Javascript
-->
<?php 
Theme::jquery();
Theme::javascript('jquery.waypoints.min.js');
Theme::javascript('main.js');
?>

<!-- Load plugins
- Hook: Site body end
-->
<?php 
Theme::plugins('siteBodyEnd');
?>

</body>
</html>
开发者ID:vorons,项目名称:bludit,代码行数:31,代码来源:index.php

示例2:

                    <p><?php 
echo $Site->footer();
?>
 | <?php 
echo $Language->get('Powered by');
?>
 <a target="_blank" href="http://www.bludit.com">Bludit</a></p>
                </div>
            </div>
        </div>
    </footer>
	<!-- Plugins Site Body End -->
<?php 
Theme::plugins('siteBodyEnd');
?>

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.js"></script>
	
	    <!-- Bootstrap Core JavaScript -->
    <?php 
Theme::javascript('bootstrap.min.js');
?>

</body>

</html>
开发者ID:hxii,项目名称:bludit-themes,代码行数:30,代码来源:index.php

示例3: elseif

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
// Javascript from theme/js/
Theme::javascript('rainbow.min.js');
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
<style>
开发者ID:roberthchan,项目名称:bludit,代码行数:31,代码来源:head.php

示例4:

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('main.css'));
//if IE <= 8
if (preg_match('/(?i)msie [5-8]/', $_SERVER['HTTP_USER_AGENT'])) {
    Theme::css(array('ie8.css'));
    Theme::javascript('html5shiv.js');
} else {
    //if IE > 8
    Theme::css(array('ie9.css'));
}
// Favicon from theme/img/
Theme::favicon('favicon.png');
?>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
开发者ID:HarleyDavidson86,项目名称:bludit-themes,代码行数:25,代码来源:head.php

示例5:

		
		<div class="credits section">
			<div class="credits-inner section-inner">
		
				<p class="credits-left">
					<span><?php 
echo $Site->footer();
?>
</span>
				</p>
				
				<p class="credits-right">
					<span>Lingonberry by <a href="http://www.andersnoren.se">Anders Noren</a> — </span><span>Ported by <a href="http://www.iamnobuna.ga">Hakim Zulkufli</a> — </span><a class="tothetop">Up ↑</a>
				</p>

				<div class="clear"></div>
			</div> <!-- /credits-inner -->
		</div> <!-- /credits -->
		
		<!-- Plugins Site Body End -->
		<?php 
Theme::plugins('siteBodyEnd');
?>
		
		<!-- Javascript -->
		<?php 
Theme::javascript(array('flexslider.min.js', 'global.js'));
?>
		
	</body>
</html>
开发者ID:acrox999,项目名称:lingonberry,代码行数:30,代码来源:index.php

示例6:

 | <?php 
echo $Language->get('Powered by');
?>
 <a target="_blank" href="http://www.bludit.com">Bludit</a> | Design by <a target="_blank" href="http://startbootstrap.com/">Startbootstrap</a></p>
                </div>
            </div>
        </div>
    </footer>

    <!-- jQuery -->
    <?php 
Theme::javascript('jquery.min.js');
?>

    <!-- Bootstrap Core JavaScript -->
    <?php 
Theme::javascript('bootstrap.min.js');
?>

    <!-- Custom Theme JavaScript -->
    <?php 
Theme::javascript('clean-blog.min.js');
?>

    <!-- Plugins Site Body End -->
    <?php 
Theme::plugins('siteBodyEnd');
?>

</body>
</html>
开发者ID:clstrfcuk,项目名称:bludit-themes,代码行数:31,代码来源:index.php

示例7: elseif

<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php 
echo $Site->description();
?>
">

<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS from theme/css/
Theme::css(array('blog.css', 'bootstrap.css', 'bootstrap.min.css', 'business-casual.css'));
// Javascript from theme/js/
Theme::javascript(array('rainbow.min.js', 'bootstrap.js', 'bootstrap.min.js', 'jquery.js'));
// Favicon from theme/img/
Theme::favicon('favicon.png');
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>

<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext" rel="stylesheet" type="text/css">

<!-- Pure and Google Fonts -->
<style>
开发者ID:hxii,项目名称:bludit-themes,代码行数:31,代码来源:head.php

示例8:

    <meta charset="UTF-8">

    <!-- Meta tag Title -->
    <title><?php 
echo $Site->title();
?>
</title>

    <!-- CSS -->
    <?php 
Theme::css('blog.css');
?>

    <!-- Javascript -->
    <?php 
Theme::javascript('blog.js');
?>

    <!-- Plugins site head -->
    <?php 
Theme::plugins('siteHead');
?>
</head>
<body>
    <!-- Plugins site body begin -->
    <?php 
Theme::plugins('siteBodyBegin');
?>

    <!-- Site Title -->
    <h1><?php 
开发者ID:HarleyDavidson86,项目名称:bludit-themes,代码行数:31,代码来源:index.php

示例9: elseif

} elseif ($Url->whereAmI() == 'post') {
    include PATH_THEME_PHP . 'post.php';
} elseif ($Url->whereAmI() == 'page') {
    include PATH_THEME_PHP . 'page.php';
}
?>
		</div>
	</div>

	<footer>
		<div class="container">
		<p class="text-centered foot-cp"><?php 
echo $Site->footer();
?>
 | <a href="http://afnizar.com">handcrafted by @flamekaizar</a></p>
		</div>
	</footer>

	<!-- Javascript -->
	<?php 
Theme::jquery();
Theme::javascript('kube.min.js');
?>

	<!-- Plugins Site Body Begin -->
	<?php 
Theme::plugins('siteBodyEnd');
?>

</body>
</html>
开发者ID:clstrfcuk,项目名称:bludit-themes,代码行数:31,代码来源:index.php

示例10: elseif

// <title>Site title</title>
Theme::title($Site->title());
// <meta name="description" content="Site description">
Theme::description($Site->description());
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
// <link rel="stylesheet" type="text/css" href="pure-min.css">
// <link rel="stylesheet" type="text/css" href="grids-responsive-min.css">
// <link rel="stylesheet" type="text/css" href="blog.css">
// <link rel="stylesheet" type="text/css" href="rainbow.github.css">
Theme::css(array('pure-min.css', 'grids-responsive-min.css', 'blog.css', 'rainbow.github.css'));
Theme::css(array('http://fonts.googleapis.com/css?family=Open+Sans:400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,cyrillic,latin-ext'), '');
// <script src="rainbow.min.js"></script>
Theme::javascript(array('rainbow.min.js'));
?>

<!-- Pure and Google Fonts -->
<style>
html, button, input, select, textarea,
.pure-g [class *= "pure-u"] {
	font-family: 'Open Sans', sans-serif;
}
</style>

<!-- Plugins Site Head -->
<?php 
Theme::plugins('siteHead');
开发者ID:joryphillips,项目名称:bludit,代码行数:31,代码来源:head.php

示例11: elseif

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
<title><?php 
echo $Site->title();
?>
</title>

<?php 
// CSS
Theme::css(array('style.css', 'bludit.css'));
// Javascript
Theme::javascript(array('jquery-1.12.0.min.js', 'jquery-migrate-1.2.1.min.js'));
// <meta name="keywords" content="HTML,CSS,XML,JavaScript">
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
    Theme::description($Post->description());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
    Theme::description($Page->description());
} else {
    Theme::description($Site->description());
}
?>

<!-- Custom Fonts -->
<link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Raleway:600,500,400" rel="stylesheet" type="text/css">

<!-- Favicon -->
<link rel="shortcut icon" href="<?php 
echo $Site->url();
?>
开发者ID:acrox999,项目名称:lingonberry,代码行数:31,代码来源:head.php

示例12: hxii

    echo $Page->title() . " – ";
}
echo $Site->title();
?>
</title>
<?php 
/* ===========================================================
	MONOCHROMATO for Bludit
==============================================================
	by hxii (http://paulglushak.com)
	Github: https://github.com/hxii/Monochromato
	Release Date: 2015/11/20
	Version: v0.1
============================================================== */
?>

<?php 
Theme::css(array('normalize.css', 'highlight.css', 'scss.php?p=main.scss'));
Theme::javascript('highlight.pack.js');
Theme::favicon('favicon.png');
if ($Url->whereAmI() == 'post') {
    Theme::keywords($Post->tags());
} elseif ($Url->whereAmI() == 'page') {
    Theme::keywords($Page->tags());
}
?>
<script>hljs.initHighlightingOnLoad();</script>
<!-- Custom Fonts -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,700,700italic,800&subset=latin,cyrillic' rel='stylesheet' type='text/css' rel="stylesheet" type="text/css">
<?php 
Theme::plugins('siteHead');
开发者ID:clstrfcuk,项目名称:bludit-themes,代码行数:31,代码来源:head.php


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