Created
          August 3, 2014 14:33 
        
      - 
      
- 
        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.
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?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