当前位置: 首页>>代码示例>>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;未经允许,请勿转载。