PHP code example of linderp / sulu-mailing-list-bundle
1. Go to this page and download the library: Download linderp/sulu-mailing-list-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
linderp / sulu-mailing-list-bundle example snippets
final class QuoteMailFieldType implements MailFieldTypeInterface
{
public function getConfiguration(): MailFieldTypeConfiguration
{
return new MailFieldTypeConfiguration(
'quote',
'mailingListMail.types.quote.label',
__DIR__ . '/../../../Resources/config/mail/types/quote.xml',
__DIR__ . '/../../../Resources/views/mails/components/quote/quote.mjml.twig'
);
}
}
class MomoMailFont implements MailFontInterface
{
public function getConfiguration(): MailFontConfiguration
{
return new MailFontConfiguration(
'<url to momo.css>', // css file in /public
'Momo Trust Sans',
'Momo Trust Sans, sans-serif'
);
}
}
return (new MailFontConfiguration(
'<url to momo.css>',
'Momo Trust Sans',
'Momo Trust Sans, sans-serif'
))->setWebFont(true)->setStrokeWidth(1);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.