Skip to content

Commit

Permalink
Extend information for the whosOnline area
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Jun 10, 2020
1 parent 30c0dd3 commit 631ca7f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 12 deletions.
27 changes: 27 additions & 0 deletions Sources/LightPortal/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,33 @@ public static function whosOnline(array $actions)
if (!empty($actions['page']))
$result = sprintf($txt['lp_who_viewing_page'], $scripturl . '?page=' . $actions['page']);

if (!empty($actions['action']) && $actions['action'] == 'lp_settings')
$result = sprintf($txt['lp_who_viewing_portal_settings'], $scripturl . '?action=admin;area=lp_settings');

if (!empty($actions['action']) && $actions['action'] == 'lp_blocks') {
if (!empty($actions['area']) && $actions['area'] == 'lp_blocks') {
$result = sprintf($txt['lp_who_viewing_portal_blocks'], $scripturl . '?action==admin;area=lp_blocks');

if (!empty($actions['sa']) && $actions['sa'] == 'edit' && !empty($actions['id']))
$result = sprintf($txt['lp_who_viewing_editing_block'], $actions['id']);

if (!empty($actions['sa']) && $actions['sa'] == 'add')
$result = sprintf($txt['lp_who_viewing_adding_block']);
}
}

if (!empty($actions['action']) && $actions['action'] == 'lp_pages') {
if (!empty($actions['area']) && $actions['area'] == 'lp_pages') {
$result = sprintf($txt['lp_who_viewing_portal_pages'], $scripturl . '?action==admin;area=lp_pages');

if (!empty($actions['sa']) && $actions['sa'] == 'edit' && !empty($actions['id']))
$result = sprintf($txt['lp_who_viewing_editing_page'], $actions['id']);

if (!empty($actions['sa']) && $actions['sa'] == 'add')
$result = sprintf($txt['lp_who_viewing_adding_page']);
}
}

return $result;
}
}
15 changes: 11 additions & 4 deletions Themes/default/languages/LightPortal/.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,17 @@
$txt['lp_import_failed'] = 'Failed to import...';

// Who
$txt['lp_who_viewing_frontpage'] = 'Viewing <a href="%1$s">the portal frontpage</a>.';
$txt['lp_who_viewing_page'] = 'Viewing <a href="%1$s">the portal page</a>.';
$txt['lp_who_viewing_tags'] = 'Viewing <a href="%1$s">the portal page tags</a>.';
$txt['lp_who_viewing_the_tag'] = 'Viewing the page list with <a href="%1$s" class="bbc_link">%2$s</a> tag.';
$txt['lp_who_viewing_frontpage'] = 'Viewing <a href="%1$s">the portal frontpage</a>.';
$txt['lp_who_viewing_page'] = 'Viewing <a href="%1$s">the portal page</a>.';
$txt['lp_who_viewing_tags'] = 'Viewing <a href="%1$s">the portal page tags</a>.';
$txt['lp_who_viewing_the_tag'] = 'Viewing the page list with <a href="%1$s" class="bbc_link">%2$s</a> tag.';
$txt['lp_who_viewing_portal_settings'] = 'Viewing or changing <a href="%1$s">the portal settings</a>.';
$txt['lp_who_viewing_portal_blocks'] = 'Viewing <a href="%1$s">the portal blocks</a> in the admin area.';
$txt['lp_who_viewing_editing_block'] = 'Editing the portal block (#%1$d).';
$txt['lp_who_viewing_adding_block'] = 'Adding a block for the portal.';
$txt['lp_who_viewing_portal_pages'] = 'Viewing <a href="%1$s">the portal pages</a> in the admin area.';
$txt['lp_who_viewing_editing_page'] = 'Editing the portal page (#%1$d).';
$txt['lp_who_viewing_adding_page'] = 'Adding a page for the portal.';

// Permissions
$txt['permissiongroup_light_portal'] = LP_NAME;
Expand Down
15 changes: 11 additions & 4 deletions Themes/default/languages/LightPortal/.russian.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,17 @@
$txt['lp_import_failed'] = 'Не удалось осуществить импорт...';

