function _lb2cf243607b_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["sendPassword"], array('class' => 'form-inline'));
        ?>

		<div class="form-group">
			<?php 
        if ($_label = $_form["email"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["email"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => '*****@*****.**'));
        ?>

		</div>
		<?php 
        echo $_form["edit"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
    function _lb53c1952b44_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["categoryForm"], array('class' => 'form-horizontal'));
        ?>

	<div class="form-group">
		<?php 
        if ($_label = $_form["name"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["name"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>

		<div class="form-group">
		<?php 
        if ($_label = $_form["type"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["type"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
		</div>
		
	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <?php 
        echo $_form["send"]->getControl()->addAttributes(array('class' => 'btn btn-primary', 'data-loading-text' => 'Vytvářím kategorii.', 'autocomplete' => 'off'));
        ?>

		</div>
	  </div>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
    function _lb1a339ca149_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        ?>
	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["changePassword1"], array('class' => 'form-inline'));
        ?>

		<div class="form-group">
			<?php 
        if ($_label = $_form["password"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["password"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => 'Heslo'));
        ?>

		</div>
		<div class="form-group">
			<?php 
        if ($_label = $_form["passwordVerify"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["passwordVerify"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => 'Heslo znova'));
        ?>

		</div>
			<?php 
        echo $_form["edit"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
Пример #4
0
function renderLatte($path, $parameters = array())
{
    global $App;
    global $View;
    global $wp_query;
    global $post;
    $fullParameters = array('App' => $App, 'baseUrl' => toPath(WP_HOME), 'basePath' => toRelativePath(WP_HOME), 'assetsUrl' => toPath(WP_HOME) . '/assets', 'assetsPath' => toRelativePath(WP_HOME) . '/assets', 'wp_query' => $wp_query, 'post' => $post, 'flashes' => getFlashSession()->flash ?: []);
    foreach ($View as $key => $val) {
        $fullParameters[$key] = $val;
    }
    foreach ($parameters as $key => $val) {
        $fullParameters[$key] = $val;
    }
    $latte = new Latte\Engine();
    $latte->setTempDirectory(TEMP_DIR . '/cache/latte');
    MangoPressTemplatingMacroSet::install($latte->getCompiler());
    Nette\Bridges\FormsLatte\FormMacros::install($latte->getCompiler());
    MangoPressTemplatingFilterSet::install($latte);
    return $latte->render($path, (array) $fullParameters);
}
    function _lbe93221593b_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        ?>
	<a class="btn btn-danger" href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link("User:delete"), ENT_COMPAT);
        ?>
">Smazat účet</a>
	<br><br>
	<h4>Změnit heslo</h4>
	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["changePassword"], array('class' => 'form-inline'));
        ?>

		<div class="form-group">
			<?php 
        if ($_label = $_form["password"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["password"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => 'Heslo'));
        ?>

		</div>&nbsp;
		<div class="form-group">
			<?php 
        if ($_label = $_form["passwordVerify"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["passwordVerify"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => 'Heslo znova'));
        ?>

		</div>
			<?php 
        echo $_form["edit"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

	<br>
	<h4>Změnit e-mail</h4>
	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["changeEmail"], array('class' => 'form-inline'));
        ?>

		<div class="form-group">
			<?php 
        if ($_label = $_form["email"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["email"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => '*****@*****.**'));
        ?>

		</div>
		<?php 
        echo $_form["edit"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

	<br>
	<h4>Změnit výchozí měnu</h4>
	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["defaultCurrency"], array('class' => 'form-inline'));
        ?>

		<div class="form-group">
			<?php 
        if ($_label = $_form["default_currency"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'sr-only'));
        }
        ?>

			<?php 
        echo $_form["default_currency"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
		<?php 
        echo $_form["edit"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

	<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
    function _lb1e37b7a433_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        ?>
    <div> 
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["setMainPhotoForm"], array());
        ?>
		<!-- vykreslení chyb -->
<?php 
        if ($form->hasErrors()) {
            ?>
		<ul class="errors">
<?php 
            $iterations = 0;
            foreach ($form->errors as $error) {
                ?>
		    <li><?php 
                echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                ?>
</li>
<?php 
                $iterations++;
            }
            ?>
		</ul>
<?php 
        }
        ?>
		<table id="photos_setmainphoto">
<?php 
        $counter = 0;
        $iterations = 0;
        foreach ($photos as $photo) {
            ?>
			<tr class="required">
			    <td><?php 
            $_input = is_object($photo->id) ? $photo->id : $_form[$photo->id];
            echo $_input->getControl();
            ?>
</td>
			    <td style="background-image: url(../../images/auction/<?php 
            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($photo->id_property), ENT_COMPAT);
            ?>
/<?php 
            echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($photo->name), ENT_COMPAT);
            ?>
);  background-position: 50% 0%; background-size: auto 120px; background-repeat: no-repeat;">
<?php 
            if ($main_photo_id == 0) {
                if ($counter == 0) {
                    ?>
			    	        <img class="icon-selected" src="../../images/icons/blue//118.png" style="display: inline-block;">
<?php 
                } else {
                    ?>
                            <img class="icon-selected" src="../../images/icons/blue//118.png">
<?php 
                }
            } else {
                if ($main_photo_id == $photo->id) {
                    ?>
                            <img class="icon-selected" src="../../images/icons/blue//118.png" style="display: inline-block;">
<?php 
                } else {
                    ?>
                            <img class="icon-selected" src="../../images/icons/blue//118.png">
<?php 
                }
            }
            $counter = $counter + 1;
            ?>
			    </td>
			</tr>
<?php 
            $iterations++;
        }
        ?>
			<tr>
			    <td colspan="2"><?php 
        echo $_form["send"]->getControl();
        ?>
</td>
			</tr>
		</table>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>
    </div>
<?php 
    }
    function _lb744272af44_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        call_user_func(reset($_b->blocks['title']), $_b, get_defined_vars());
        ?>

<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["signInForm"], array('class' => 'form-horizontal'));
        ?>

	<br>
	 <div class="form-group">
		<?php 
        if ($_label = $_form["username"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["username"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	  </div>
	  <div class="form-group">
		<?php 
        if ($_label = $_form["password"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["password"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	  </div>
	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <div class="checkbox">
			<label>
			  <?php 
        echo $_form["remember"]->getControl();
        ?>

			</label>
		  </div>
		</div>
	  </div>
	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <?php 
        echo $_form["send"]->getControl()->addAttributes(array('class' => 'btn btn-primary'));
        ?>

		</div>
	  </div>
	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link("User:activateCode"), ENT_COMPAT);
        ?>
">Zaslat aktivační kód</a><br>
		  <a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link("User:forgotPassword"), ENT_COMPAT);
        ?>
">Zapomenuté heslo</a>
		</div>
	  </div>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>


<?php 
    }
    function _lb4e85db356f_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        ?>
    <div class="search-main info">
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["searchForm"], array());
        ?>
            <table>
                <tr>
                    <td colspan="2"><?php 
        echo $_form["search"]->getControl();
        ?>
 <?php 
        echo $_form["send"]->getControl();
        ?>
</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <?php 
        echo $_form["t1"]->getControl();
        ?>
 <?php 
        echo $_form["t2"]->getControl();
        ?>
 <?php 
        echo $_form["t3"]->getControl();
        ?>
 <?php 
        echo $_form["t4"]->getControl();
        ?>

                    </td>
                </tr>
                <tr>
                    <td colspan="2"><?php 
        echo $_form["s1"]->getControl();
        ?>
</td>
                </tr>
                <tr>
                    <td colspan="2"><?php 
        echo $_form["s2"]->getControl();
        ?>
</td>
                </tr>
                <tr>
                    <td colspan="2"><?php 
        echo $_form["s3"]->getControl();
        ?>
</td>
                </tr>
                <tr>
                    <td>Minimální cena v Kč:<br> <?php 
        echo $_form["min"]->getControl();
        ?>
</td>
                    <td>Maximální cena v Kč:<br> <?php 
        echo $_form["max"]->getControl();
        ?>
</td>
                </tr>
            </table>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>
    </div>
<?php 
        if ($is_q == true) {
            ob_start();
            ob_start();
            ?>
            <div class="info">
                Hledaný výraz byl nalezen v nadpisu u těchto nemovitostí:
            </div>
            <div class="search-boxes">
<?php 
            $iterations = 0;
            foreach ($n_nemovitosti as $n_nemovitost) {
                ?>
            <div idn="<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->id, ENT_COMPAT);
                ?>
" title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->nazev, ENT_COMPAT);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->adresa, ENT_COMPAT);
                ?>
)" style="background-image:
                 
<?php 
                if (isset($n_nemovitost->related('photo.id_property')->fetch()->name)) {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($n_nemovitost->id), ENT_COMPAT);
                    ?>
/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($n_nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                    ?>
);
<?php 
                } else {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/default.jpg);
<?php 
                }
                ?>
                background-position: 50% 0%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                <div class="detail-popis">
                    <h2>
                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($n_nemovitost->nazev, 23), ENT_NOQUOTES);
                ?>

                    </h2>
                    <p class="adresa"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($n_nemovitost->adresa, 32), ENT_NOQUOTES);
                ?>
</p>
                </div>
            </div>   
<?php 
                $iterations++;
            }
            ?>
            </div>
<?php 
            if (isset($n_nemovitost)) {
                ob_end_flush();
            } else {
                ob_end_clean();
            }
            ?>
        
<?php 
            ob_start();
            ?>
            <div class="info">
                Hledaný výraz byl nalezen v popisu u těchto nemovitostí:
            </div>
            <div class="search-boxes">
<?php 
            $iterations = 0;
            foreach ($p_nemovitosti as $p_nemovitost) {
                ?>
            <div idn="<?php 
                echo Latte\Runtime\Filters::escapeHtml($p_nemovitost->id, ENT_COMPAT);
                ?>
" title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($p_nemovitost->nazev, ENT_COMPAT);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($p_nemovitost->adresa, ENT_COMPAT);
                ?>
)" style="background-image:
                 
<?php 
                if (isset($p_nemovitost->related('photo.id_property')->fetch()->name)) {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($p_nemovitost->id), ENT_COMPAT);
                    ?>
/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($p_nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                    ?>
);
<?php 
                } else {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/default.jpg);
<?php 
                }
                ?>
                background-position: 50% 0%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                <div class="detail-popis">
                    <h2>
                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($p_nemovitost->nazev, 23), ENT_NOQUOTES);
                ?>

                    </h2>
                    <p class="adresa"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($p_nemovitost->adresa, 32), ENT_NOQUOTES);
                ?>
