Created
September 27, 2012 14:26
-
-
Save asanchez75/3794288 to your computer and use it in GitHub Desktop.
emogrifier
This file contains 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 | |
//print boletin_correo($build['#node']->nid) | |
require_once(libraries_get_path('emogrifier') . '/emogrifier.php'); | |
// using emogrify, loading css from file | |
$css = file_get_contents(drupal_get_path('theme', 'rubbersoul') . '/css/boletin.css'); | |
$emo = new Emogrifier(); | |
$emo->setCSS($css); | |
$emo->setHTML(boletin_correo($build['#node']->nid)); | |
print $emo->emogrify(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment