release: AVE.cms 3.3 build 0.44

This commit is contained in:
Codex
2026-11-19 18:57:41 +03:00
parent 3a7c4a5fbb
commit 8a26157716
15 changed files with 76 additions and 33 deletions
+19
View File
@@ -11,6 +11,25 @@
## Не выпущено
## 3.3 build 0.44 — 19 ноября 2026
- Редактор документов загружает варианты поля из общего справочника через
тип поля: активные значения и уже выбранные неактивные. Одиночный и
множественный выбор сохраняются при повторном сохранении документа.
- Импорт документов 1.0.3: скрытые индикатор, результат и кнопки запуска/
остановки не появляются до соответствующего этапа импорта.
- Исправлено повторное экранирование названия и заголовка хлебных крошек при
частичном сохранении, импорте и массовом редактировании документов.
- Редактор запросов сохраняет включённые флажки при повторном открытии;
числовые ключи вариантов поля «Выбор» больше не заменяются подписями.
- Контактные формы 1.0.17: ошибки полей видимы и связаны с полями через ARIA;
редактирование сохраняет служебный признак поля. Обращение записывается
в историю до отправки уведомлений, поэтому сбой почты не удаляет его.
- В снимке документа meta.title содержит название вместо кода редиректа.
Canonical и og:url учитывают URL_SUFF; главная сохраняет корневой адрес.
Для HTML-атрибутов элементов запроса добавлен тег [tag:doctitle:attr].
## 3.3 build 0.43 — 13 ноября 2026
### Ядро, панель и отдельные модули
+17 -17
View File
@@ -2,20 +2,20 @@
"format": "ave-core-package-v2",
"product": "AVE.cms",
"version": "3.3",
"build": "0.43",
"build": "0.44",
"package": "core",
"built_at": "2026-11-13T09:19:40+00:00",
"built_at": "2026-11-19T15:56:32+00:00",
"installed_modules": 0,
"bundled_optional_modules": [],
"optional_after_install": [
"setup/"
],
"core_fingerprint": "48efe9890af77388f2753e437cdffc3076036c1eb599e3d7a34c16abf5e199b3",
"core_fingerprint": "c52ea0703ebf478b00c8cda5f0b6339199d9ccf2889effa360c492d0a41f5aa5",
"files": {
".gitignore": "cfa0d7a40b308397e43404c00e6c7b9260dcb11401e384028e9d183c0bfd3243",
".htaccess": "8f891b9bf25d536848f169a539d0a42baf5e9cd9599321542598874476ca3ad3",
"CHANGELOG.md": "fbebe5b600dc7f7c6cbe40930318fd9cb3eb46fe3596c7d32d6079f57bf92615",
"README.md": "d56bc75ab2b24af56541b2031595030456464f8f629d27b820a305de5f37ebe8",
"CHANGELOG.md": "0f170b13a53c4d5a35bfc6cbe9750024402760d9862fac87aa076ac51b3e344a",
"README.md": "d81ef73bc8049b7121240cfb477481a48954d51ab9d5889d0a83d4cc641c5cc6",
"adminx/.htaccess": "d03ea2d2972af8b7545a2d57c6253f303d15adeb30b775e161d887ca5ff73378",
"adminx/Support/AdminLocale.php": "a7fe84d86d65c9f021106172b1789c8bc6221c36b2fe39cf883ca9a505e3e8ad",
"adminx/Support/BulkActionExecutor.php": "82859d10eec39a53091ed46604d6819e7111b7d879e5f0f1595c26f8a7ff1a60",
@@ -310,7 +310,7 @@
"adminx/modules/Documents/DocumentHookRunner.php": "eb915de91391858987386925da37d943318fea1f46893de1b3fcc0957ce43e07",
"adminx/modules/Documents/DocumentMediaReplacement.php": "e97d960c852162e655a4389cc5f477f0178597da50e733b00bdf5bcab076c65d",
"adminx/modules/Documents/EditConflict.php": "ebc3ebb92c3fc3ccf3909d2ff517014fc888ee20576a520b4979f68bde632b97",
"adminx/modules/Documents/Model.php": "5f1bc233f99e55a91f48a78c66a05e1df002f05d190cb6ceb15f00380e2c4a22",
"adminx/modules/Documents/Model.php": "a8d5f70d29c4684c563e630f3b6fc205eecb82e6afe7b3307d300ce28106212c",
"adminx/modules/Documents/Revisions.php": "f17f0f7ebb4fc3ccc44695e4a1ca7093dfa3f4fe3f9c895e17fa8631567769fe",
"adminx/modules/Documents/assets/documents.css": "378ce4712ceeb9e9cc899d81c9fc13848b7b288ad68fbc1eb31e9a5bdc5dbad8",
"adminx/modules/Documents/assets/documents.js": "9d7bddf7832f3187a4b04c494c01fea983854089d91cb779453f7ef102c5e483",
@@ -342,7 +342,7 @@
"adminx/modules/Documents/migrations/015_document_creation_presets.sql": "a123f8867ab6f6346002d08317acac37062c2792913ad14102c81812d45571bd",
"adminx/modules/Documents/migrations/016_reconcile_document_content_columns.php": "06671bb26bf29479dce24888fb3712c0d20e2aac5b3d70196604ce4097c875fc",
"adminx/modules/Documents/migrations/017_document_public_visibility.sql": "2a8298ade4af686a4aba41bcda0aaff5504c40f3140bf3ae710e8be727f38e18",
"adminx/modules/Documents/module.php": "d3876535fd0e7c08f124a20a1f00693955730e3908af98efdda1f0268cef0fd7",
"adminx/modules/Documents/module.php": "935a725f451fd4f2e49c0adafb229fb6dc70a3ef31d3c9fc05b03e4bb8d01a1b",
"adminx/modules/Documents/view/_product_package_fields.twig": "04e592a9b54d8c1488ef3980574e812fc714fbd4814b8573a68513f34b6d001b",
"adminx/modules/Documents/view/_product_panels.twig": "3f047cbebbd81326290d47751454cd3e8e718c1246120338fbd399ec81b41ae8",
"adminx/modules/Documents/view/api.twig": "a035a2d566298587ce8530c98915e80e4e7f9b0f41a60e0e55d4547b996a6c40",
@@ -498,8 +498,8 @@
"adminx/modules/Requests/migrations/013_sort_rules.php": "4c58c56d9766c16517bc2ceee1d6313b1728e564a332fe9a5cdf69a04d7afe70",
"adminx/modules/Requests/migrations/014_request_revisions.sql": "1149785b788aeca0e6e074dbb0251f92e3813b4083170b7731348a7f8edf6bf5",
"adminx/modules/Requests/migrations/015_request_description_capacity.php": "c09090d46dffb50aa6020f9bd8b31656d64b04e053769068ba85539584d78764",
"adminx/modules/Requests/module.php": "e9c546b1ada48e01a518faa3bdbc001ad3d8d86a5cba893f04bc2544026e6e4e",
"adminx/modules/Requests/view/edit.twig": "b4ffac2dcbdc0895e00befe395c29e3c9d71bfe47852998e89f6ba8fe4e0d0a6",
"adminx/modules/Requests/module.php": "59d9f44c231912666107810f5c5f16dff6efa457e28bf065fc1dbde12a1acaf3",
"adminx/modules/Requests/view/edit.twig": "701402a1ae23df43d0ed8e1c95dff16495c886b9f3846a579a38e3410301ba64",
"adminx/modules/Requests/view/index.twig": "164490c16e041b928e1ecf604915656399690055d1f7de4bc88caf5f5abd485d",
"adminx/modules/Requests/view/native-audit.twig": "42120fd41aa4afa39560fea3f2625a4e78a61cb4f9ccc0c0388ca319d4f39c06",
"adminx/modules/Rubrics/AdminView.php": "a866300dda84253046f88d19a4467ae1a545c8b1dcac7672d35be986bb38a180",
@@ -688,7 +688,7 @@
"help/content/navigation.md": "50425db83ae70b8be72c69ecc6c54f77a15f029a244185021de1cb56efbb344f",
"help/content/presentations.md": "6e349bb4d1d1577617e6bf3d987b86ca6b255f64a47cd1ddb0e38c5242b788cb",
"help/content/public-site.md": "9b7cd51d6d36d21daa73b47cb243b84eeb79f0ff48e9eb61c5951e82c24f7c73",
"help/content/requests.md": "c008b1026520c85400fb9240cb117fcaf384531c06e859c1e36ccbb3a79a8590",
"help/content/requests.md": "9b95c2681d69269d4da4b05af4549b0dfce6193a7f2993730c87cedca3a4ad03",
"help/content/rich-editor.md": "a519e52089cd4ad18d0e81a52348af197892d3367022d1bf26efbc13af0c0d8a",
"help/content/rubrics.md": "2c9842ce5647fc85663b02cef14f141c673694f0a20856c9262b6ccbea436c3c",
"help/content/templates.md": "c6fae2ef91c741479d1f34fe66d00e83f2d2ec1aba1a4099773a04a6e1b6552c",
@@ -1101,7 +1101,7 @@
"system/App/Content/Documents/DocumentMediaFinalization.php": "5ea218f79f835a4fc25da0199aab87137e620b60c31d8e2f587a1b911b3af6b1",
"system/App/Content/Documents/DocumentMediaFinalizer.php": "785487028e221726c6bc15662f83ed985701a8e5d21e9fc9605e816ef4c835b7",
"system/App/Content/Documents/DocumentMediaPath.php": "23b40c98d3cf9a73df3b7f7083b58b60dd80b8bda71e3e3a6354342cc72322a8",
"system/App/Content/Documents/DocumentMutationService.php": "84a05df5bd0aa77e65896a4d74be4b1a83e3fd3719c758039218aa18018a2ca8",
"system/App/Content/Documents/DocumentMutationService.php": "95114b2b036ce5b462b431c428fb65fefca0b7d0f02aa44b738c214b72dfa795",
"system/App/Content/Documents/DocumentPickerRepository.php": "0e8efb5b42aadd74725213b8302b53b5147d7e0eb2e83d301a5f073bb0c13142",
"system/App/Content/Documents/DocumentRevisionPayload.php": "84cbd5fa39bd5b2beee18018e75361288a6db42920371f1d6aa37ab57cecc93c",
"system/App/Content/Documents/DocumentRubricCodeRunner.php": "a9c04196b76ab91c7b1f8b53afbd45fc6727805c953fb5fe5ff36b69846d389f",
@@ -1109,9 +1109,9 @@
"system/App/Content/Documents/DocumentSaveEvents.php": "79a9fa78819938f179bc24121992e7d44306c51612734d9ef10839b764a5d394",
"system/App/Content/Documents/DocumentSaveRejected.php": "4ebdc1c5aa622f6389b107320a7786b8acde89438f6c56a660317deb623cec5f",
"system/App/Content/Documents/DocumentSearch.php": "ba8d1c7a28878e3b7e2c96aff07c59c2ca9b5b5eabb4eda99de6362b4274d54e",
"system/App/Content/Documents/DocumentSnapshotBuilder.php": "cb741de6e24d3ffae47d1dd1c5a202afa8454858ef8deddda1cbb1e66ae1fc34",
"system/App/Content/Documents/DocumentSnapshotBuilder.php": "375a52fb6dd71fc0d419f3945e53fa3a7f248609e907dbe17d61ea1ca773efc9",
"system/App/Content/Documents/DocumentSnapshotRepository.php": "54faed521c064f84cc4017e65ea0dba8b9bb34571240a90c083eb076c9a11b1a",
"system/App/Content/Documents/DocumentSnapshotStore.php": "e61a7873204ba76b50d2ae7f087a59442cb93fa10ad5c3f0ac0087d941dd2075",
"system/App/Content/Documents/DocumentSnapshotStore.php": "c40124967eab77d46f4bb56534e1531cd60de62d8db6a28b8c665b64ee0e26bd",
"system/App/Content/Documents/DocumentVisibility.php": "9a8b17058d47f40d4eb5e7c6a96f15d7f234c02b275ba1f6a46aadf58251324f",
"system/App/Content/Documents/FieldTemplateManifest.php": "8eca7f9c9056ad5492b2b22cc55b407d8a65b32f5889775a5ecf6b4caae7ab8b",
"system/App/Content/Documents/RubricSchemaBuilder.php": "a391211bbdbde83a6b8f4ce2ccf98bad2ad2f5d39f35edb5e262782729dd86f2",
@@ -1178,7 +1178,7 @@
"system/App/Content/Fields/Types/MultiListTriple.php": "8118774650d49ed98cf00329bf3d53b20a05ed7d0473909eda4244943be550f1",
"system/App/Content/Fields/Types/MultiSelect.php": "b38df4b46b529b6c60c9aaf001faaefef5ac7599cf68ec0323a3186609e37d4b",
"system/App/Content/Fields/Types/NumberValue.php": "8fe7bc2aee7df6031598384627c8c38b8b4a5b04d796c25ee8aab768805d34ad",
"system/App/Content/Fields/Types/OptionFieldSupport.php": "ad45ad626daceb7a83f8b0d80faa90dce4727d7d344a0da119e3e6b27fbef54f",
"system/App/Content/Fields/Types/OptionFieldSupport.php": "d5c3715dcc5350ad0281968b3354e0739c04ef1090b51002da2307fff233478c",
"system/App/Content/Fields/Types/PackagesValue.php": "b83d3ac394c42204ab89d4edcc5bba85e95c8850d07839f53273e958db346c11",
"system/App/Content/Fields/Types/PeriodValue.php": "afe067af7705b027652e2210ae784977a4fa00344667b672c3314d463d238197",
"system/App/Content/Fields/Types/RangeValue.php": "396b6dcc4f4b4a1875c033c31dbf7b1e4ccd120a79bd86cbde813d7ec57bfa40",
@@ -1317,7 +1317,7 @@
"system/App/Frontend/NavigationRenderer.php": "d176186b06d56832e640a8b3d53ccad4aff04e3834b261d83670d675271e4d00",
"system/App/Frontend/NavigationRepository.php": "3714ca40102621191837fbed7511873327250ecb186c54bb0cce89781bdb0db1",
"system/App/Frontend/PageComponentRenderer.php": "83260a9d4d83603a99bf7aa8b620e06b78911f994b807b5fc179d3fd939b0812",
"system/App/Frontend/PageShellRenderer.php": "e87c2ca686fbf6fd721a35656e752aaf590633a196c93715f75d36ddd78245fb",
"system/App/Frontend/PageShellRenderer.php": "faba714a1dec603d161d09563de5e2f580e469a89d48f1dd28e18346b08e3870",
"system/App/Frontend/PageTemplateRepository.php": "58f73d71e6bb394f725aee0201f436236214acca343dc75bacdcfa752f3e8caf",
"system/App/Frontend/PageTemplateResolver.php": "1af594b212cd4e30d5de361415a8e238493995d8bf955df9291e40169afe621c",
"system/App/Frontend/PaginationRenderer.php": "27dda732ec0547a389c4843a77b59090014c5cf0339dbebee51abf4fd0bc7ed6",
@@ -1342,7 +1342,7 @@
"system/App/Frontend/QuickEdit/PublicQuickEdit.php": "11e2c721e676d3ddba73c6f8cbe11ac9a9ad15acfd4e97ddfd88ba7f8f43dfd7",
"system/App/Frontend/RequestFieldRenderer.php": "5065a2bb8b630eeffb4e3ac978e6abf15f296e523b6a0a3421c4f3a870258cdf",
"system/App/Frontend/RequestItemContext.php": "28f70292d7feeb77b88246d1d3299ff54447afc1aa6c525211835a4cfd51ebb4",
"system/App/Frontend/RequestItemRenderer.php": "6426d63609073d85938dbaef0f77935d856a57eca225503d812e31f07ab98790",
"system/App/Frontend/RequestItemRenderer.php": "6b943eaf381154f49f9981f06a19d91dfdf6458e8a4621b64a4888549899d7ad",
"system/App/Frontend/RequestListReadModel.php": "7eedb83e42382cada17e60484108702a52f8a890b59d93cd921e194025af6064",
"system/App/Frontend/RequestListRenderer.php": "b042f3961c9609a24eaf2b012dd62840ad183d938bf6312b32731c236ea07ef1",
"system/App/Frontend/RequestRenderer.php": "99145390cbfe803388786dcf6de60cb4f384224955681e7f855e4b7ef19355b1",
@@ -1396,7 +1396,7 @@
"system/language/ru/lang.xml": "7d46cc9822f064a1af4d6528ccfe2dd4a9cc318912e327fd807befd2ca3dfd11",
"system/preload.php": "66bfb1aaf36ba85945b729b09a37e96ead0be1cc2749ebd9abd4b9da4f25ba0e",
"system/public.php": "3f72b5bf44bc0ba5ba6fb6b3adc2e2f9d5e9902d9cdfa3d7b748f4aebd179b87",
"system/release.php": "36c6c4f2b04dbc94d919d280e1688dd22c55bb0ccef4dd8964d19740715d2ad8",
"system/release.php": "83e5d8e8781ab37e6b9c937b2857dec462281016527d03407af09d78abcdb082",
"system/vendor/Captcha/fonts/palatino_linotype_bold.png": "38b6a1d4a4bd1d0c056205119c5e24176913ac0d898371f53a0339952a319365",
"system/vendor/Captcha/fonts/perpetua_bold.png": "55dbbe97dae128dea47b5e8d640414b3d813119c854c688037a20a581ec8fdc4",
"system/vendor/Captcha/fonts/times_bold.png": "d3d32ce1f418e3c3c3b1afe3b6acabadb36207bc12368f5e86420cf1a529ff8f",
+1 -1
View File
@@ -1,6 +1,6 @@
# AVE.cms
**AVE.cms 3.3 build 0.43** — модульная система управления сайтами на PHP.
**AVE.cms 3.3 build 0.44** — модульная система управления сайтами на PHP.
Она подходит для проектов, в которых структуру содержимого нужно собирать из
собственных рубрик, полей, документов, запросов, блоков и шаблонов, не
привязываясь к заранее заданному типу сайта.
+18 -3
View File
@@ -1808,7 +1808,7 @@
'editor' => $editor,
'editor_kind' => $kind,
'parsed' => $type === 'youtube' ? $parsed : self::viewValue($kind, $parsed, $raw),
'options' => self::fieldOptions($row['rubric_field_default'], $type, $settings),
'options' => self::fieldOptions($row['rubric_field_default'], $type, $settings, $raw),
'media_upload_dir' => $isDocumentMedia ? self::mediaUploadDir($row, $documentId, $mediaDraftToken) : '',
'media_target_dir' => $mediaTargetDir,
'media_picker_dir' => $isDocumentMedia && (int) $documentId > 0 ? $mediaTargetDir : '/uploads',
@@ -2460,18 +2460,33 @@
return '';
}
protected static function fieldOptions($default, $type = '', array $settings = array())
protected static function fieldOptions($default, $type = '', array $settings = array(), $value = '')
{
$default = (string) $default;
$type = (string) $type;
if (isset($settings['option_source']) && $settings['option_source'] === 'directory') {
$plugin = FieldRegistry::get($type);
if ($plugin && is_callable(array($plugin, 'optionMap'))) {
$context = new FieldContext($value, array('rubric_field_type' => $type,
'rubric_field_default' => $default, 'rubric_field_settings' => json_encode($settings)), 'edit');
$out = array();
foreach ($plugin->optionMap($context) as $key => $label) {
$out[] = array('value' => (string) $key, 'label' => (string) $label);
}
return $out;
}
}
if (!empty($settings['options']) && is_array($settings['options'])) {
$out = array();
$isList = array_keys($settings['options']) === range(0, count($settings['options']) - 1);
foreach ($settings['options'] as $key => $option) {
if (is_array($option)) {
$value = isset($option['value']) ? (string) $option['value'] : (isset($option['key']) ? (string) $option['key'] : (string) $key);
$label = isset($option['label']) ? (string) $option['label'] : (isset($option['title']) ? (string) $option['title'] : $value);
} else {
$value = is_int($key) ? (string) $option : (string) $key;
$value = $isList ? (string) $option : (string) $key;
$label = (string) $option;
}
+1 -1
View File
@@ -17,7 +17,7 @@
return array(
'code' => 'documents',
'name' => 'Документы',
'version' => '0.4.10',
'version' => '0.4.11',
'permissions' => array(
'key' => 'documents',
+1 -1
View File
@@ -22,7 +22,7 @@
return [
'code' => 'requests',
'name' => 'Запросы',
'version' => '0.2.1',
'version' => '0.2.2',
'permissions' => [
'key' => 'requests',
+2 -2
View File
@@ -278,12 +278,12 @@
<div class="stack-sm" style="gap:8px">
{% for code in basic_flags %}
{% set label = flag_labels[code] %}
<label class="check"><input type="checkbox" name="{{ code }}" value="1"{{ request and request[code] == '1' ? ' checked' : '' }}><span>{{ label }}</span></label>
<label class="check"><input type="checkbox" name="{{ code }}" value="1"{{ request and attribute(request, code) == '1' ? ' checked' : '' }}><span>{{ label }}</span></label>
{% endfor %}
<div class="request-advanced-flags" data-request-advanced hidden>
<div class="request-advanced-flags-head"><b>Служебные параметры</b><span>Нужны интеграциям и старым шаблонам</span></div>
{% for code, label in flag_labels %}{% if code not in basic_flags %}
<label class="check"><input type="checkbox" name="{{ code }}" value="1"{{ request and request[code] == '1' ? ' checked' : '' }}><span>{{ label }}</span></label>
<label class="check"><input type="checkbox" name="{{ code }}" value="1"{{ request and attribute(request, code) == '1' ? ' checked' : '' }}><span>{{ label }}</span></label>
{% endif %}{% endfor %}
</div>
</div>
+1 -1
View File
@@ -232,7 +232,7 @@ oldprice для поля old.
```html
<article class="teaser">
<h2><a href="[tag:link]">[tag:doctitle]</a></h2>
<h2><a href="[tag:link]" title="[tag:doctitle:attr]">[tag:doctitle]</a></h2>
<div>[tag:rfld:excerpt][0]</div>
</article>
```
@@ -437,7 +437,9 @@
$value = function ($canonical, $legacy, $default = '') use ($payload, $base, $legacyInput) {
if (array_key_exists($canonical, $payload)) { return $payload[$canonical]; }
if (array_key_exists($legacy, $payload)) { return $payload[$legacy]; }
return array_key_exists($legacy, $base) ? $base[$legacy] : $default;
$stored = array_key_exists($legacy, $base) ? $base[$legacy] : $default;
return in_array($legacy, array('document_title', 'document_breadcrumb_title'), true)
? htmlspecialchars_decode((string) $stored, ENT_QUOTES) : $stored;
};
if (array_key_exists('excerpt', $payload)) {
$excerpt = $payload['excerpt'];
@@ -201,6 +201,6 @@
protected function documentData(array $row)
{
$excerpt=isset($row['document_excerpt'])?(string)$row['document_excerpt']:(isset($row['document_teaser'])?(string)$row['document_teaser']:'');
return array('id'=>(int)$row['Id'],'rubric_id'=>(int)$row['rubric_id'],'rubric_template_id'=>(int)$row['rubric_tmpl_id'],'title'=>htmlspecialchars_decode((string)$row['document_title'],ENT_QUOTES),'alias'=>(string)$row['document_alias'],'excerpt'=>$excerpt,'status'=>(int)$row['document_status'],'deleted'=>(int)$row['document_deleted'],'in_search'=>(int)$row['document_in_search'],'is_technical'=>!empty($row['document_is_technical']),'in_sitemap'=>!isset($row['document_in_sitemap'])||!empty($row['document_in_sitemap']),'published_at'=>(int)$row['document_published'],'expire_at'=>(int)$row['document_expire'],'changed_at'=>(int)$row['document_changed'],'author_id'=>(int)$row['document_author_id'],'meta'=>array('title'=>(string)$row['document_alias_header'],'description'=>(string)$row['document_meta_description'],'keywords'=>(string)$row['document_meta_keywords'],'robots'=>(string)$row['document_meta_robots'],'sitemap_frequency'=>(int)$row['document_sitemap_freq'],'sitemap_priority'=>(float)$row['document_sitemap_pr']));
return array('id'=>(int)$row['Id'],'rubric_id'=>(int)$row['rubric_id'],'rubric_template_id'=>(int)$row['rubric_tmpl_id'],'title'=>htmlspecialchars_decode((string)$row['document_title'],ENT_QUOTES),'alias'=>(string)$row['document_alias'],'excerpt'=>$excerpt,'status'=>(int)$row['document_status'],'deleted'=>(int)$row['document_deleted'],'in_search'=>(int)$row['document_in_search'],'is_technical'=>!empty($row['document_is_technical']),'in_sitemap'=>!isset($row['document_in_sitemap'])||!empty($row['document_in_sitemap']),'published_at'=>(int)$row['document_published'],'expire_at'=>(int)$row['document_expire'],'changed_at'=>(int)$row['document_changed'],'author_id'=>(int)$row['document_author_id'],'meta'=>array('title'=>htmlspecialchars_decode((string)$row['document_title'],ENT_QUOTES),'description'=>(string)$row['document_meta_description'],'keywords'=>(string)$row['document_meta_keywords'],'robots'=>(string)$row['document_meta_robots'],'sitemap_frequency'=>(int)$row['document_sitemap_freq'],'sitemap_priority'=>(float)$row['document_sitemap_pr']));
}
}
@@ -26,7 +26,7 @@
class DocumentSnapshotStore
{
const FORMAT = 'ave.document-snapshot';
const VERSION = 4;
const VERSION = 5;
const MAX_BYTES = 16777216;
public function read($documentId)
@@ -37,7 +37,7 @@
return $this->normalizeOptionList($ctx->setting('options', array()));
}
protected function optionMap(FieldContext $ctx)
public function optionMap(FieldContext $ctx)
{
if ($this->usesDirectory($ctx)) {
$options = $this->directoryOptionMap($ctx);
+7 -1
View File
@@ -118,9 +118,15 @@
Url::site(),
));
array_splice($search, 6, 0, array('[tag:robots]', '[tag:canonical]'));
$alias = is_object($document) && isset($document->document_alias) ? (string) $document->document_alias : '';
$documentPath = str_replace('//', '/', ABS_PATH . $alias);
if (trim($alias, '/') !== '' && defined('URL_SUFF') && URL_SUFF !== '') {
$documentPath = rtrim($documentPath, '/') . URL_SUFF;
}
$canonical = Url::canonical(
is_object($document) && isset($document->document_alias)
? Url::site() . str_replace('//', '/', ABS_PATH . $document->document_alias)
? Url::site() . $documentPath
: ''
);
array_splice($replace, 6, 0, array(
+2 -1
View File
@@ -32,7 +32,7 @@
class RequestItemRenderer
{
/** Bump when request-item rendering semantics change to retire incompatible HTML caches. */
const CACHE_VERSION = 6;
const CACHE_VERSION = 7;
public function render($mixed, $template = '', $tparams = '', $context = null)
{
@@ -236,6 +236,7 @@
$item = str_replace('[tag:docitemnum]', $context->itemNumber(), $item);
$adminLink = AdminLocation::url('documents/' . (int) $row->Id . '/edit') . '?quick_edit=1&pop=1';
$item = str_replace('[tag:adminlink]', $adminLink, $item);
$item = str_replace('[tag:doctitle:attr]', htmlspecialchars(htmlspecialchars_decode((string) $row->document_title, ENT_QUOTES), ENT_QUOTES, 'UTF-8'), $item);
$item = str_replace('[tag:doctitle]', stripslashes(htmlspecialchars_decode($row->document_title)), $item);
$item = str_replace('[tag:docparent]', $row->document_parent, $item);
$item = str_replace('[tag:docdate]', \App\Helpers\Locales::translateDate(strftime(DATE_FORMAT, $row->document_published)), $item);
+1 -1
View File
@@ -17,5 +17,5 @@
return array(
'product' => 'AVE.cms',
'version' => '3.3',
'build' => '0.43',
'build' => '0.44',
);