<?php defined('MW_INSTALLER_PATH') || exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 * 
 * @package MailWizz EMA
 * @author Serban George Cristian <cristian.serban@mailwizz.com> 
 * @link http://www.mailwizz.com/
 * @copyright 2013-2014 MailWizz EMA (http://www.mailwizz.com)
 * @license http://www.mailwizz.com/license/
 * @since 1.0
 */
 
?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>MailWizz Installer</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans" />
        <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Noto+Sans:700italic" />
        <link rel="stylesheet" type="text/css" href="../backend/assets/css/bootstrap.min.css" />
        <link rel="stylesheet" type="text/css" href="../backend/assets/css/style.css" />
        
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="../backend/assets/js/bootstrap.min.js" id="script-bootstrap"></script>
        <script type="text/javascript" src="../backend/assets/js/notify.js" id="script-notify"></script>
        <script type="text/javascript" src="../backend/assets/js/app.js" id="script-application"></script>

    </head>

  <body>
    
    <nav class="navbar header-nav-bar" role="navigation">
        <div class="navbar-header">
            <a href="index.php?route=welcome" class="navbar-brand">MailWizz <small>Email marketing application.</small></a>
        </div>
    </nav>
    
    <div class="row-fluid wrapper">
        <div class="top"><!-- --></div>
        <div class="main">
            <div class="hide-under-top">
                <div class="col-lg-2">
                    
                    <div class="panel panel-default sidebar">
                        <div class="sidebar-nav">
                            <a class="nav-header<?php echo ($context instanceof WelcomeController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Welcome</a>
                            <a class="nav-header<?php echo ($context instanceof RequirementsController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Requirements</a>
                            <a class="nav-header<?php echo ($context instanceof FilesystemController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> File system checks</a>
                            <a class="nav-header<?php echo ($context instanceof DatabaseController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Database import</a>
                            <a class="nav-header<?php echo ($context instanceof AdminController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Admin account</a>
                            <a class="nav-header<?php echo ($context instanceof CronController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Cron jobs</a>
                            <a class="nav-header<?php echo ($context instanceof FinishController) ? ' active':'';?>" href="javascript:;"><i class="glyphicon glyphicon-circle-arrow-right"></i> Finish</a>
                        </div>                    
                    </div>
                    
                </div>
                <div class="col-lg-10">
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <?php if (!empty($breadcrumbs)) { $bcount = count($breadcrumbs);?>
                            <ul class="breadcrumb">
                                <li><a href="index.php?route=welcome">Install</a><span class="divider"></span></li>
                                <?php $i = 0; foreach ($breadcrumbs as $text => $href) { ++$i; ?>
                                <li><a href="<?php echo $href;?>"><?php echo $text;?></a> <?php if ($i < $bcount) {?> <span class="divider"></span><?php }?></li>
                                <?php } ?>
                            </ul>
                            <?php } ?>
                            <div class="page-content">
                            <?php if ($error = $context->getError('general')) { ?>
                                <div class="alert alert-danger alert-block">
                                    <?php echo $error;?>
                                    <button type="button" class="close" data-dismiss="alert">×</button>
                                </div>
                            <?php } ?>
                                {{CONTENT}}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearfix"><!-- --></div>
        </div>
    </div>
    
  </body>
</html>