<!-- Block Newsletter module-->

{capture name=id}
    id="newsletter_block_left"
{/capture}

{capture name=class}
    block
{/capture}

{capture name=title}
    {l s='Newsletter' mod='blocknewsletter'}
{/capture}

{capture name=content}
    {if isset($msg) && $msg}
        <p class="{if $nw_error}warning_inline{else}success_inline{/if}">{$msg}</p>
    {/if}
    {assign var=path value="{$link->getPageLink('index')}"}
    <form class="@classNames form-inline" method="get" name="newsletterform" action="{$path}">
        <div class="row">
            <div class="col-lg-18">
                @if(showButton && joinButton) {
                    <div class="input-group">
                }
                @if (buttonPosition === 'right') {
                    <input type="text" name="email" class="@input.classNames" placeholder="@placeholder" />
                }
                @if(showButton) {
                    <span class="input-group-btn">
                        <input type="submit" value="@newsletterBtnText" class="button_mini @button.classNames" name="submitNewsletter" />
                    </span>
                }
                @if (buttonPosition === 'left') {
                    <input type="text" name="email" class="@input.classNames" placeholder="@placeholder" />
                }
                @if(showButton && joinButton) {
                    </div>
                }
            </div>
        </div>
    </form>
{/capture}

{if isset($blockId)}
    {include file='../block.tpl' id=$smarty.capture.id class=$smarty.capture.class title=$smarty.capture.title content=$smarty.capture.content blockId=$blockId}
{/if}
<!-- /Block Newsletter module-->
