forked from laysense/laysense.cn
Make catalog and article landing pages editable
This commit is contained in:
@@ -10,6 +10,8 @@ final class BlockTemplates
|
||||
|
||||
public const NETWORK_FEED = '{"categories":["supported-projects","partners"],"mode":"network","limit":30}';
|
||||
|
||||
public const CATALOG_FEED = '{"categories":["services"],"mode":"catalog","limit":30}';
|
||||
|
||||
public const PRODUCT_LINKS = '<div class="hero-directory"><a class="overline directory-label" href="/services">产品与服务</a><a href="/pagepan"><span>PAGEPAN</span><small>可视化建站</small></a><a href="/highspeaker"><span>HighSpeaker DNS</span><small>开源智能解析</small></a><a href="/sc"><span>软著代理</span><small>登记申请与材料服务</small></a><a href="/shnu-sc"><span>SHNU 学生</span><small>软著申请方案</small></a></div>';
|
||||
|
||||
public const ELEMENT_GROUPS = [
|
||||
@@ -72,7 +74,7 @@ final class BlockTemplates
|
||||
'two-actions' => ['双按钮横幅', '<div class="studio-banner studio-banner-two"><div><h3>选择下一步</h3><p>介绍访客可以立即做什么。</p></div><div class="actions"><a class="button button-primary" href="/services">查看服务</a><a class="button button-outline" href="/#contact">联系我们</a></div></div>'],
|
||||
]],
|
||||
'layout' => ['图文与布局', [
|
||||
'image' => ['图文', '<div class="studio-split"><img src="/assets/original/home-hero.webp" alt="" loading="lazy"><div><h3>介绍主题</h3><p>在这里说明图片或产品。</p></div></div>'],
|
||||
'image' => ['产品图文', '<div class="studio-split"><img src="/assets/original/home-hero.webp" alt="" loading="lazy"><div><h3>介绍主题</h3><p>在这里说明图片或产品。</p></div></div>'],
|
||||
'grid' => ['双栏网格', '<div class="studio-two-column"><article class="content-card"><h3>第一栏</h3><p>填写主要内容。</p></article><article class="content-card"><h3>第二栏</h3><p>补充相关信息。</p></article></div>'],
|
||||
]],
|
||||
'media' => ['媒体', [
|
||||
@@ -94,6 +96,7 @@ final class BlockTemplates
|
||||
'pricing' => ['双方案报价', '<div class="card-grid price-grid studio-pricing"><article class="content-card price-card"><h3>基础方案</h3><p class="price-value">填写价格</p><p>填写方案包含的服务。</p><a class="button button-outline" href="/#contact">咨询基础方案</a></article><article class="content-card price-card"><h3>进阶方案</h3><p class="price-value">填写价格</p><p>填写扩展服务或权益。</p><a class="button button-primary" href="/#contact">咨询进阶方案</a></article></div>'],
|
||||
]],
|
||||
'actions' => ['导航与引导', [
|
||||
'service-catalog' => ['产品与服务目录', '', '', self::CATALOG_FEED],
|
||||
'product-links' => ['产品与服务五联导航', self::PRODUCT_LINKS],
|
||||
'navigation' => ['快速导航', '<ul class="studio-quick-nav"><li><a href="/services">产品与服务</a></li><li><a href="/articles">动态与文章</a></li><li><a href="/#contact">联系来笙</a></li></ul>'],
|
||||
'cta' => ['行动按钮', '<p>说明下一步。</p><p><a class="button button-primary" href="#contact">联系来笙</a></p>'],
|
||||
@@ -111,7 +114,17 @@ final class BlockTemplates
|
||||
|
||||
$groups = self::GROUPS;
|
||||
$seed = json_decode(file_get_contents(dirname(__DIR__, 2) . '/resources/seed.json'), true, flags: JSON_THROW_ON_ERROR);
|
||||
$sectionGroups = [
|
||||
'product' => 'layout', 'about' => 'content', 'blog' => 'content',
|
||||
'features' => 'features', 'support' => 'features', 'why' => 'features', 'stories' => 'features',
|
||||
'pricing' => 'details', 'comparison' => 'details', 'materials' => 'details', 'fees' => 'details',
|
||||
'faq' => 'details', 'terms' => 'details',
|
||||
'get' => 'actions', 'options' => 'actions', 'go' => 'actions', 'benefits' => 'layout',
|
||||
];
|
||||
foreach ($seed['pages'] as $page) {
|
||||
if (!in_array($page['slug'], ['home', 'highspeaker', 'sc', 'shnu-sc'], true)) {
|
||||
continue;
|
||||
}
|
||||
$links = '';
|
||||
foreach ($page['actions'] as [$url, $label]) {
|
||||
$links .= '<a class="button button-outline" href="' . View::escape($url) . '">' . View::escape($label) . '</a>';
|
||||
@@ -119,15 +132,20 @@ final class BlockTemplates
|
||||
$hero = '<div class="studio-cover"><img src="' . View::escape($page['image']) . '" alt="' . View::escape($page['alt']) . '" loading="lazy">'
|
||||
. '<div><h3>' . View::escape(trim($page['heading'] . ' ' . $page['accent'])) . '</h3><p>' . View::escape($page['lead'])
|
||||
. '</p><div class="actions">' . $links . '</div></div></div>';
|
||||
$items = ['existing-' . $page['slug'] . '-hero' => ['首屏图文', $hero]];
|
||||
$prefix = 'existing-' . $page['slug'] . '-';
|
||||
$groups['cover'][1][$prefix . 'hero'] = ['产品图文 · ' . $page['name'], $hero];
|
||||
foreach ($page['sections'] as $section) {
|
||||
$items['existing-' . $page['slug'] . '-' . $section['key']] = [
|
||||
$section['title'], Html::sanitize($section['body']), $section['lead'],
|
||||
$group = $sectionGroups[$section['key']] ?? null;
|
||||
if ($group === null) {
|
||||
continue;
|
||||
}
|
||||
$groups[$group][1][$prefix . $section['key']] = [
|
||||
$section['key'] === 'features' ? '特性组' : $section['title'],
|
||||
Html::sanitize($section['body']), $section['lead'],
|
||||
isset($section['feed']) ? Database::json($section['feed']) : null,
|
||||
$section['style'],
|
||||
];
|
||||
}
|
||||
$groups['existing-' . $page['slug']] = ['现有页面 · ' . $page['name'], $items];
|
||||
}
|
||||
|
||||
return $groups;
|
||||
|
||||
@@ -12,7 +12,7 @@ final class SiteDesign
|
||||
public const DEFAULT_HEADER = [
|
||||
'logo' => '/assets/wordmark.webp', 'alt' => 'Laysense 来笙',
|
||||
'links' => [['/', '首页'], ['/services', '产品与服务'], ['/articles', '动态'], ['/#about', '关于来笙']],
|
||||
'button' => ['#contact', '联系来笙'],
|
||||
'button' => ['/contact', '联系来笙'],
|
||||
];
|
||||
|
||||
public const DEFAULT_FOOTER = [
|
||||
@@ -23,7 +23,7 @@ final class SiteDesign
|
||||
'products_title' => '产品与服务',
|
||||
'products' => [['/highspeaker', 'HighSpeaker DNS'], ['/pagepan', 'PAGEPAN'], ['/sc', '软著代理服务']],
|
||||
'company_title' => '公司',
|
||||
'company' => [['/#about', '关于来笙'], ['#contact', '联系来笙']],
|
||||
'company' => [['/#about', '关于来笙'], ['/contact', '联系来笙']],
|
||||
'resources_title' => '资源',
|
||||
'resources' => [['https://git.laysense.com', 'Laysense Git'], ['https://www.layso.de', 'LaySo']],
|
||||
'phones' => [['tel:+16699004532', '+1 (669) 900 4532'], ['tel:+85257012856', '+852 5701 2856']],
|
||||
|
||||
@@ -581,7 +581,7 @@ class AdminController
|
||||
{
|
||||
$categories = $this->selectedCategories($selected);
|
||||
$limit = filter_var($value, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'max_range' => 30]]);
|
||||
if (!in_array($mode, ['merged', 'tabs', 'network'], true) || !$categories || array_diff($categories, array_keys($available)) || $limit === false) {
|
||||
if (!in_array($mode, ['merged', 'tabs', 'network', 'catalog'], true) || !$categories || array_diff($categories, array_keys($available)) || $limit === false) {
|
||||
throw new RuntimeException('请选择文章分类,并将展示数量设为 1 至 30。');
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,16 @@ final class SiteController
|
||||
if (!$page || $page['status'] !== 'published' || $slug === 'home' && $request->path() !== '/') {
|
||||
return $this->missing($request);
|
||||
}
|
||||
if ($slug === 'articles' && $request->get('page') !== null) {
|
||||
foreach ($page['sections'] as $section) {
|
||||
$feed = json_decode($section['feed'] ?? '{}', true, flags: JSON_THROW_ON_ERROR);
|
||||
if (in_array($feed['mode'] ?? null, ['merged', 'tabs'], true)) {
|
||||
return $this->feedArchive($request, $slug, $section['key']);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->missing($request);
|
||||
}
|
||||
return $this->renderPage($repo, $page);
|
||||
}
|
||||
|
||||
@@ -38,6 +48,7 @@ final class SiteController
|
||||
}
|
||||
$feed = json_decode($section['feed'], true, flags: JSON_THROW_ON_ERROR);
|
||||
$network = $feed['mode'] === 'network';
|
||||
$catalog = $feed['mode'] === 'catalog';
|
||||
$grouped = $network || ($feed['mode'] === 'tabs' && count($feed['categories']) > 1);
|
||||
$archivePath = '/articles/feed/' . $slug . '/' . $section['key'];
|
||||
if ($network && count($feed['categories']) === 2 && !array_diff($feed['categories'], ['supported-projects', 'partners'])) {
|
||||
@@ -46,11 +57,13 @@ final class SiteController
|
||||
$section['archivePath'] = $page['status'] === 'published' ? $archivePath : null;
|
||||
$section['articleFeed'] = [];
|
||||
$section['networkFeed'] = $network;
|
||||
$section['catalogFeed'] = $catalog;
|
||||
$section['feedLimit'] = $feed['limit'];
|
||||
foreach ($grouped ? $feed['categories'] : [''] as $category) {
|
||||
$selected = $category === '' ? $feed['categories'] : [$category];
|
||||
$section['articleFeed'][] = [
|
||||
'categories' => $selected, 'label' => $categories[$category] ?? '',
|
||||
'articles' => $repo->articles($selected, limit: $feed['limit'], directoryOrder: $network),
|
||||
'articles' => $repo->articles($selected, limit: $feed['limit'], directoryOrder: $network || $catalog),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -68,18 +81,6 @@ final class SiteController
|
||||
]);
|
||||
}
|
||||
|
||||
public function services(Request $request): Response
|
||||
{
|
||||
$repo = new Repository();
|
||||
|
||||
return View::render('services', [
|
||||
'site' => $repo->site(), 'path' => '/services',
|
||||
'title' => '产品与服务 · 来笙 Laysense',
|
||||
'description' => '浏览来笙的建站工具、智能 DNS 和软件著作权服务。',
|
||||
'products' => $repo->articles('services', limit: -1, directoryOrder: true),
|
||||
]);
|
||||
}
|
||||
|
||||
public function network(Request $request): Response
|
||||
{
|
||||
$repo = new Repository();
|
||||
@@ -157,6 +158,7 @@ final class SiteController
|
||||
'archivePath' => $category === null ? $allPath : $categoryLinks[$category], 'allPath' => $allPath,
|
||||
'categoryLinks' => $categoryLinks, 'categories' => $categories, 'category' => $category, 'tag' => null,
|
||||
'categoryScope' => $category === null ? array_keys($categories) : [$category],
|
||||
'catalog' => $feed['mode'] === 'catalog',
|
||||
'backPath' => $returnPath, 'backLabel' => '返回原页面', 'noindex' => true,
|
||||
]);
|
||||
}
|
||||
@@ -168,7 +170,7 @@ final class SiteController
|
||||
return $this->missing($request);
|
||||
}
|
||||
$page = (int) $number;
|
||||
$articles = $repo->articles($category, $tag, limit: 21, offset: ($page - 1) * 20);
|
||||
$articles = $repo->articles($category, $tag, limit: 21, offset: ($page - 1) * 20, directoryOrder: $view['catalog'] ?? false);
|
||||
if ($page > 1 && $articles === []) {
|
||||
return $this->missing($request);
|
||||
}
|
||||
@@ -240,11 +242,7 @@ final class SiteController
|
||||
$repo = new Repository();
|
||||
$xml = ['<?xml version="1.0" encoding="UTF-8"?>', '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'];
|
||||
$pages = $repo->pages(publishedOnly: true);
|
||||
$pages[] = ['slug' => 'services', 'updated_at' => null];
|
||||
$pages[] = ['slug' => 'network', 'updated_at' => null];
|
||||
if ($repo->articles(limit: 1)) {
|
||||
$pages[] = ['slug' => 'articles', 'updated_at' => null];
|
||||
}
|
||||
foreach ($pages as $page) {
|
||||
$xml[] = $this->sitemapUrl($page['slug'] === 'home' ? '/' : '/' . $page['slug'], $page['updated_at']);
|
||||
}
|
||||
@@ -269,7 +267,7 @@ final class SiteController
|
||||
$normal = rtrim($path, '/');
|
||||
$single = preg_match('~^/[a-z0-9-]+$~D', $normal);
|
||||
$known = $single && ((new Repository())->page(substr($normal, 1))['status'] ?? null) === 'published' && $normal !== '/home';
|
||||
if ($known || in_array($normal, ['/services', '/network'], true) || preg_match('~^/articles(?:/[a-z0-9-]+){0,2}$~D', $normal)) {
|
||||
if ($known || $normal === '/network' || preg_match('~^/articles(?:/[a-z0-9-]+){1,2}$~D', $normal)) {
|
||||
$query = $request->queryString();
|
||||
|
||||
return View::redirect($normal . ($query !== '' ? '?' . $query : ''), 301);
|
||||
|
||||
@@ -27,7 +27,7 @@ final class StudioController extends AdminController
|
||||
$data['name'] = $this->input($request, 'name');
|
||||
$data['slug'] = $this->input($request, 'slug');
|
||||
try {
|
||||
if (!$this->slug($data['slug']) || in_array($data['slug'], ['admin', 'assets', 'articles', 'home', 'services', 'network', 'news', 'main', 'favicon'], true)
|
||||
if (!$this->slug($data['slug']) || in_array($data['slug'], ['admin', 'assets', 'home', 'network', 'news', 'main', 'favicon'], true)
|
||||
|| $data['name'] === '' || mb_strlen($data['name']) > 100) {
|
||||
throw new RuntimeException('请填写页面名称及可用的网址标识。');
|
||||
}
|
||||
|
||||
@@ -48,11 +48,11 @@ $live = count(array_filter($pages, static fn (array $page): bool => $page['statu
|
||||
</section>
|
||||
<section class="admin-panel dashboard-settings" aria-labelledby="quick-title">
|
||||
<h2 id="quick-title">站点编辑</h2>
|
||||
<ul>
|
||||
<li><a href="/admin/settings/header">编辑页头</a></li>
|
||||
<li><a href="/admin/settings/footer">编辑页脚</a></li>
|
||||
<li><a href="/admin/settings/cdn">静态资源 CDN</a></li>
|
||||
<li><a href="/admin/media">打开媒体库</a></li>
|
||||
<ul class="dashboard-setting-buttons">
|
||||
<li><a class="button button-outline" href="/admin/settings/header">编辑页头</a></li>
|
||||
<li><a class="button button-outline" href="/admin/settings/footer">编辑页脚</a></li>
|
||||
<li><a class="button button-outline" href="/admin/settings/cdn">静态资源 CDN</a></li>
|
||||
<li><a class="button button-outline" href="/admin/media">打开媒体库</a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,11 @@ $e = View::escape(...);
|
||||
<a href="<?= $e($categoryLinks[$key]) ?>" <?= $category === (string) $key ? 'aria-current="page"' : '' ?>><?= $e($label) ?></a>
|
||||
<?php endforeach ?>
|
||||
</nav>
|
||||
<?= View::fragment('article-list', ['articles' => $articles, 'categoryScope' => $categoryScope ?? null]) ?>
|
||||
<?php if (!empty($catalog)): ?>
|
||||
<?= View::fragment('service-cards', ['products' => $articles]) ?>
|
||||
<?php else: ?>
|
||||
<?= View::fragment('article-list', ['articles' => $articles, 'categoryScope' => $categoryScope ?? null]) ?>
|
||||
<?php endif ?>
|
||||
<?php if ($pageNumber > 1 || $hasNext): ?>
|
||||
<nav class="pagination" aria-label="动态分页">
|
||||
<?php if ($pageNumber > 1): ?><a class="button button-outline" href="<?= $e(View::archivePage($archivePath, $pageNumber - 1)) ?>" rel="prev">上一页</a><?php endif ?>
|
||||
|
||||
@@ -24,6 +24,7 @@ if ($dynamic && $body === '<p><a class="back-link" href="/articles">查看全部
|
||||
$body = '';
|
||||
}
|
||||
$network = $section['networkFeed'] ?? false;
|
||||
$catalog = $section['catalogFeed'] ?? false;
|
||||
?>
|
||||
<section class="section section-<?= $e($section['style']) ?><?= $network ? ' network' : '' ?>" id="<?= $e($section['key']) ?>" aria-labelledby="heading-<?= $e($section['key']) ?>" <?= $moment ? 'data-moment="iris-opens"' : '' ?><?= $studio ?>>
|
||||
<div class="wrap">
|
||||
@@ -40,6 +41,11 @@ $network = $section['networkFeed'] ?? false;
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
<?php if ($section['archivePath'] !== null): ?><p class="article-feed-archive"><a class="back-link" href="<?= $e($section['archivePath']) ?>">查看全部</a></p><?php endif ?>
|
||||
<?php elseif ($catalog): ?>
|
||||
<?= View::fragment('service-cards', ['products' => $section['articleFeed'][0]['articles']]) ?>
|
||||
<?php if ($section['archivePath'] !== null && count($section['articleFeed'][0]['articles']) >= $section['feedLimit']): ?>
|
||||
<p class="article-feed-archive"><a class="back-link" href="<?= $e($section['archivePath']) ?>">查看全部</a></p>
|
||||
<?php endif ?>
|
||||
<?php elseif (!empty($section['articleFeed'])): ?>
|
||||
<?= View::fragment('article-feed', ['groups' => $section['articleFeed'], 'sectionKey' => $section['key'], 'archivePath' => $section['archivePath']]) ?>
|
||||
<?php endif ?>
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
use App\Content\DirectoryCard;
|
||||
use App\Content\Html;
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<?php if (!$products): ?><p class="empty-state">暂无可查看的产品和服务。</p><?php endif ?>
|
||||
<div class="catalog-grid">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<?php
|
||||
$card = $product['card'];
|
||||
$body = Html::articleBody($product);
|
||||
$target = DirectoryCard::links($product, $body)['primary'];
|
||||
$extra = $card['extra_url'] ?? '';
|
||||
?>
|
||||
<article class="catalog-card">
|
||||
<?php if (!empty($card['image'])): ?>
|
||||
<div class="catalog-image"><img src="<?= $e($card['image']) ?>" alt="<?= $e($card['alt'] ?? '') ?>" loading="lazy"></div>
|
||||
<?php endif ?>
|
||||
<div class="catalog-content">
|
||||
<?php if (!empty($card['category_label'])): ?><p class="overline"><?= $e($card['category_label']) ?></p><?php endif ?>
|
||||
<h3><?php if ($target !== ''): ?><a href="<?= $e($target) ?>"><?= $e($product['title']) ?></a><?php else: ?><?= $e($product['title']) ?><?php endif ?></h3>
|
||||
<?php if ($product['summary']): ?>
|
||||
<p><?= $e($product['summary']) ?></p>
|
||||
<?php else: ?>
|
||||
<div class="rich"><?= $body ?></div>
|
||||
<?php endif ?>
|
||||
<?php if ($target !== '' || $extra !== ''): ?>
|
||||
<div class="actions">
|
||||
<?php if ($target !== ''): ?><a class="button button-primary" href="<?= $e($target) ?>"><?= $e(($card['label'] ?? '') ?: '了解详情') ?></a><?php endif ?>
|
||||
<?php if ($extra !== '' && $extra !== $target): ?><a href="<?= $e($extra) ?>"><?= $e(($card['extra_label'] ?? '') ?: '相关链接') ?></a><?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
use App\Content\DirectoryCard;
|
||||
use App\Content\Html;
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<section class="section catalog-hero">
|
||||
<div class="wrap">
|
||||
<nav class="breadcrumbs" aria-label="面包屑"><a href="/">首页</a><span aria-hidden="true">/</span><span aria-current="page">产品与服务</span></nav>
|
||||
<h1>产品与服务</h1>
|
||||
<p>自托管建站、开源智能 DNS 与软件著作权代理服务。</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="section catalog-listing" aria-label="产品与服务目录">
|
||||
<div class="wrap">
|
||||
<?php if (!$products): ?><p class="empty-state">暂无可查看的产品和服务。</p><?php endif ?>
|
||||
<div class="catalog-grid">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<?php
|
||||
$card = $product['card'];
|
||||
$body = Html::articleBody($product);
|
||||
['primary' => $target, 'detail' => $detail] = DirectoryCard::links($product, $body);
|
||||
$extra = $card['extra_url'] ?? '';
|
||||
?>
|
||||
<article class="catalog-card">
|
||||
<?php if (!empty($card['image'])): ?>
|
||||
<div class="catalog-image"><img src="<?= $e($card['image']) ?>" alt="<?= $e($card['alt'] ?? '') ?>" loading="lazy"></div>
|
||||
<?php endif ?>
|
||||
<div class="catalog-content">
|
||||
<?php if (!empty($card['category_label'])): ?><p class="overline"><?= $e($card['category_label']) ?></p><?php endif ?>
|
||||
<h2><?php if ($target !== ''): ?><a href="<?= $e($target) ?>"><?= $e($product['title']) ?></a><?php else: ?><?= $e($product['title']) ?><?php endif ?></h2>
|
||||
<?php if ($product['summary']): ?>
|
||||
<p><?= $e($product['summary']) ?></p>
|
||||
<?php else: ?>
|
||||
<div class="rich"><?= $body ?></div>
|
||||
<?php endif ?>
|
||||
<?php if ($target !== '' || $extra !== ''): ?>
|
||||
<div class="actions">
|
||||
<?php if ($target !== ''): ?><a class="button button-primary" href="<?= $e($target) ?>"><?= $e(($card['label'] ?? '') ?: '了解详情') ?></a><?php endif ?>
|
||||
<?php if ($extra !== '' && $extra !== $target): ?><a href="<?= $e($extra) ?>"><?= $e(($card['extra_label'] ?? '') ?: '相关链接') ?></a><?php endif ?>
|
||||
<?php if ($detail !== '' && $detail !== $extra): ?><a class="catalog-detail" href="<?= $e($detail) ?>">查看详情</a><?php endif ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -2,7 +2,7 @@
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
$modes = ($allowOff ? ['off' => '不展示'] : []) + ['merged' => '合并列表', 'tabs' => '分类标签页', 'network' => '项目与伙伴卡片'];
|
||||
$modes = ($allowOff ? ['off' => '不展示'] : []) + ['merged' => '合并列表', 'tabs' => '分类标签页', 'network' => '项目与伙伴卡片', 'catalog' => '产品与服务卡片'];
|
||||
?>
|
||||
<div class="form-grid">
|
||||
<label>展示方式<select name="feed_mode">
|
||||
|
||||
Reference in New Issue
Block a user