Untitled
unknown
plain_text
2 years ago
2.8 kB
3
Indexable
<?php get_header() ?> <?php while(have_posts()): the_post() ?> <div class="container mt-5"> <div class="row"> <div class="col-4"> <?php $tasks = new WP_Query(array( "post_type" => "task", "posts_per_page" => -1, "post_status" => "any" )); ?> <?php if($tasks->found_posts > 0): ?> <div class="card mb-3"> <div class="card-header"> <h1 class="h5 mb-0 card-title"><?php pll_e("My tasks") ?></h1> </div> <ul class="list-group list-group-flush"> <?php while($tasks->have_posts()): $tasks->the_post() ?> <li class="list-group-item done-<?php the_field("done") ?>"><a href="?doneId=<?php the_ID() ?>"><?php the_title() ?></a></li> <?php endwhile ?> <?php wp_reset_postdata() ?> </ul> <div class="card-footer text-center"> <a href="?clear" class="btn btn-danger"><?php pll_e("Clear completed") ?></a> </div> </div> <?php endif; ?> <div class="card"> <div class="card-header"> <h1 class="h5 mb-0 card-title"><?php pll_e("Add new task") ?></h5> </div> <?php echo do_shortcode('[cf7form cf7key="new-task"]') ?> </div> </div> <div class="col-8"> <div class="card"> <div class="card-header"> <h1 class="h5 mb-0 card-title"><?php the_title() ?></h5> </div> <div class="card-body"> <h2 class="h6"><?php pll_e("Pomodoro technique") ?></h2> <p><?php the_field("pomodoro_description") ?></p> <h2 class="h6"><?php pll_e("Time-Boxing technique") ?></h2> <p><?php the_field("time-boxing_description") ?></p> <h2 class="h6"><?php pll_e("Say no") ?></h2> <p><?php the_field("say_no_description") ?></p> </div> </div> </div> </div> </div> <?php endwhile ?> <?php get_footer() ?>
Editor is loading...