Commit 9e5bc80b authored by Marco Kellershoff's avatar Marco Kellershoff
Browse files

Update signature gen to support bdf

parent b964c21e
......@@ -50,7 +50,7 @@
Onmeda
</label>
<label>
<input type="radio" class="radio" name="portal" value="bdf" />
<input type="radio" class="radio" name="portal" value="bildderfrau" />
Bild der Frau
</label>
</fieldset>
......
(function(){
var $ = function(s){return document.querySelectorAll(s);},
preview = $('#preview')[0],
gen_file = $('input[type="radio"]')[2],
gen_file = $('input[type="radio"]')[$('input[type="radio"]').length-2],
code = $('#code')[0],
form = $('form')[0],
iframe = $('iframe')[0],
......@@ -27,7 +27,8 @@
code.innerHTML = contents.outerHTML.replace(/[\u00A0-\u9999<>\&]/gim, function(i) {
return '&#'+i.charCodeAt(0)+';';
});
code.style.border = '1px solid #000';
code.style.display = 'block';
preview.style.display = 'block';
window.location.href='#code';
};
......
......@@ -12,7 +12,11 @@ define('PORTAL', get_post_data_by_key('portal'));
switch ( PORTAL ) {
case 'onmeda':
$template_contents = file_get_contents('templates/onmeda.de.html');
$template_contents = file_get_contents('templates/onmeda.de.html');
break;
case 'bildderfrau':
$template_contents = file_get_contents('templates/bildderfrau.html');
break;
default:
......
......@@ -12,7 +12,16 @@ html,body {
max-width: 550px;
}
#code {
display: none;
border: 1px solid #000;
max-width: 100%;
height: 100px;
overflow: auto;
}
#preview {
display: none;
max-width: 100%;
overflow: auto;
}
......
<table cellspacing="2" cellpadding="0" width="600" border="0" bgcolor="#ffffff">
<tbody>
<tr>
<td width="100%" align="left">
<font face="Arial, Verdana, sans-serif" size="2" style="font-size:13px;">
<font color="#951F60">
<strong>{{firstname}} {{lastname}}</strong>
</font>
<br>
<font color="#68696b">{{jobtitle}}</font>
<br>
<a style="text-decoration:none;" href="mailto:{{email}}">
<font color="#68696b" style="text-decoration:none;">{{email}}</font>
</a>
<br>
<font color="#68696b">Tel. {{telephone}}</font>
<font color="#68696b">Fax. {{fax}}</font>
</font>
</td>
</tr>
<tr>
<td align="left">
<img width="600" vspace="10" height="130" alt="gofeminin.de" src="http://i.onmeda.de/style/signature-hamburg-2014.gif">
</td>
</tr>
<tr>
<td width="100%" align="left">
<table cellspacing="0" cellpadding="5" width="1" border="0" bgcolor="#ffffff">
<tbody>
<tr>
<td>
<a target="_blank" href="https://www.facebook.com/bildderfrau">
<img width="30" height="30" border="0" alt="Facebook" src="http://www.gofeminin.de/mailing/signature-af/facebook.png">
</a>
</td>
<td>
<a target="_blank" href="https://plus.google.com/+bildderfrau/">
<img width="30" height="30" border="0" alt="Google Plus" src="http://www.gofeminin.de/mailing/signature-af/google.png">
</a>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
......@@ -14,12 +14,13 @@
</a>
<br>
<font color="#68696b">Tel. {{telephone}}</font>
<font color="#68696b">Fax. {{fax}}</font>
</font>
</td>
</tr>
<tr>
<td align="left">
<img width="600" vspace="10" height="130" alt="gofeminin.de" src="http://i.onmeda.de/signature_koeln_2011.gif">
<img width="600" vspace="10" height="130" alt="gofeminin.de" src="http://i.onmeda.de/style/signature-koeln-2014.gif">
</td>
</tr>
<tr>
......
......@@ -14,12 +14,13 @@
</a>
<br>
<font color="#68696b">Tel. {{telephone}}</font>
<font color="#68696b">Fax. {{fax}}</font>
</font>
</td>
</tr>
<tr>
<td align="left">
<img width="600" vspace="10" height="130" alt="gofeminin.de" src="http://i.onmeda.de/signature_koeln_2011.gif">
<img width="600" vspace="10" height="130" alt="gofeminin.de" src="http://i.onmeda.de/style/signature-koeln-2014.gif">
</td>
</tr>
<tr>
......
......@@ -14,6 +14,7 @@
</a>
<br>
<font color="#68696b">Tel. {{telephone}}</font>
<font color="#68696b">Fax. {{fax}}</font>
</font>
</td>
</tr>
......
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