Skip to content
Snippets Groups Projects

Feature sg mail

Merged Torsten Oppermann requested to merge feature_sg_mail into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
38 38 *
39 39 */
40 40 public function indexAction() {
41 $this->view->assign('extensions', MailTemplateService::$registerArray);
41 $path = ExtensionManagementUtility::extPath(
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit 68f6d76c
  • 38 38 *
    39 39 */
    40 40 public function indexAction() {
    41 $this->view->assign('extensions', MailTemplateService::$registerArray);
    41 $path = ExtensionManagementUtility::extPath(
    42 'sg_mail'
    43 ) . 'Configuration/Templates/';
    44 $results = scandir($path);
    45
    46 $extensions = [];
    47 foreach ($results as $result) {
    48 if ($result == '.' || $result == '..') {
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit 68f6d76c
  • 48 62 public function showTemplatesAction() {
    49 63 $extensionKey = $this->request->getArgument('ext_key');
    50 64
    65 $extPath = ExtensionManagementUtility::extPath(
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit 4cf8a87e
  • 74 75 *
    75 76 */
    76 77 public function showMarkerAction() {
    78 $extensionKey = $this->request->getArgument('extensionKey');
    79 $template = $this->request->getArgument('template');
    80 $templateContent = file_get_contents(
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit 431901b5
  • 52 52 'extension' => $extension,
    53 53 'templateName' => $templateName
    54 54 ];
    55
    56 $defaultLangFile = $templatePath . 'sg_mail.locallang.xlf';
    57 if (!file_exists($defaultLangFile)) {
    58 $defaultLangFile = fopen($templatePath . 'sg_mail.locallang.xlf', 'w');
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit 431901b5
  • 106 114 }
    107 115 }
    108 116
    117 /**
  • Stefan Galinski
    Stefan Galinski @sgalinski started a thread on commit aed55ee2
  • 85 85 $registerArray = MailTemplateService::getRegisterArray();
    86 86 $templateEntry = $registerArray[$extensionKey][$templateKey];
    87 87
    88 $templateFileContents = file_get_contents(
    89 $templateEntry['templatePath'] . $language . '.sg_mail.locallang.html'
    90 );
    91
    92 $body = MailTemplateService::injectEmailContent($templateFileContents, $content);
    88 $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
    89 $emailView = $objectManager->get('TYPO3\\CMS\\Fluid\\View\\StandaloneView');
    90 $emailView->setTemplatePathAndFilename($templateEntry['templatePath'] . $language . '.sg_mail.locallang.html');
  • Torsten Oppermann Status changed to merged

    Status changed to merged

  • mentioned in commit 05f67118

  • Please register or sign in to reply
    Loading