-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
829 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
upload/engine/inc/maharder/admin/assets/css/jquery-confirm.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
upload/engine/inc/maharder/admin/assets/js/jquery-confirm.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
upload/engine/inc/maharder/admin/modules/custom-favorites/main.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
//=== === === === === === === === === === === === === === === === === === === === === | ||
// Mod: Свои закладки | ||
// File: main.php | ||
// Path: D:\OpenServer\domains\dle150.local/engine/inc/maharder/admin/modules/custom-favorites/main.php | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Author: Maxim Harder <[email protected]> (c) 2022 | ||
// Website: https://devcraft.club | ||
// Telegram: http://t.me/MaHarder | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Do not change anything! | ||
//=== === === === === === === === === === === === === === === === === === === === === | ||
|
||
// Как добавить свои стили? | ||
// 1. Вариант | ||
// добавляем дополнительные стили в существующий массив: $variables['css'][] = htmlStatic( 'путь/к/стилям.css' ); | ||
// тем самым добавив новый стиль к существующим | ||
// | ||
// 2. Вариант | ||
// создаём новый массив с новыми стилями и перезаписываем переменную для рендера | ||
// $variables['css'] = htmlStatic( $newCssArray ); | ||
|
||
// Как добавить свои скрипты? | ||
// 1. Вариант | ||
// добавляем дополнительные скрипты в существующий массив: $variables['js'][] = htmlStatic( 'путь/к/скриптам.js', 'html', 'js' ); | ||
// тем самым добавив новый скрипт к существующим | ||
// | ||
// 2. Вариант | ||
// создаём новый массив с новыми скриптами и перезаписываем переменную для рендера | ||
// $variables['js'] = htmlStatic( $newJssArray, 'js' ); | ||
|
||
$modVars = [ | ||
'title' => 'Настройки модуля', | ||
]; | ||
|
||
$htmlTemplate = 'modules/custom-favorites/main.html'; |
27 changes: 27 additions & 0 deletions
27
upload/engine/inc/maharder/admin/modules/myshows/changelog.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
$logs = [ | ||
'2.0.0' => [ | ||
'[NEW|PAID] Вывод списка серий', | ||
'[NEW|PAID] Добавлен парсер информации', | ||
'[UPDATE] Работа с MyShows API 2.0', | ||
'[UPDATE] Обновление до DLE 15.1', | ||
'[UPDATE] Обновление функционала и совместимость с последней версией MHAdmin (2.0.3)', | ||
], | ||
'1.0.2.3' => [ | ||
'Бесплатная и устаревшая версия модуля MyStatus', | ||
] | ||
]; | ||
|
||
$modVars = [ | ||
'title' => 'История изменений', | ||
'module_icon' => 'fad fa-robot', | ||
'logs' => $logs, | ||
]; | ||
|
||
$breadcrumbs[] = [ | ||
'name' => $modVars['title'], | ||
'url' => $links['changelog']['href'], | ||
]; | ||
|
||
$htmlTemplate = 'modules/admin/changelog.html'; |
36 changes: 36 additions & 0 deletions
36
upload/engine/inc/maharder/admin/modules/myshows/countries.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
global $mh, $mh_config, $modInfo; | ||
|
||
require_once DLEPlugins::Check(MH_ROOT . '/mystatus/Models/Country.php'); | ||
|
||
$countries = new Country(); | ||
|
||
$cur_page = $modInfo['_get']['page'] ?? 1; | ||
$total_pages = @ceil($countries->count() / $mh_config['list_count']); | ||
$start = isset($modInfo['_get']['page']) ? ($modInfo['_get']['page'] * $mh_config['list_count']) + 1 : 0; | ||
$end = isset($modInfo['_get']['page']) ? (($modInfo['_get']['page'] + 1) * $mh_config['list_count']) : $mh_config['list_count']; | ||
|
||
$modVars = [ | ||
'title' => 'Настройка стран', | ||
'countries' => $countries->getAll(['limit' => "{$start},{$end}"]), | ||
'page' => $cur_page, | ||
'total_pages' => $total_pages, | ||
'search_fields' => [ | ||
'sfields' => $mh->generate_link( | ||
_('Где искать?'), '#', 'dropdown', [ | ||
$mh->generate_link(_('Везде'), '#', 'data', [], 'all'), | ||
$mh->generate_link(_('Оригинальное название'), '#', 'data', [], 'original'), | ||
$mh->generate_link(_('Аббревиатура'), '#', 'data', [], 'abbr'), | ||
$mh->generate_link(_('Перевод'), '#', 'data', [], 'translate'), | ||
], 'search' | ||
) | ||
] | ||
]; | ||
|
||
$breadcrumbs[] = [ | ||
'name' => $modVars['title'], | ||
'url' => $links['countries']['href'], | ||
]; | ||
|
||
$htmlTemplate = 'modules/myshows/countries.html'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
//=== === === === === === === === === === === === === === === === === === === === === | ||
// Mod: MyStatus | ||
// File: main.php | ||
// Path: /engine/inc/maharder/admin/modules/mystatus/main.php | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Author: Maxim Harder <[email protected]> (c) 2022 | ||
// Website: https://devcraft.club | ||
// Telegram: http://t.me/MaHarder | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Do not change anything! | ||
//=== === === === === === === === === === === === === === === === === === === === === | ||
|
||
|
||
$modVars = [ | ||
'title' => 'Главная страница', | ||
]; | ||
|
||
$htmlTemplate = 'modules/myshows/main.html'; |
32 changes: 32 additions & 0 deletions
32
upload/engine/inc/maharder/admin/modules/myshows/settings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
//=== === === === === === === === === === === === === === === === === === === === === | ||
// Mod: MyStatus | ||
// File: main.php | ||
// Path: /engine/inc/maharder/admin/modules/mystatus/main.php | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Author: Maxim Harder <[email protected]> (c) 2022 | ||
// Website: https://devcraft.club | ||
// Telegram: http://t.me/MaHarder | ||
// === === === === === === === === === === === === === === === === === === === === = | ||
// Do not change anything! | ||
//=== === === === === === === === === === === === === === === === === === === === === | ||
|
||
global $mh, $config; | ||
|
||
$mh_config = $mh->getConfig('maharder'); | ||
$mystatus_cfg = $mh->getConfig('mystatus'); | ||
|
||
$modVars = [ | ||
'title' => 'Настройки модуля', | ||
'settings' => $mystatus_cfg, | ||
'xfields' => $mh->loadXfields(), | ||
'users' => $mh->getUsers() | ||
]; | ||
|
||
$breadcrumbs[] = [ | ||
'name' => $modVars['title'], | ||
'url' => $links['settings']['href'], | ||
]; | ||
|
||
$htmlTemplate = 'modules/myshows/settings.html'; |
18 changes: 18 additions & 0 deletions
18
upload/engine/inc/maharder/admin/modules/myshows/templates.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
global $mh; | ||
|
||
$mh->setCss(URL . '/maharder/admin/assets/css/bootstrap-suggest.css'); | ||
$mh->setJs(URL . '/maharder/admin/assets/js/bootstrap-suggest.min.js'); | ||
|
||
$modVars = [ | ||
'title' => 'Настройка шаблонов', | ||
'template_data' => $mh->getConfig('mystatus_templates') | ||
]; | ||
|
||
$breadcrumbs[] = [ | ||
'name' => $modVars['title'], | ||
'url' => $links['templates']['href'], | ||
]; | ||
|
||
$htmlTemplate = 'modules/myshows/templates.html'; |
Oops, something went wrong.