Subversion-Projekte lars-tiefland.faltradxxs.de

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
{assign var="popup_bg" value="/images/popup/pop-up_neukunden.jpg"}
2
{assign var="popup_width" value=990}
3
{assign var="popup_height" value=432}
4
{assign var="popup_margin" value="margin:240px 0 0 422px;"}
5
 
6
{if $smarty.session.isMobile==1}
7
    {assign var="popup_bg" value=""}
8
    {assign var="popup_width" value=false}
9
    {assign var="popup_height" value=false}
10
    {assign var="popup_margin" value=false}
11
{/if}
12
<style>
13
#popup {
14
    display:none;
15
    background:url({$popup_bg}) no-repeat scroll 50% center / contain ;
16
}
17
#popup .description {
18
    display:none;
19
}
20
#popup #newsletter_register {
21
    display:block;
22
    {$popup_margin}
23
}
24
 
25
</style>
26
<script>
27
$(document).ready(function(){
28
    {if $popup_width && $popup_height}
29
        var popup_width = {$popup_width};
30
        var popup_height = {$popup_height};
31
    {else}
32
        var popup_width = $(window).width();
33
        var popup_height = $(window).height();
34
    {/if}
35
 
36
 
37
    $( "#popup" ).dialog({
38
                    modal:true,
39
                    autoOpen: false,
40
                    show: "fade",
41
                    hide: "fade",
42
                    draggable: true,
43
                    resizable: false,
44
                    closeOnEscape: true,
45
                    width:popup_width-20,
46
                    height:popup_height-20,
47
 
48
 
49
 
50
                });
51
    {if $showPopup==1}
52
    setTimeout(function(){ $('#popup').dialog("open"); }, 2000);
53
    {/if}
54
 
55
});
56
</script>
57
 
58
<div id="popup">
59
    {if $smarty.session.isMobile==1}
60
        {include file="newsletter_anmeldung_mobile.tpl"}
61
    {else}
62
        {include file="newsletter_anmeldung.tpl"}
63
    {/if}
64
</div>