-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-funder-signup.php
69 lines (49 loc) · 1.7 KB
/
page-funder-signup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
*
* Template for displaying a Loan Application.
*
* @package understrap
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
get_header();
$container = get_theme_mod( 'understrap_container_type' );
global $current_user;
// $user_id = $current_user->ID;
// $application_id = $post->ID;
// // determine if user has access
// $access_type = fo_user_has_access_to_application($application_id);
?>
<div class="wrapper" id="full-width-page-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content">
<div class="row">
<div class="col-md-12 content-area" id="primary">
<main class="site-main narrow-form" id="main" role="main">
<?php /*if ($access_type == 'funder' || $access_type == 'admin'): ?>
<a href="/review-applications"><?php echo __('« Back to Review Applications', 'understrap-child'); ?></a>
<?php endif;*/ ?>
<?php //if ($access_type != false) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="display-fieldgroup my-4 pb-4">
<h1><?php the_title(); ?></h1>
</div>
<?php
// ensure user is not logged in?
$exclude_fields = fo_get_excluded_fields_by_page('funder-signup');
$args = array(
'exclude_fields' => $exclude_fields,
'user' => 'new'
);
advanced_form('form_5ec6a55b507c4', $args);
?>
<?php endwhile; // end of the loop. ?>
<?php /*else : ?>
<p>You do not have access to view this application.</p>
<?php endif;*/ ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- .row end -->
</div><!-- #content -->
</div><!-- #full-width-page-wrapper -->
<?php get_footer(); ?>