@@ -61,13 +61,16 @@ public static function doMailinglistSubscribe(GenericEvent $event)
6161 /**
6262 * @param \Symfony\Component\EventDispatcher\GenericEvent $event
6363 */
64- public static function getSettings (GenericEvent $ event )
65- {
66- $ settings = $ event ->getSubject ();
67- $ settings ->add_dropdown_setting ('Accounts ' , 'Sendy ' , 'sendy_enable ' , 'Enable Sendy ' , 'Enable/Disable Sendy Mailing on Account Signup ' , (defined ('SENDY_ENABLE ' ) ? SENDY_ENABLE : '0 ' ), ['0 ' , '1 ' ], ['No ' , 'Yes ' ]);
68- $ settings ->add_text_setting ('Accounts ' , 'Sendy ' , 'sendy_api_key ' , 'API Key ' , 'API Key ' , (defined ('SENDY_API_KEY ' ) ? SENDY_API_KEY : '' ));
69- $ settings ->add_text_setting ('Accounts ' , 'Sendy ' , 'sendy_list_id ' , 'List ID ' , 'List ID ' , (defined ('SENDY_LIST_ID ' ) ? SENDY_LIST_ID : '' ));
70- $ settings ->add_text_setting ('Accounts ' , 'Sendy ' , 'sendy_apiurl ' , 'API URL ' , 'API URL ' , (defined ('SENDY_APIURL ' ) ? SENDY_APIURL : '' ));
64+ public static function getSettings (GenericEvent $ event )
65+ {
66+ /**
67+ * @var \MyAdmin\Settings $settings
68+ **/
69+ $ settings = $ event ->getSubject ();
70+ $ settings ->add_dropdown_setting (__ ('Accounts ' ), __ ('Sendy ' ), 'sendy_enable ' , __ ('Enable Sendy ' ), __ ('Enable/Disable Sendy Mailing on Account Signup ' ), (defined ('SENDY_ENABLE ' ) ? SENDY_ENABLE : '0 ' ), ['0 ' , '1 ' ], ['No ' , 'Yes ' ]);
71+ $ settings ->add_text_setting (__ ('Accounts ' ), __ ('Sendy ' ), 'sendy_api_key ' , __ ('API Key ' ), __ ('API Key ' ), (defined ('SENDY_API_KEY ' ) ? SENDY_API_KEY : '' ));
72+ $ settings ->add_text_setting (__ ('Accounts ' ), __ ('Sendy ' ), 'sendy_list_id ' , __ ('List ID ' ), __ ('List ID ' ), (defined ('SENDY_LIST_ID ' ) ? SENDY_LIST_ID : '' ));
73+ $ settings ->add_text_setting (__ ('Accounts ' ), __ ('Sendy ' ), 'sendy_apiurl ' , __ ('API URL ' ), __ ('API URL ' ), (defined ('SENDY_APIURL ' ) ? SENDY_APIURL : '' ));
7174 }
7275
7376 /**
0 commit comments