%PDF- %PDF-
Direktori : /var/www/pn/beta/64801_wp-content/themes/intosai/templates/logedin/ |
Current File : /var/www/pn/beta/64801_wp-content/themes/intosai/templates/logedin/edit_project.php |
<section class="content_section create_project"> <div class="wrapper"> <div class="centered_title"> <h2>Edit Project</h2> </div> <?php if(isset($_GET['id'])){ /* ||||||||||||||||||| SETUP EXISTING POST DATA ||||||||||||||||||| */ $id = strip_tags(htmlspecialchars($_GET['id'])); $projectConnection = $id; $projectPostStatus = get_post_status($id); $project_title = get_the_title($id); $content_post = get_post($id); $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $project_content = $content; $project_status = get_field('project_status', $id); $beneficiary_level = get_field('beneficiary_level', $id); $intosai_region = get_field('intosai_region', $id); $project_initiated = get_field('project_initiated', $id); $further_info = get_field('further_info', $id); $cp_ben_sai_region_committee = get_field('cp_ben-sai_region_committee', $id); $source_funding = get_field('source_funding', $id); $source_fundingCustom = get_field('source_funding_custom', $id); $cp_donor = get_field('cp_donor', $id); $imp_agencys = get_field('imp_agencys', $id); $cp_imp_partners = get_field('cp_imp-partners', $id); $duration_from = get_field('duration_from', $id); $duration_to = get_field('duration_to', $id); $total_budget = get_field('total_budget', $id); $type_of_support = get_field('type_of_support', $id); $supportModality = get_field('support_modality', $id); $support_cats_covered = get_field('support_cats_covered', $id); $support_based_on = get_field('support_based_on', $id); $project_connections = get_field('project_connections', $id); $other_info = get_field('other_info', $id); $publish_status = get_field('publish_status', $id); $draftCreated = get_field('draft_creation', $id); $terms = wp_get_post_terms($id, 'wdi'); $selected_terms = array(); foreach($terms as $selected){ $selectedID = $selected->term_id; array_push($selected_terms, $selectedID); } $regions = explode(', ', $intosai_region); $sourceArr = explode(', ', $source_funding); $supCats = explode(', ', $support_cats_covered); include(locate_template('templates/forms/edit_project.php')); } ?> </div> </section>