当前位置: 首页>>代码示例>>PHP>>正文


PHP getStyle函数代码示例

本文整理汇总了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);
}
开发者ID:nallar,项目名称:GrEmB,代码行数:28,代码来源:cssdaemon.php

示例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();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:10,代码来源:frontend_ErrorFrontend.php

示例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();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:11,代码来源:frontend_IndexFrontend.php

示例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();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:11,代码来源:frontend_PageFrontend.php

示例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();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:13,代码来源:frontend_ArticleFrontend.php

示例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;
开发者ID:JacoRuit,项目名称:orongocms,代码行数:31,代码来源:loadComments.php

示例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() . ")";
}
开发者ID:TracKer,项目名称:TorrentBar,代码行数:31,代码来源:torrentbar.php

示例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();
}
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:20,代码来源:cssFunctions.inc.php

示例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();
 }
开发者ID:JacoRuit,项目名称:orongocms,代码行数:29,代码来源:frontend_AdminFrontend.php

示例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;
    }
}
开发者ID:uakfdotb,项目名称:oneapp,代码行数:16,代码来源:common.php

示例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);
}
开发者ID:honchoman,项目名称:singpolyma,代码行数:24,代码来源:render.php

示例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;
开发者ID:JacoRuit,项目名称:orongocms,代码行数:31,代码来源:action_SaveOrongoSettings.php

示例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 {
开发者ID:uakfdotb,项目名称:oneapp,代码行数:31,代码来源:gen_pdf.php

示例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>
开发者ID:utilo-web-app-development,项目名称:REZERVI,代码行数:31,代码来源:styles.php

示例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';
开发者ID:h3len,项目名称:Project,代码行数:31,代码来源:logining_personal.php


注:本文中的getStyle函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。