Skip to content

Instantly share code, notes, and snippets.

@tristanlins
Created August 3, 2014 14:33
Show Gist options
  • Save tristanlins/f76a2cb673690b7986d6 to your computer and use it in GitHub Desktop.
Save tristanlins/f76a2cb673690b7986d6 to your computer and use it in GitHub Desktop.
Overwrite the Avisota 2 header and footer with static content in all templates.
<?php
/**
* Hint: this will overwrite the template for ALL mailings!!!
* There is no solution yet to manipulate this in a simple way for each theme/layout.
*/
foreach ($GLOBALS['AVISOTA_MAILCHIMP_TEMPLATE']['templates'] as &$template) {
$template['cells']['header']['content'] = '<h1>My superious newsletter: ##message.subject##</h2>';
$template['cells']['footer']['content'] = '<p>Acme Company, Master street 123, 45677 Example town, USA</p>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment