From ff5d68e9f63c7525efe3bd2bf44767cf66d726db Mon Sep 17 00:00:00 2001
From: 2frags <0@2frags.com>
Date: Tue, 13 Mar 2018 19:05:56 +0200
Subject: [PATCH 1/7] Edit page from popup
---
assets/plugins/evocollection/table.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/assets/plugins/evocollection/table.php b/assets/plugins/evocollection/table.php
index 41cdb94..2311873 100644
--- a/assets/plugins/evocollection/table.php
+++ b/assets/plugins/evocollection/table.php
@@ -273,7 +273,7 @@
}
}
- $tbl.= '
| | ';
+ $tbl.= ' | | ';
}
From f9aba76157fdc8cc83946ade39e586418adc9e03 Mon Sep 17 00:00:00 2001
From: 2frags <0@2frags.com>
Date: Sat, 21 Apr 2018 14:24:22 +0300
Subject: [PATCH 2/7] add current time to date
Change Publishing time from 12:00:00 to date("H:i:s").
Adding multiple docs whithin one day have causing same time setting for date field - m.d.y 12:00:00
Fixing issues:
1. In case of pub_date field documents created before 12:00:00 will publish only AFTER 12:00:00
2. Sorting by date field is not correct for docs published whithin one date
---
assets/plugins/evocollection/functions.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/assets/plugins/evocollection/functions.php b/assets/plugins/evocollection/functions.php
index 977b6ee..c69d219 100644
--- a/assets/plugins/evocollection/functions.php
+++ b/assets/plugins/evocollection/functions.php
@@ -195,7 +195,7 @@ function get_output($config)
switch ($type)
{
case 'date':
- $startdate = date($value." 12:00:00");
+ $startdate = date($value.date("H:i:s"));
return strtotime($startdate);
break;
From 96194be5526330ba783543ec9ca4abb514e3593f Mon Sep 17 00:00:00 2001
From: 2frags <0@2frags.com>
Date: Tue, 12 Mar 2019 18:10:35 +0200
Subject: [PATCH 3/7] Create russian-UTF8.php
---
.../evocollection/lang/russian-UTF8.php | 62 +++++++++++++++++++
1 file changed, 62 insertions(+)
create mode 100644 assets/plugins/evocollection/lang/russian-UTF8.php
diff --git a/assets/plugins/evocollection/lang/russian-UTF8.php b/assets/plugins/evocollection/lang/russian-UTF8.php
new file mode 100644
index 0000000..d6dbd7c
--- /dev/null
+++ b/assets/plugins/evocollection/lang/russian-UTF8.php
@@ -0,0 +1,62 @@
+'Модуль редактирования конфигурации evoCollection',
+ 'list_collection'=>'Список коллекций',
+ 'default'=>'По умолчанию',
+ 'user'=>'Пользовательский',
+ 'number'=>'Числовой',
+ 'date'=>'Дата',
+ 'image'=>'Картинка',
+ 'file'=>'Файл',
+ 'textarea'=>'Текстовое поле',
+ 'text_editor'=>'Текстовый редактор',
+ 'select'=>'Одиночный выбор (TV)',
+ 'checkbox'=>'Одиночный чекбокс',
+ 'not_category'=>'Без категории',
+ 'config_save_success'=>'Конфигурация успешно сохранена!',
+ 'edit_collection'=>'Редактирование коллекции',
+ 'new_collection'=>'Новая коллекция',
+ 'cancel'=>'Отмена',
+ 'save'=>'Сохранить',
+ 'general'=>'Общее',
+ 'name_config'=>'Название конфигурации',
+ 'description'=>'Описание',
+ 'to_apply_to'=>'Применять к',
+ 'template'=>'Шаблону',
+ 'documents'=>'Документам',
+ 'value'=>'Значение',
+ 'not_selected'=>'не выбрано',
+ 'show_doc_on_tree'=>'Показывать документы в древе',
+ 'no'=>'нет',
+ 'yes'=>'да',
+ 'location'=>'Расположение новых документов',
+ 'down'=>'Внизу',
+ 'up'=>'Вверху',
+ 'setting_tab'=>'Настройки вкладки',
+ 'title_tab'=>'Заголовок вкладки',
+ 'default_name_doc'=>'по умолчанию: название ресурса',
+ 'columns_used'=>'Используемые столбцы',
+ 'titl'=>'Заголовок',
+ 'enter'=>'Вывод',
+ 'handler'=>'Обработчик',
+ 'width'=>'Ширина',
+ 'choose_from'=>'выбрать из',
+ 'document_a'=>'документа',
+ 'tvs'=>'ТВ-параметров',
+ 'another'=>'Прочее',
+ 'sort_col'=>'Сортировать по столбцу',
+ 'sort_dir'=>'Направление сортировки',
+ 'asc'=>'По возрстанию',
+ 'desc'=>'По убыванию',
+ 'show_by'=>'Показывать по',
+ 'default_template'=>'Шаблон по умолчанию',
+ 'for_new_doc'=>'для вновь созданных ресурсов',
+ 'editing_method'=>'Способ редактирования',
+ 'dblclick'=>'По двойному клику',
+ 'rclick'=>'Правой кнопкой',
+ 'create_new_config'=>'Создать новую конфигурацию',
+ 'name'=>'Название',
+ 'not_config'=>'У вас пока нет не одной конфигурации. ',
+ 'click_here'=>'Нажмите здесь',
+ 'create_new_config'=>'чтобы создать первую конфигурацию.'
+ );
From a7059658728ea32c873977823cb4564a0a9d41d1 Mon Sep 17 00:00:00 2001
From: 2frags <0@2frags.com>
Date: Tue, 12 Mar 2019 18:11:04 +0200
Subject: [PATCH 4/7] Create english.php
---
assets/plugins/evocollection/lang/english.php | 62 +++++++++++++++++++
1 file changed, 62 insertions(+)
create mode 100644 assets/plugins/evocollection/lang/english.php
diff --git a/assets/plugins/evocollection/lang/english.php b/assets/plugins/evocollection/lang/english.php
new file mode 100644
index 0000000..5a9b6d4
--- /dev/null
+++ b/assets/plugins/evocollection/lang/english.php
@@ -0,0 +1,62 @@
+ 'evoCollection configuration editor Module',
+ 'list_collection' => 'list of collections',
+ 'default' => 'default',
+ 'user' => 'User',
+ 'number' => 'Numeric',
+ 'date' => 'date',
+ 'image' => 'Picture',
+ 'file' => 'File',
+ 'textarea' => 'Text field',
+ 'text_editor' => 'Text editor',
+ 'select' => ' Single select (TV)',
+ 'checkbox' => 'Single checkbox',
+ 'not_category' => 'not categorized',
+ 'config_save_success' => ' Configuration successfully saved!',
+ 'edit_collection' => 'edit collection',
+ 'new_collection' => 'New collection',
+ 'cancel' => 'Cancel',
+ 'save' => 'Save',
+ 'general' => 'General',
+ 'name_config' => 'configuration Name',
+ 'description' => 'Description',
+ 'to_apply_to'=> 'Apply to',
+ 'template' => 'Template',
+ 'documents' => 'Documents',
+ 'value' => 'Value',
+ 'not_selected' =>'not selected',
+ 'show_doc_on_tree' => 'Show documents in tree',
+ 'no' => 'no',
+ 'yes' => 'Yes',
+ 'location' => 'Location of new documents',
+ 'down' => 'Below',
+ 'up' => 'Top',
+ 'setting_tab' => 'tab Settings',
+ 'title_tab' => 'tab Title',
+ 'default_name_doc' => 'default: resource name',
+ 'columns_used' => 'used columns',
+ 'titl'=>'Title',
+ 'enter' => 'Output',
+ 'handler' => 'Handler',
+ 'width' => 'Width',
+ 'choose_from' => 'choose from',
+ 'document_a' => 'document',
+ 'tvs' => 'TV parameters',
+ 'another' => 'Other',
+ 'sort_col' => 'Sort by column',
+ 'sort_dir' => 'sort Direction',
+ 'asc' =>'ascending',
+ 'desc' =>'descending',
+ 'show_by' => 'Show by',
+ 'default_template' => 'default Template',
+ 'for_new_doc' => 'for newly created resources',
+ 'editing_method'=>'editing',
+ 'dblclick' => 'double click',
+ 'rclick' => 'Right click',
+ 'create_new_config' => 'Create new configuration',
+ 'name' => 'Name',
+ 'not_config' => ' you don\'t have one configuration yet. ',
+ 'click_here' => 'Click here',
+ 'create_new_config'=> ' to create the first configuration.'
+ );
From debfab4872f3670da165f39577155c895d25de6a Mon Sep 17 00:00:00 2001
From: 2frags <0@2frags.com>
Date: Tue, 12 Mar 2019 18:13:20 +0200
Subject: [PATCH 5/7] Update module.ec.php
---
assets/plugins/evocollection/module.ec.php | 125 +++++++++++----------
1 file changed, 64 insertions(+), 61 deletions(-)
diff --git a/assets/plugins/evocollection/module.ec.php b/assets/plugins/evocollection/module.ec.php
index 43643b7..dc9a7b7 100644
--- a/assets/plugins/evocollection/module.ec.php
+++ b/assets/plugins/evocollection/module.ec.php
@@ -1,27 +1,30 @@
config['manager_language'].".php")) require_once(MODX_BASE_PATH."assets/plugins/evocollection/lang/".$modx->config['manager_language'].".php");
+ else require_once(MODX_BASE_PATH."assets/plugins/evocollection/lang/russian-UTF8.php");
+
$page = '
- Модуль редактирования конфигурации evoCollection
+ '.$lang['title'].'