Commit ba192e01 authored by rizky's avatar rizky
Browse files

update template set news gif as placeholder

parent a45d7ca5
<?php y<?php
function get_post_data_by_key ( $key ) { function get_post_data_by_key ( $key ) {
if ( isset ($_POST[ $key ] ) ) if ( isset ($_POST[ $key ] ) )
...@@ -9,18 +9,25 @@ function get_post_data_by_key ( $key ) { ...@@ -9,18 +9,25 @@ function get_post_data_by_key ( $key ) {
define('FILENAME','signature.html'); define('FILENAME','signature.html');
define('PORTAL', get_post_data_by_key('portal')); define('PORTAL', get_post_data_by_key('portal'));
$newsContent = "";
$news = false;
switch ( PORTAL ) { switch ( PORTAL ) {
case 'onmeda': case 'onmeda':
$template_contents = file_get_contents('templates/onmeda.de.html'); $template_contents = file_get_contents('templates/onmeda.de.html');
break; break;
default: default:
if ( get_post_data_by_key('dmexco2015') === 'true' ) if ( get_post_data_by_key('dmexco2015') === 'true' ) {
$template_contents = file_get_contents('templates/gofeminin_dmexco_2016.html'); $template_contents = file_get_contents('templates/gofeminin_dmexco_2016.html');
else if ( get_post_data_by_key('newsgif') === '' )
if ( get_post_data_by_key('newsgif') !== '' ) {
$newsContent = "<tr><td width=\"100%\" style=\"max-widht:600px;\" align=\"left\"><a href=\"http://www.gofeminin.de/\" target=\"_blank\"><img src=\"http://www.gofeminin.de/reloaded/emailSignature.gif\" border=\"0\" /></a></td></tr>";
}
} else if ( get_post_data_by_key('newsgif') === '' ) {
$template_contents = file_get_contents('templates/gofeminin_without_newsgif.html'); $template_contents = file_get_contents('templates/gofeminin_without_newsgif.html');
else } else {
$template_contents = file_get_contents('templates/gofeminin.html'); $template_contents = file_get_contents('templates/gofeminin.html');
}
break; break;
} }
...@@ -31,7 +38,8 @@ $template_contents = str_replace( ...@@ -31,7 +38,8 @@ $template_contents = str_replace(
'{{jobtitle}}', '{{jobtitle}}',
'{{email}}', '{{email}}',
'{{telephone}}', '{{telephone}}',
'{{fax}}' '{{fax}}',
'<!-- NEWS_GIF -->'
), ),
array( array(
get_post_data_by_key('firstname'), get_post_data_by_key('firstname'),
...@@ -39,7 +47,8 @@ $template_contents = str_replace( ...@@ -39,7 +47,8 @@ $template_contents = str_replace(
get_post_data_by_key('jobtitle'), get_post_data_by_key('jobtitle'),
get_post_data_by_key('email'), get_post_data_by_key('email'),
get_post_data_by_key('telephone'), get_post_data_by_key('telephone'),
get_post_data_by_key('fax') get_post_data_by_key('fax'),
$newsContent
), ),
$template_contents $template_contents
); );
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
</font> </font>
</td> </td>
</tr> </tr>
<!-- NEWS_GIF -->
<!-- <!--
<tr> <tr>
<td width="100%" style="max-widht:600px;" align="left"> <td width="100%" style="max-widht:600px;" align="left">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment