function content_55eb1472ca2c00_40595081($_smarty_tpl)
    {
        ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="<?php 
        echo $_smarty_tpl->tpl_vars['charset']->value;
        ?>
" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php 
        if ($_smarty_tpl->tpl_vars['kbarticle']->value['title']) {
            echo $_smarty_tpl->tpl_vars['kbarticle']->value['title'];
            ?>
 - <?php 
        }
        echo $_smarty_tpl->tpl_vars['pagetitle']->value;
        ?>
 - <?php 
        echo $_smarty_tpl->tpl_vars['companyname']->value;
        ?>
</title>

    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/head.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
        ?>


    <?php 
        echo $_smarty_tpl->tpl_vars['headoutput']->value;
        ?>


</head>
<body>

<?php 
        echo $_smarty_tpl->tpl_vars['headeroutput']->value;
        ?>


<section id="header">
    <div class="container">

        <!-- Top Bar -->
        <div id="top-nav">
            <!-- Language -->
            <?php 
        if ($_smarty_tpl->tpl_vars['languagechangeenabled']->value && count($_smarty_tpl->tpl_vars['locales']->value) > 1) {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="languageChooser"><i class="fa fa-language"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['chooselanguage'];
            ?>
 <span class="caret"></span></a>
                    <div id="languageChooserContent" class="hidden">
                        <ul>
                            <?php 
            $_smarty_tpl->tpl_vars['locale'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['locale']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['locales']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['locale']->key => $_smarty_tpl->tpl_vars['locale']->value) {
                $_smarty_tpl->tpl_vars['locale']->_loop = true;
                ?>
                                <li><a href="<?php 
                echo $_smarty_tpl->tpl_vars['currentpagelinkback']->value;
                ?>
language=<?php 
                echo $_smarty_tpl->tpl_vars['locale']->value['language'];
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['locale']->value['localisedName'];
                ?>
</a></li>
                            <?php 
            }
            ?>
                        </ul>
                    </div>
                </div>
            <?php 
        }
        ?>
            <!-- Login/Account Notifications -->
            <?php 
        if ($_smarty_tpl->tpl_vars['loggedin']->value) {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="accountNotifications" data-placement="bottom" title="<?php 
            echo WHMCS\Smarty::langFunction(array('key' => "notifications"), $_smarty_tpl);
            ?>
"><i class="fa fa-info"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['notifications'];
            ?>
 (<?php 
            echo count($_smarty_tpl->tpl_vars['clientAlerts']->value);
            ?>
)</a>
                    <div id="accountNotificationsContent" class="hidden">
                        <?php 
            $_smarty_tpl->tpl_vars['alert'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['alert']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['clientAlerts']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['alert']->key => $_smarty_tpl->tpl_vars['alert']->value) {
                $_smarty_tpl->tpl_vars['alert']->_loop = true;
                ?>
                            <div class="clientalert text-<?php 
                echo $_smarty_tpl->tpl_vars['alert']->value->getSeverity();
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['alert']->value->getMessage();
                if ($_smarty_tpl->tpl_vars['alert']->value->getLinkText()) {
                    ?>
 <a href="<?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getLink();
                    ?>
" class="btn btn-xs btn-<?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getSeverity();
                    ?>
"><?php 
                    echo $_smarty_tpl->tpl_vars['alert']->value->getLinkText();
                    ?>
</a><?php 
                }
                ?>
</div>
                        <?php 
            }
            if (!$_smarty_tpl->tpl_vars['alert']->_loop) {
                ?>
                            <div class="clientalert text-success"><i class="fa fa-check-square-o"></i> <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['notificationsnone'];
                ?>
</div>
                        <?php 
            }
            ?>
                    </div>
                </div>
            <?php 
        } else {
            ?>
                <div class="pull-right nav">
                    <a href="#" class="quick-nav" data-toggle="popover" id="loginOrRegister" data-placement="bottom"><i class="fa fa-user"></i> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['login'];
            ?>
</a>
                    <div id="loginOrRegisterContent" class="hidden">
                        <form action="dologin.php" method="post" role="form">
                            <div class="form-group">
                                <input type="email" name="username" class="form-control" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['clientareaemail'];
            ?>
" required />
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <input type="password" name="password" class="form-control" placeholder="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['loginpassword'];
            ?>
" required />
                                    <span class="input-group-btn">
                                        <input type="submit" class="btn btn-primary" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['login'];
            ?>
" />
                                    </span>
                                </div>
                            </div>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="rememberme" /> <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['loginrememberme'];
            ?>
 &bull; <a href="pwreset.php"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['forgotpw'];
            ?>
</a>
                            </label>
                        </form>
                        <?php 
            if ($_smarty_tpl->tpl_vars['condlinks']->value['allowClientRegistration']) {
                ?>
                            <hr />
                            <?php 
                echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['newcustomersignup'], '<a href="register.php">', '</a>');
                ?>

                        <?php 
            }
            ?>
                    </div>
                </div>
            <?php 
        }
        ?>
            <!-- Shopping Cart -->
            <div class="pull-right nav">
                <a href="cart.php?a=view" class="quick-nav"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs"><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['viewcart'];
        ?>
 (</span><span id="cartItemCount"><?php 
        echo $_smarty_tpl->tpl_vars['cartitemcount']->value;
        ?>
</span><span class="hidden-xs">)</span></a>
            </div>

            <?php 
        if ($_smarty_tpl->tpl_vars['adminMasqueradingAsClient']->value) {
            ?>
                <!-- Return to admin link -->
                <div class="alert alert-danger admin-masquerade-notice">
                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['adminmasqueradingasclient'];
            ?>
<br />
                    <a href="logout.php?returntoadmin=1" class="alert-link"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['logoutandreturntoadminarea'];
            ?>
</a>
                </div>
            <?php 
        } elseif ($_smarty_tpl->tpl_vars['adminLoggedIn']->value) {
            ?>
                <!-- Return to admin link -->
                <div class="alert alert-danger admin-masquerade-notice">
                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['adminloggedin'];
            ?>
<br />
                    <a href="logout.php?returntoadmin=1" class="alert-link"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['returntoadminarea'];
            ?>
</a>
                </div>
            <?php 
        }
        ?>

        </div>

        <a href="index.php"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['WEB_ROOT']->value;
        ?>
