echo get_field('current_level', get_user_by('id', getLoggedinUserId())); ?> </b></span> </div> <div class="level-change-area"> <div class="change" onclick="jQuery('#change-level-form').toggle();"> Change level of workout </div> <form id="change-level-form" class="change-level-form" method="post" action="" style="display: none;"> <input type="hidden" name="update_level"> <select id="level" name="level" class="select-info-workout-2-1"> <option value="1">LEVEL 1</option> <option value="2">LEVEL 2</option> <option value="3">LEVEL 3</option> </select> <div class="submit-area"> <input type="button" id="save_level_btn" onclick="changeLevel(jQuery('#level').val(), '<?php echo getLoggedinUserId(); ?> ');" value="SAVE"> </div> </form> </div> </div> <div class="clear"></div> </div> </article> <!-- #post-## --> </div> </div> <!-- #primary --> <script type="text/javascript"> var workout_ajax = null;
scrollButtons:{enable:true,scrollType:"stepped"}, keyboard:{scrollType:"stepped"}, mouseWheel:{scrollAmount:188}, theme:"rounded-dark", autoExpandScrollbar:true, snapAmount:188, snapOffset:65 });*/ }); })(jQuery); </script> </div> <div class="clear"></div> <?php $educational_pdf = get_user_meta(getLoggedinUserId(), 'educational_pdf', true); if (!empty($educational_pdf)) { $educational_pdf = @unserialize($educational_pdf); if (!is_array($educational_pdf)) { $educational_pdf = array(); } } if (!empty($educational_pdf)) { $pdf_args = array('post_type' => 'education', 'post_status' => 'publish', 'post_per_page' => -1, 'post__in' => $educational_pdf, 'meta_query' => array('relation' => 'AND', array('key' => 'type', 'value' => 'pdf'))); $the_query = null; $the_query = new WP_Query($pdf_args); if ($the_query->have_posts()) { ?> <div class="pdf-area"> <?php /* $cc = $the_query->get_posts();echo '<pre>'; print_r($cc);die; */
?> <div class="search-abutton"><input class="search-button" type="submit" value="Search" /></div> <div class="search-button"><a href="<?php echo site_url('/member-area/add-recipe/'); ?> ">Add Recipe</a></div> <div style="float:left; width:100%; margin:20px 0px;" class="orange line"></div> </form> </div> <?php //echo do_shortcode('[acf_form group_id="97"]'); $args = array('post_type' => 'recipe', 'post_status' => 'publish', 'posts_per_page' => get_option('posts_per_page'), 'author__in' => array(getLoggedinUserId(), '1')); if ($ingredient) { $args['meta_query'] = array(array('key' => 'ingredient_%_ingredient_value', 'value' => $ingredient, 'type' => 'CHAR', 'compare' => 'LIKE')); } if ($recipeCat) { $args['tax_query'] = array('relation' => 'AND', array('taxonomy' => 'recipe-cat', 'field' => 'id', 'terms' => $recipeCat, 'include_children' => true, 'operator' => 'IN')); } $paged = get_query_var('paged') ? get_query_var('paged') : 1; $args['paged'] = $paged; $recipe = new WP_Query($args); //pr($recipe); if ($recipe->have_posts()) { $rr = 0; ?> <div class="row"><?php /* Start the Loop */
</div> </div> </div> <div class="clear"></div> </div> </article><!-- #post-## --> <div class="title-fitness">Your Performance </div> <div class="col-md-6 col-sm-6"> <div class="current-level"> <span> Current Level </span> <input readonly="" value="<?php echo get_field('current_level', get_user_by('id', getLoggedinUserId())); ?> "> </div> </div> <div class="col-md-6 col-sm-6"> <div class="legend-diag"> <span class="legend-title">LEGEND</span> <div class="first-ex">First EXERCISE</div> <div class="second-ex">Second EXERCISE</div> <div class="third-ex">Third EXERCISE</div> <div class="fourth-ex">Fourth EXERCISE</div> </div> </div> <script language="javascript" type="text/javascript" src="http://wpdevtest.co.uk/fatburning/wp-content/themes/fatburning/js/jquery.jqplot.min.js"></script>
* The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package unite */ if (!isSubscriber()) { wp_redirect(site_url('login')); exit; } if (!empty($_POST)) { $my_post = array('post_title' => $_POST['rec_title'], 'post_content' => $_POST['rec_description'], 'post_status' => 'publish', 'post_author' => getLoggedinUserId(), 'post_type' => 'recipe'); // Insert the post into the database $recipe_id = wp_insert_post($my_post); if ($recipe_id > 0) { /* field_5657fab082a73 prep_time field_5657fa7382a71 suitable_for field_56583b2623b6c servings field_5657f9fc82a6f ingredients field_5657fa5682a70 method field_5657fa8d82a72 allergens field_5657fada82a74 nutritional_information */ update_field('field_5657fab082a73', $_POST['rec_prep_time'], $recipe_id); // field_5657fab082a73 prep_time update_field('field_5657fa7382a71', $_POST['rec_suitable_for'], $recipe_id); // field_5657fa7382a71 suitable_for