contextual_help

removes code related to contextual help
This commit is contained in:
Ray 2023-01-31 12:13:47 -05:00
parent 343a92f51c
commit 03acf26a09
37 changed files with 1 additions and 364 deletions

1
.gitignore vendored
View file

@ -33,7 +33,6 @@ custom/
cache/
# site apps
apps/
!doc/context/*/apps
doc/site
# default startpage
home.html

View file

@ -164,23 +164,8 @@ class Navbar {
$nav['register'] = ['register',t('Register'), "", t('Create an account'),'register_nav_btn'];
}
if (! get_config('system', 'hide_help', true)) {
$help_url = z_root() . '/help?f=&cmd=' . App::$cmd;
$context_help = '';
$enable_context_help = ((intval(get_config('system', 'enable_context_help')) === 1 || get_config('system', 'enable_context_help') === false) ? true : false);
if ($enable_context_help === true) {
require_once('include/help.php');
$context_help = load_context_help();
//point directly to /help if $context_help is empty - this can be removed once we have context help for all modules
$enable_context_help = (($context_help) ? true : false);
}
$nav['help'] = [$help_url, t('Help'), "", t('Help and documentation'), 'help_nav_btn', $context_help, $enable_context_help];
}
$search_form_action = 'search';
$nav['search'] = ['search', t('Search'), "", t('Search site @name, #tag, ?doc, content'), $search_form_action];
/**

View file

@ -64,7 +64,6 @@ class Site
$public_stream_mode = ((x($_POST, 'public_stream_mode')) ? intval($_POST['public_stream_mode']) : PUBLIC_STREAM_NONE);
$animations = ((x($_POST, 'animations')) ? true : false);
$login_on_homepage = ((x($_POST, 'login_on_homepage')) ? true : false);
$enable_context_help = ((x($_POST, 'enable_context_help')) ? true : false);
$no_community_page = !((x($_POST, 'no_community_page')) ? true : false);
$default_expire_days = ((array_key_exists('default_expire_days', $_POST)) ? intval($_POST['default_expire_days']) : 0);
$active_expire_days = ((array_key_exists('active_expire_days', $_POST)) ? intval($_POST['active_expire_days']) : 7);
@ -109,7 +108,6 @@ class Site
set_config('system', 'mirror_frontpage', $mirror_frontpage);
set_config('system', 'sitename', $sitename);
set_config('system', 'login_on_homepage', $login_on_homepage);
set_config('system', 'enable_context_help', $enable_context_help);
set_config('system', 'verify_email', $verify_email);
set_config('system', 'default_expire_days', $default_expire_days);
set_config('system', 'active_expire_days', $active_expire_days);
@ -267,8 +265,7 @@ class Site
}
$homelogin = get_config('system', 'login_on_homepage');
$enable_context_help = get_config('system', 'enable_context_help');
return replace_macros(Theme::get_template('admin_site.tpl'), [
'$title' => t('Administration'),
'$page' => t('Site'),
@ -316,7 +313,6 @@ class Site
'$excl' => ['pub_excl', t('Do not import Public stream posts with this text'), get_config('system', 'pubstream_excl'), t('words one per line or #tags or /patterns/ or lang=xx, leave blank to import all posts')],
'$max_imported_follow' => ['max_imported_follow', t('Maximum number of imported friends of friends'), get_config('system', 'max_imported_follow', MAX_IMPORTED_FOLLOW), t('Warning: higher numbers will improve the quality of friend suggestions and directory results but can exponentially increase resource usage')],
'$login_on_homepage' => ['login_on_homepage', t("Login on Homepage"), ((intval($homelogin) || $homelogin === false) ? 1 : ''), t("Present a login box to visitors on the home page if no other content has been configured.")],
'$enable_context_help' => ['enable_context_help', t("Enable context help"), ((intval($enable_context_help) === 1 || $enable_context_help === false) ? 1 : 0), t("Display contextual help for the current page when the help button is pressed.")],
'$reply_address' => ['reply_address', t('Reply-to email address for system generated email.'), get_config('system', 'reply_address', 'noreply@' . App::get_hostname()), ''],
'$from_email' => ['from_email', t('Sender (From) email address for system generated email.'), get_config('system', 'from_email', 'Administrator@' . App::get_hostname()), ''],
'$from_email_name' => ['from_email_name', t('Display name of email sender for system generated email.'), get_config('system', 'from_email_name', System::get_site_name()), ''],

View file

@ -3551,15 +3551,6 @@ msgid ""
"been configured."
msgstr ""
#: Code/Module/Admin/Site.php:319
msgid "Enable context help"
msgstr ""
#: Code/Module/Admin/Site.php:319
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr ""
#: Code/Module/Admin/Site.php:320
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -561,8 +561,6 @@ App::$strings['words one per line or #tags or /patterns/ or lang=xx, leave blank
App::$strings['Do not import Public stream posts with this text'] = '';
App::$strings['Login on Homepage'] = '';
App::$strings['Present a login box to visitors on the home page if no other content has been configured.'] = '';
App::$strings['Enable context help'] = '';
App::$strings['Display contextual help for the current page when the help button is pressed.'] = '';
App::$strings['Reply-to email address for system generated email.'] = '';
App::$strings['Sender (From) email address for system generated email.'] = '';
App::$strings['Name of email sender for system generated email.'] = '';

View file

@ -2948,16 +2948,6 @@ msgid ""
"been configured."
msgstr "Presenta una casella d'identificació a la pàgina d'inici als visitants si no s'ha configurat altre contingut."
#: ../../Code/Module/Admin/Site.php:352
msgid "Enable context help"
msgstr "Activar l'ajuda contextual"
#: ../../Code/Module/Admin/Site.php:352
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr "Mostra l'ajuda contextual per la pàgina actual quan el botó d'ajuda es pressionat."
#: ../../Code/Module/Admin/Site.php:354
msgid "Reply-to email address for system generated email."
msgstr "Adreça de correu de resposta per als correus generats."

View file

@ -572,8 +572,6 @@ App::$strings["words one per line or #tags or /patterns/ or lang=xx, leave blank
App::$strings["Do not import Public stream posts with this text"] = "No importes entrades del flux públic que continguin aquest text";
App::$strings["Login on Homepage"] = "Accés a la Pàgina d'inici";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Presenta una casella d'identificació a la pàgina d'inici als visitants si no s'ha configurat altre contingut.";
App::$strings["Enable context help"] = "Activar l'ajuda contextual";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Mostra l'ajuda contextual per la pàgina actual quan el botó d'ajuda es pressionat.";
App::$strings["Reply-to email address for system generated email."] = "Adreça de correu de resposta per als correus generats.";
App::$strings["Sender (From) email address for system generated email."] = "Adreça de correu de remitent per als correus generats.";
App::$strings["Name of email sender for system generated email."] = "Nom visible de remitent per als correus generats.";

View file

@ -2986,16 +2986,6 @@ msgid ""
"been configured."
msgstr "Zeigt Besuchern der Homepage eine Anmeldemaske, falls keine anderen Inhalte konfiguriert wurden."
#: ../../Code/Module/Admin/Site.php:334
msgid "Enable context help"
msgstr "Kontext-Hilfe aktivieren"
#: ../../Code/Module/Admin/Site.php:334
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr "Zeigt Kontext-sensitive Hilfe für die aktuelle Seite an, wenn der Hilfe-Knopf geklickt wird."
#: ../../Code/Module/Admin/Site.php:336
msgid "Reply-to email address for system generated email."
msgstr "Antwortadresse (reply-to) für Emails, die vom System generiert wurden."

View file

@ -584,8 +584,6 @@ App::$strings["Allow anybody on the internet to access the Public streams"] = "A
App::$strings["Disable to require authentication before viewing. Warning: this content is unmoderated."] = "Deaktiviert die erforderliche Authentifizierung vor dem Ansehen. Warnung: Diese Inhalte sind nicht moderiert.";
App::$strings["Login on Homepage"] = "Log-in auf der Startseite";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Zeigt Besuchern der Homepage eine Anmeldemaske, falls keine anderen Inhalte konfiguriert wurden.";
App::$strings["Enable context help"] = "Kontext-Hilfe aktivieren";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Zeigt Kontext-sensitive Hilfe für die aktuelle Seite an, wenn der Hilfe-Knopf geklickt wird.";
App::$strings["Reply-to email address for system generated email."] = "Antwortadresse (reply-to) für Emails, die vom System generiert wurden.";
App::$strings["Sender (From) email address for system generated email."] = "Absenderadresse (from) für Emails, die vom System generiert wurden.";
App::$strings["Name of email sender for system generated email."] = "Name des Versenders von Emails, die vom System generiert wurden.";

View file

@ -4103,15 +4103,6 @@ msgid ""
"been configured."
msgstr ""
#: Code/Module/Admin/Site.php:325
msgid "Enable context help"
msgstr ""
#: Code/Module/Admin/Site.php:325
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr ""
#: Code/Module/Admin/Site.php:326
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -4103,15 +4103,6 @@ msgid ""
"been configured."
msgstr ""
#: Code/Module/Admin/Site.php:325
msgid "Enable context help"
msgstr ""
#: Code/Module/Admin/Site.php:325
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr ""
#: Code/Module/Admin/Site.php:326
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -3329,18 +3329,6 @@ msgstr ""
"Presentar a los visitantes una casilla de identificación en la página de "
"inicio, si no se ha configurado otro tipo de contenido."
#: Code/Module/Admin/Site.php:356
msgid "Enable context help"
msgstr "Habilitar la ayuda contextual"
#: Code/Module/Admin/Site.php:356
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr ""
"Ver la ayuda contextual para la página actual cuando se pulse el botón de "
"Ayuda."
#: Code/Module/Admin/Site.php:357
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -678,8 +678,6 @@ App::$strings["Maximum number of imported friends of friends"] = "Número máxim
App::$strings["Warning: higher numbers will improve the quality of friend suggestions and directory results but can exponentially increase resource usage"] = "Advertencia: los números más altos mejorarán la calidad de las sugerencias de amigos y los resultados del directorio, pero pueden aumentar exponencialmente el uso de recursos";
App::$strings["Login on Homepage"] = "Iniciar sesión en la página personal";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Presentar a los visitantes una casilla de identificación en la página de inicio, si no se ha configurado otro tipo de contenido.";
App::$strings["Enable context help"] = "Habilitar la ayuda contextual";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Ver la ayuda contextual para la página actual cuando se pulse el botón de Ayuda.";
App::$strings["Reply-to email address for system generated email."] = "Dirección de respuesta para el correo electrónico generado por el sistema.";
App::$strings["Sender (From) email address for system generated email."] = "Dirección del remitente (From) para el correo electrónico generado por el sistema.";
App::$strings["Display name of email sender for system generated email."] = "Nombre del remitente del correo electrónico generado por el sistema.";

View file

@ -5855,15 +5855,6 @@ msgstr ""
"Présenter une boîte de dialogue de connexion aux visiteurs sur la page "
"d'accueil si aucun autre contenu n'a été configuré."
#: ../../Code/Module/Admin/Site.php:322
msgid "Enable context help"
msgstr "Permettre l'aide contextuelle"
#: ../../Code/Module/Admin/Site.php:322
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr "Afficher l'aide contextuel en cliquant sur le bouton aide."
#: ../../Code/Module/Admin/Site.php:323
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -1162,8 +1162,6 @@ App::$strings["Maximum number of imported friends of friends"] = "Nombre maximal
App::$strings["Warning: higher numbers will improve the quality of friend suggestions and directory results but can exponentially increase resource usage"] = "Attention : un nombre plus élevé augmentera la qualité des suggestions de contacts et les résultats de l'annuaire, mais peut augmenter l'utilisation des ressources de façon exponentielle";
App::$strings["Login on Homepage"] = "Connexion sur la page d'accueil";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Présenter une boîte de dialogue de connexion aux visiteurs sur la page d'accueil si aucun autre contenu n'a été configuré.";
App::$strings["Enable context help"] = "Permettre l'aide contextuelle";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Afficher l'aide contextuel en cliquant sur le bouton aide.";
App::$strings["Reply-to email address for system generated email."] = "Adresse courriel de retour pour les courriels générés par l'application.";
App::$strings["Sender (From) email address for system generated email."] = "Adresse courriel de l'expéditeur (champ \"De\") pour les courriels générés par l'application.";
App::$strings["Display name of email sender for system generated email."] = "Nom affiché pour l'expéditeur des courriels générés par le système.";

View file

@ -3911,16 +3911,6 @@ msgid ""
"been configured."
msgstr ""
#: ../../Code/Module/Admin.php:523
msgid "Enable context help"
msgstr ""
#: ../../Code/Module/Admin.php:523
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr ""
#: ../../Code/Module/Admin.php:525
msgid "Directory Server URL"
msgstr ""

View file

@ -861,8 +861,6 @@ App::$strings["Import Public Streams"] = "";
App::$strings["Import and allow access to public content pulled from other sites. Warning: this content is unmoderated."] = "";
App::$strings["Login on Homepage"] = "התחבר בעמוד בית";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "";
App::$strings["Enable context help"] = "";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "";
App::$strings["Directory Server URL"] = "";
App::$strings["Default directory server"] = "שרת ספרייה שגרתי";
App::$strings["Proxy user"] = "משתמש פרוקסי";

View file

@ -2959,16 +2959,6 @@ msgid ""
"been configured."
msgstr "Presenta il modulo di login ai visitatori sulla homepage in mancanza di altri contenuti."
#: ../../Code/Module/Admin/Site.php:334
msgid "Enable context help"
msgstr "Abilita la guida contestuale"
#: ../../Code/Module/Admin/Site.php:334
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr "Quando è premuto, il bottone della guida mostra quella relativa alla pagina corrente"
#: ../../Code/Module/Admin/Site.php:336
msgid "Reply-to email address for system generated email."
msgstr "Indirizzo Reply-to per mail generate dal sistema."

View file

@ -583,8 +583,6 @@ App::$strings["Allow anybody on the internet to access the Public streams"] = "P
App::$strings["Disable to require authentication before viewing. Warning: this content is unmoderated."] = "Disabilita per richiedere di autenticarsi prima di visualizzare. Attenzione: questo contenuto non è moderato.";
App::$strings["Login on Homepage"] = "Login sulla homepage";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Presenta il modulo di login ai visitatori sulla homepage in mancanza di altri contenuti.";
App::$strings["Enable context help"] = "Abilita la guida contestuale";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Quando è premuto, il bottone della guida mostra quella relativa alla pagina corrente";
App::$strings["Reply-to email address for system generated email."] = "Indirizzo Reply-to per mail generate dal sistema.";
App::$strings["Sender (From) email address for system generated email."] = "Indirzzo email del mittente (From) per mail generate dal sistema.";
App::$strings["Name of email sender for system generated email."] = "Nome del mittente per mail generate dal sistema";

View file

@ -703,43 +703,6 @@ function handleNotificationsItems(notifyType, data) {
}
}
function contextualHelp() {
let container = $("#contextual-help-content");
if(container.hasClass('contextual-help-content-open')) {
container.removeClass('contextual-help-content-open');
$('main').css('margin-top', '')
}
else {
container.addClass('contextual-help-content-open');
let mainTop = container.outerHeight(true);
$('main').css('margin-top', mainTop + 'px');
}
}
function contextualHelpFocus(target, openSidePanel) {
if($(target).length) {
if (openSidePanel) {
$("main").addClass('region_1-on'); // Open the side panel to highlight element
}
else {
$("main").removeClass('region_1-on');
}
let css_position = $(target).parent().css('position');
if (css_position === 'fixed') {
$(target).parent().css('position', 'static');
}
$('html,body').animate({ scrollTop: $(target).offset().top - $('nav').outerHeight(true) - $('#contextual-help-content').outerHeight(true)}, 'slow');
for (i = 0; i < 3; i++) {
$(target).fadeTo('slow', 0.1).fadeTo('slow', 1.0);
}
$(target).parent().css('position', css_position);
}
}
function updatePageItems(mode, data) {
if(mode === 'append') {

View file

@ -3905,16 +3905,6 @@ msgid ""
"been configured."
msgstr "Presenter en innloggingsboks til besøkende på hjemmesiden hvis ikke noe annet innhold har blitt konfigurert."
#: ../../Code/Module/Admin.php:523
msgid "Enable context help"
msgstr ""
#: ../../Code/Module/Admin.php:523
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr ""
#: ../../Code/Module/Admin.php:525
msgid "Directory Server URL"
msgstr "Katalogtjener URL"

View file

@ -861,8 +861,6 @@ App::$strings["Import Public Streams"] = "Importer offentlige innholdsstrømmer"
App::$strings["Import and allow access to public content pulled from other sites. Warning: this content is unmoderated."] = "Importer og gi tilgang til offentlig innhold trukket inn fra andre nettsteder. Advarsel: dette innholdet er ikke moderert.";
App::$strings["Login on Homepage"] = "";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Presenter en innloggingsboks til besøkende på hjemmesiden hvis ikke noe annet innhold har blitt konfigurert.";
App::$strings["Enable context help"] = "";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "";
App::$strings["Directory Server URL"] = "Katalogtjener URL";
App::$strings["Default directory server"] = "Standard katalogtjener";
App::$strings["Proxy user"] = "Brukernavn mellomtjener";

View file

@ -2969,16 +2969,6 @@ msgid ""
"been configured."
msgstr "Toon een inlogformulier voor bezoekers op de homepagina wanneer geen andere inhoud is geconfigureerd. "
#: ../../Code/Module/Admin/Site.php:334
msgid "Enable context help"
msgstr "Schakel contextuele hulp in"
#: ../../Code/Module/Admin/Site.php:334
msgid ""
"Display contextual help for the current page when the help button is "
"pressed."
msgstr "Toon hulp en documentatie voor de op dat moment getoonde pagina, wanneer op de hulp-knop wordt geklikt."
#: ../../Code/Module/Admin/Site.php:336
msgid "Reply-to email address for system generated email."
msgstr "Antwoordadres voor door de hub verzonden e-mail."

View file

@ -584,8 +584,6 @@ App::$strings["Allow anybody on the internet to access the Public streams"] = "A
App::$strings["Disable to require authentication before viewing. Warning: this content is unmoderated."] = "Uitschakelen wanneer authenticatie is vereist om de berichten te kunnen zien. Waarschuwing: de inhoud van deze berichten wordt niet gemodereerd.";
App::$strings["Login on Homepage"] = "Inlogformulier op de homepagina";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Toon een inlogformulier voor bezoekers op de homepagina wanneer geen andere inhoud is geconfigureerd. ";
App::$strings["Enable context help"] = "Schakel contextuele hulp in";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Toon hulp en documentatie voor de op dat moment getoonde pagina, wanneer op de hulp-knop wordt geklikt.";
App::$strings["Reply-to email address for system generated email."] = "Antwoordadres voor door de hub verzonden e-mail.";
App::$strings["Sender (From) email address for system generated email."] = "Afzenderadres voor door de hub verzonden e-mail.";
App::$strings["Name of email sender for system generated email."] = "Volledige naam van afzenderadres voor door de hub verzonden e-mail.";

View file

@ -3288,17 +3288,6 @@ msgstr ""
"Wyświetlaj formularz logowania odwiedzającym na stronie głównej, jeśli nie "
"skonfigurowano żadnych innych treści."
#: Code/Module/Admin/Site.php:356
msgid "Enable context help"
msgstr "Włącz pomoc kontekstową"
#: Code/Module/Admin/Site.php:356
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr ""
"Wyświetlanie pomocy kontekstowej dla bieżącej strony po naciśnięciu "
"przycisku pomocy."
#: Code/Module/Admin/Site.php:357
msgid "Reply-to email address for system generated email."
msgstr "Zwrotny adres e-mail dla wiadomości wygenerowanych przez system."

View file

@ -3162,15 +3162,6 @@ msgid ""
"been configured."
msgstr ""
#: Code/Module/Admin/Site.php:356
msgid "Enable context help"
msgstr ""
#: Code/Module/Admin/Site.php:356
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr ""
#: Code/Module/Admin/Site.php:357
msgid "Reply-to email address for system generated email."
msgstr ""

View file

@ -683,8 +683,6 @@ App::$strings["Maximum number of imported friends of friends"] = "Maksymalna lic
App::$strings["Warning: higher numbers will improve the quality of friend suggestions and directory results but can exponentially increase resource usage"] = "Ostrzeżenie: wyższe liczby poprawią jakość proponowanych znajomych i wyników w katalogu, ale mogą wykładniczo zwiększyć wykorzystanie zasobów";
App::$strings["Login on Homepage"] = "Zaloguj się na stronie głównej";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Wyświetlaj formularz logowania odwiedzającym na stronie głównej, jeśli nie skonfigurowano żadnych innych treści.";
App::$strings["Enable context help"] = "Włącz pomoc kontekstową";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Wyświetlanie pomocy kontekstowej dla bieżącej strony po naciśnięciu przycisku pomocy.";
App::$strings["Reply-to email address for system generated email."] = "Zwrotny adres e-mail dla wiadomości wygenerowanych przez system.";
App::$strings["Sender (From) email address for system generated email."] = "Adres e-mail nadawcy (Od) wiadomości e-mail wygenerowanej przez system.";
App::$strings["Display name of email sender for system generated email."] = "Wyświetlana nazwa nadawcy wiadomości e-mail generowanej przez system.";

View file

@ -11730,15 +11730,6 @@ msgid ""
"been configured."
msgstr "Предоставлять форму входа для посетителей на домашней странице если другого содержимого не настроено."
#: ../../Code/Module/Admin/Site.php:352
msgid "Enable context help"
msgstr "Включить контекстную помощь"
#: ../../Code/Module/Admin/Site.php:352
msgid ""
"Display contextual help for the current page when the help button is pressed."
msgstr "Показывать контекстную помощь для текущей странице при нажатии на кнопку \"Помощь\"."
#: ../../Code/Module/Admin/Site.php:354
msgid "Reply-to email address for system generated email."
msgstr "Адрес email Reply-to для генерируемых системой сообщений."

View file

@ -2632,8 +2632,6 @@ App::$strings["Only import Public stream posts with this text"] = "Импорт
App::$strings["Do not import Public stream posts with this text"] = "Не импортировать публичные потоки с этим текстом";
App::$strings["Login on Homepage"] = "Вход на домашней странице";
App::$strings["Present a login box to visitors on the home page if no other content has been configured."] = "Предоставлять форму входа для посетителей на домашней странице если другого содержимого не настроено.";
App::$strings["Enable context help"] = "Включить контекстную помощь";
App::$strings["Display contextual help for the current page when the help button is pressed."] = "Показывать контекстную помощь для текущей странице при нажатии на кнопку \"Помощь\".";
App::$strings["Reply-to email address for system generated email."] = "Адрес email Reply-to для генерируемых системой сообщений.";
App::$strings["Sender (From) email address for system generated email."] = "Адрес email отправителя (From) для генерируемых системой сообщений.";
App::$strings["Name of email sender for system generated email."] = "Имя отправителя для генерируемых системой сообщений.";

View file

@ -10,10 +10,6 @@
left: -0.25rem;
}
.contextual-help-content-open {
top: 2.5rem;
}
aside {
padding-top: 3.5rem;
}

View file

@ -325,51 +325,6 @@ nav {
.nav-channel-select { margin-left: 8px; }
/* contextual help */
.contextual-help-content {
display: none;
}
.contextual-help-content-open {
display: block;
position: fixed;
top: 3.35rem;
left: 0px;
width: 100%;
max-height: 50%;
background: $comment_item_colour;
padding: 1rem;
border-bottom: #ccc 1px solid;
overflow: auto;
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
}
.contextual-help-content dd {
margin-bottom: 1em;
}
.contextual-help-tool {
padding: 7px;
filter: alpha(opacity=20);
opacity: .5;
}
.contextual-help-tool:hover {
filter: alpha(opacity=50);
opacity: 1;
text-decoration: none;
}
.contextual-help-tool i {
color: $font_colour;
font-size: 1.05rem;
}
/* contextual help end */
/* spinner */
.spinner-wrapper {

View file

@ -443,25 +443,6 @@ pre {
box-shadow: 0px 3px 3px #222;
}
.contextual-help-content-open {
background: $nav_bg;
border-bottom: #555 1px solid;
box-shadow: 0px 3px 3px rgba(85,85,85,0.2);
}
.contextual-help-tool {
opacity: 0.5;
}
.contextual-help-tool:hover {
opacity: 1;
}
.contextual-help-tool i {
color: $link_colour;
}
.profile-match-wrapper {
width: 150px;
height: 120px;

View file

@ -295,11 +295,6 @@ pre {
box-shadow: none;
}
.contextual-help-content-open {
background: #FFF;
}
.profile-match-wrapper {
width: 150px;
height: 120px;

View file

@ -369,24 +369,6 @@ pre {
box-shadow: none;
}
.contextual-help-content-open {
background: $nav_bg;
border-bottom: #1C5419 1px solid;
box-shadow: 0px 3px 3px rgba(28,84,25,0.2);
}
.contextual-help-tool {
opacity: 0.5;
}
.contextual-help-tool:hover {
opacity: 1;
}
.contextual-help-tool i {
color: $link_colour;
}
.profile-match-wrapper {
width: 150px;
height: 120px;

View file

@ -342,24 +342,6 @@ pre {
box-shadow: none;
}
.contextual-help-content-open {
background: $nav_bg;
border-bottom: #FFF 1px solid;
box-shadow: 0px 3px 3px rgba(255,255,255,0.2);
}
.contextual-help-tool {
opacity: 0.5;
}
.contextual-help-tool:hover {
opacity: 1;
}
.contextual-help-tool i {
color: $link_colour;
}
.profile-match-wrapper {
width: 150px;
height: 120px;

View file

@ -67,11 +67,6 @@
{{/if}}
{{/if}}
<div class="navbar-toggler-right">
{{if $nav.help.6}}
<button id="context-help-btn" class="navbar-toggler border-0" type="button" onclick="contextualHelp(); return false;">
<i class="fa fa-question-circle"></i>
</button>
{{/if}}
<button id="expand-aside" type="button" class="d-lg-none navbar-toggler border-0" data-bs-toggle="offcanvas" data-bs-target="#region_1" title="{{$asidetitle}}">
<i class="fa fa-arrow-circle-right" id="expand-aside-icon"></i>
</button>
@ -125,11 +120,6 @@
<li class="nav-item" id="nav-search-btn">
<a class="nav-link" href="#nav-search" title="{{$nav.search.3}}" onclick="openMenu('nav-search'); closeMenu('nav-search-btn'); $('#nav-search-text').focus(); return false;"><i class="fa fa-fw fa-search"></i></a>
</li>
{{if $nav.help.6}}
<li class="nav-item dropdown {{$sel.help}}">
<a class="nav-link {{$nav.help.2}}" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}" onclick="contextualHelp(); return false;"><i class="fa fa-fw fa-question-circle"></i></a>
</li>
{{/if}}
{{if $localuser || $nav.pubs}}
<li id="notifications-btn" class="nav-item d-xl-none">
<a class="nav-link text-white notifications-btn" href="#" title="{{$notificationstitle}}"><i id="notifications-btn-icon" class="fa fa-exclamation-circle notifications-btn-icon"></i></a>
@ -209,12 +199,3 @@
{{/if}}
</div>
</div>
{{if $nav.help.6}}
<div id="contextual-help-content" class="contextual-help-content">
{{$nav.help.5}}
<div class="float-end">
<a class="btn btn-primary btn-sm" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}"><i class="fa fa-question"></i>&nbsp;{{$fulldocs}}</a>
<a class="contextual-help-tool" href="#" onclick="contextualHelp(); return false;"><i class="fa fa-times"></i></a>
</div>
</div>
{{/if}}

View file

@ -71,11 +71,6 @@
{{/if}}
{{/if}}
<div class="navbar-toggler-right">
{{if $nav.help.6}}
<button id="context-help-btn" class="navbar-toggler border-0" type="button" onclick="contextualHelp(); return false;">
<i class="fa fa-question-circle"></i>
</button>
{{/if}}
<button id="expand-aside" type="button" class="d-lg-none navbar-toggler border-0" data-bs-toggle="offcanvas" data-bs-target="#region_1">
<i class="fa fa-arrow-circle-right" id="expand-aside-icon"></i>
</button>
@ -129,11 +124,6 @@
<li class="nav-item" id="nav-search-btn">
<a class="nav-link" href="#nav-search" title="{{$nav.search.3}}" onclick="openMenu('nav-search'); closeMenu('nav-search-btn'); $('#nav-search-text').focus(); return false;"><i class="fa fa-fw fa-search"></i></a>
</li>
{{if $nav.help.6}}
<li class="nav-item dropdown {{$sel.help}}">
<a class="nav-link {{$nav.help.2}}" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}" onclick="contextualHelp(); return false;"><i class="fa fa-fw fa-question-circle"></i></a>
</li>
{{/if}}
{{if $localuser || $nav.pubs}}
<li id="notifications-btn" class="nav-item d-xl-none">
<a class="nav-link text-white notifications-btn" href="#"><i id="notifications-btn-icon" class="fa fa-exclamation-circle notifications-btn-icon"></i></a>
@ -212,12 +202,3 @@
{{/if}}
</div>
</div>
{{if $nav.help.6}}
<div id="contextual-help-content" class="contextual-help-content">
{{$nav.help.5}}
<div class="float-end">
<a class="btn btn-primary btn-sm" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}"><i class="fa fa-question"></i>&nbsp;{{$fulldocs}}</a>
<a class="contextual-help-tool" href="#" onclick="contextualHelp(); return false;"><i class="fa fa-times"></i></a>
</div>
</div>
{{/if}}