本文整理汇总了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";
}
示例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";
}