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


PHP Layout::header方法代码示例

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


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

示例1:

<?php

require_once '../layout.php';
echo Layout::header('trailer', 'trailer');
?>

<h1>Trailer</h1>

<div class="trailer_container">
	<a href="#" id="trailer">
		<img src="../img/trailer_preview.png" />
	</a>
</div>

<?php 
echo Layout::footer();
开发者ID:keeeeeegan,项目名称:rear-window-movie-site,代码行数:16,代码来源:index.php

示例2: arena

<?php

/*
INFO ON WHAT THIS PAGE WILL SHOW
Graphs of all my arena stats
Need to do importing of all my old arena runs
New feature of arena (how many of which rarity rarity)
*/
include_once "classes/functions.php";
include_once "classes/layout.php";
$functions = new Functions();
$layout = new Layout();
$database2 = new Database2();
$layout->title("HS Arena stats");
$layout->header();
$arena_id = Functions::Post_Int('ArenaID');
$new_arena = 0;
Functions::ClassList_Load_Classes($database2, $classes);
if (!Functions::ArenaRun_Load_ID($database2, $arena_id, $arena_run)) {
    if (!Functions::ArenaRun_Load_Active($database2, $arena_run)) {
        $new_arena = 1;
    }
}
if (!$new_arena) {
    Functions::ArenaRewards_Load_ArenaID($database2, $arena_run['id'], $arena_rewards);
    Functions::ArenaMatchList_Load_ArenaID($database2, $arena_run['id'], $arena_matches);
}
?>
<a href="index.php">Home</a>
<h1 style="margin: 5px;">Arena Stats and Data</h1>
开发者ID:khansen47,项目名称:hs_stats,代码行数:30,代码来源:arena.php

示例3: Jefferies

<?php

require_once '../layout.php';
echo Layout::header('about the film', 'about');
?>

<h1>About <span>the</span> film</h1>

<div class="rect">
	<img src="../img/movie_poster_art.png" alt="Movie poster" />

	<p>As his broken leg heals, wheelchair-bound L.B. Jefferies (James Stewart) becomes absorbed with the parade of life outside his window and soon fixates on a mysterious man whose behavior has Jefferies convinced a murder has taken place.</p>
	<p>Curioisity becomes obession as a man locked away in his apartment does only what he can, observe his surroundings. Will he discover the truth? Did a murder take place, or was Jefferies simply making connections out of random coincidences.</p>
	<p>Meanwhile, other windows reveal the daily lives of a dancer, a lonely woman, a composer, a dog and more. Grace Kelly, Thelma Ritter and Wendell Corey co-star in this Alfred Hitchcock-helmed classic.  James Stewart and Grace Kelly produce such a suspensful combo you are sure to be on the edge of your seat.</p>
	<p>Own it soon on Bluray and DVD!</p>
</div>

<?php 
echo Layout::footer();
开发者ID:keeeeeegan,项目名称:rear-window-movie-site,代码行数:19,代码来源:index.php


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