Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

+67 -5
View File
@@ -96,6 +96,54 @@
</div>]]></template>
<template template_group="blocks" template_name="previewTemplateLink" template_data="$plugin" template_location="admin" template_app="cms"><![CDATA[<span data-role="viewTemplate" data-plugin="{$plugin}" class='ipsButton ipsButton_light ipsButton_verySmall'>{lang="cms_block_view_template"}</span>]]></template>
<template template_group="blocks" template_name="rowHtml" template_data="$block" template_location="admin" template_app="cms"><![CDATA[{{if $block->category}}<span class="ipsBadge ipsBadge_neutral">{lang="cms_block_list_key" sprintf="$block->key"}</span>{{endif}}]]></template>
<template template_group="clubs" template_name="clubCategoryView" template_data="$category, $club, $index" template_location="front" template_app="cms"><![CDATA[
{{if \IPS\Settings::i()->clubs_header != 'sidebar'}}
{template="header" group="clubs" app="core" params="$club, $category, 'full'"}
{{endif}}
{$index|raw}
]]></template>
<template template_group="clubs" template_name="index" template_data="$database, $articles, $url, $pagination" template_location="front" template_app="cms"><![CDATA[
<div class='ipsPageHeader ipsBox ipsPadding ipsResponsive_pull ipsClearfix ipsSpacer_bottom'>
<div class='ipsFlex ipsFlex-ai:center ipsFlex-jc:between sm:ipsFlex-fd:column sm:ipsFlex-ai:stretch ipsGap:4'>
<div class='ipsFlex-flex:11'>
<h1 class='ipsType_pageTitle'>{$database->_title}</h1>
{{if $database->_description}}
<div class='ipsPageHeader_info ipsType_light'>
{$database->_description}
</div>
{{endif}}
</div>
<div class='ipsFlex-flex:00'>
{{$catClass = 'IPS\cms\Categories' . $database->id; $category = $catClass::load( $database->default_category );}}
{template="follow" app="core" group="global" params="'cms','categories' . $database->id, $category->_id, \IPS\cms\Records::containerFollowerCount( $category )"}
</div>
</div>
</div>
{{if $database->can('add') or \IPS\Member::loggedIn()->member_id}}
<ul class="ipsToolList ipsToolList_horizontal ipsClearfix ipsSpacer_both ipsResponsive_hidePhone">
{{if $database->can('add')}}
<li class='ipsToolList_primaryAction'>
<a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" {{if $database->use_categories}}data-ipsDialog="1" data-ipsDialog-size="narrow" data-ipsDialog-title="{lang="cms_select_category"}"{{endif}} href="{$url->setQueryString( array( 'do' => 'form', 'd' => \IPS\cms\Databases\Dispatcher::i()->databaseId ) )}">{lang="cms_add_new_record_button" sprintf="$database->recordWord( 1 )"}</a>
</li>
{{endif}}
</ul>
{{endif}}
<section class='ipsType_normal ipsSpacer_both'>
{{if \count($articles)}}
{{foreach $articles as $id => $record}}
{template="entry" app="cms" location="database" group="category_articles" params="$record, $database"}
{{endforeach}}
{{else}}
<div class="ipsBox ipsPad">{lang="cms_no_records_to_show" sprintf="\IPS\cms\Databases::load( \IPS\cms\Databases\Dispatcher::i()->databaseId )->recordWord()"}</div>
{{endif}}
</section>
{{if $database->featured_settings['pagination'] and ( $pagination['pages'] > 1 )}}
{template="pagination" app="core" location="global" group="global" params="$url, $pagination['pages'], $pagination['page'], $database->featured_settings['perpage'], TRUE, 'page'"}
{{endif}}]]></template>
<template template_group="databases" template_name="downloadDialog" template_data="$database" template_location="admin" template_app="cms"><![CDATA[<div class='ipsBox ipsPad'>
<i class="fa fa-download ipsAlert_icon"></i>
{lang="cms_download_db_explain"}
@@ -552,7 +600,7 @@
<input type="checkbox" class="ipsHide" id="elInput_record_static_furl_set" name="record_static_furl_set_checkbox" {{if $collection['record_static_furl_set']->value}}checked="checked"{{endif}} value="1">
<input type="hidden" name="record_static_furl_set" value="{{if $collection['record_static_furl_set']->value}}1{{else}}0{{endif}}">
<i class='fa fa-globe'></i> <strong>{lang="url"}:</strong> <span data-ipsSlugUrl>{url="app=cms&module=pages&controller=page&path=$page->full_path" seoTemplate="content_page_path" seoTitle="$page->full_path"}</span><span data-ipsSlugCategory>{$category->full_path}</span><span data-ipsSlugSlug></span><span data-ipsSlugManual class="ipsHide">
/ <input type="text" class='ipsField_short ipsField_tinyText' name="record_static_furl" value="{$collection['record_static_furl']->value}">
/ <input type="text" class='ipsField_short ipsField_tinyText' name="record_static_furl" value="{{if $collection['record_static_furl']->value}}{$collection['record_static_furl']->value}{{endif}}"">
</span><span data-ipsSlugExt>{{if $record !== NULL}}-r{$record->_id}{{else}}-r#{{endif}}</span>
<button data-ipsChange class="ipsButton ipsButton_veryVerySmall ipsButton_link">{lang="change"}</button>
<button data-ipsCancel class="ipsHide ipsButton ipsButton_veryVerySmall ipsButton_light">{lang="cancel"}</button>
@@ -614,11 +662,11 @@
<div class='ipsGrid' data-key='{$row['revision_id']}_{$key}' data-method='diff'>
<div class='ipsGrid_span6 ipsPad'>
<h3 class='ipsType_sectionHead'>Revision</h3>
<div data-original='{$row['revision_id']}_{$key}'>{$diff['original']}</div>
<div data-original='{$row['revision_id']}_{$key}'>{$diff['field']->displayValue( $diff['original'] )}</div>
</div>
<div class='ipsGrid_span6 ipsPad'>
<h3 class='ipsType_sectionHead'>Current</h3>
<div data-current='{$row['revision_id']}_{$key}'>{$diff['current']}</div>
<div data-current='{$row['revision_id']}_{$key}'>{$diff['field']->displayValue( $diff['current'] )}</div>
</div>
</div>
{{else}}
@@ -705,8 +753,8 @@
<div data-conflict-id="{$key}">
{{if !\in_array( $data['field']->type, array( 'Editor', 'CodeMirror', 'TextArea' ) )}}
<div class='ipsGrid' data-key='{$key}' data-method='diff'>
<div class='ipsGrid_span6 ipsPad' data-original='{$key}'>{$data['original']}</div>
<div class='ipsGrid_span6 ipsPad' data-current='{$key}'>{$data['current']}</div>
<div class='ipsGrid_span6 ipsPad' data-original='{$key}'>{$data['field']->displayValue( $data['original'] )}</div>
<div class='ipsGrid_span6 ipsPad' data-current='{$key}'>{$data['field']->displayValue( $data['current'] )}</div>
</div>
{{else}}
<div class='ipsPagesDiff' data-key='{$key}' data-method='merge'></div>
@@ -1129,6 +1177,20 @@
{{endif}}
</li>
{{endforeach}}
{{if settings.club_nodes_in_apps and \IPS\IPS::classUsesTrait( $catClass, 'IPS\Content\ClubContainer' ) and $clubCategories = $catClass::clubNodes()}}
{{if \count( $clubCategories )}}
<li>
<div class="ipsType_bold ipsType_large ipsMargin_top:double ipsBorder_bottom ipsPadding_bottom:half">{lang="club_categories_title"}</div>
<ul class="ipsSideMenu_list ipsMargin_top:half">
{{foreach $clubCategories as $category}}
<li>
<a href="{$category->url()}" class='ipsSideMenu_item ipsTruncate ipsTruncate_line'><span class='ipsBadge ipsBadge_style1 ipsPos_right'>{expression="\IPS\cms\Records::contentCount( $category )"}</span><strong class='ipsType_normal'>{$category->_title}</strong></a>
</li>
{{endforeach}}
</ul>
</li>
{{endif}}
{{endif}}
</ul>
<p class='ipsType_center'>
<a href='{$url->setQueryString('show','categories')}' class=''>{lang="cms_show_categories"} &nbsp;<i class='fa fa-caret-right'></i></a>