/templates/<?php 
        echo $_smarty_tpl->tpl_vars['template']->value;
        ?>
/img/logo.png" alt="<?php 
        echo $_smarty_tpl->tpl_vars['companyname']->value;
        ?>
" /></a>

    </div>
</section>

<section id="main-menu">

    <nav id="nav" class="navbar navbar-default navbar-main" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

                <ul class="nav navbar-nav">

                    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/navbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('navbar' => $_smarty_tpl->tpl_vars['primaryNavbar']->value), 0);
        ?>


                </ul>

                <ul class="nav navbar-nav navbar-right">

                    <?php 
        echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/navbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('navbar' => $_smarty_tpl->tpl_vars['secondaryNavbar']->value), 0);
        ?>


                </ul>

            </div><!-- /.navbar-collapse -->
        </div>
    </nav>

</section>

<?php 
        if ($_smarty_tpl->tpl_vars['templatefile']->value == 'homepage') {
            ?>
    <section id="home-banner">
        <div class="container text-center">
            <?php 
            if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value || $_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                ?>
                <h2><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['homebegin'];
                ?>
</h2>
                <form method="post" action="domainchecker.php">
                    <div class="row">
                        <div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
                            <div class="input-group input-group-lg">
                                <input type="text" class="form-control" name="domain" placeholder="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['exampledomain'];
                ?>
" />
                                <span class="input-group-btn">
                                    <?php 
                if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value) {
                    ?>
                                        <input type="submit" class="btn btn-warning" value="Search" />
                                    <?php 
                }
                ?>
                                    <?php 
                if ($_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                    ?>
                                        <input type="submit" name="transfer" class="btn btn-info" value="Transfer" />
                                    <?php 
                }
                ?>
                                </span>
                            </div>
                        </div>
                    </div>

                    <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/captcha.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);
                ?>

                </form>
            <?php 
            } else {
                ?>
                <h2>
                    <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['doToday'];
                ?>
<br>
                    <span class="resaltar">¡A un precio increible!</span>
                </h2>
                <a class="btn btn-default saber-mas" role="button" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">¿Quieres Saber Más?</a>
            <?php 
            }
            ?>
        </div>
    </section>
    <div class="saber-section collapse" id="collapseExample">
        <div class="container">
            <div class="row">
                <h3>
                    En Webty.co desarrollamos la web que te mereces:
                </h3>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <ul>
                        <li>Con diseño adaptable a múltiples dispositivos.</li>
                        <li>Código optimizado a SEO.</li>
                        <li>Te Enseñamos a Usar Tu Web.</li>
                    </ul>
                </div>
                <div class="col-xs-6">
                    <ul>
                        <li>Con diseño adaptable a múltiples dispositivos.</li>
                        <li>Código optimizado a SEO.</li>
                        <li>Te Enseñamos a Usar Tu Web.</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!--<div class="home-shortcuts">
        <div class="container">
            <div class="row">
                <div class="col-md-4 hidden-sm hidden-xs text-center">
                    <p class="lead">
                        <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['howcanwehelp'];
            ?>

                    </p>
                </div>
                <div class="col-sm-12 col-md-8">
                    <ul>
                        <?php 
            if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value || $_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
                ?>
                            <li>
                                <a id="btnBuyADomain" href="domainchecker.php">
                                    <i class="fa fa-globe"></i>
                                    <p>
                                        <?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['buyadomain'];
                ?>
 <span>&raquo;</span>
                                    </p>
                                </a>
                            </li>
                        <?php 
            }
            ?>
                        <li>
                            <a id="btnOrderHosting" href="cart.php">
                                <i class="fa fa-hdd-o"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderhosting'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <a id="btnMakePayment" href="clientarea.php">
                                <i class="fa fa-credit-card"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['makepayment'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                        <li>
                            <a id="btnGetSupport" href="submitticket.php">
                                <i class="fa fa-envelope-o"></i>
                                <p>
                                    <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['getsupport'];
            ?>
 <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>-->
<?php 
        }
        ?>