// Who
$txt['lp_who_viewing_frontpage'] = 'Просматривает <a href="%1$s">главную страницу портала</a>.';
$txt['lp_who_viewing_page'] = 'Просматривает <a href="%1$s">страницу портала</a>.';
$txt['lp_who_viewing_tags'] = 'Просматривает <a href="%1$s">теги страниц портала</a>.';
$txt['lp_who_viewing_the_tag'] = 'Просматривает список страниц с тегом <a href="%1$s" class="bbc_link">%2$s</a>.';
$txt['lp_who_viewing_frontpage'] = 'Просматривает <a href="%1$s">главную страницу портала</a>.';
$txt['lp_who_viewing_page'] = 'Просматривает <a href="%1$s">страницу портала</a>.';
$txt['lp_who_viewing_tags'] = 'Просматривает <a href="%1$s">теги страниц портала</a>.';
$txt['lp_who_viewing_the_tag'] = 'Просматривает список страниц с тегом <a href="%1$s" class="bbc_link">%2$s</a>.';
$txt['lp_who_viewing_portal_settings'] = 'Просматривает или изменяет <a href="%1$s">настройки портала</a>.';
$txt['lp_who_viewing_portal_blocks'] = 'Просматривает <a href="%1$s">блоки портала</a> в админке.';
$txt['lp_who_viewing_editing_block'] = 'Редактирует блок портала (#%1$d).';
$txt['lp_who_viewing_adding_block'] = 'Добавляет блок портала.';
$txt['lp_who_viewing_portal_pages'] = 'Просматривает <a href="%1$s">страницы портала</a> в админке.';
$txt['lp_who_viewing_editing_page'] = 'Редактирует страницу портала (#%1$d).';
$txt['lp_who_viewing_adding_page'] = 'Добавляет страницу портала.';

// Permissions
$txt['permissiongroup_light_portal'] = LP_NAME;
Expand Down
15 changes: 11 additions & 4 deletions Themes/default/languages/LightPortal/.ukrainian.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,17 @@
$txt['lp_import_failed'] = 'Не вдалося здійснити імпорт...';

// Who
$txt['lp_who_viewing_frontpage'] = 'Переглядає <a href="%1$s">головну сторінку порталу</a>.';
$txt['lp_who_viewing_page'] = 'Переглядає <a href="%1$s">сторінку порталу</a>.';
$txt['lp_who_viewing_tags'] = 'Переглядає <a href="%1$s">теги сторінок порталу</a>.';
$txt['lp_who_viewing_the_tag'] = 'Переглядає список сторінок з тегом <a href="%1$s" class="bbc_link">%2$s</a>.';
$txt['lp_who_viewing_frontpage'] = 'Переглядає <a href="%1$s">головну сторінку порталу</a>.';
$txt['lp_who_viewing_page'] = 'Переглядає <a href="%1$s">сторінку порталу</a>.';
$txt['lp_who_viewing_tags'] = 'Переглядає <a href="%1$s">теги сторінок порталу</a>.';
$txt['lp_who_viewing_the_tag'] = 'Переглядає список сторінок з тегом <a href="%1$s" class="bbc_link">%2$s</a>.';
$txt['lp_who_viewing_portal_settings'] = 'Переглядає або змінює <a href="%1$s">налаштування порталу</a>.';
$txt['lp_who_viewing_portal_blocks'] = 'Переглядає <a href="%1$s">блоки порталу</a> в адмінці.';
$txt['lp_who_viewing_editing_block'] = 'Редагує блок порталу (#%1$d).';
$txt['lp_who_viewing_adding_block'] = 'Додає блок порталу.';
$txt['lp_who_viewing_portal_pages'] = 'Переглядає <a href="%1$s">сторінки порталу</a> в адмінці.';
$txt['lp_who_viewing_editing_page'] = 'Редагує сторінку порталу (#%1$d).';
$txt['lp_who_viewing_adding_page'] = 'Додає сторінку порталу.';

// Permissions
$txt['permissiongroup_light_portal'] = LP_NAME;
Expand Down

0 comments on commit 631ca7f

Please sign in to comment.