-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-edicao_user.php
42 lines (39 loc) · 1.23 KB
/
page-edicao_user.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
<?php acf_form_head(); ?>
<?php
/**
*Template Name: Edicao user
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package coletivo
*/
$user_id=get_current_user_id();
get_header('inscricao'); ?>
<?php $msg = get_transient( "validacao_user_error" );
// echo 'MSG: '.$msg;
$post_acf = get_transient( "post_transient" );
print_r($msg);
?>
<div id="content" class="site-content">
<?php if(has_post_thumbnail() && $img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full', true )):?>
<div class="page-fullheader">
<img src="<?php echo $img[0];?>"/>
</div>
<?php endif;?>
<div id="content-inside" class="container container-form no-sidebar">
<?php the_title( '<h2 class="fullheader-title">', '</h2>' ); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php acf_form(array(
'post_id' => 'user_'.$user_id,
'field_groups' => array('group_59fbfaf0ba8ff'),
'new_post' => array(
'post_type' => 'post',
'post_status' => 'publish'
),
'submit_value' => 'Inscrever'
)); ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!--#content-inside -->
</div><!-- #content -->
<?php get_footer(); ?>