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


PHP Lobby::addStyle方法代码示例

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


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

示例1: array

<?php

if (!\Lobby::status("lobby.serve")) {
    /**
     * For enabling access by \Lobby\Panel
     */
    require __DIR__ . "/class.panel.php";
    /**
     * Panel UI
     */
    if (!\Lobby::status("lobby.install")) {
        \Lobby::addScript("superfish", "/includes/lib/modules/panel/lib/superfish.js");
        \Lobby::addStyle("panel", "/includes/lib/modules/panel/lib/panel.css");
        \Lobby::addScript("panel", "/includes/lib/modules/panel/lib/panel.js");
    }
    if (\Lobby::$config['server_check'] === true) {
        /**
         * Default Items provided by the module
         */
        \Lobby\Panel::addTopItem("netStatus", array("html" => "<span id='net' title='Online'></span>", "position" => "right"));
        \Lobby::addScript("panel-item-connection", "/includes/lib/modules/panel/connection/connection.js");
    }
    \Lobby::hook("body.begin", function () {
        include __DIR__ . "/panel.ui.php";
    });
    \Lobby::hook("admin.body.begin", function () {
        include __DIR__ . "/panel.ui.php";
    });
}
开发者ID:anandubajith,项目名称:lobby,代码行数:29,代码来源:load.php

示例2: addStyle

 public function addStyle($fileName)
 {
     $url = "/contents/apps/{$this->id}/src/CSS/{$fileName}";
     \Lobby::addStyle("{$this->id}-{$fileName}", $url);
 }
开发者ID:saviobosco,项目名称:lobby,代码行数:5,代码来源:App.php

示例3:

<?php

\Lobby::addScript("dynscroll", "/includes/lib/scrollbar/scrollbar.js");
\Lobby::addStyle("dynscroll", "/includes/lib/scrollbar/scrollbar.css");
$this->addScript("/jquery.scrollTo.js");
$this->addStyle("/game.css");
$this->addScript("/game.js");
?>
<div class="contents">
  <div class="loading">
    <img src="<?php 
echo APP_SRC;
?>
/src/Image/loading.gif" />
  </div>
  <div class="controls">
    <a id="newGame">New</a>
    <a id="solveGame">Solve</a>
  </div>
  <div class="letters"></div>
  <div class="input"></div>
  <div class="submit">
    <a class='button'>Submit</a>
    <div class='status'></div>
  </div>
  <div class="boxes">
    <div class="boxes-inner">
      <div class='section' id='sec1'></div>
    </div>
  </div>
  <audio src='<?php 
开发者ID:saviobosco,项目名称:lobby,代码行数:31,代码来源:index.php

示例4: addStyle

 /**
  * Tell Lobby to load a stylesheet
  */
 public function addStyle($file_location)
 {
     $url = "/contents/themes/" . THEME_ID . $file_location;
     \Lobby::addStyle("theme." . THEME_ID . "-{$file_location}", $url);
 }
开发者ID:saviobosco,项目名称:lobby,代码行数:8,代码来源:Theme.php

示例5: getOption

    $lobby_version = getOption("lobby_version");
    $latestVersion = getOption("lobby_latest_version");
    if (\Lobby\FS::exists("/upgrade.lobby")) {
        require_once L_DIR . "/includes/src/Update.php";
        $l_info = json_decode(\Lobby\FS::get("/lobby.json"));
        if ($lobby_version != $l_info->version) {
            saveOption("lobby_latest_version", $l_info->version);
            saveOption("lobby_latest_version_release", $l_info->released);
        }
        \Lobby\Update::finish_software_update();
    }
    if (count($AppUpdates) != 0 || $latestVersion && $lobby_version != $latestVersion) {
        \Lobby\UI\Panel::addTopItem("updateNotify", array("html" => \Lobby::l("/admin/update.php", "<span id='update' title='An Update Is Available'></span>"), "position" => "right"));
    }
}
if (\Lobby::status("lobby.install")) {
    \Lobby::addStyle("admin", "/includes/lib/core/CSS/admin.css");
}
if (\Lobby::status("lobby.admin")) {
    /**
     * Add Admin Pages' stylesheet
     */
    \Lobby::addStyle("admin", "/includes/lib/core/CSS/admin.css");
    /**
     * Check For New Versions (Apps & Core)
     */
    if (\Lobby::$config['server_check'] === true && !isset($_SESSION['checkedForLatestVersion'])) {
        \Lobby\Server::check();
        $_SESSION['checkedForLatestVersion'] = 1;
    }
}
开发者ID:saviobosco,项目名称:lobby,代码行数:31,代码来源:init.php

示例6: header

<?php

include "../load.php";
header('Content-type: text/html; charset=utf-8');
?>
<html>
  <head>
    <?php 
\Lobby::addStyle("lobby-store", "/includes/lib/core/CSS/lobby-store.css");
\Lobby::head("Lobby Store");
?>
  </head>
  <body>
    <?php 
\Lobby::doHook("admin.body.begin");
include "{$docRoot}/admin/sidebar.php";
?>
    <div class="workspace">
      <div class="content">
        <?php 
