?>
                        </div>
                    </div>
                    <button id="add-instagram-photo-btn" class="add-instructor-btn popover-dismiss" data-placement="bottom">
                        <span class="add_instructor_plus"></span><span class="add-instructor-label">Add photo</span>
                    </button>
                </div>
                <div class="instagram-body">
                    <?php 
if (isset($_COOKIE['instaFilter'])) {
    $filter = $_COOKIE['instaFilter'];
} else {
    $filter = "all";
}
$_POST['filter'] = $filter;
instagramView($instagram_photos, "admin");
?>
                </div>
                <?php 
if ($instagram_photos[$size - 1]['status'] == "more") {
    ?>
                    <button id="load-next-photos-btn" class="small-consult-btn" onclick="instagramShowMore();">Show more</button>
                <?php 
} else {
    ?>
                    <button id="load-next-photos-btn" class="small-consult-btn hide" onclick="instagramShowMore();">Show more</button>
                <?php 
}
?>
            </div>
            <div class="modal-footer">
?>
                    </ul>
                </div>

                <div class="instagram-body" data-last-photo-id="<?php 
echo $instagram_photos[$size - 1]['photoID'];
?>
">
                         <?php 
if (isset($_COOKIE['instaFilter'])) {
    $filter = $_COOKIE['instaFilter'];
} else {
    $filter = "all";
}
$_POST['filter'] = $filter;
instagramView($instagram_photos, "user");
?>
                </div>

                <?php 
if ($instagram_photos[$size - 1]['status'] == "more") {
    ?>
                    <button id="load-next-photos-btn" class="small-consult-btn" onclick="instagramShowMore();">Show more</button>
                <?php 
} else {
    ?>
                    <button id="load-next-photos-btn" class="small-consult-btn hide" onclick="instagramShowMore();">Show more</button>
                <?php 
}
?>
            </div>
Beispiel #3
0
if ($action == 'add_instagram_photo') {
    MainController::add_instagram_photo();
    $_POST['filter'] = "all";
    instagramView(MainController::getInstaPhotos(), "admin");
}
if ($action == 'showMoreInstaPhotos') {
    $_POST['filter'] = "all";
    instagramView(MainController::showMoreInstaPhotos(), "admin");
}
if ($action == 'checkedInstaDirFilter') {
    instagramView(MainController::getInstaPhotos(), "user");
}
if ($action == 'removeInstaPhoto') {
    MainController::removeInstaPhoto();
    $_POST['filter'] = "all";
    instagramView(MainController::getInstaPhotos(), "admin");
}
if ($action == 'editInstaPopupInfo') {
    MainController::editPopupInfo($_POST['language'], "instagram");
}
if ($action == 'createResrvationByAdmin') {
    reservationController::createResrvationByAdmin();
}
if ($action == 'booking_deleteClientReservation') {
    reservationController::deleteClientReservation();
    clientsTable(CalendarController::getDateHoursReservations());
}
if ($action == 'booking_deleteClientHoursReservation') {
    reservationController::booking_deleteClientHoursReservation();
}
if ($action == 'booking_change_day_state') {