Skip to content

Instantly share code, notes, and snippets.

@asanchez75
Created September 27, 2012 14:26
Show Gist options
  • Save asanchez75/3794288 to your computer and use it in GitHub Desktop.
Save asanchez75/3794288 to your computer and use it in GitHub Desktop.
emogrifier
<?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