</p>
                </div>
            </div>   
<?php 
                $iterations++;
            }
            ?>
            </div>
<?php 
            if (isset($p_nemovitost)) {
                ob_end_flush();
            } else {
                ob_end_clean();
            }
            ?>
        
<?php 
            ob_start();
            ?>
            <div class="info">
                Hledaný výraz byl nalezen v adrese u těchto nemovitostí:
            </div>
            <div class="search-boxes">
<?php 
            $iterations = 0;
            foreach ($a_nemovitosti as $a_nemovitost) {
                ?>
            <div idn="<?php 
                echo Latte\Runtime\Filters::escapeHtml($a_nemovitost->id, ENT_COMPAT);
                ?>
" title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($a_nemovitost->nazev, ENT_COMPAT);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($a_nemovitost->adresa, ENT_COMPAT);
                ?>
)" style="background-image:
                 
<?php 
                if (isset($a_nemovitost->related('photo.id_property')->fetch()->name)) {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($a_nemovitost->id), ENT_COMPAT);
                    ?>
/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($a_nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                    ?>
);
<?php 
                } else {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/default.jpg);
<?php 
                }
                ?>
                background-position: 50% 0%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                <div class="detail-popis">
                    <h2>
                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($a_nemovitost->nazev, 23), ENT_NOQUOTES);
                ?>

                    </h2>
                    <p class="adresa"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($a_nemovitost->adresa, 32), ENT_NOQUOTES);
                ?>