if (isset($_GET['id']) && $_GET['id'] != "") {
    $app = \Lobby\Server::Store(array("get" => "app", "id" => $_GET['id']));
    if ($app == "false") {
        ser("404 - App Not Found", "App was not found in Lobby Store.");
    } else {
        $appImage = $app['image'] != "" ? $app['image'] : L_URL . "/includes/lib/core/Img/blank.png";
        $c = $app['category'];
        $sc = $app['sub_category'];
        ?>
            <h1><?php 
        echo "<a href='" . L_SERVER . "/../apps/{$app['id']}' target='_blank'>{$app['name']}</a>";
开发者ID:anandubajith,项目名称:lobby,代码行数:31,代码来源:lobby-store.php

示例7: defaults

 /**
  * Define some pages by default
  */
 public static function defaults()
 {
     /**
      * Route App Pages (/app/{appname}/{page}) to according apps
      */
     self::route("/app/[:appID]?/[**:page]?", function ($request) {
         $AppID = $request->appID;
         $GLOBALS['AppID'] = $AppID;
         $page = $request->page != "" ? "/{$request->page}" : "/";
         /**
          * Check if App exists
          */
         $App = new \Lobby\Apps($AppID);
         if ($App->exists && $App->isEnabled() && substr($page, 0, 7) != "/Admin/") {
             $class = $App->run();
             $AppInfo = $App->info;
             /**
              * Set the title
              */
             \Lobby::setTitle($AppInfo['name']);
             /**
              * Add the App item to the navbar
              */
             \Lobby\Panel::addTopItem("lobbyApp{$AppID}", array("text" => $AppInfo['name'], "href" => APP_URL, "position" => "left"));
             $page_response = $class->page($page);
             if ($page_response == "auto") {
                 if ($page == "/") {
                     $page = "/index";
                 }
                 $GLOBALS['workspaceHTML'] = $class->inc("/src/Page{$page}.php");
             } else {
                 $GLOBALS['workspaceHTML'] = $page_response;
             }
             if ($GLOBALS['workspaceHTML'] == null) {
                 ser();
             }
         } else {
             ser();
         }
     });
     /**
      * Dashboard Page
      * The main Page. Add CSS & JS accordingly
      */
     self::route("/", function () {
         \Lobby::addScript("metrojs", "/includes/lib/metrojs/metrojs.js");
         \Lobby::addStyle("metrojs", "/includes/lib/metrojs/metrojs.css");
         \Lobby::addScript("dynscroll", "/includes/lib/scrollbar/scrollbar.js");
         \Lobby::addStyle("dynscroll", "/includes/lib/scrollbar/scrollbar.css");
         \Lobby::addScript("jquery.contextmenu", "/includes/lib/jquery/jquery.contextmenu.js");
         \Lobby::addStyle("jquery.contextmenu", "/includes/lib/jquery/jquery.contextmenu.css");
         \Lobby::addScript("dashboard", "/includes/lib/core/JS/dashboard.js");
         \Lobby::addStyle("dashboard", "/includes/lib/core/CSS/dashboard.css");
         \Lobby::setTitle("Dashboard");
         $GLOBALS['workspaceHTML'] = array("/includes/lib/core/Inc/main.php");
     });
     /**
      * Administration
      */
     self::route("/admin/app/[:appID]?/[**:page]?", function ($request) {
         $AppID = $request->appID;
         $GLOBALS['AppID'] = $AppID;
         $page = $request->page != "" ? "/Admin/{$request->page}" : "/Admin/index";
         /**
          * Check if App exists
          */
         $App = new \Lobby\Apps($AppID);
         if ($App->exists && $App->isEnabled()) {
             /**
              * Redirect /src/ files to App's Source in /contents folder
              */
             $class = $App->run();
             $AppInfo = $App->info;
             /**
              * Set the title
              */
             \Lobby::setTitle($AppInfo['name']);
             /**
              * Add the App item to the navbar
              */
             \Lobby\Panel::addTopItem("lobbyApp{$AppID}", array("text" => "Admin > " . $AppInfo['name'], "href" => "/admin/app/{$AppID}", "position" => "left"));
             $page_response = $class->page($page);
             if ($page_response == "auto") {
                 if ($page == "/") {
                     $page = "/index";
                 }
                 $GLOBALS['workspaceHTML'] = $class->inc("/src/Page{$page}.php");
             } else {
                 $GLOBALS['workspaceHTML'] = $page_response;
             }
             if ($GLOBALS['workspaceHTML'] === false || $GLOBALS['workspaceHTML'] == null) {
                 ob_start();
                 ser("Error", "The app '<strong>{$AppID}</strong>' does not have an Admin Page");
                 $error = ob_get_contents();
                 ob_end_clean();
                 $GLOBALS['workspaceHTML'] = "<div class='contents'>" . $error . "</div>";
             }
//.........这里部分代码省略.........
开发者ID:anandubajith,项目名称:lobby,代码行数:101,代码来源:Router.php


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