$shortDescription = "";
$longDescription = "";
$purpose = "";
$contactInfo = "";
$showStat = false;
$additionAmount = 0.0;
$formRequestUrl = "/add-orphanage-controller.php";
if (isset($orphanage)) {
    $avatar = "<img src='" . get_site_url() . ImageDBUtils::getImageLinkByImageId($orphanage->image_id) . "' class='file-preview-image' alt='avatar' title='avatar'>";
    $name = $orphanage->name;
    $orphanagePriority = $orphanage->priority;
    $shortDescription = $orphanage->short_description;
    $longDescription = $orphanage->long_description;
    $contactInfo = $orphanage->contact_info;
    $purpose = $orphanage->purpose;
    $showStat = NeedyItemSettingsDBUtils::isSetShowOrphanageStat($orphanage->orphanage_id);
    $additionAmountObj = NeedyItemSettingsDBUtils::getAdditionAmount($child->child_id, NeedyType::ORPHANAGE);
    $additionAmount = $additionAmountObj->addition_amount;
    $formRequestUrl = "/edit-orphanage-controller.php";
}
get_header();
?>

    <div class="child-form">
        <div class="container">
            <div id="kv-avatar-errors" class="center-block" style="width:800px;display:none"></div>
            <form name="orphanage_form" action="<?php 
echo esc_url(home_url($formRequestUrl));
?>
" method="post" enctype="multipart/form-data">
                <div class="col">