</p>
                </div>
            </div>   
<?php 
                $iterations++;
            }
            ?>
            </div>
<?php 
            if (isset($a_nemovitost)) {
                ob_end_flush();
            } else {
                ob_end_clean();
            }
            ?>

<?php 
            ob_start();
            ?>
            <div class="info">
                Hledaný výraz byl nalezen v id u těchto nemovitostí:
            </div>
            <div class="search-boxes">
<?php 
            $iterations = 0;
            foreach ($i_nemovitosti as $i_nemovitost) {
                ?>
            <div idn="<?php 
                echo Latte\Runtime\Filters::escapeHtml($i_nemovitost->id, ENT_COMPAT);
                ?>
" title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($i_nemovitost->nazev, ENT_COMPAT);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($i_nemovitost->adresa, ENT_COMPAT);
                ?>
)" style="background-image:
                 
<?php 
                if (isset($i_nemovitost->related('photo.id_property')->fetch()->name)) {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($i_nemovitost->id), ENT_COMPAT);
                    ?>
/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($i_nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                    ?>
);
<?php 
                } else {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/default.jpg);
<?php 
                }
                ?>
                background-position: 50% 0%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                <div class="detail-popis">
                    <h2>
                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($i_nemovitost->nazev, 23), ENT_NOQUOTES);
                ?>

                    </h2>
                    <p class="adresa"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($i_nemovitost->adresa, 32), ENT_NOQUOTES);
                ?>
