%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/themes/intosai/
Upload File :
Create Path :
Current File : //var/www/pn/beta/64801_wp-content/themes/intosai/page-map.php

<?php
    /**
     * Template Name: Project Map
     */

     if(is_user_logged_in()){
 		$loggedIn = true;
 		$currentUser = wp_get_current_user();

        $userName = $currentUser->user_firstname . ' ' . $currentUser->user_lastname;
        $userID = $currentUser->ID;
 		$userStatus = get_field('active_user', 'user_'.$userID);

 		if($userStatus == 'yes' || current_user_can('administrator')){
 			$userActive = true;
 		}else{
 			$userActive = false;
 		}

 	}


    if($loggedIn && $userActive ){
        include('templates/forms/sai_changes_form.php'); /* Gets the information element */
    }


    include('templates/map_parts/map_content.php'); /* Gets the information element */
    include('templates/map_parts/map_and_markers.php'); /* Gets the markup for the map element and markers */
?>

<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDrlKH0F6xU-qd0jyZHD4prOx8bgSo1ykA"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>

Zerion Mini Shell 1.0