Files
grzanieplus.pl/plugins/stNewsletterPlugin/modules/stNewsletterBackend/config/generator.yml
2025-03-12 17:06:23 +01:00

146 lines
10 KiB
YAML

generator:
class: stAdminGenerator
param:
model_class: NewsletterMessage
theme: simple
documentation:
pl: https://www.sote.pl/docs/newsletter-sklep-internetowy
en: https://www.soteshop.com/docs/newsletter
head:
package: stNewsletterPlugin
description: Wysyłanie wiadomości do klientów
fields:
created_at: {name: Utworzono}
list:
title: Przekazane do wysłania
display: [=subject, sent_at, created_at, number_sent, _number_received, _number_read]
forward_parameters: [send]
fields:
subject: {name: Temat, params: size=70}
created_at: {name: Utworzona}
sent_at: {name: Wysłana}
number_sent: {name: Adresaci}
number_received: {name: Otworzone}
number_read: {name: Wejścia}
actions: []
object_actions:
_edit: -
_delete: -
menu:
display: [message_draft, message_to_send, message_send, user, group, export, import, config]
fields:
message_draft: {name: Wiadomości, action: stNewsletterDraftMessageBackend/list}
message_to_send: {name: Przekazane do wysłania, action: stNewsletterBackend/list?send=0}
message_send: {name: Wysłane, action: stNewsletterBackend/list?send=1}
user: {name: Adresy, action: stNewsletterUserBackend/list}
group: {name: Grupy, action: stNewsletterGroupBackend/list}
export: {name: Eksport adresów e-mail, action: stNewsletterBackend/export}
import: {name: Import adresów e-mail, action: stNewsletterBackend/import}
config: {name: Konfiguracja, action: stNewsletterBackend/config}
edit:
title: Wiadomość
display:
"NONE": [created_at, _sent_at, ~group_info, number_sent, _number_received, _number_read, ~newsletter_group]
"Zawartość wiadomości": [~from, _subject, ~content]
forward_parameters: [send]
fields:
newsletter_group: {name: Wyślij do grup, type: plain}
group_info: {name: Wysłano do grup, type: plain}
created_at: {name: Utworzona, params: disabled=true, hide_on_create: true, type: plain}
from: {name: Od, type: plain, help: "Możesz zmienić domyślny adres dla newslettera w konfiguracji poczty."}
subject: {name: Temat, type: plain}
content: {name: Treść }
sent_at: {name: Wysłana, type: plain, hide_on_create: true}
number_sent: {name: Adresaci, type: plain, hide_on_create: true, help: "Liczba adresów do których wysłano wiadomość." }
number_received: {name: Otworzone, type: plain, hide_on_create: true, help: "Ilość otwartych wiadomości. (Dane szacunkowe)"}
number_read: {name: Wejścia, type: plain, hide_on_create: true, help: "Ilość klikniętych linków wewnątrz wiadomości."}
actions:
_delete: {name: Usuń}
_list: {name: Lista}
_edit_message: {name: Edytuj, action: @stNewsletterPlugin?action=editMessage&id=%%id%%&draft_id=%%newsletter_draft_message_id%% , params: icon=edit, i18n: stNewsletterBackend}
_save: {name: Zapisz}
_save_and_send: {name: Wyślij, type: save, params: force_submit=true name=save_and_send icon=send-message, i18n: stNewsletterBackend}
_create_copy: {name: Utwórz kopię wiadomości, type: save, params: force_submit=true name=create_copy icon=duplicate, i18n: stNewsletterBackend}
create:
title: Dodaj wiadomość
config:
title: Konfiguracja
menu: {use: list.menu}
display:
"NONE": [newsletter_enabled, newsletter_on, ~show_languages]
"Teksty na stronie rejestracji": [register_text_title, register_text_description, register_text_under_register]
"Teksty na stronie głównej": [register_text_widget_title, register_text_widget_description]
"Dodatkowa wiadomość po rejestracji": [register_message_on, register_message_title, register_message_templates]
"Szablon wiadomości": [newsletter_logo, template_show_subject, template_color_header, template_color_background_a, template_color_background_b, template_color_background_font, template_color_font_a, template_color_font_b, template_color_font_c, template_cta_font, template_cta_background, ~templates_responsive_pre]
fields:
newsletter_on: {name: Pokaż pole rejestracji przy składaniu zamowienia, type: checkbox}
newsletter_enabled: {name: Aktywuj, type: checkbox}
show_languages: {name: Domyślny język wysyłania}
register_message_on: {name: Włącz dodatkową wiadomość, type: checkbox}
register_message_title: {name: Temat, params: size=80;, is_i18n: true}
register_message_templates: {name:   , type: textarea, params: size=60x10 rich=true tinymce_options="'height:400,width:550,theme:'simple'", is_i18n: true}
register_text_title: {name: Tytuł, params: size=70, is_i18n: true}
register_text_description: {name: Tekst , type: textarea, params: size=60x10 rich=true tinymce_options="'height:400,width:550,theme:'simple'", is_i18n: true}
register_text_under_register: {name: Tekst pod rejestracją , type: textarea, params: size=60x10 rich=true tinymce_options="'height:400,width:550,theme:'simple'", is_i18n: true}
register_text_widget_title: {name: Tytuł, params: size=70, is_i18n: true}
register_text_widget_description: {name: Tekst , type: textarea, params: size=60x10 rich=true tinymce_options="'height:400,width:550,theme:'simple'", is_i18n: true}
template_show_subject: {name: Pokaż tytuł, type: checkbox, help: "Wyświetli tytuł wiadomość wewnątrz wiadomości" }
template_color_header: {name: Kolor tła nagłówka, type: st_colorpicker_input_tag }
template_color_background_a: {name: Kolor tła tekstu wiadomości, type: st_colorpicker_input_tag }
template_color_background_b: {name: Kolor tła wiadomości, type: st_colorpicker_input_tag }
template_color_background_font: {name: Kolor tekstu stopki, type: st_colorpicker_input_tag }
template_color_font_a: {name: Kolor czcionki wiadomości, type: st_colorpicker_input_tag }
template_color_font_b: {name: Kolor czcionki nagłówków, type: st_colorpicker_input_tag }
template_color_font_c: {name: Kolor linków, type: st_colorpicker_input_tag }
newsletter_logo: {name: Logo, type: st_admin_input_file_tag, params: image=true with_upload_dir=true allow_remove=true }
templates_responsive_pre: {name: Szablon, help: "Aby zobaczyć zmiany w ustawieniach kolorów zapisz konfigurację."}
template_cta_font: {name: Kolor czcionki CTA, type: st_colorpicker_input_tag }
template_cta_background: {name: Kolor tła CTA, type: st_colorpicker_input_tag }
actions:
_save: {name: Zapisz}
include_action_files: [/plugins/stImportExportPlugin/config/generator/extendActions.php]
include_component_files: [/plugins/stImportExportPlugin/config/generator/extendComponents.php]
import_export_model_class: NewsletterUser
export:
default: stExporterCsv
title: Eksport adresów e-mail
description: Wysyłanie wiadomości do klientów
menu: {use: list.menu}
fields:
email: {name: "Email"}
user_id: {name: "ID_Użytkownika"}
active: {name: "Aktywny"}
confirm: {name: "Potwierdzony"}
language: {name: "Język"}
newsletter_groups: {name: "Grupy", class: stNewsletter}
primary_key: email
import:
default: stImporterCsv
title: Import adresów e-mail
description: Wysyłanie wiadomości do klientów
menu: {use: list.menu}
fields:
email: {name: "Email"}
user_id: {name: "ID_Użytkownika"}
active: {name: "Aktywny"}
confirm: {name: "Potwierdzony"}
language: {name: "Język"}
newsletter_groups: {name: "Grupy", class: stNewsletter}
primary_key: email