Exemplo n.º 1
0
$seleccionarPlantilla = FALSE;
$alertarPageLeave = isset($_POST['idPlantilla']) ? "true" : "false";
if (isset($_POST['idPlantilla']) && $_POST['idPlantilla']) {
    $idPlantilla = $_POST["idPlantilla"];
    $template = utf8_encode(file_get_contents("http://v2.envialosimple.com/mailing_templates/" . $idPlantilla . "/content.htm"));
    $addPreheader = true;
} else {
    if ($c["contenidoAnterior"]) {
        $template = stripslashes($_POST["contenidoAnterior"]);
    } elseif (isset($c["Content"]) && $c["Content"]) {
        $template = $ca->traerCuerpoCampana($idCampana);
    } else {
        $seleccionarPlantilla = TRUE;
    }
}
Campanas::loadTag($template, 'body');
$template = str_replace('-|campaignBaseURL|-', "http://v2.envialosimple.com", $template);
?>
<link rel="stylesheet"  href="<?php 
echo plugins_url("envialosimple-email-marketing-y-newsletters-gratis/css/templateEditorRestoreNormalCss.css");
?>
" type="text/css" media="all" />
<link rel="stylesheet"  href="<?php 
echo plugins_url("envialosimple-email-marketing-y-newsletters-gratis/css/templateEditor.css");
?>
" type="text/css" media="all" />
<link rel="stylesheet"  href="<?php 
echo plugins_url("envialosimple-email-marketing-y-newsletters-gratis/css/jquery.wysiwyg.css");
?>
" type="text/css" media="all" />
<link rel="stylesheet"  href="<?php