</p>
                </div>
            </div>   
<?php 
                $iterations++;
            }
            ?>
            </div>
<?php 
            if (isset($i_nemovitost)) {
                ob_end_flush();
            } else {
                ob_end_clean();
            }
            ?>
        
<?php 
            ob_start();
            ?>
            <div class="info">
                Hledaný výraz se dle Vámi zadaných kriterií nepodařilo nalézt. Je možné, že jste nevhodně nastavili parametry vyhledávání a nebo se hledaný výraz na webu nevyskytuje.
            </div>
<?php 
            if (isset($n_nemovitost) || isset($p_nemovitost) || isset($a_nemovitost) || isset($i_nemovitost)) {
                ob_end_clean();
                ob_end_flush();
            } else {
                $_l->else = ob_get_contents();
                ob_end_clean();
                ob_end_clean();
                echo $_l->else;
            }
        } else {
            ob_start();
            ?>
            <div class="info">
                Dle zadaných kritérií se podařilo nalézt tyto nemovitosti:
            </div>
            <div class="search-boxes">
<?php 
            $iterations = 0;
            foreach ($n_nemovitosti as $n_nemovitost) {
                ?>
            <div idn="<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->id, ENT_COMPAT);
                ?>
" title="<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->nazev, ENT_COMPAT);
                ?>
 (<?php 
                echo Latte\Runtime\Filters::escapeHtml($n_nemovitost->adresa, ENT_COMPAT);
                ?>
)" style="background-image:
                 
<?php 
                if (isset($n_nemovitost->related('photo.id_property')->fetch()->name)) {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($n_nemovitost->id), ENT_COMPAT);
                    ?>
/<?php 
                    echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($n_nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                    ?>
);
<?php 
                } else {
                    ?>
                    url(<?php 
                    if (isset($id) || $id != null) {
                        ?>
../<?php 
                    }
                    ?>
../images/auction/default.jpg);
<?php 
                }
                ?>
                background-position: 50% 0%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                <div class="detail-popis">
                    <h2>
                        <?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($n_nemovitost->nazev, 23), ENT_NOQUOTES);
                ?>

                    </h2>
                    <p class="adresa"><?php 
                echo Latte\Runtime\Filters::escapeHtml($template->truncate($n_nemovitost->adresa, 32), ENT_NOQUOTES);
                ?>
</p>
                </div>
            </div>   
<?php 
                $iterations++;
            }
            ?>
            </div>
<?php 
            ob_start();
            ?>
            <div class="info">
                Dle zadaných kritérií se nepodařilo nalézt žádnou nemovitost. Změňte prosím parametry vyhledávání.
            </div>    
<?php 
            if (isset($n_nemovitost)) {
                ob_end_clean();
                ob_end_flush();
            } else {
                $_l->else = ob_get_contents();
                ob_end_clean();
                ob_end_clean();
                echo $_l->else;
            }
        }
        ?>

<?php 
    }
                                <div class="form-group"><?php 
    echo $_form["password"]->getControl()->addAttributes(array('class' => 'form-control', 'placeholder' => 'Heslo'));
    ?>
</div>
                                <?php 
    echo $_form["send"]->getControl()->addAttributes(array('class' => 'btn btn-success'));
    ?>

                                <a href="<?php 
    echo Latte\Runtime\Filters::escapeHtml($_control->link("SignUp:default"), ENT_COMPAT);
    ?>
" class="btn btn-danger" role="button">
                                    Sign Up
                                </a>
                            <?php 
    Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
    ?>

