Last active
March 26, 2018 02:11
-
-
Save hwkdev/ad9ac69ecbc013af9723fcb743687308 to your computer and use it in GitHub Desktop.
Article: https://hwk.fr/blog/acf-creer-un-formulaire-de-connexion-inscription-en-ajax-grace-acf-form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| acf_enqueue_scripts(); | |
| get_header(); | |
| ?> | |
| <?php if(have_posts()): ?> | |
| <?php while(have_posts()): the_post(); ?> | |
| <div class="col-md-4"> | |
| <div class="h-100 bg-light"> | |
| <div class="card-body"> | |
| <?php if(!get_query_var('hwk_page_lost_password')): ?> | |
| <h2 class="mt-1">Connexion</h3> | |
| <?php acf_form('hwk_ajax_acf_login'); ?> | |
| <?php else: ?> | |
| <h2 class="mt-1">Mot de passe perdu</h3> | |
| <?php acf_form('hwk_ajax_acf_lost_password'); ?> | |
| <?php endif; ?> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="col-md-8"> | |
| <h2>Créer un compte</h3> | |
| <?php acf_form('hwk_ajax_acf_register'); ?> | |
| </div> | |
| <?php endwhile; ?> | |
| <?php endif; ?> | |
| <?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment