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


PHP Get::state_tag方法代码示例

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


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

示例1: array

 }
 if (is_bool($c->comments)) {
     $c->comments = (object) array('allow' => $c->comments, 'moderation' => $c->comment_moderation);
 }
 if ($c->html_parser === false) {
     $c->html_parser = 'HTML';
 }
 if (!is_object($c->html_parser)) {
     $c->html_parser = (object) array('type' => array('HTML' => 'HTML'), 'active' => $c->html_parser);
 }
 $menus = Get::state_menu(null, false);
 if (!isset($menus['navigation'])) {
     $menus['navigation'] = $menus;
     File::serialize($menus)->saveTo(STATE . DS . 'menu.txt', 0600);
 }
 if ($tag = Get::state_tag(null, false)) {
     if (isset($tag[0]['id'])) {
         $tags = array();
         foreach ($tag as $t) {
             $tags[$t['id']] = array('name' => $t['name'], 'slug' => $t['slug'], 'description' => $t['description'], 'scope' => 'article');
         }
         File::serialize($tags)->saveTo(STATE . DS . 'tag.txt', 0600);
     }
 }
 if (is_string($c->author)) {
     $c->author = (object) array('name' => $c->author, 'email' => $c->author_email, 'url' => $c->author_profile_url);
     if ($c->page_type === 'manager') {
         Notify::info('<strong>1.2.0</strong> &mdash; In your <a href="' . $c->url . '/' . $c->manager->slug . '/shield">shield</a> files, change all <code>$c->author</code> data to <code>$c->author->name</code>, <code>$c->author_email</code> data to <code>$c->author->email</code> and <code>$c->author_profile_url</code> data to <code>$c->author->url</code>. Then go to the <a href="' . $c->url . '/' . $c->manager->slug . '/config">configuration manager page</a> to kill this message by pressing the <strong>Update</strong> button.');
     }
 }
 Config::set(Mecha::A($c));
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:31,代码来源:__candle-light-1.2.0.php

示例2: array

<?php

// Get tag(s) ...
$tags = Get::state_tag(null, array(), false);
/**
 * Tag Manager
 * -----------
 */
Route::accept($config->manager->slug . '/tag', function () use($config, $speak, $tags) {
    Config::set(array('page_title' => $speak->tags . $config->title_separator . $config->manager->title, 'cargo' => 'cargo.tag.php'));
    Shield::lot(array('segment' => 'tag', 'files' => !empty($tags) ? Mecha::O($tags) : false))->attach('manager');
});
/**
 * Tag Repairer/Igniter
 * --------------------
 */
Route::accept(array($config->manager->slug . '/tag/ignite', $config->manager->slug . '/tag/repair/id:(:any)'), function ($id = false) use($config, $speak, $tags) {
    if ($id === false) {
        Weapon::add('SHIPMENT_REGION_BOTTOM', function () {
            echo '<script>(function($){$.slug(\'name\',\'slug\',\'-\')})(DASHBOARD.$);</script>';
        }, 11);
        $data = array('id' => max(array_keys($tags)) + 1, 'name' => "", 'slug' => "", 'description' => "", 'scope' => "");
        $title = Config::speak('manager.title_new_', $speak->tag) . $config->title_separator . $config->manager->title;
    } else {
        if (!isset($tags[$id])) {
            Shield::abort();
            // Field not found!
        }
        $data = $tags[$id];
        $data['id'] = $id;
        $title = $speak->editing . ': ' . $data['name'] . $config->title_separator . $config->manager->title;
开发者ID:AdeHaze,项目名称:mecha-cms,代码行数:31,代码来源:route.tag.php

示例3: array

$hooks = array($files, $segment);
?>
<div class="main-action-group">
  <?php 
Weapon::fire('main_action_before', $hooks);
?>
  <?php 
echo Jot::btn('begin:plus-square', Config::speak('manager.title_new_', $speak->tag), $config->manager->slug . '/tag/ignite');
?>
  <?php 
Weapon::fire('main_action_after', $hooks);
?>
</div>
<?php 
echo $messages;
$files_all = Get::state_tag(null, array());
ksort($files_all);
if ($files_all) {
    ?>
<table class="table-bordered table-full-width">
  <thead>
    <tr>
      <th class="th-collapse"><?php 
    echo $speak->id;
    ?>
</th>
      <th><?php 
    echo $speak->name;
    ?>
</th>
      <th><?php 
开发者ID:yiannisSt,项目名称:mecha-cms,代码行数:31,代码来源:cargo.tag.php


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