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


PHP Setting::getList方法代码示例

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


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

示例1:

        </td>
    </tr>
    <tr>
        <td>Anyone can register</td>
        <td><input type="checkbox" id="register"/></td>
    </tr>
    <tr>
        <td>Comments need to be approved</td>
        <td><input type="checkbox" id="approvecomments"/></td>
    </tr>
    <tr>
        <td>Favicon</td>
        <td>
            <img
                src="<?php 
echo Setting::getList("SitePath") == null ? "" : Setting::getList("SitePath")->getValue();
?>
/favicon.ico"
                width="25px" style="border:1px gray solid;"/>
            <input type="file" id="favicon"/>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <button>Save</button>
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:31,代码来源:setting_site.php

示例2: define

<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    define('Breezed', 1);
}
require 'core.php';
if (Database::connect() == null) {
    echo "Please install the cms with the <a href=\"install.php\">install.php</a> file";
    exit;
}
?>
<!DOCTYPE html>
<html>
<?php 
$headers = array();
array_push($headers, "<script src=\"http://code.jquery.com/jquery-2.1.4.js\"></script>");
require "templates/" . Setting::getList("template")->getValue() . "/archives.php";
?>

</html>
<?php 
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:23,代码来源:archives.php

示例3: define

<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    define('Breezed', 1);
}
require 'core.php';
if (Database::connect() == null) {
    echo "Please install the cms with the <a href=\"install.php\">install.php</a> file";
    exit;
}
if (Setting::getList("IndexPage") == null || Setting::getList("IndexPage")->getValue() < 0) {
    header("Location: index.php");
}
?>
<!DOCTYPE html>
<html>
<?php 
$headers = array();
array_push($headers, "<script src=\"http://code.jquery.com/jquery-2.1.4.js\"></script>");
require "templates/" . Setting::getList("template")->getValue() . "/index.php";
?>

</html>
<?php 
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:26,代码来源:blog.php

示例4:

echo Setting::getList("SiteTitle")->getValue() . " || Admin panel || " . $page;
?>
</title>
    <link rel="shortcut icon" href="../favicon.ico"/>
    <link rel="stylesheet" href="http://bgrins.github.com/spectrum/spectrum.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <link rel="stylesheet" href="css/editor.css"/>
    <script src="http://code.jquery.com/jquery-2.1.4.js"></script>
    <script src="http://bgrins.github.com/spectrum/spectrum.js"></script>
    <script src="js/script.js"></script>
</head>
<body>
<div id="menu">
    <a href="../" class="menu-item" id="return">
        <?php 
echo Setting::getList("SiteTitle")->getValue();
?>
    </a>
    <!-- .menu-item #return -->
    <a href="<?php 
echo $_SESSION['userdata']->hasPermission("dashboard") ? "#dashboard" : "#setting_acc";
?>
"
       class="menu-item" id="dashboard">
        <?php 
echo $_SESSION['userdata']->hasPermission("dashboard") ? "Dashboard" : "Account Settings";
?>
    </a>
    <!-- .menu-item #dashboard -->
    <?php 
if ($_SESSION['userdata']->hasPermission("pages")) {
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:31,代码来源:header.php

示例5:

                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        @-moz-keyframes blink {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
<a href="<?php 
echo Setting::getList("SitePath")->getvalue();
?>
/index.php">Homepage</a>
<span id="text"></span>
</body>
</html><?php 
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:31,代码来源:404.php

示例6: delete

 /**
  * @codeCoverageIgnore
  */
 function delete()
 {
     if (!isset($_SESSION['userdata']) || empty($_SESSION['userdata']) || !$_SESSION['userdata']->hasPermission("pages")) {
         throw new BreezedException("Insufficient permissions");
     }
     $db = Database::connect();
     // Delete sub pages first
     foreach (Page::getList($this->ID) as $page) {
         $page->delete();
     }
     // Update position for each page underneath the current one, in the same category
     foreach (Page::getList($this->parentPage) as $page) {
         // Continue when current page is not a subpage, but the one being checked is
         if ($this->parentPage == null && $page->getParent() != null) {
             continue;
         }
         if ($page->getPosition() > $this->position) {
             mysqli_query($db, "UPDATE " . Database::PREFIX() . "pageposition SET Position = Position - 1 WHERE PageID=" . mysqli_real_escape_string($db, $this->ID));
         }
     }
     mysqli_query($db, "DELETE FROM " . Database::PREFIX() . "Media WHERE ID=" . mysqli_real_escape_string($db, $this->ID));
     if (Setting::getList("IndexPage") != null && Setting::getList("IndexPage")->getValue() == $this->ID) {
         Setting::setSetting("IndexPage", null);
     }
 }
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:28,代码来源:core.php

示例7: array_push

<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    echo "You aren't allowed to view this page!";
    exit;
}
$page['title'] = "Page";
array_push($headers, "<script src=\"templates/default/script.js\"></script>");
require 'header.php';
// Redirect to index page, if this page is supposed to be the index page
if (strtolower(substr($_SERVER['SCRIPT_NAME'], -9)) != "index.php" && Setting::getList("IndexPage") != null && Setting::getList("IndexPage")->getValue() == $_GET['id']) {
    header("Location: index.php");
}
//region check id
// Check if id is set
if (!isset($_GET['id']) || empty($_GET['id']) || !is_numeric($_GET['id'])) {
    header("Location: error.php?id=1");
    exit;
}
// Get page object
$page = null;
foreach (Page::getList() as $p) {
    if ($p->getID() == $_GET['id']) {
        $page = $p;
        break;
    }
}
if ($page == null) {
    header("Location: error.php?id=2");
开发者ID:picolino0,项目名称:BreezedCMS,代码行数:31,代码来源:page.php


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