<?php 
} else {
    ?>
                            <ul class="nav navbar-nav navbar-right">
                                <?php 
    if ($user->isInRole('admin')) {
        ?>
                                     <li><a href="<?php 
        echo Latte\Runtime\Filters::escapeHtml($_control->link("Admin:"), ENT_COMPAT);
        ?>
">Administrace</a></li>
<?php 
    }
    function _lbc661440c22__grid($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        $_control->redrawControl('grid', FALSE);
        $form->getElementPrototype()->class[] = 'ajax grido';
        $operation = $control->hasOperation();
        $actions = $control->hasActions() ? $control->getComponent(\Grido\Components\Actions\Action::ID)->getComponents() : array();
        $filters = $control->hasFilters() ? $form->getComponent(\Grido\Components\Filters\Filter::ID)->getComponents() : array();
        $filterRenderType = $control->getFilterRenderType();
        $columns = $control->getComponent(\Grido\Components\Columns\Column::ID)->getComponents();
        $columnCount = count($columns) + ($operation ? 1 : 0);
        $showActionsColumn = $actions || $filters && $filterRenderType == \Grido\Components\Filters\Filter::RENDER_INNER;
        $buttons = $form->getComponent('buttons');
        $buttons->getComponent('search')->getControlPrototype()->class[] = 'btn btn-default btn-sm search';
        $buttons->getComponent('reset')->getControlPrototype()->class[] = 'btn btn-default btn-sm reset';
        $form['count']->controlPrototype->class[] = 'form-control';
        $operation ? $form['operations']['operations']->controlPrototype->class[] = 'form-control' : NULL;
        ?>

<?php 
        $iterations = 0;
        foreach ($filters as $filter) {
            $filter->controlPrototype->class[] = 'form-control';
            $iterations++;
        }
        ?>

<?php 
        $iterations = 0;
        foreach ($actions as $action) {
            $element = $action->getElementPrototype();
            $element->class[] = 'btn btn-default btn-xs btn-mini';
            if ($icon = $action->getOption('icon')) {
                $element->setText(' ' . $action->getLabel());
                $element->insert(0, \Nette\Utils\Html::el('i')->setClass(array("glyphicon glyphicon-{$icon} fa fa-{$icon} icon-{$icon}")));
            }
            $iterations++;
        }
        if ($form->getErrors()) {
            $iterations = 0;
            foreach ($form->getErrors() as $error) {
                ?>
<ul>
    <li><?php 
                echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                ?>
</li>
</ul>
<?php 
                $iterations++;
            }
        }
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["form"], array());
        ?>

<?php 
        if ($filterRenderType == \Grido\Components\Filters\Filter::RENDER_OUTER) {
            call_user_func(reset($_b->blocks['outerFilter']), $_b, get_defined_vars());
        }
        ?>

<?php 
        call_user_func(reset($_b->blocks['table']), $_b, get_defined_vars());
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
    function _lb7e0b5b1461_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["accountForm"], array('class' => 'form-horizontal'));
        ?>

	<div class="form-group">
		<?php 
        if ($_label = $_form["name"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["name"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["avalaibleMoney"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["avalaibleMoney"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
			<div class="checkbox">
			  <label>
				<?php 
        echo $_form["inTotalSum"]->getControl();
        ?>

			  </label>
			</div>
		  </div>
		</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["id_currency"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["id_currency"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <?php 
        echo $_form["send"]->getControl()->addAttributes(array('class' => 'btn btn-primary', 'data-loading-text' => 'Vytvářím účet.', 'autocomplete' => 'off'));
        ?>

		</div>
	  </div>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }
    function _lb9ee2c498b1_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        ?>
    <div class="main-window">
<?php 
        ob_start();
        ?>
        <table>
<?php 
        $iterations = 0;
        foreach ($nemovitosti as $nemovitost) {
            ?>
            <tr>
                <td idn="<?php 
            echo Latte\Runtime\Filters::escapeHtml($nemovitost->id, ENT_COMPAT);
            ?>
" title="<?php 
            echo Latte\Runtime\Filters::escapeHtml($nemovitost->nazev, ENT_COMPAT);
            ?>
 (<?php 
            echo Latte\Runtime\Filters::escapeHtml($nemovitost->adresa, ENT_COMPAT);
            ?>
)" style="background-image:
            	 
<?php 
            if (isset($nemovitost->related('photo.id_property')->fetch()->name)) {
                ?>
            		url(../images/auction/<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($nemovitost->id), ENT_COMPAT);
                ?>
/<?php 
                echo Latte\Runtime\Filters::escapeHtml(Latte\Runtime\Filters::escapeCss($nemovitost->related('photo.id_property')->order('order DESC')->order('id ASC')->fetch()->name), ENT_COMPAT);
                ?>
);
<?php 
            } else {
                ?>
            		url(../images/auction/default.jpg);
<?php 
            }
            ?>
             	background-position: 50% 50%; background-size: auto 155px; background-repeat: no-repeat;" class="detail">
                </td>
                <td>
                    <?php 
            echo Latte\Runtime\Filters::escapeHtml($template->truncate($nemovitost->nazev, 23), ENT_NOQUOTES);
            ?>

                </td>
                <td>
                    <?php 
            echo Latte\Runtime\Filters::escapeHtml($template->truncate($nemovitost->adresa, 32), ENT_NOQUOTES);
            ?>

                </td>
                <td>
                    <ul>
                        <li>
<?php 
            Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["pubForm"], array());
            ?>

							<!-- vykreslení chyb -->
<?php 
            if ($form->hasErrors()) {
                ?>
							<ul class="errors">
<?php 
                $iterations = 0;
                foreach ($form->errors as $error) {
                    ?>
							    <li><?php 
                    echo Latte\Runtime\Filters::escapeHtml($error, ENT_NOQUOTES);
                    ?>
</li>
<?php 
                    $iterations++;
                }
                ?>
							</ul>
<?php 
            }
            ?>

							<div id="pub_tab_<?php 
            echo Latte\Runtime\Filters::escapeHtml($nemovitost->id, ENT_COMPAT);
            ?>
">
								<div class="required">
									<?php 
            echo Latte\Runtime\Filters::escapeHtml($form["id"]->control->setValue($nemovitost->id), ENT_NOQUOTES);
            ?>

								</div>
								<div>
									<?php 
            echo $_form["send"]->getControl();
            ?>

								</div>
							</div>

<?php 
            Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
            ?>
                        </li>
                        <li>
                            <a class="btn btn-primary" href="<?php 
            echo Latte\Runtime\Filters::escapeHtml($_control->link("nemovitosti:detailNemovitosti", array($nemovitost->id)), ENT_COMPAT);
            ?>
">Detail</a>
                        </li>
                    </ul>
                </td>
            </tr>  
<?php 
            $iterations++;
        }
        ?>
        </table>
<?php 
        ob_start();
        ?>
            <p class="info">Momentálně nejsou k dispozici žádné nemovitosti.</p>
<?php 
        if (isset($nemovitost)) {
            ob_end_clean();
            ob_end_flush();
        } else {
            $_l->else = ob_get_contents();
            ob_end_clean();
            ob_end_clean();
            echo $_l->else;
        }
        ?>
    </div>
<?php 
    }
    function _lb290ff21b66_content($_b, $_args)
    {
        foreach ($_args as $__k => $__v) {
            ${$__k} = $__v;
        }
        Nette\Bridges\FormsLatte\FormMacros::renderFormBegin($form = $_form = $_control["transactionForm"], array('class' => 'form-horizontal'));
        ?>

	<div class="form-group">
		<?php 
        if ($_label = $_form["ammount"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["ammount"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["date"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["date"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["description"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["description"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["id_account"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["id_account"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>
	<div class="form-group">
		<?php 
        if ($_label = $_form["id_category"]->getLabel()) {
            echo $_label->addAttributes(array('class' => 'col-sm-1 control-label'));
        }
        ?>

		<div class="col-sm-3">
		  <?php 
        echo $_form["id_category"]->getControl()->addAttributes(array('class' => 'form-control'));
        ?>

		</div>
	</div>

	  <div class="form-group">
		<div class="col-sm-offset-1 col-sm-10">
		  <?php 
        echo $_form["send"]->getControl()->addAttributes(array('class' => 'btn btn-primary', 'data-loading-text' => 'Přidávám transakci...', 'autocomplete' => 'off'));
        ?>

		</div>
	  </div>
<?php 
        Nette\Bridges\FormsLatte\FormMacros::renderFormEnd($_form);
        ?>

<?php 
    }