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


PHP GWF_Website::addCSS方法代码示例

本文整理汇总了PHP中GWF_Website::addCSS方法的典型用法代码示例。如果您正苦于以下问题:PHP GWF_Website::addCSS方法的具体用法?PHP GWF_Website::addCSS怎么用?PHP GWF_Website::addCSS使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GWF_Website的用法示例。


在下文中一共展示了GWF_Website::addCSS方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: html_head

function html_head($title = "WeChall", $withSidebar = false, $strict = true, $scripts = array(), $xhtml = true, $css = array())
{
    GWF_Website::setPageTitle($title);
    WC_HTML::$LEFT_PANEL = $withSidebar;
    WC_HTML::$RIGHT_PANEL = $withSidebar;
    foreach ($css as $path) {
        GWF_Website::addCSS($path);
    }
}
开发者ID:sinfocol,项目名称:gwf3,代码行数:9,代码来源:WC_HTML.php

示例2: execute

 public function execute()
 {
     switch (substr(Common::getGetString('fancy'), 0, 4)) {
         case 'head':
             GWF_Website::addCSS(sprintf('/tpl/%s/css/fancy.css', GWF3::getDesign()));
             return GWF3::onDisplayHead();
         case 'foot':
             return GWF3::onDisplayFoot();
         default:
             return GWF_HTML::err('ERR_PARAMETER', array(__FILE__, __LINE__, 'fancy'));
     }
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:12,代码来源:Fancy.php

示例3: chdir

<?php

chdir('../../../');
define('GWF_PAGE_TITLE', 'Z - Reloaded (ZZhellZ');
require_once 'challenge/gwf_include.php';
GWF_Website::addCSS(GWF_WEB_ROOT . 'challenge/Z/reloaded/css/zshellz2.css');
require_once 'challenge/html_head.php';
require_once 'challenge/Z/reloaded/zshellz_answers.php';
# Constants
define('ZRELOAD_NUM_LINES', 15);
global $chall;
global $zshellz;
global $prompt;
global $title;
global $allowcmd;
global $noresponse;
$title = 'Z - Reloaded';
if (false === ($chall = WC_Challenge::getByTitle($title))) {
    $chall = WC_Challenge::dummyChallenge($title, 6, '/challenge/Z/reloaded', false);
}
$prompt = '>';
$zshellz = array(ZRELOAD_LOCALHOST => array($chall->lang('your_box'), array('root@trinity_localhost#')));
# execute comand
$level = (int) Common::getPost('level', 1);
# do it
$ct = htmlspecialchars($chall->getVar('chall_title'), ENT_QUOTES);
//$css = array('/challenge/Z/reloaded/css/zshellz.css');
//html_head($ct, false, true, array(), true, $css);
html_head($ct, false);
$chall->showHeader(true);
zreload($level);
开发者ID:sinfocol,项目名称:gwf3,代码行数:31,代码来源:zshellz.php

示例4: stylesheet

 /** @todo rethink */
 public function stylesheet($path)
 {
     GWF_Website::addCSS(GWF_WEB_ROOT . $path);
     return $this;
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:6,代码来源:Show.php

示例5: define

require_once GWF_CORE_PATH . 'inc/install/GWF_InstallWizardLanguage.php';
// define('GWF_INSTALLATION', true);
define('GWF_STEP', Common::getGetString('step', '0'));
define('GWF_LOGGING_PATH', getcwd() . '/protected/installog');
$gwf = new GWF3(getcwd(), array('website_init' => false, 'autoload_modules' => false, 'load_module' => false, 'load_config' => false, 'start_debug' => true, 'get_user' => false, 'do_logging' => true, 'log_request' => true, 'blocking' => false, 'no_session' => true, 'store_last_url' => false, 'ignore_user_abort' => true));
GWF_Debug::setDieOnError(false);
# Website init
GWF_InstallWizardLanguage::init();
GWF_HTML::init();
# Set install language
$il = new GWF_LangTrans(GWF_CORE_PATH . 'lang/install/install');
GWF_InstallWizard::setGWFIL($il);
# Design init
GWF3::setDesign('install');
GWF_Website::addCSS(GWF_WEB_ROOT . 'tpl/install/css/install.css');
GWF_Website::addCSS(GWF_WEB_ROOT . 'tpl/install/css/design.css');
GWF_Website::setPageTitle('GWF Install Wizard');
$tVars = array('gwfpath' => GWF_PATH, 'gwfwebpath' => GWF_WWW_PATH, 'step' => GWF_STEP, 'il' => $il, 'steps' => 11, 'timings' => GWF_DebugInfo::getTimings());
GWF_Template::addMainTvars($tVars);
if (false !== Common::getPost('create_admin')) {
    $page = GWF_InstallWizard::wizard_9_1();
} elseif (false !== Common::getPost('test_db')) {
    $page = GWF_InstallWizard::wizard_1a();
} elseif (false !== Common::getPost('write_config')) {
    $page = GWF_InstallWizard::wizard_1b();
} elseif (false !== Common::getPost('install_modules')) {
    $page = GWF_InstallWizard::wizard_6_1();
} else {
    switch (GWF_STEP) {
        case '1':
            $page = GWF_InstallWizard::wizard_1();
开发者ID:sinfocol,项目名称:gwf3,代码行数:31,代码来源:install.php

示例6: templateStats

 private function templateStats()
 {
     if (false !== ($errors = $this->validate())) {
         return $errors;
     }
     $this->setPageTitles();
     GWF_Website::addJavascriptOnload('wcjsStatsJQuery();');
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/jquery-ui-1.8.5.custom.min.js');
     GWF_Website::addCSS(GWF_WEB_ROOT . 'tpl/wc4/css/ui-lightness/jquery-ui-1.8.5.custom.css');
     if ($this->user1 === false) {
         $form_action = GWF_WEB_ROOT . 'stats';
     } else {
         $form_action = GWF_WEB_ROOT . 'stats/' . $this->user1->urlencode('user_name');
     }
     $tVars = array('user1' => $this->user1, 'user2' => $this->user2, 'form_action' => $form_action, 'sites' => $this->getSites(), 'img_src' => $this->getImgSrc(), 'img_alt' => $this->getImgTitle(), 'icons' => isset($_POST['icons']), 'values' => isset($_POST['values']), 'zoom' => isset($_POST['zoom']), 'months' => $this->months === 0 ? '' : $this->months);
     return $this->module->templatePHP('stats.php', $tVars);
 }
开发者ID:sinfocol,项目名称:gwf3,代码行数:17,代码来源:Stats.php

示例7: chdir

<?php

chdir('../../');
define('GWF_PAGE_TITLE', 'Illuminati');
define('NO_HEADER_PLEASE', true);
require_once 'challenge/html_head.php';
GWF_Website::addCSS('some.css');
echo $gwf->onDisplayHead();
if (false === ($chall = WC_Challenge::getByTitle(GWF_PAGE_TITLE))) {
    $chall = WC_Challenge::dummyChallenge(GWF_PAGE_TITLE, 3, 'challenge/illuminati/index.php');
}
$chall->showHeader();
$chall->onCheckSolution();
echo GWF_Box::box($chall->lang('info'), $chall->lang('title'));
echo '<div class="chall">';
echo GWF_Box::box($chall->lang('challenge'), $chall->lang('ct'));
echo '</div>';
require GWF_CORE_PATH . 'module/WeChall/solutionbox.php';
formSolutionbox($chall);
echo $chall->copyrightFooter();
require_once 'challenge/html_foot.php';
开发者ID:sinfocol,项目名称:gwf3,代码行数:21,代码来源:index.php


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