function head_part($data = array())
 {
     $xhtml = '';
     /** Show doctype web */
     $doctype = doctype($data['doctype']);
     $xhtml .= $doctype . "\n";
     /** Show meta first page (1) */
     $xhtml .= "<head>\n";
     /** Thêm thẻ meta cho phần đầu trang **/
     $xhtml .= meta_fluid();
     /** Show title **/
     $xhtml .= title_tag();
     /** show javascript part */
     $xhtml .= script_page();
     /** Thêm phần meta khác */
     $xhtml .= meta_first_page();
     $xhtml .= meta_last_page();
     /** Phần load CSS */
     $xhtml .= links_page();
     /** Phần ga */
     $xhtml .= ga_page();
     $xhtml .= "</head>\n";
     return $xhtml;
 }
Example #2
0
 function test_title_tag()
 {
     /* We need to test it with no params! */
     $this->assertEqual('<title>Wordless</title>', title_tag("Wordless"));
 }
Example #3
0
// if file matches slug
if (is_file('pages/' . $slug)) {
    ob_start();
} else {
    # 404
}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<?php 
echo meta_tags();
?>
		<?php 
echo title_tag();
?>
	</head>
	<body class="<?php 
echo slug_name($_name);
?>
">
		<div id="container">
			<div id="hd" class="container">
				<h1 id="logo"><a href="index.php"><?php 
echo get_site_name();
?>
</a></h1>
			</div><!--/hd-->
			<div id="bd" class="container">
				<div id="sidebar" class="column">