<section id="main-body">

    <div>
        <?php 
        if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() || $_smarty_tpl->tpl_vars['secondarySidebar']->value->hasChildren()) {
            ?>
            <?php 
            if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren()) {
                ?>
                <div class="col-md-9 pull-md-right">
                    <?php 
                echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/pageheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['displayTitle']->value, 'desc' => $_smarty_tpl->tpl_vars['tagline']->value, 'showbreadcrumb' => true), 0);
                ?>

                </div>
            <?php 
            }
            ?>
            <div class="col-md-3 pull-md-left sidebar">
                <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('sidebar' => $_smarty_tpl->tpl_vars['primarySidebar']->value), 0);
            ?>

            </div>
        <?php 
        }
        ?>
        <!-- Container for main page display content -->
        <div class="<?php 
        if ($_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() || $_smarty_tpl->tpl_vars['secondarySidebar']->value->hasChildren()) {
            ?>
col-md-9 pull-md-right<?php 
        } else {
        }
        ?>
 main-content">
            <?php 
        if (!$_smarty_tpl->tpl_vars['primarySidebar']->value->hasChildren() && !$_smarty_tpl->tpl_vars['showingLoginPage']->value && $_smarty_tpl->tpl_vars['templatefile']->value != 'homepage') {
            ?>
                <?php 
            echo $_smarty_tpl->getSubTemplate((string) $_smarty_tpl->tpl_vars['template']->value . "/includes/pageheader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => $_smarty_tpl->tpl_vars['displayTitle']->value, 'desc' => $_smarty_tpl->tpl_vars['tagline']->value, 'showbreadcrumb' => true), 0);
            ?>

            <?php 
        }
    }
    function content_55e98f66ed8ab2_01955754($_smarty_tpl)
    {
        echo '<script';
        ?>
 type="text/javascript" src="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/js/main.js"><?php 
        echo '</script';
        ?>
>
<link rel="stylesheet" type="text/css" href="templates/orderforms/<?php 
        echo $_smarty_tpl->tpl_vars['carttpl']->value;
        ?>
/style.css" />

<div id="order-slider">

<h1><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartproductselection'];
        ?>
: <?php 
        echo $_smarty_tpl->tpl_vars['productinfo']->value['groupname'];
        ?>
 - <?php 
        echo $_smarty_tpl->tpl_vars['productinfo']->value['name'];
        ?>
</h1>

<p><?php 
        echo $_smarty_tpl->tpl_vars['LANG']->value['cartmakedomainselection'];
        ?>
</p>

<form onsubmit="checkdomain();return false">

<div class="domainoptions">
<?php 
        if ($_smarty_tpl->tpl_vars['incartdomains']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="incart" /><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartproductdomainuseincart'];
            ?>
</label>
<div class="domainreginput" id="domainincart">
<select id="incartsld">
<?php 
            $_smarty_tpl->tpl_vars['incartdomain'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['incartdomain']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['incartdomains']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['incartdomain']->key => $_smarty_tpl->tpl_vars['incartdomain']->value) {
                $_smarty_tpl->tpl_vars['incartdomain']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['incartdomain']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['incartdomain']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['incartdomain']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['registerdomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="register" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartregisterdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainregister">
www. <input type="text" id="registersld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="registertld">
<?php 
            $_smarty_tpl->tpl_vars['listtld'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['listtld']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['registertlds']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['listtld']->key => $_smarty_tpl->tpl_vars['listtld']->value) {
                $_smarty_tpl->tpl_vars['listtld']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['listtld']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['listtld']->value == $_smarty_tpl->tpl_vars['tld']->value) {
                    ?>
 selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['checkavailability'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['transferdomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="transfer" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransferdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domaintransfer">
www. <input type="text" id="transfersld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="transfertld">
<?php 
            $_smarty_tpl->tpl_vars['listtld'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['listtld']->_loop = false;
            $_smarty_tpl->tpl_vars['num'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['transfertlds']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['listtld']->key => $_smarty_tpl->tpl_vars['listtld']->value) {
                $_smarty_tpl->tpl_vars['listtld']->_loop = true;
                $_smarty_tpl->tpl_vars['num']->value = $_smarty_tpl->tpl_vars['listtld']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
"<?php 
                if ($_smarty_tpl->tpl_vars['listtld']->value == $_smarty_tpl->tpl_vars['tld']->value) {
                    ?>
 selected="selected"<?php 
                }
                ?>
><?php 
                echo $_smarty_tpl->tpl_vars['listtld']->value;
                ?>
</option>
<?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['checkavailability'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['owndomainenabled']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="owndomain" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartexistingdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainowndomain">
www. <input type="text" id="owndomainsld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> . <input type="text" id="owndomaintld" size="5" value="<?php 
            echo substr($_smarty_tpl->tpl_vars['tld']->value, 1);
            ?>
" /> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        if ($_smarty_tpl->tpl_vars['subdomains']->value) {
            ?>
<div class="option">
<label><input type="radio" name="domainoption" value="subdomain" /><?php 
            echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartsubdomainchoice'], $_smarty_tpl->tpl_vars['companyname']->value);
            ?>
</label>
<div class="domainreginput" id="domainsubdomain">
http:// <input type="text" id="subdomainsld" size="30" value="<?php 
            echo $_smarty_tpl->tpl_vars['sld']->value;
            ?>
" /> <select id="subdomaintld"><?php 
            $_smarty_tpl->tpl_vars['subdomain'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['subdomain']->_loop = false;
            $_smarty_tpl->tpl_vars['subid'] = new Smarty_Variable();
            $_from = $_smarty_tpl->tpl_vars['subdomains']->value;
            if (!is_array($_from) && !is_object($_from)) {
                settype($_from, 'array');
            }
            foreach ($_from as $_smarty_tpl->tpl_vars['subdomain']->key => $_smarty_tpl->tpl_vars['subdomain']->value) {
                $_smarty_tpl->tpl_vars['subdomain']->_loop = true;
                $_smarty_tpl->tpl_vars['subid']->value = $_smarty_tpl->tpl_vars['subdomain']->key;
                ?>
<option value="<?php 
                echo $_smarty_tpl->tpl_vars['subid']->value;
                ?>
"><?php 
                echo $_smarty_tpl->tpl_vars['subdomain']->value;
                ?>
</option><?php 
            }
            ?>
</select> <input type="submit" value="<?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
            ?>
" />
</div>
</div>
<?php 
        }
        ?>
</div>

<?php 
        if ($_smarty_tpl->tpl_vars['freedomaintlds']->value) {
            ?>
<p>* <em><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderfreedomainregistration'];
            ?>
 <?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['orderfreedomainappliesto'];
            ?>
: <?php 
            echo $_smarty_tpl->tpl_vars['freedomaintlds']->value;
            ?>
</em></p><?php 
        }
        ?>

</form>

<div id="greyout"></div>
<div id="domainpopupcontainer">
<form id="domainfrm" onsubmit="completedomain();return false">
<div class="domainresults" id="domainresults"><img src="<?php 
        echo $_smarty_tpl->tpl_vars['BASE_PATH_IMG']->value;
        ?>
/loading.gif" border="0" alt="Loading..." /></div>
</form>
</div>

<div id="prodconfigcontainer"></div>

</div>


<?php 
        echo '<script';
        ?>
 language="javascript">
jQuery(".domainreginput").hide();
jQuery(".domainoptions input:first").attr('checked','checked');
jQuery(".domainoptions input:first").parent().parent().addClass('optionselected');
jQuery("#domain"+jQuery(".domainoptions input:first").val()).show();
jQuery(document).ready(function(){
    jQuery(".domainoptions input:radio").click(function(){
        jQuery(".domainoptions .option").removeClass('optionselected');
        jQuery(this).parent().parent().addClass('optionselected');
        jQuery("#domainresults").slideUp();
        jQuery(".domainreginput").hide();
        jQuery("#domain"+jQuery(this).val()).show();
    });
});
function checkdomain() {
    jQuery("#greyout").fadeIn();
    jQuery("#domainpopupcontainer").slideDown();
    var domainoption = jQuery(".domainoptions input:checked").val();
    var sld = jQuery("#"+domainoption+"sld").val();
    var tld = '';
    if (domainoption=='incart') var sld = jQuery("#"+domainoption+"sld option:selected").text();
    if (domainoption=='subdomain') var tld = jQuery("#"+domainoption+"tld option:selected").text();
    else var tld = jQuery("#"+domainoption+"tld").val();
    jQuery.post("cart.php", { ajax: 1, a: "domainoptions", sld: sld, tld: tld, checktype: domainoption },
    function(data){
        jQuery("#domainresults").html(data);
    });
}
function cancelcheck() {
    jQuery("#domainpopupcontainer").slideUp('slow',function() {
        jQuery("#greyout").fadeOut();
        jQuery("#domainresults").html('<img src="{$BASE_PATH_IMG}/loading.gif" border="0" alt="Loading..." />');
    });
}
function completedomain() {
    jQuery("#domainresults").append('<img src="{$BASE_PATH_IMG}/loading.gif" border="0" alt="Loading..." />');
    jQuery.post("cart.php", 'ajax=1&a=add&pid=<?php 
        echo $_smarty_tpl->tpl_vars['pid']->value;
        ?>
&domainselect=1&'+jQuery("#domainfrm").serialize(),
    function(data){
        if (data=='') {
            window.location='cart.php?a=view';
        } else if (data=='nodomains') {
            jQuery("#domainpopupcontainer").slideUp('slow',function() {
                jQuery("#greyout").fadeOut();
            });
        } else {
            jQuery("#prodconfigcontainer").replaceWith(data);
            jQuery("#domainpopupcontainer").slideUp('slow',function() {
                jQuery("#greyout").fadeOut();
            });
            jQuery("#prodconfigcontainer").slideDown();
        }
    });
}
<?php 
        echo '</script';
        ?>
>

<?php 
    }
    function content_55e98f74087695_88472652($_smarty_tpl)
    {
        if ($_smarty_tpl->tpl_vars['invalid']->value) {
            ?>
    <div class="domaininvalid"><?php 
            if ($_smarty_tpl->tpl_vars['reason']->value) {
                echo $_smarty_tpl->tpl_vars['reason']->value;
            } else {
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartdomaininvalid'];
            }
            ?>
</div>
    <p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
            ?>
</a></p>
<?php 
        } elseif ($_smarty_tpl->tpl_vars['alreadyindb']->value) {
            ?>
    <div class="domaininvalid"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['cartdomainexists'];
            ?>
</div>
    <p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
            echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
            ?>
</a></p>
<?php 
        } else {
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['checktype']->value == "register" && $_smarty_tpl->tpl_vars['regenabled']->value) {
                ?>

<input type="hidden" name="domainoption" value="register" />

<?php 
                if ($_smarty_tpl->tpl_vars['status']->value == "available" || $_smarty_tpl->tpl_vars['status']->value == "error") {
                    ?>

<div class="domainavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartcongratsdomainavailable'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<input type="hidden" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
" />
<div class="domainregperiod"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['cartregisterhowlong'];
                    ?>
 <select name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
]" id="regperiod"><?php 
                    $_smarty_tpl->tpl_vars['regoption'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['regoption']->_loop = false;
                    $_smarty_tpl->tpl_vars['period'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['regoptions']->value;
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['regoption']->key => $_smarty_tpl->tpl_vars['regoption']->value) {
                        $_smarty_tpl->tpl_vars['regoption']->_loop = true;
                        $_smarty_tpl->tpl_vars['period']->value = $_smarty_tpl->tpl_vars['regoption']->key;
                        if ($_smarty_tpl->tpl_vars['regoption']->value['register']) {
                            ?>
<option value="<?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
"><?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
                            ?>
 @ <?php 
                            echo $_smarty_tpl->tpl_vars['regoption']->value['register'];
                            ?>
</option><?php 
                        }
                    }
                    ?>
</select></div>

<?php 
                    if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                        $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                        $_smarty_tpl->tpl_vars['continueok']->value = true;
                        $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                        $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                    } else {
                        $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                    }
                    ?>

<?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "unavailable") {
                    ?>

<div class="domainunavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['cartdomaintaken'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
                    ?>
</a></p>

<?php 
                }
                ?>

<?php 
            } elseif ($_smarty_tpl->tpl_vars['checktype']->value == "transfer" && $_smarty_tpl->tpl_vars['transferenabled']->value) {
                ?>

<input type="hidden" name="domainoption" value="transfer" />

<?php 
                if ($_smarty_tpl->tpl_vars['status']->value == "available") {
                    ?>

<div class="domainunavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransfernotregistered'], $_smarty_tpl->tpl_vars['domain']->value);
                    ?>
</div>
<p align="center"><a href="#" onclick="cancelcheck();return false"><?php 
                    echo $_smarty_tpl->tpl_vars['LANG']->value['carttryanotherdomain'];
                    ?>
</a></p>

<?php 
                } elseif ($_smarty_tpl->tpl_vars['status']->value == "unavailable" || $_smarty_tpl->tpl_vars['status']->value == "error") {
                    ?>

<div class="domainavailable"><?php 
                    echo WHMCS\Smarty::sprintf2Modifier($_smarty_tpl->tpl_vars['LANG']->value['carttransferpossible'], $_smarty_tpl->tpl_vars['domain']->value, $_smarty_tpl->tpl_vars['transferprice']->value);
                    ?>
</div>
<input type="hidden" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
" />
<input type="hidden" name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['domain']->value;
                    ?>
]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['transferterm']->value;
                    ?>
" />

<?php 
                    if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                        $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                        $_smarty_tpl->tpl_vars['continueok']->value = true;
                        $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                        $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                    } else {
                        $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                    }
                    ?>

<?php 
                }
                ?>

<?php 
            } elseif ($_smarty_tpl->tpl_vars['checktype']->value == "owndomain" || $_smarty_tpl->tpl_vars['checktype']->value == "subdomain") {
                ?>

<input type="hidden" name="domainoption" value="<?php 
                echo $_smarty_tpl->tpl_vars['checktype']->value;
                ?>
" />
<input type="hidden" name="sld" value="<?php 
                echo $_smarty_tpl->tpl_vars['sld']->value;
                ?>
" />
<input type="hidden" name="tld" value="<?php 
                echo $_smarty_tpl->tpl_vars['tld']->value;
                ?>
" />
<?php 
                echo '<script';
                ?>
 language="javascript">
completedomain();
<?php 
                echo '</script';
                ?>
>

<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['othersuggestions']->value) {
                ?>

<div class="domainsuggestions"><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['cartotherdomainsuggestions'];
                ?>
</div>

<table align="center" cellspacing="1" class="domainsuggestions">
<tr><th width="50"></th><th><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['domainname'];
                ?>
</th><th><?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['clientarearegistrationperiod'];
                ?>
</th></tr>
<?php 
                $_smarty_tpl->tpl_vars['other'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['other']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['othersuggestions']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['other']->key => $_smarty_tpl->tpl_vars['other']->value) {
                    $_smarty_tpl->tpl_vars['other']->_loop = true;
                    ?>
<tr><td><input type="checkbox" name="domains[]" value="<?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
" /></td><td><?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
</td><td><select name="domainsregperiod[<?php 
                    echo $_smarty_tpl->tpl_vars['other']->value['domain'];
                    ?>
]"><?php 
                    $_smarty_tpl->tpl_vars['regoption'] = new Smarty_Variable();
                    $_smarty_tpl->tpl_vars['regoption']->_loop = false;
                    $_smarty_tpl->tpl_vars['period'] = new Smarty_Variable();
                    $_from = $_smarty_tpl->tpl_vars['other']->value['regoptions'];
                    if (!is_array($_from) && !is_object($_from)) {
                        settype($_from, 'array');
                    }
                    foreach ($_from as $_smarty_tpl->tpl_vars['regoption']->key => $_smarty_tpl->tpl_vars['regoption']->value) {
                        $_smarty_tpl->tpl_vars['regoption']->_loop = true;
                        $_smarty_tpl->tpl_vars['period']->value = $_smarty_tpl->tpl_vars['regoption']->key;
                        if ($_smarty_tpl->tpl_vars['regoption']->value['register']) {
                            ?>
<option value="<?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
"><?php 
                            echo $_smarty_tpl->tpl_vars['period']->value;
                            ?>
 <?php 
                            echo $_smarty_tpl->tpl_vars['LANG']->value['orderyears'];
                            ?>
 @ <?php 
                            echo $_smarty_tpl->tpl_vars['regoption']->value['register'];
                            ?>
</option><?php 
                        }
                    }
                    ?>
</select></td></tr>
<?php 
                }
                ?>
</table>

<?php 
                if (isset($_smarty_tpl->tpl_vars['continueok'])) {
                    $_smarty_tpl->tpl_vars['continueok'] = clone $_smarty_tpl->tpl_vars['continueok'];
                    $_smarty_tpl->tpl_vars['continueok']->value = true;
                    $_smarty_tpl->tpl_vars['continueok']->nocache = null;
                    $_smarty_tpl->tpl_vars['continueok']->scope = 0;
                } else {
                    $_smarty_tpl->tpl_vars['continueok'] = new Smarty_variable(true, null, 0);
                }
                ?>

<?php 
            }
            ?>

<?php 
            if ($_smarty_tpl->tpl_vars['continueok']->value) {
                ?>
<p align="center"><input type="submit" value="<?php 
                echo $_smarty_tpl->tpl_vars['LANG']->value['ordercontinuebutton'];
                ?>
" /></p><?php 
            }
            ?>

<?php 
        }
    }