本文整理汇总了PHP中getStyle函数的典型用法代码示例。如果您正苦于以下问题:PHP getStyle函数的具体用法?PHP getStyle怎么用?PHP getStyle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getStyle函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateSub
function updateSub($sub)
{
global $lastPrint;
if ($lastPrint != "sub") {
echo "\nUpdated {$sub}";
} else {
echo ", {$sub}";
}
$lastPrint = "sub";
$css = getStyle($sub);
if (!$css) {
touch("subs/{$sub}.min.css");
return;
}
file_put_contents("cachedsubs/{$sub}.css", $css);
$cT = new cssEmoteParser();
$cT->parseString($css, $sub, true);
$cT->finalize();
$d = $cT->toString();
if (!$d && file_exists("subs/{$sub}.min.css")) {
unlink("subs/{$sub}.min.css");
$lastPrint = "delete";
echo "\nDeleted {$sub} - empty!";
return;
}
file_put_contents("subs/{$sub}.min.css", $d);
file_put_contents("subs/{$sub}.count", $cT->emoteCount);
}
示例2: render
public function render()
{
getDisplay()->setTitle(Settings::getWebsiteName() . " - " . l("Error") . " " . $this->errorCode);
getDisplay()->setTemplateVariable("error_code", $this->errorCode);
getStyle()->run();
getDisplay()->add("header");
getDisplay()->add("error");
getDisplay()->add("footer");
getDisplay()->render();
}
示例3: render
public function render()
{
getDisplay()->setTitle(Settings::getWebsiteName() . " - " . l("HOME"));
getDisplay()->setTemplateVariable("body", $this->body);
getDisplay()->setTemplateVariable("articles", $this->articleHTML);
getStyle()->run();
getDisplay()->add("header");
getDisplay()->add("index");
getDisplay()->add("footer");
getDisplay()->render();
}
示例4: render
public function render()
{
getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->page->getTitle());
getDisplay()->setTemplateVariable("body", $this->body);
getDisplay()->setTemplateVariable("page", $this->page);
getStyle()->run();
getDisplay()->add("header");
getDisplay()->add("page");
getDisplay()->add("footer");
getDisplay()->render();
}
示例5: render
public function render()
{
getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->article->getTitle());
getDisplay()->setTemplateVariable("body", $this->body);
getDisplay()->addHTML('<meta name="keywords" content="' . $this->article->getTagsString() . '"/>', 'head');
getDisplay()->setTemplateVariable("article", $this->article);
getDisplay()->setTemplateVariable("comments", $this->commentHTML);
getStyle()->run();
getDisplay()->add("header");
getDisplay()->add("article");
getDisplay()->add("footer");
getDisplay()->render();
}
示例6: orongo_query
exit;
} else {
$newLCID = $comment->getID();
}
}
$newComments = null;
try {
$newComments = orongo_query("action=fetch&object=comment&max=1000000&offset=" . Security::escape($_POST['offset']) . "&order=comment.id,asc&where=article.id:" . Security::escape($_POST['article']));
} catch (Exception $e) {
die("500");
}
$newComments = array_reverse($newComments);
$html = "";
if (getStyle()->doCommentHTML()) {
try {
$html = getStyle()->getCommentsHTML($newComments);
} catch (Exception $e) {
foreach ($newComments as $comment) {
$html .= $comment->toHTML();
}
}
} else {
foreach ($newComments as $comment) {
$html .= $comment->toHTML();
}
}
$succesArray = array();
$succesArray["response"] = "Ok!";
$succesArray["response_code"] = OK;
$succesArray["count"] = count($newComments);
$succesArray["html"] = $html;
示例7: changePostfixName
//trck_BF_Unload($this->font);
}
public function changePostfixName($postfixID, $newName)
{
if (!isset($this->systems_data[$this->system][$postfixID])) {
//throw Exception (Not exists)
return null;
}
$this->systems_data[$this->system][$postfixID]['name'] = $newName;
}
private function throwException($function, $code, $message)
{
$E = new Exception('TorrentBar exception in ' . $function . ': ' . $message, $code);
throw $E;
}
}
//===========================================================================
// Main body
//===========================================================================
$user_id = getParam();
$style_id = getStyle();
define('BB_ROOT', '1');
include $torrentpier_config_path;
try {
$torrentbar = new TorrentBar($user_id);
$template = $torrentbar->useTemplate($style_id);
include $template;
$torrentbar->Finalize();
} catch (Exception $E) {
echo $E->getMessage() . " (Code:" . $E->getCode() . ")";
}
示例8: setStyle
/**
* author: coster
* date: 5.10.05
* setzt ein stylesheet mit dem klassennamen $classname
* */
function setStyle($classname, $wert, $gastro_id)
{
global $db;
$style = getStyle($classname, $gastro_id);
if (!empty($style)) {
$query = "UPDATE \n\t\t\t\tBOOKLINE_CSS\n\t\t\t\tset\n\t\t\t\tWERT = '{$wert}'\n\t\t\t\tWHERE\n\t\t\t\tGASTRO_ID = '{$gastro_id}'\n\t\t\t\tand\n\t\t\t\tClassname = '{$classname}'\n\t\t\t\t";
} else {
$query = "insert into \n\t\t\t\tBOOKLINE_CSS\n\t\t\t\t(GASTRO_ID,CLASSNAME,WERT)\n\t\t\t\tvalues\n\t\t\t\t('{$gastro_id}','{$classname}','{$wert}')\n\t\t\t\t";
}
$res = $db->Execute($query);
if (!$res) {
return false;
}
return $db->Insert_ID();
}
示例9: render
public function render()
{
getDisplay()->setTitle(Settings::getWebsiteName() . " - " . $this->pageTitle);
getDisplay()->setTemplateVariable("body", $this->body);
if (count($this->msgs) > 0) {
$msgstring = "";
foreach ($this->msgs as $msg) {
if (!is_array($msg)) {
continue;
}
$msgstring .= '<h4 class="alert_' . $msg['msgtype'] . '">' . $msg['msg'] . "</h4>";
}
getDisplay()->setTemplateVariable("msgs", $msgstring);
}
$objectshtml = "";
foreach ($this->objects as $object) {
if ($object instanceof AdminFrontendObject == false) {
continue;
}
$objectshtml .= $object->toHTML();
}
getDisplay()->setTemplateVariable("objects", $objectshtml);
getDisplay()->setTemplateVariable("current_page", $this->pageTitle);
getDisplay()->setTemplateVariable("style_url", Settings::getWebsiteURL() . "orongo-admin/theme/");
getStyle()->run();
getDisplay()->add("header");
getDisplay()->add($this->pageTemplate);
getDisplay()->render();
}
示例10: style_function
function style_function($name)
{
$basePath = basePath();
$style = getStyle();
$stylePath = $basePath . "/astyle/{$style}";
if (file_exists($stylePath . "/include.php")) {
include_once $stylePath . "/include.php";
if (function_exists($style . "_" . $name)) {
return $style . "_" . $name;
} else {
return FALSE;
}
} else {
return FALSE;
}
}
示例11: page_render
/**
* Render an HTML page
*/
function page_render($body, $user, $title, $h1 = null, $login = false)
{
$h1 = $h1 ? $h1 : $title;
if ($user) {
$msg = sprintf(logged_in_pat, link_render($user));
$nav = array('logout' => 'Log Out', 'sites' => 'Remembered Sites');
$navigation = navigation_render($msg, $nav);
} else {
if (!$login) {
$msg = link_render(buildURL('login'), 'Log In');
$navigation = navigation_render($msg, array());
} else {
$navigation = '';
}
}
$style = getStyle();
$text = sprintf(page_template, $title, $style, $navigation, $h1, $body);
// No special headers here
$headers = array();
return array($headers, $text);
}
示例12: header
if (getUser()->getRank() != RANK_ADMIN) {
header("Location: " . orongoURL("orongo-admin/index.php?msg=0"));
exit;
}
if (!isset($_POST['website_url']) || !isset($_POST['website_style']) || !isset($_POST['website_name']) || !isset($_POST['website_lang']) || !isset($_POST['show_archive'])) {
header("Location: " . orongoURL("orongo-admin/orongo-settings.php"));
exit;
}
if (Settings::getWebsiteURL() != $_POST['website_url'] && !empty($_POST['website_url'])) {
Settings::setWebsiteURL($_POST['website_url']);
}
if (Settings::getWebsiteName() != $_POST['website_name'] && !empty($_POST['website_name'])) {
Settings::setWebsiteName($_POST['website_name']);
}
if (Settings::getLanguageName() != $_POST['website_lang'] && !empty($_POST['website_lang'])) {
Settings::setLanguageName($_POST['website_lang']);
}
if (strval(Settings::showArchive()) != $_POST['show_archive'] && !empty($_POST['show_archive'])) {
Settings::setShowArchive($_POST['show_archive']);
}
if (getStyle()->getStyleFolder() != $_POST['website_style'] && file_exists(ROOT . "/themes/" . $_POST['website_style']) . "/info.xml") {
try {
Settings::setStyle($_POST['website_style']);
} catch (Exception $e) {
$msgbox = new MessageBox("Can't install style: " . $_POST['website_style']);
$msgbox->bindException($e);
die($msgbox->getImports() . $msgbox->toHTML());
}
}
header("Location: " . orongoURL("orongo-admin/orongo-settings.php?msg=0"));
exit;
示例13: mysql_query
if (isset($_REQUEST['gen'])) {
$result = mysql_query("SELECT varname, vardesc, vartype, '' FROM {$database} WHERE {$whereString} ORDER BY orderId");
if ($club_id != 0) {
$whereString = "id = '" . $club_id . "'";
$clubInfo = clubInfo($club_id);
//array (club name, club description, open_time, close_time, num_recommendations)
$sectionheader = "Supplement: " . $clubInfo[0];
} else {
$sectionheader = "General Application";
}
$createResult = generatePDFByResult($result, "../pdf/", $sectionheader);
if (!$createResult[0]) {
$error = "Error during PDF generation: " . $createResult[1];
} else {
$basePath = basePath();
$style = getStyle();
$stylePath = $basePath . "/astyle/{$style}";
$message = "<a href=\"../pdf/" . $createResult[1] . ".pdf\"><img src=\"" . $stylePath . "/images/application_word.png\" width=\"64\"></a>";
$success = "PDF made!";
}
}
if (isset($error)) {
get_page_advanced("gen_pdf", "admin", array('error' => $error, 'message' => $message, 'categories' => $categories));
} else {
if (isset($success)) {
get_page_advanced("gen_pdf", "admin", array('success' => $success, 'message' => $message, 'categories' => $categories));
} else {
get_page_advanced("gen_pdf", "admin", array('message' => $message, 'categories' => $categories));
}
}
} else {
示例14: getUebersetzung
if ($stylesheet == FREI) {
$designFuer = "frei";
}
}
}
}
}
}
}
}
}
}
//uebersetzen:
$designFuer = getUebersetzung($designFuer);
//vorherigen style aus datenbank auslesen:
$style = getStyle($stylesheet, $vermieter_id);
?>
<p class="<?php
echo STANDARD_SCHRIFT_BOLD;
?>
"><?php
echo getUebersetzung("Design f�r");
?>
"<?php
echo $designFuer;
?>
" <?php
echo getUebersetzung("bearbeiten");
?>
</p>
示例15: foreach
}
}
?>
<link href="../../lib/css/page.css" type="text/css" rel="stylesheet" />
<link href="../../lib/css/personal.css" type="text/css" rel="stylesheet" />
<section class="main-wrap">
<ul class="list login-type">
<?php
foreach ($login_icon['icons'] as $k => $v) {
?>
<li><a class="anchor <?php
echo $v;
?>
" href="login_form.php?type=<?php
echo $v;
?>
"><img src="../../lib/images/personal/icon_<?php
echo $v;
?>
.png" />
<span>用<?php
getStyle($v);
?>
登录</span></a></li>
<?php
}
?>
</ul>
</section>
<?php
require '../../lib/footer/footer.php';