本文整理汇总了PHP中functions::print_header方法的典型用法代码示例。如果您正苦于以下问题:PHP functions::print_header方法的具体用法?PHP functions::print_header怎么用?PHP functions::print_header使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类functions
的用法示例。
在下文中一共展示了functions::print_header方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
header("HTTP/1.1 403 Unauthorized");
require "assets/functions.php";
functions::print_header();
?>
<h1 class="center">Error | 403</h1>
<p class="center"> You are not to allowed to access this resource.</p>
<?php
functions::print_footer();
示例2: array
<?php
require "../assets/functions.php";
$projects_css = "<link rel='stylesheet' href='/assets/css/projects.css' type='text/css' />";
$projects_js = "<script type='text/javascript' src='/assets/js/projects.js'></script>";
functions::print_header("Projects | HexR", array(), array($projects_js), array($projects_css));
?>
<h1 class="center">HexR Projects</h1>
<p>When not working with clients, HexR works on projects to better serve the community. Here are some of the projects that we are working on:</p>
<div class="projects">
<div class="project-row">
<div class="project">
<div class="project-title">TWMaker</div>
<div class="project-subtitle">Access all your teachers' websites in one page</div>
<div class="project-description">TWMaker allows you to access the websites of 8 different teachers in one page, allowing you to access their websites anywhere with a simple to remember link.</div>
<div class="project-logos">
<div class="project-logo logo-github" data-bind-href="https://github.com/HexRdesign/twmaker"></div>
<div class="project-logo logo-favicon logo-favicon-twmaker" data-bind-href="/projects/twmaker"></div>
</div>
</div>
<div class="project">
<div class="project-title">ImageHosting</div>
<div class="project-subtitle">Quickly upload and store an image</div>
<div class="project-description">Image Hosting allows a user to upload an image and choose the file-name or have it randomly generated</div>
<div class="project-logos">
<div class="project-logo logo-github" data-bind-href="https://github.com/HexRdesign/imagehosting"></div>
<div class="project-logo logo-favicon logo-favicon-ih" data-bind-href="/projects/imagehosting"></div>
</div>
</div>
</div>
<div class="project-row">
示例3: tabs
<?php
require "../../assets/functions.php";
functions::print_header("TWMaker | HexR Projects");
?>
<h1 class="center">TWMaker- Projects from HexR</h1>
<p>TWMaker is a project developed for high school students to be able to quickly access their teacher's websites</p>
<p>It asks you a few questions to create a website with 8 tabs (one for each block)</p>
<p>That way you only have one link to remember, and can access their website anywhere!</p>
<p>TWMaker is being discontinued as of the 2015 Fall semester and will be replaced by StashBoard - The modern student dashboard which will make customobility and administration much cleaner, nicer and easier to use.</p>
<p><a href="//github.com/hexrdesign/twmaker" target="_blank">Check it out on GitHub</a>!</p>
<?php
functions::print_footer();
示例4:
<?php
require "../assets/functions.php";
functions::print_header("Clients | HexR");
?>
<h1 class="center">HexR Clients</h1>
<p>
This page isn't really of any use right now. Behind the scenes, we're working on a client interface to make it easy for clients to request help. Right now, please <a href="<?php
print functions::get_link("contact");
?>
">contact us</a> if you have any problems.
</p>
<?php
functions::print_footer();
示例5:
<?php
require "../../assets/functions.php";
functions::print_header("ImageHosting | HexR Projects");
?>
<h1 class="center">ImageHosting - Projects from HexR</h1>
<p>ImageHosting makes it easy for people to quickly upload and share images</p>
<p>ImageHosting is being re-written to ease the upload process and increase efficiency. Check back in a few months to see if it's been done!</p>
<p><a href="//github.com/hexrdesign/imagehosting" target="_blank">Check it out on GitHub</a>!</p>
<?php
functions::print_footer();
示例6: development
<?php
require "../assets/functions.php";
functions::print_header("Sponsors | HexR");
?>
<h1 class="center">HexR Sponsors</h1>
<p>HexR lives off of sponsors! The only way we can run is by you. Here are some people that sponsor us right now:</p>
<h3>We are currently sponsored by:</h3>
<ul>
<li><a href="https://www.gandi.net" target="_blank">Gandi Domain Management</a></li>
<li><a href="https://www.bitrixsoft.com" target="_blank">Bitrix for CRM</a></li>
<li><a href="https://www.yandex.com/" target="_blank">Yandex for mail services</a></li>
<li><a href="https://www.linode.com" target="_blank">Linode now provides us hosting!</a></li>
<li><a href="https://www.browserstack.com/" target="_blank">BrowserStack for project testing</a></li>
<li><a href="http://www.solveigmm.com/" target="_blank">Solveig MultiMedia for video recording</a></li>
<li><a href="https://www.codeanywhere.com/" target="_blank">CodeAnyWhere for integrated development (anywhere!)</a></li>
</ul>
<h3>Previous sponsors include:</h3>
<ul>
<li><a href="https://www.squee.co" target="_blank">Squee was our host until 4/27/2015</a></li>
</ul>
<?php
functions::print_footer();
示例7: switch
require "../assets/functions.php";
//functions::email(array("hexrdesign@gmail.com"));
if (isset($_GET['plan']) && in_array($_GET['plan'], $plans)) {
switch ($_GET['plan']) {
case "basic":
print "test";
break;
case "plus":
print "plus";
break;
case "platinum":
print "platinum";
break;
}
} else {
functions::print_header("Plans | HexR", array(), array(), array("<link rel=\"stylesheet\" href=\"../assets/css/request.css\" type='text/css' />"));
?>
<div class="container">
<h1 class="center">HexR | Plans</h1>
<p>The table below gives a quick description of our "plans". Click "Choose this plan" to request the plan.</p>
<table class="tg">
<tr>
<th class="normal">Feature</th>
<th class="special-2">Basic</th>
<th class="normal">Plus</th>
<th class="special-2">Platinum</th>
</tr>
<tr>
<td class="special">CMS</td>
<td class="special">Wordpress<br>(Can use other upon request)</td>
<td class="special">Wordpress(Can use other upon request)</td>
示例8: parseInt
{
$.fn.fullpage.moveTo(parseInt($(this).attr("data-scroll")));
});
$(".scroll-button a").click(function()
{
$.fn.fullpage.moveTo(parseInt($(this).parent().parent().attr("data-scroll")));
});
$(".scrollup").click(function()
{
$.fn.fullpage.moveTo(parseInt($("body").attr("class").split("fp-viewing-")[1])-1 > 0 ? parseInt($("body").attr("class").split("fp-viewing-")[1]):1)
});
});</script>';
$fullpage = "<script type='text/javascript' src=\"/assets/js/fullpage.min.js\"></script>";
$fullpagecss = "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/fullPage.js/2.5.6/jquery.fullPage.css\" type='text/css' />";
$main = "<link rel=\"stylesheet\" href=\"/assets/css/home.css\" type='text/css' />";
functions::print_header("Home | HexR", $meta = array(), $scripts = array($fullpage, $onload), $styles = array(functions::FONTAWESOME, $fullpagecss, $main));
?>
<section>
<div id="content">
<div class='section' id="home" data-anchor="home">
<div class="container content"><h1>HexR</h1><h4>Simply modern websites</h4></div>
<div class="scroll-button home-scroll" data-scroll="2">
<p>About us</p>
<div><a class="fa fa-5x fa-arrow-circle-down scroll-arrow" title="Next Section: About us"></a></div>
</div>
</div>
<div class='section' id="about" data-anchor="about">
<div class="container">
<h1>About HexR</h1><p>HexR - Noun - An organization founded in April 2014 dedicated to embodying the principles of the <a href="#" onclick="$.fn.fullpage.moveTo('initiative')">HexR initiative</a>.
</div>
<div class="scroll-button contact-scroll" data-scroll="3">