function stylesheet_include_tag($style_names) { if (is_array($style_names)) { $tags = ''; foreach ($style_names as $style) { $tags .= stylesheet_include_tag($style) . "\n"; } return $tags; } $url = is_external_url($style_names) ? $style_names : url_for("/css/{$style_names}?v=" . TIPI::getVersion()); return '<link href="' . $url . '" media="screen" rel="stylesheet" type="text/css" />'; }
<!DOCTYPE html> <html> <head> <title><?php echo (isset($page) && !empty($page) ? $page->getAbsTitle() : ($title ? $title : 'Page Not Found')); ?> | <?php echo SITE_NAME; ?> </title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <?php echo stylesheet_include_tag(array('book.css', 'main.css', 'highlight.css', 'tipsy.css')); echo javascript_include_tag(array('jquery-1.5.min.js', 'jquery.tipsy.js', 'book.js')); ?> <meta name="description" content="<?php echo SITE_DESC; ?>" /> <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME;?>" href="<?php echo url_for("/feed/"); ?>" /> <link rel="shortcut icon" href="<?php echo url_for("/favicon.ico"); ?>" type="image/vnd.microsoft.icon"> <!--[if IE]><?php echo stylesheet_include_tag('ie.css'); ?><![endif]--> </head> <body id='book'> <?php SimpieView::include_partial("../templates/layout/_header.php"); ?> <div id="wrapper"> <div id="book_header"> <h1><a href='<?php echo url_for("/"); ?>'><span>深入理解PHP内核<span></a></h1> <p>Thinking In PHP Internal</p> </div> <div id="book_main" class="clearfix"> <div class="<?php if($is_detail_view) {echo 'inner-wrapper';} ?> clearfix"> <div id="<?php echo ($is_detail_view ? 'book_content' : 'book_index'); ?>" > <?php SimpieView::include_partial("../templates/layout/_book_tools.php", array('page' => $page, 'extra' => array('title' => ($title ? $title : '')))); ?> <div id="book_body" class="inner-containner"> <?php echo $layout_content; ?> <?php if($is_detail_view): ?> <?php SimpieView::include_partial("../templates/layout/_book_navor.php", array('page' => $page)); ?>
<!DOCTYPE html> <html> <head> <title><?php echo SITE_NAME; ?> </title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <?php echo stylesheet_include_tag(array('portable.css', 'highlight.css')); ?> </head> <body id="portable" class="pdf"> <?php foreach ($pages as $i => $page) { ?> <div class='page <?php if ($page->isChapterIndex()) { echo 'page-break'; } ?> '> <?php echo $page->toHtml(); ?> </div> <?php } ?> </body> </html>
echo SITE_DESC; ?> " /> <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> " href="<?php echo url_for("/feed/"); ?> " /> <link rel="shortcut icon" href="<?php echo url_for("/favicon.ico"); ?> " type="image/vnd.microsoft.icon"> <!--[if IE]><?php echo stylesheet_include_tag('ie.css'); ?> <![endif]--> </head> <body id='book'> <?php SimpieView::include_partial("../templates/layout/_header.php"); ?> <div id="wrapper"> <div id="book_header"> <h1><a href='<?php echo url_for("/"); ?> '><span>深入理解PHP内核<span></a></h1> <p>Thinking In PHP Internal</p> </div>
<!DOCTYPE html> <html> <head> <title><?php echo isset($page) && !empty($page) ? $page->getAbsTitle() : ($title ? $title : 'Page Not Found'); ?> | <?php echo SITE_NAME; ?> </title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <?php echo stylesheet_include_tag(array('book.css', 'main.css', 'highlight.css', 'tipsy.css')); echo javascript_include_tag(array('jquery-1.5.min.js', 'jquery.tipsy.js', 'book.js')); // google search api echo javascript_include_tag("http://www.google.com/jsapi?key=AIzaSyDP4wJCphYhYAWaqAecUh1hiB7zzbJMqPs"); ?> <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> " href="<?php echo url_for("/feed/"); ?> " /> <link rel="shortcut icon" href="<?php echo url_for("/favicon.ico"); ?> " type="image/vnd.microsoft.icon"> </head> <body<?php
<!DOCTYPE html> <html> <head> <title><?php echo $title; ?> | <?php echo SITE_NAME; ?> </title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <?php echo stylesheet_include_tag(array('book.css', 'main.css')); ?> <meta name="description" content="<?php echo SITE_DESC; ?> " /> <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> " href="<?php echo url_for("/feed/"); ?> " /> <link rel="shortcut icon" href="<?php echo url_for("/favicon.ico"); ?> " type="image/vnd.microsoft.icon"> <?php SimpieView::include_partial("templates/layout/_google_analytics.php");