- {var data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
+ {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
{if sizeof($data) > 0}
diff --git a/Web/Presenters/templates/@error.xml b/Web/Presenters/templates/@error.xml
index c1e99bc1..64359f7e 100644
--- a/Web/Presenters/templates/@error.xml
+++ b/Web/Presenters/templates/@error.xml
@@ -1,5 +1,4 @@
-{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
-
+{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml
index e6697c9d..1869c038 100644
--- a/Web/Presenters/templates/@layout.xml
+++ b/Web/Presenters/templates/@layout.xml
@@ -1,7 +1,7 @@
-{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
-
+{var $instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
+{if !isset($parentModule) || substr($parentModule, 0, 21) === 'libchandler:absolute.'}
-
+
- - {include preview, x => $dat} - - | -
- {ifset infoTable}
- {include infoTable, x => $dat}
- {else}
+ {ifset specpage}
+ {include specpage, x => $dat}
+ {else}
+
+ {var $data = is_array($iterator) ? $iterator : iterator_to_array($iterator)}
+
+ {if sizeof($data) > 0}
+
+
- {include "components/paginator.xml", conf => (object) [
- "page" => $page,
- "count" => $count,
- "amount" => sizeof($data),
- "perPage" => $perPage ?? OPENVK_DEFAULT_PER_PAGE,
- "atBottom" => true,
- ]}
- {else}
- {ifset customErrorMessage}
- {include customErrorMessage}
+ {include description, x => $dat}
+ {/ifset}
+
|
+ + {include actions, x => $dat} + | +
0}style="padding-right: 10px;"{/if}> + | 0} style="padding-right: 10px;"{/if}>
{_statistics}
{_on_this_instance_are}
@@ -21,6 +21,15 @@
+ {if OPENVK_ROOT_CONF['openvk']['preferences']['about']['links']}
+ {_about_links}+
+ {_instance_links}
+
+
+ {/if}
|
{_administrators}@@ -44,14 +53,23 @@ {if sizeof($popularClubs) !== 0}{_most_popular_groups}-
{_rules}diff --git a/Web/Presenters/templates/About/Index.xml b/Web/Presenters/templates/About/Index.xml index 71feceb7..9df911e7 100644 --- a/Web/Presenters/templates/About/Index.xml +++ b/Web/Presenters/templates/About/Index.xml @@ -9,7 +9,7 @@ {presenter "openvk!Support->knowledgeBaseArticle", "about"}
@@ -16,23 +17,15 @@
+ {/if}
+
+ {if $isBan}
+
- Обзор
+ {_admin_overview}
- Пользовательский контент
+ {_admin_content}
- Платные услуги
+ {_admin_services}
- Настройки
+ {_admin_settings}
- Об OpenVK
+ {_admin_about}
{$flashMessage->title} @@ -139,11 +113,11 @@ {$flashMessage->msg|noescape}
@@ -167,11 +141,11 @@
-
+
{script "js/node_modules/jquery/dist/jquery.min.js"}
{script "js/node_modules/@atlassian/aui/dist/aui/aui-prototyping.js"}
-
+
{ifset scripts}
{include scripts}
{/ifset}
diff --git a/Web/Presenters/templates/Admin/Club.xml b/Web/Presenters/templates/Admin/Club.xml
index c79a3cf7..a8f3ad50 100644
--- a/Web/Presenters/templates/Admin/Club.xml
+++ b/Web/Presenters/templates/Admin/Club.xml
@@ -1,191 +1,157 @@
{extends "@layout.xml"}
{block title}
- Редактировать {$club->getCanonicalName()}
+ {_edit} {$club->getCanonicalName()}
{/block}
{block heading}
{$club->getCanonicalName()}
{/block}
-
{block content}
-{var isMain = $mode === 'main'}
-{var isBan = $mode === 'ban'}
-{var isFollowers = $mode === 'followers'}
+ {var $isMain = $mode === 'main'}
+ {var $isBan = $mode === 'ban'}
+ {var $isFollowers = $mode === 'followers'}
-{if $isMain}
-
-
-
-
-
-
-
-{/if}
-
-{if $isBan}
-
-
-
-
-
-
-
-{/if}
-
-{if $isFollowers}
-
-
-
-{var followers = iterator_to_array($followers)}
-
-
-
-
-{/if}
-{/block}
\ No newline at end of file
+
- {var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
-
-
- ⭁ туда
-
-
- ⭇ сюда
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ isVerified()} checked {/if} />
+
+
+
+ isHideFromGlobalFeedEnabled()} checked {/if} />
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+ {if $isFollowers}
+ {var $followers = iterator_to_array($followers)}
+
+
+
+
+ {/if}
+{/block}
diff --git a/Web/Presenters/templates/Admin/Clubs.xml b/Web/Presenters/templates/Admin/Clubs.xml
index 4e9de1cb..d240768b 100644
--- a/Web/Presenters/templates/Admin/Clubs.xml
+++ b/Web/Presenters/templates/Admin/Clubs.xml
@@ -1,29 +1,31 @@
{extends "@layout.xml"}
-{var search = true}
+{var $search = true}
{block title}
- Группы
+ {_admin_club_search}
{/block}
{block heading}
- Бутылки
+ {_groups}
{/block}
-{block searchTitle}Поиск бутылок{/block}
+{block searchTitle}
+ {include title}
+{/block}
{block content}
- {var clubs = iterator_to_array($clubs)}
- {var amount = sizeof($clubs)}
+ {var $clubs = iterator_to_array($clubs)}
+ {var $amount = sizeof($clubs)}
- {var isLast = ((10 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
+ {var $isLast = ((10 * (($_GET['p'] ?? 1) - 1)) + $amount) < $count}
-
- ⭁ туда
-
-
- ⭇ сюда
-
+ «
+ »
{/block}
diff --git a/Web/Presenters/templates/Admin/Gift.xml b/Web/Presenters/templates/Admin/Gift.xml
index fd05037c..8a20c538 100644
--- a/Web/Presenters/templates/Admin/Gift.xml
+++ b/Web/Presenters/templates/Admin/Gift.xml
@@ -2,9 +2,9 @@
{block title}
{if $form->id === 0}
- Новый подарок
+ {_admin_newgift}
{else}
- Подарок "{$form->name}"
+ {_gift} "{$form->name}"
{/if}
{/block}
@@ -16,7 +16,7 @@
|
- Редактировать + {_edit} - Открыть - Открыть + {_admin_open} |
Наборов подарков нету. Чтобы создать подарок, создайте набор.
+{_admin_giftsets_none}
- {var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
-
- ⭁ туда
-
-
- ⭇ сюда
-
+ {var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
+ «
+ »
{/block}
diff --git a/Web/Presenters/templates/Admin/GiftCategory.xml b/Web/Presenters/templates/Admin/GiftCategory.xml
index 936a823f..15494b41 100644
--- a/Web/Presenters/templates/Admin/GiftCategory.xml
+++ b/Web/Presenters/templates/Admin/GiftCategory.xml
@@ -2,7 +2,7 @@
{block title}
{if $form->id === 0}
- Создать набор подарков
+ {_admin_giftsets_create}
{else}
{$form->languages["master"]->name}
{/if}
@@ -14,7 +14,7 @@
{block content}