<?php

class PageController
{
    /**
     * Pull in Locker content, and display home view
     *
     * @param $router
     */
    public function home($router) {
        // Get Meta arrays for page
        $websiteMeta = new Meta('00000000-0000-0000-0000-000000000000');
        $webpageMeta = new Meta('00000000-0000-0000-0000-000000000000');

        // Get Page array from CONTENT
        $page = new Content('00000000-0000-0000-0000-000000000000');

        require 'views/home.php';
    }


    /**
     * Pull in Locker content, and display contact view
     *
     * @param $router
     */
    public function contact($router) {
        // Get Meta arrays for page
        $websiteMeta = new Meta('00000000-0000-0000-0000-000000000000');
        $webpageMeta = new Meta('00000000-0000-0000-0000-000000000000');

        // Setup variables to use in form
        $url = App::get('config')['base_url'] . '/forms/00000000-0000-0000-0000-000000000000/submit';
        $public_key = App::get('config')['public_key'];

        require 'views/contact.php';
    }

    /**
     * Pull in Locker content, and display success view
     *
     * @param $router
     */
    public function success($router) {
        // Get Meta arrays for page
        $websiteMeta = new Meta('00000000-0000-0000-0000-000000000000');
        $webpageMeta = new Meta('00000000-0000-0000-0000-000000000000');

        require 'views/success.php';
    }

    /**
     * Pull in Locker content, and display error view
     *
     * @param $router
     */
    public function error($router) {
        // Get Meta arrays for page
        $websiteMeta = new Meta('00000000-0000-0000-0000-000000000000');
        $webpageMeta = new Meta('00000000-0000-0000-0000-000000000000');

        require 'views/error.php';
    }
}