/
tpl-add-new.php
55 lines (33 loc) · 1.08 KB
/
tpl-add-new.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
<?php
/*
Template Name: Add New Listing
*/
// grabs the user info and puts into vars
global $current_user;
?>
<div class="content clear bg_orange">
<div class="content_botbg">
<div class="content_res">
<div class="content">
<!-- full block -->
<div class="shadowblock_out">
<div class="shadowblock">
<?php
// check and make sure the form was submitted from step1 and the session value exists
if( isset($_POST['step1']) ) {
include_once( get_template_directory() . '/includes/forms/step2.php' );
} elseif( isset($_POST['step2']) ) {
include_once( get_template_directory() . '/includes/forms/step3.php' );
} else {
// create a unique ID for this new ad order
$order_id = cp_generate_id();
include_once( get_template_directory() . '/includes/forms/step1.php' );
}
?>
</div><!-- /shadowblock -->
</div><!-- /shadowblock_out -->
</div>
<div class="clr"></div>
</div><!-- /content_res -->
</div><!-- /content_botbg -->
</div><!-- /content -->