當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Style::Generate方法代碼示例

本文整理匯總了PHP中Style::Generate方法的典型用法代碼示例。如果您正苦於以下問題:PHP Style::Generate方法的具體用法?PHP Style::Generate怎麽用?PHP Style::Generate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Style的用法示例。


在下文中一共展示了Style::Generate方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: PrintHtmlHeader

 function PrintHtmlHeader($logout)
 {
     $style = new Style();
     echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
     echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >' . "\n";
     echo '  <head>' . "\n";
     echo '    <title>Shrew Gallery</title>' . "\n";
     echo '    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n";
     echo '<style type="text/css">' . "\n";
     echo $style->Generate();
     echo '</style>' . "\n";
     echo '  </head>' . "\n";
     echo '  <body>' . "\n";
     echo '  <div id="page">' . "\n";
     if ($logout) {
         echo '    <div id=logout><a href=index.php?want=logout >Déconnection</a></div>' . "\n";
     }
     echo '    <h1>Shrew gallery</h1>' . "\n";
 }
開發者ID:niavok,項目名稱:shrew-gallery,代碼行數:19,代碼來源:display_manager.php

示例2: PrintHtmlHeader

 function PrintHtmlHeader()
 {
     $style = new Style();
     echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
     echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >' . "\n";
     echo '  <head>' . "\n";
     echo '    <title>Shrew Gallery</title>' . "\n";
     echo '    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n";
     echo '<style type="text/css">' . "\n";
     echo $style->Generate();
     echo '</style>' . "\n";
     echo '  </head>' . "\n";
     echo '  <body>' . "\n";
     echo '  <div id="page">' . "\n";
     echo '<div id=top_menu>' . "\n";
     if ($this->currentAlbum && $this->currentAlbum->GetPath() != '.') {
         echo '  <a href="' . LinkManager::GetInstance()->GenerateParent() . '" >Album parent</a> ' . "\n";
     }
     if (LoginManager::GetInstance()->GetCurrentLogin() != 'public') {
         echo '    <a href="' . LinkManager::GetInstance()->GenerateWant('logout') . '" >Déconnection (' . LoginManager::GetInstance()->GetCurrentLogin() . ')</a>' . "\n";
     }
     echo '</div>' . "\n";
     echo '    <h1>Shrew gallery</h1>' . "\n";
 }
開發者ID:niavok,項目名稱:shrew-gallery-website,代碼行數:24,代碼來源:index.php


注:本文中的Style::Generate方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。