From fb2843f10117fcb9a808e2de3f9c92328f74bf33 Mon Sep 17 00:00:00 2001 From: synapcs Date: Mon, 16 May 2016 20:45:15 +0530 Subject: [PATCH 01/11] adding meta box who we are installing and project timeline adding meta box who we are installing and project timeline, add edit delete is also working.. --- .../ign_metabox/init.php | 157 ++++++++++++++++-- .../ignitiondeck-postmeta.php | 43 ++++- 2 files changed, 187 insertions(+), 13 deletions(-) diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php index 9a2a559e..afa04275 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php @@ -136,12 +136,17 @@ class ign_cmb_Meta_Box { echo '
'; } if ( $field['type'] == "level2wraptop" ) { - echo '

What we’re installing 1

'; + echo '

What we’re installing 1

'; } if ( $field['type'] == "level2wrapbottom" ) { echo '
'; } - + if ( $field['type'] == "level3wraptop" ) { + echo '

What we’re installing 1

'; + } + if ( $field['type'] == "level3wrapbottom" ) { + echo '
'; + } echo '
  • '; if ( $field['type'] == "title" ) { @@ -342,31 +347,31 @@ class ign_cmb_Meta_Box { case 'add_levels': echo ' '; break; + ////Project What we’re installing line html form start here case 'product_levels_2': - $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_2_count", true ); + $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_count_2", true ); $levels_html_2 = ''; //echo $meta_no_levels; if ($meta_no_levels_2 > 0 || $meta_no_levels_2 != "") { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { + $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); - if (empty($meta_order)) { $meta_order = 0; } - $meta_price = get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_price", true ); $levels_html_2 .= ''. '

    '.__('What we’re installing ', 'ignitiondeck').' '.($i).'

    '. - '
    '. - '
    '. + '
    '. + '
    '. '
    '; $levels_html_2 .= '
    '; } } else { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; $levels_html_2 .= '
    '; } @@ -375,7 +380,41 @@ class ign_cmb_Meta_Box { case 'add_levels_2': echo ' '; break; + ////Project What we’re installing line html form end here + ////Project Timeline multiple line html form start here + case 'product_levels_3': + $meta_no_levels_3 = get_post_meta( $post->ID, $name="ign_product_level_count_3", true ); + $levels_html_3 = ''; + //echo $meta_no_levels; + + if ($meta_no_levels_3 > 0 || $meta_no_levels_3 != "") { + $levels_html_3 .= '
    '; + + for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { + $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); + $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); + if (empty($meta_order)) { + $meta_order = 0; + } + $levels_html_3 .= ''. + '

    '.__('Project Timeline ', 'ignitiondeck').' '.($i).'

    '. + '
    '. + '
    '. + '
    '; + $levels_html_3 .= '
    '; + } + + } else { + $levels_html_3 .= '
    '; + $levels_html_3 .= '
    '; + } + echo apply_filters('id_product_levels_3_html_admin', $levels_html_3, $meta_no_levels_3, $post->ID); + break; + case 'add_levels_3': + echo ' '; + break; + ////Project Timeline multiple line html form End here case 'short_code': echo '
    @@ -597,6 +636,69 @@ class ign_cmb_Meta_Box { update_post_meta($post_id, 'custom_level_order', $custom_order); } + + //=================================================================== + + //=================================================================== + // Saving the Who is installing + //=================================================================== + if (isset($_POST['level-count-2'])) { + update_post_meta($post_id, "ign_product_level_count_2", $_POST['level-count-2']); + } + $j = 2; + //find a better way to declare this without using +1 + + if (isset($_POST['levels_2'])) { + $custom_order = false; + $level_order = absint($_POST['ign_projectmeta_level_order_2']); + if ($level_order > 0) { + $custom_order = true; + } + if ($_POST['levels_2'] > 1 ) { + foreach ( $_POST['levels_2'] as $level_2 ) { + update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_filename", esc_attr($meta_value=$level_2['filename'])); + update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_title", $meta_value=$level_2['title_2']); + + if ($level_2['order'] > 0) { + $custom_order = true; + } + $j++; + } + } + update_post_meta($post_id, 'custom_level_order_2', $custom_order); + } + + //=================================================================== + + //=================================================================== + // Saving the Project Timeline + //=================================================================== + if (isset($_POST['level-count-3'])) { + update_post_meta($post_id, "ign_product_level_count_3", $_POST['level-count-3']); + } + $j = 2; + //find a better way to declare this without using +1 + + if (isset($_POST['levels_3'])) { + $custom_order = false; + $level_order = absint($_POST['ign_projectmeta_level_order_3']); + if ($level_order > 0) { + $custom_order = true; + } + if ($_POST['levels_3'] > 1 ) { + foreach ( $_POST['levels_3'] as $level_3 ) { + update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_what", esc_attr($meta_value=$level_3['what'])); + update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_when", $meta_value=$level_3['when']); + + if ($level_3['order'] > 0) { + $custom_order = true; + } + $j++; + } + } + update_post_meta($post_id, 'custom_level_order_3', $custom_order); + } + //=================================================================== } } @@ -682,6 +784,7 @@ function ign_cmb_editor_footer_scripts() { tinyMCE.execCommand('mceAddEditor', false, 'ign_level'+element_number+'desc'); } }); + // Add What we’re installing js code start here jQuery('span[addlevel_2]').click(function () { evalTinyMCE(); var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')) + 1; @@ -689,10 +792,24 @@ function ign_cmb_editor_footer_scripts() { jQuery('div[levels_2]').attr('levels_2', element_number); jQuery('#levels_2').val(element_number); jQuery('div[levels_2]').append('
    ' + - '

    '+(element_number)+'

    '+ - '
    ' + + '

    '+(element_number)+'

    '+ + '
    ' + '
    '); }); + // Add What we’re installing js code end here + // Add Project Timeline js code start here + jQuery('span[addlevel_3]').click(function () { + evalTinyMCE(); + var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')) + 1; + var pre_element_number = element_number - 1; + jQuery('div[levels_3]').attr('levels_3', element_number); + jQuery('#levels_3').val(element_number); + jQuery('div[levels_3]').append('
    ' + + '

    '+(element_number)+'

    '+ + '
    ' + + '
    '); + }); + // Add Project Timeline js code end here }); jQuery('span[deletelevel]').click(function () { @@ -708,7 +825,7 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels').val(new_number); } }); - + // Delete What we’re installing js code end here jQuery('span[deletelevel_2]').click(function () { var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')); var new_number = element_number - 1; @@ -722,6 +839,22 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels_2').val(new_number); } }); + // Delete What we’re installing js code end here + // Delete Project Timeline js code end here + jQuery('span[deletelevel_3]').click(function () { + var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')); + var new_number = element_number - 1; + jQuery('div[level_3="'+element_number+'"]').remove(); + + if (element_number == 1) { + jQuery('#ign_level_3_0').val(''); + jQuery('#ign_level_30desc').html(''); + } else { + jQuery('div[levels_3]').attr('levels_3', --element_number); + jQuery('#levels_3').val(new_number); + } + }); + // Delete Project Timeline js code end here /*jQuery('.id-projectpage-short-codes').html('
    For Full Width Project Template: [project_page_content product=""], For Combination Project Template & Project Widget: [project_page_complete product=""], To Use Project Template & Widget Separately: [project_page_content_left product=""]
    ' + '
    [project_page_widget product=""] 
    ');*/ diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php index 77c0f7b2..ae80c274 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php @@ -299,6 +299,47 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'add_levels', ), + // Start setup custom metabox and fields for Project Timeline + array( + 'type' => 'level3wraptop', + 'class' => 'projectmeta_none_3' + ), + array( + 'name' => __('What', 'ignitiondeck'), + 'id' => $prefix . 'product_image_3', + 'class' => $prefix . 'projectmeta_reward_title', + 'show_help' => false, + 'type' => 'text' + ), + array( + 'name' => __('When', 'ignitiondeck'), + 'id' => $prefix . 'product_title_3', + 'class' => $prefix . 'projectmeta_reward_title', + 'type' => 'text' + ), + + array( + 'type' => 'level3wrapbottom', + 'class' => 'projectmeta_none_3' + ), + + + array( + 'name' => '

    '.__('Additional Levels', 'ignitiondeck').'

    ', + 'std' => '', + 'id' => $prefix . 'level', + 'class' => $prefix . 'projectmeta_full new_levels_3', + 'show_help' => false, + 'type' => 'product_levels_3' + ), + array( + 'name' => __('Add More', 'ignitiondeck'), + 'id' => $prefix . 'addlevels', + 'class' => $prefix . 'projectmeta_full new_level_3', + 'type' => 'add_levels_3', + ), + // End setup custom metabox and fields for Project Timeline + // Start setup custom metabox and fields for why invest part array( @@ -376,7 +417,7 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'textarea_medium' ), array( - 'name' => 'Environmental Select', + 'name' => 'Financial Select', 'desc' => 'Select an option', 'id' => $prefix . 'test_select2', 'show_option_none' => true, -- GitLab From 3a97cf67632bf2fcc37040b2462d4978b428f1cf Mon Sep 17 00:00:00 2001 From: synapcs Date: Mon, 16 May 2016 20:46:14 +0530 Subject: [PATCH 02/11] Revert "adding meta box who we are installing and project timeline" This reverts commit fb2843f10117fcb9a808e2de3f9c92328f74bf33. --- .../ign_metabox/init.php | 157 ++---------------- .../ignitiondeck-postmeta.php | 43 +---- 2 files changed, 13 insertions(+), 187 deletions(-) diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php index afa04275..9a2a559e 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php @@ -136,17 +136,12 @@ class ign_cmb_Meta_Box { echo '
    '; } if ( $field['type'] == "level2wraptop" ) { - echo '

    What we’re installing 1

    '; + echo '

    What we’re installing 1

    '; } if ( $field['type'] == "level2wrapbottom" ) { echo '
    '; } - if ( $field['type'] == "level3wraptop" ) { - echo '

    What we’re installing 1

    '; - } - if ( $field['type'] == "level3wrapbottom" ) { - echo '
    '; - } + echo '
  • '; if ( $field['type'] == "title" ) { @@ -347,31 +342,31 @@ class ign_cmb_Meta_Box { case 'add_levels': echo ' '; break; - ////Project What we’re installing line html form start here case 'product_levels_2': - $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_count_2", true ); + $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_2_count", true ); $levels_html_2 = ''; //echo $meta_no_levels; if ($meta_no_levels_2 > 0 || $meta_no_levels_2 != "") { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { - $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); + if (empty($meta_order)) { $meta_order = 0; } + $meta_price = get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_price", true ); $levels_html_2 .= ''. '

    '.__('What we’re installing ', 'ignitiondeck').' '.($i).'

    '. - '
    '. - '
    '. + '
    '. + '
    '. '
    '; $levels_html_2 .= '
    '; } } else { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; $levels_html_2 .= '
    '; } @@ -380,41 +375,7 @@ class ign_cmb_Meta_Box { case 'add_levels_2': echo ' '; break; - ////Project What we’re installing line html form end here - ////Project Timeline multiple line html form start here - case 'product_levels_3': - $meta_no_levels_3 = get_post_meta( $post->ID, $name="ign_product_level_count_3", true ); - $levels_html_3 = ''; - //echo $meta_no_levels; - - if ($meta_no_levels_3 > 0 || $meta_no_levels_3 != "") { - $levels_html_3 .= '
    '; - - for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { - $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); - $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); - if (empty($meta_order)) { - $meta_order = 0; - } - $levels_html_3 .= ''. - '

    '.__('Project Timeline ', 'ignitiondeck').' '.($i).'

    '. - '
    '. - '
    '. - '
    '; - $levels_html_3 .= '
    '; - } - - } else { - $levels_html_3 .= '
    '; - $levels_html_3 .= '
    '; - } - echo apply_filters('id_product_levels_3_html_admin', $levels_html_3, $meta_no_levels_3, $post->ID); - break; - case 'add_levels_3': - echo ' '; - break; - ////Project Timeline multiple line html form End here case 'short_code': echo '
    @@ -636,69 +597,6 @@ class ign_cmb_Meta_Box { update_post_meta($post_id, 'custom_level_order', $custom_order); } - - //=================================================================== - - //=================================================================== - // Saving the Who is installing - //=================================================================== - if (isset($_POST['level-count-2'])) { - update_post_meta($post_id, "ign_product_level_count_2", $_POST['level-count-2']); - } - $j = 2; - //find a better way to declare this without using +1 - - if (isset($_POST['levels_2'])) { - $custom_order = false; - $level_order = absint($_POST['ign_projectmeta_level_order_2']); - if ($level_order > 0) { - $custom_order = true; - } - if ($_POST['levels_2'] > 1 ) { - foreach ( $_POST['levels_2'] as $level_2 ) { - update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_filename", esc_attr($meta_value=$level_2['filename'])); - update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_title", $meta_value=$level_2['title_2']); - - if ($level_2['order'] > 0) { - $custom_order = true; - } - $j++; - } - } - update_post_meta($post_id, 'custom_level_order_2', $custom_order); - } - - //=================================================================== - - //=================================================================== - // Saving the Project Timeline - //=================================================================== - if (isset($_POST['level-count-3'])) { - update_post_meta($post_id, "ign_product_level_count_3", $_POST['level-count-3']); - } - $j = 2; - //find a better way to declare this without using +1 - - if (isset($_POST['levels_3'])) { - $custom_order = false; - $level_order = absint($_POST['ign_projectmeta_level_order_3']); - if ($level_order > 0) { - $custom_order = true; - } - if ($_POST['levels_3'] > 1 ) { - foreach ( $_POST['levels_3'] as $level_3 ) { - update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_what", esc_attr($meta_value=$level_3['what'])); - update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_when", $meta_value=$level_3['when']); - - if ($level_3['order'] > 0) { - $custom_order = true; - } - $j++; - } - } - update_post_meta($post_id, 'custom_level_order_3', $custom_order); - } - //=================================================================== } } @@ -784,7 +682,6 @@ function ign_cmb_editor_footer_scripts() { tinyMCE.execCommand('mceAddEditor', false, 'ign_level'+element_number+'desc'); } }); - // Add What we’re installing js code start here jQuery('span[addlevel_2]').click(function () { evalTinyMCE(); var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')) + 1; @@ -792,24 +689,10 @@ function ign_cmb_editor_footer_scripts() { jQuery('div[levels_2]').attr('levels_2', element_number); jQuery('#levels_2').val(element_number); jQuery('div[levels_2]').append('
    ' + - '

    '+(element_number)+'

    '+ - '
    ' + + '

    '+(element_number)+'

    '+ + '
    ' + '
    '); }); - // Add What we’re installing js code end here - // Add Project Timeline js code start here - jQuery('span[addlevel_3]').click(function () { - evalTinyMCE(); - var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')) + 1; - var pre_element_number = element_number - 1; - jQuery('div[levels_3]').attr('levels_3', element_number); - jQuery('#levels_3').val(element_number); - jQuery('div[levels_3]').append('
    ' + - '

    '+(element_number)+'

    '+ - '
    ' + - '
    '); - }); - // Add Project Timeline js code end here }); jQuery('span[deletelevel]').click(function () { @@ -825,7 +708,7 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels').val(new_number); } }); - // Delete What we’re installing js code end here + jQuery('span[deletelevel_2]').click(function () { var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')); var new_number = element_number - 1; @@ -839,22 +722,6 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels_2').val(new_number); } }); - // Delete What we’re installing js code end here - // Delete Project Timeline js code end here - jQuery('span[deletelevel_3]').click(function () { - var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')); - var new_number = element_number - 1; - jQuery('div[level_3="'+element_number+'"]').remove(); - - if (element_number == 1) { - jQuery('#ign_level_3_0').val(''); - jQuery('#ign_level_30desc').html(''); - } else { - jQuery('div[levels_3]').attr('levels_3', --element_number); - jQuery('#levels_3').val(new_number); - } - }); - // Delete Project Timeline js code end here /*jQuery('.id-projectpage-short-codes').html('
    For Full Width Project Template: [project_page_content product=""], For Combination Project Template & Project Widget: [project_page_complete product=""], To Use Project Template & Widget Separately: [project_page_content_left product=""]
    ' + '
    [project_page_widget product=""] 
    ');*/ diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php index ae80c274..77c0f7b2 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php @@ -299,47 +299,6 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'add_levels', ), - // Start setup custom metabox and fields for Project Timeline - array( - 'type' => 'level3wraptop', - 'class' => 'projectmeta_none_3' - ), - array( - 'name' => __('What', 'ignitiondeck'), - 'id' => $prefix . 'product_image_3', - 'class' => $prefix . 'projectmeta_reward_title', - 'show_help' => false, - 'type' => 'text' - ), - array( - 'name' => __('When', 'ignitiondeck'), - 'id' => $prefix . 'product_title_3', - 'class' => $prefix . 'projectmeta_reward_title', - 'type' => 'text' - ), - - array( - 'type' => 'level3wrapbottom', - 'class' => 'projectmeta_none_3' - ), - - - array( - 'name' => '

    '.__('Additional Levels', 'ignitiondeck').'

    ', - 'std' => '', - 'id' => $prefix . 'level', - 'class' => $prefix . 'projectmeta_full new_levels_3', - 'show_help' => false, - 'type' => 'product_levels_3' - ), - array( - 'name' => __('Add More', 'ignitiondeck'), - 'id' => $prefix . 'addlevels', - 'class' => $prefix . 'projectmeta_full new_level_3', - 'type' => 'add_levels_3', - ), - // End setup custom metabox and fields for Project Timeline - // Start setup custom metabox and fields for why invest part array( @@ -417,7 +376,7 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'textarea_medium' ), array( - 'name' => 'Financial Select', + 'name' => 'Environmental Select', 'desc' => 'Select an option', 'id' => $prefix . 'test_select2', 'show_option_none' => true, -- GitLab From e1144a7a5ddf7f9ef6ac72555d3f6dfdc694fb28 Mon Sep 17 00:00:00 2001 From: synapcs Date: Mon, 16 May 2016 20:48:22 +0530 Subject: [PATCH 03/11] adding meta box who we are installing and project timeline, adding meta box who we are installing and project timeline, add edit delete is also working.. --- .../ign_metabox/init.php | 157 ++++++++++++++++-- .../ignitiondeck-postmeta.php | 43 ++++- 2 files changed, 187 insertions(+), 13 deletions(-) diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php index 9a2a559e..24893c8f 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php @@ -136,12 +136,17 @@ class ign_cmb_Meta_Box { echo '
    '; } if ( $field['type'] == "level2wraptop" ) { - echo '

    What we’re installing 1

    '; + echo '

    What we’re installing 1

    '; } if ( $field['type'] == "level2wrapbottom" ) { echo '
    '; } - + if ( $field['type'] == "level3wraptop" ) { + echo '

    What we’re installing 1

    '; + } + if ( $field['type'] == "level3wrapbottom" ) { + echo '
    '; + } echo '
  • '; if ( $field['type'] == "title" ) { @@ -342,31 +347,31 @@ class ign_cmb_Meta_Box { case 'add_levels': echo ' '; break; + ////Project What we’re installing line html form start here case 'product_levels_2': - $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_2_count", true ); + $meta_no_levels_2 = get_post_meta( $post->ID, $name="ign_product_level_count_2", true ); $levels_html_2 = ''; //echo $meta_no_levels; if ($meta_no_levels_2 > 0 || $meta_no_levels_2 != "") { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { + $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); - if (empty($meta_order)) { $meta_order = 0; } - $meta_price = get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_price", true ); $levels_html_2 .= ''. '

    '.__('What we’re installing ', 'ignitiondeck').' '.($i).'

    '. - '
    '. - '
    '. + '
    '. + '
    '. '
    '; $levels_html_2 .= '
    '; } } else { - $levels_html_2 .= '
    '; + $levels_html_2 .= '
    '; $levels_html_2 .= '
    '; } @@ -375,7 +380,41 @@ class ign_cmb_Meta_Box { case 'add_levels_2': echo ' '; break; + ////Project What we’re installing line html form end here + ////Project Timeline multiple line html form start here + case 'product_levels_3': + $meta_no_levels_3 = get_post_meta( $post->ID, $name="ign_product_level_count_3", true ); + $levels_html_3 = ''; + //echo $meta_no_levels; + + if ($meta_no_levels_3 > 0 || $meta_no_levels_3 != "") { + $levels_html_3 .= '
    '; + + for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { + $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); + $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); + if (empty($meta_order)) { + $meta_order = 0; + } + $levels_html_3 .= ''. + '

    '.__('Project Timeline ', 'ignitiondeck').' '.($i).'

    '. + '
    '. + '
    '. + '
    '; + $levels_html_3 .= '
    '; + } + + } else { + $levels_html_3 .= '
    '; + $levels_html_3 .= '
    '; + } + echo apply_filters('id_product_levels_3_html_admin', $levels_html_3, $meta_no_levels_3, $post->ID); + break; + case 'add_levels_3': + echo ' '; + break; + ////Project Timeline multiple line html form End here case 'short_code': echo '
    @@ -597,6 +636,69 @@ class ign_cmb_Meta_Box { update_post_meta($post_id, 'custom_level_order', $custom_order); } + + //=================================================================== + + //=================================================================== + // Saving the Who is installing + //=================================================================== + if (isset($_POST['level-count-2'])) { + update_post_meta($post_id, "ign_product_level_count_2", $_POST['level-count-2']); + } + $j = 2; + //find a better way to declare this without using +1 + + if (isset($_POST['levels_2'])) { + $custom_order = false; + $level_order = absint($_POST['ign_projectmeta_level_order_2']); + if ($level_order > 0) { + $custom_order = true; + } + if ($_POST['levels_2'] > 1 ) { + foreach ( $_POST['levels_2'] as $level_2 ) { + update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_filename", esc_attr($meta_value=$level_2['filename'])); + update_post_meta($post_id, $meta_key="ign_product_level_2_".$j."_title", $meta_value=$level_2['title_2']); + + if ($level_2['order'] > 0) { + $custom_order = true; + } + $j++; + } + } + update_post_meta($post_id, 'custom_level_order_2', $custom_order); + } + + //=================================================================== + + //=================================================================== + // Saving the Project Timeline + //=================================================================== + if (isset($_POST['level-count-3'])) { + update_post_meta($post_id, "ign_product_level_count_3", $_POST['level-count-3']); + } + $j = 2; + //find a better way to declare this without using +1 + + if (isset($_POST['levels_3'])) { + $custom_order = false; + $level_order = absint($_POST['ign_projectmeta_level_order_3']); + if ($level_order > 0) { + $custom_order = true; + } + if ($_POST['levels_3'] > 1 ) { + foreach ( $_POST['levels_3'] as $level_3 ) { + update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_what", esc_attr($meta_value=$level_3['what'])); + update_post_meta($post_id, $meta_key="ign_product_level_3_".$j."_when", $meta_value=$level_3['when']); + + if ($level_3['order'] > 0) { + $custom_order = true; + } + $j++; + } + } + update_post_meta($post_id, 'custom_level_order_3', $custom_order); + } + //=================================================================== } } @@ -682,6 +784,7 @@ function ign_cmb_editor_footer_scripts() { tinyMCE.execCommand('mceAddEditor', false, 'ign_level'+element_number+'desc'); } }); + // Add What we’re installing js code start here jQuery('span[addlevel_2]').click(function () { evalTinyMCE(); var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')) + 1; @@ -689,10 +792,24 @@ function ign_cmb_editor_footer_scripts() { jQuery('div[levels_2]').attr('levels_2', element_number); jQuery('#levels_2').val(element_number); jQuery('div[levels_2]').append('
    ' + - '

    '+(element_number)+'

    '+ - '
    ' + + '

    '+(element_number)+'

    '+ + '
    ' + '
    '); }); + // Add What we’re installing js code end here + // Add Project Timeline js code start here + jQuery('span[addlevel_3]').click(function () { + evalTinyMCE(); + var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')) + 1; + var pre_element_number = element_number - 1; + jQuery('div[levels_3]').attr('levels_3', element_number); + jQuery('#levels_3').val(element_number); + jQuery('div[levels_3]').append('
    ' + + '

    '+(element_number)+'

    '+ + '
    ' + + '
    '); + }); + // Add Project Timeline js code end here }); jQuery('span[deletelevel]').click(function () { @@ -708,7 +825,7 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels').val(new_number); } }); - + // Delete What we’re installing js code end here jQuery('span[deletelevel_2]').click(function () { var element_number = parseInt(jQuery('div[levels_2]').attr('levels_2')); var new_number = element_number - 1; @@ -722,6 +839,22 @@ function ign_cmb_editor_footer_scripts() { jQuery('#levels_2').val(new_number); } }); + // Delete What we’re installing js code end here. + // Delete Project Timeline js code end here + jQuery('span[deletelevel_3]').click(function () { + var element_number = parseInt(jQuery('div[levels_3]').attr('levels_3')); + var new_number = element_number - 1; + jQuery('div[level_3="'+element_number+'"]').remove(); + + if (element_number == 1) { + jQuery('#ign_level_3_0').val(''); + jQuery('#ign_level_30desc').html(''); + } else { + jQuery('div[levels_3]').attr('levels_3', --element_number); + jQuery('#levels_3').val(new_number); + } + }); + // Delete Project Timeline js code end here /*jQuery('.id-projectpage-short-codes').html('
    For Full Width Project Template: [project_page_content product=""], For Combination Project Template & Project Widget: [project_page_complete product=""], To Use Project Template & Widget Separately: [project_page_content_left product=""]
    ' + '
    [project_page_widget product=""] 
    ');*/ diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php index 77c0f7b2..b2956102 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php @@ -299,6 +299,47 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'add_levels', ), + // Start setup custom metabox and fields for Project Timeline + array( + 'type' => 'level3wraptop', + 'class' => 'projectmeta_none_3' + ), + array( + 'name' => __('What', 'ignitiondeck'), + 'id' => $prefix . 'product_image_3', + 'class' => $prefix . 'projectmeta_reward_title', + 'show_help' => false, + 'type' => 'text' + ), + array( + 'name' => __('When', 'ignitiondeck'), + 'id' => $prefix . 'product_title_3', + 'class' => $prefix . 'projectmeta_reward_title', + 'type' => 'text' + ), + + array( + 'type' => 'level3wrapbottom', + 'class' => 'projectmeta_none_3' + ), + + + array( + 'name' => '

    '.__('Additional Levels', 'ignitiondeck').'

    ', + 'std' => '', + 'id' => $prefix . 'level', + 'class' => $prefix . 'projectmeta_full new_levels_3', + 'show_help' => false, + 'type' => 'product_levels_3' + ), + array( + 'name' => __('Add More', 'ignitiondeck'), + 'id' => $prefix . 'addlevels', + 'class' => $prefix . 'projectmeta_full new_level_3', + 'type' => 'add_levels_3', + ), + // End setup custom metabox and fields for Project Timeline. + // Start setup custom metabox and fields for why invest part array( @@ -376,7 +417,7 @@ function ign_meta_boxes(array $meta_boxes) { 'type' => 'textarea_medium' ), array( - 'name' => 'Environmental Select', + 'name' => 'Financial Select', 'desc' => 'Select an option', 'id' => $prefix . 'test_select2', 'show_option_none' => true, -- GitLab From 5187d67b950a8e58a7a5a5aae45cb5a469174d5b Mon Sep 17 00:00:00 2001 From: synapcs Date: Tue, 17 May 2016 12:50:38 +0530 Subject: [PATCH 04/11] some text fixing some text fixing --- .../plugins/ignitiondeck-crowdfunding/ign_metabox/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php index 24893c8f..f01fabdd 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ign_metabox/init.php @@ -142,7 +142,7 @@ class ign_cmb_Meta_Box { echo '
    '; } if ( $field['type'] == "level3wraptop" ) { - echo '

    What we’re installing 1

    '; + echo '

    Project Timeline 1

    '; } if ( $field['type'] == "level3wrapbottom" ) { echo '
    '; -- GitLab From fa7f7530d5fe250bedff9f9b15d7d0609f05f923 Mon Sep 17 00:00:00 2001 From: synapcs Date: Tue, 17 May 2016 13:37:10 +0530 Subject: [PATCH 05/11] adding the code for making slider dynamic and project page title dynamic adding the code for making slider dynamic and project page title dynamic --- .../themes/backer/single-ignition_product.php | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 6a656c02..60eebb21 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -11,7 +11,8 @@ ID, 'ign_project_id', true ); - //$meta = the_meta(); + $project_name = get_post_meta( $post->ID, 'ign_product_name', true ); + //echo $meta = the_meta(); $author = get_user_by( 'id', $post->post_author ); $updates = html_entity_decode( stripslashes( apply_filters( 'idcf_updates_text', get_post_meta( $post->ID, 'ign_updates', true ) ) ) ); $faqs = html_entity_decode( stripslashes( get_post_meta( $post->ID, 'ign_faqs', true ) ) ); @@ -31,9 +32,19 @@
    @@ -43,7 +54,11 @@
    -

    Church of God Saint Michaels

    +

    + + + +

    Brook lyn, NY

    New Mt. Zion Baptist Church is not heated adequately in the winter due to an cient boiler. This project will resolve these heating issues by upgrading the boiler to a Weil McLain Commercial Boiler.

      -- GitLab From 69d4418a196a97237ea6c2fb73a1e1ecf34991fe Mon Sep 17 00:00:00 2001 From: synapcs Date: Tue, 17 May 2016 16:05:20 +0530 Subject: [PATCH 06/11] adding class for editor adding class for editor --- .../ignitiondeck-crowdfunding/ignitiondeck-postmeta.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php index b2956102..3cbcea00 100644 --- a/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php +++ b/wordpress/wp-content/plugins/ignitiondeck-crowdfunding/ignitiondeck-postmeta.php @@ -43,9 +43,9 @@ function ign_meta_boxes(array $meta_boxes) { 'name' => __('Project Short Description', 'ignitiondeck'), 'desc' => __('Used in the grid, widget areas, and on the purchase form', 'ignitiondeck'), 'id' => $prefix . 'project_description', - 'class' => $prefix . 'projectmeta_full', + 'class' => $prefix . 'projectmeta_full tinymce', 'show_help' => true, - 'type' => 'textarea_small' + 'type' => 'textarea_medium' ), array( 'name' => __('Project Long Description', 'ignitiondeck'), -- GitLab From a5c812f4b893e9ef7136f5846393f601f2096cba Mon Sep 17 00:00:00 2001 From: synapcs Date: Tue, 17 May 2016 16:28:15 +0530 Subject: [PATCH 07/11] Adding css after comment dynamic Adding css after comment dynamic --- wordpress/wp-content/themes/backer/style1.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wordpress/wp-content/themes/backer/style1.css b/wordpress/wp-content/themes/backer/style1.css index dcf3c2bc..59634d6c 100644 --- a/wordpress/wp-content/themes/backer/style1.css +++ b/wordpress/wp-content/themes/backer/style1.css @@ -126,6 +126,14 @@ body{ margin:0; padding:0; font-size:100%; color:#898989; font-size:15px; font-f .krown-pie .value{ font-size:15px !important; font-weight:normal !important; color:#666 !important; letter-spacing:normal !important; line-height:normal !important; top:20px !important;} .krown-pie .pie-canvas{ width:120px !important; height:122px !important; left:-5px !important; top:-5px !important;} .krown-pie .holder sup{ display:inline-block !important; margin:4px 0 0 4px; font-size:15px !important; font-weight:normal;} +/** Start adding css for comments **/ +#comment .comment-avatar img{border-radius:100% !important;} +.comment-content .comment-title{float:left;} +.comment-content .comment-meta span {float:left; margin:6px 0 0 10px;} +.comment-content .comment-reply-link{display:none;} +.comment-content .comment-text{margin-top:0;} +#comment .comment-avatar{width:60px; height:60px;} +/** End adding css for comments **/ @media screen and (max-width:1024px){ .invest .invest-img{ width:63%;} -- GitLab From 032bfdf39ce6374546e36ec7749f9b1a308617e9 Mon Sep 17 00:00:00 2001 From: synapcs Date: Tue, 17 May 2016 18:39:40 +0530 Subject: [PATCH 08/11] i have make some field dynamic. and added the comment for code . i have make some field dynamic. and added the comment for code . --- .../themes/backer/single-ignition_product.php | 118 +++++++++--------- 1 file changed, 59 insertions(+), 59 deletions(-) diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 60eebb21..fb116e5d 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -12,7 +12,11 @@ $project_id = get_post_meta( $post->ID, 'ign_project_id', true ); $project_name = get_post_meta( $post->ID, 'ign_product_name', true ); - //echo $meta = the_meta(); + $product_location = get_post_meta( $post->ID, 'ign_product_location', true ); + $project_description = get_post_meta( $post->ID, 'ign_project_description', true ); + $about_project = get_post_meta( $post->ID, 'ign_about_project', true ); + $percent = get_post_meta( $post->ID, 'ign_percent_raised', true ) != '' ? get_post_meta( $post->ID, 'ign_percent_raised', true ) : 0; + echo $meta = the_meta(); $author = get_user_by( 'id', $post->post_author ); $updates = html_entity_decode( stripslashes( apply_filters( 'idcf_updates_text', get_post_meta( $post->ID, 'ign_updates', true ) ) ) ); $faqs = html_entity_decode( stripslashes( get_post_meta( $post->ID, 'ign_faqs', true ) ) ); @@ -59,8 +63,15 @@ -

      Brook lyn, NY

      -

      New Mt. Zion Baptist Church is not heated adequately in the winter due to an cient boiler. This project will resolve these heating issues by upgrading the boiler to a Weil McLain Commercial Boiler.

      + + +

      + + + +

      + +
      • ABOUT
      • WHY INVEST?
      • @@ -70,7 +81,11 @@

        About this project

        -

        New Mt. Zion Baptist Church is not heated adequately in the winter due to an cient boiler. This project will resolve these heating issues by upgrading the boiler to a Weil McLain Commercial Boiler. An energy management system will be installed to increase the energy efficiency of the heating and cooling systems.

        + + +

        + +
        @@ -111,6 +126,10 @@
          + + + +
        • April 2016 Funds collected
        • May 2016 LED lighting installed
        • August 2016 Insulation and new boiler installed
        • @@ -172,57 +191,21 @@
          -

          Comments

          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
            -
          • Todd Singleton
          • -
          • March 28th, 2016
          • -
          -

          I am proud to be a supporter of this cause! Good luck to everyone involved and let me know how else I can help!

          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
            -
          • Todd Singleton
          • -
          • March 28th, 2016
          • -
          -

          I am proud to be a supporter of this cause! Good luck to everyone involved and let me know how else I can help!

          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
          -
            -
          • Todd Singleton
          • -
          • March 28th, 2016
          • -
          -

          I am proud to be a supporter of this cause! Good luck to everyone involved and let me know how else I can help!

          -
          -
          -
          +
          + + + + +
          + +
          + + + + + +
    @@ -231,16 +214,33 @@ @@ -145,7 +149,7 @@

    Why Invest?

    -

    Your contribution to this project will signicantly impact the residents of this building as well as the greater New York, NY community.

    +

    @@ -155,30 +159,30 @@

    Social -

    Financial Impact

    -

    The nancial impact rates how quickly and effectively the project will return the initial investment to investors.

    +

    Social Impact

    +

    Health -

    Financial Impact

    -

    The nancial impact rates how quickly and effectively the project will return the initial investment to investors.

    +

    Health Impact

    +

    Environmental -

    Financial Impact

    -

    The nancial impact rates how quickly and effectively the project will return the initial investment to investors.

    +

    Environmental Impact

    +

    Financial

    Financial Impact

    -

    The nancial impact rates how quickly and effectively the project will return the initial investment to investors.

    +

    -- GitLab From 79e2181d6ef302da774bae9ff7981ce819ba83f6 Mon Sep 17 00:00:00 2001 From: synapcs Date: Wed, 18 May 2016 17:59:54 +0530 Subject: [PATCH 10/11] front end code added for what we are installing and project timeline front end code added for what we are installing and project timeline --- .../themes/backer/single-ignition_product.php | 56 ++++++++++++++----- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 52ff4ac5..41ae9118 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -14,6 +14,9 @@ $project_name = get_post_meta( $post->ID, 'ign_product_name', true ); $product_location = get_post_meta( $post->ID, 'ign_product_location', true ); $project_description = get_post_meta( $post->ID, 'ign_project_description', true ); + $project_long_description = get_post_meta( $post->ID, 'ign_project_long_description', true ); + $ign_product_level_count_2 = get_post_meta( $post->ID, 'ign_product_level_count_2', true ); + $about_project = get_post_meta( $post->ID, 'ign_about_project', true ); $who_is_installing = get_post_meta( $post->ID, 'ign_who_is_installing', true ); $why_invest = get_post_meta( $post->ID, 'ign_why_invest', true ); @@ -23,7 +26,7 @@ $Social = get_post_meta( $post->ID, 'ign_Social', true ); $percent = get_post_meta( $post->ID, 'ign_percent_raised', true ) != '' ? get_post_meta( $post->ID, 'ign_percent_raised', true ) : 0; - //echo $meta = the_meta(); + //echo $meta = the_meta(); $author = get_user_by( 'id', $post->post_author ); $updates = html_entity_decode( stripslashes( apply_filters( 'idcf_updates_text', get_post_meta( $post->ID, 'ign_updates', true ) ) ) ); $faqs = html_entity_decode( stripslashes( get_post_meta( $post->ID, 'ign_faqs', true ) ) ); @@ -75,9 +78,9 @@

    - -

    - + +

    +
    • ABOUT
    • @@ -102,9 +105,24 @@
        -
      • LED Lighting
      • -
      • New Boiler
      • -
      • Insulation
      • + +
      • ID, 'ign_product_title_2', true ); ?>
      • + + ID, $name="ign_product_level_count_2", true ); + + for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { + + $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); + $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); + ?> +
      • + + + +
      @@ -130,14 +148,24 @@
        + +
      • ID, 'ign_product_title_3', true ); ?>ID, 'ign_product_image_3', true ); ?>
      • + ID, $name="ign_product_level_count_3", true ); + + for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { + + $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); + $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); + ?> - - -
      • April 2016 Funds collected
      • -
      • May 2016 LED lighting installed
      • -
      • August 2016 Insulation and new boiler installed
      • -
      • September 2016 Project complete
      • +
      • + + +
      @@ -249,6 +277,8 @@
    + +
    -- GitLab From 471c911a048cb8b4e800b4685219c9b15e5f8da9 Mon Sep 17 00:00:00 2001 From: Steven Walker Date: Wed, 18 May 2016 10:48:06 -0400 Subject: [PATCH 11/11] fixing indenting on project page --- .../themes/backer/single-ignition_product.php | 173 +++++++++--------- 1 file changed, 85 insertions(+), 88 deletions(-) diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 52897bf8..159edc3a 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -69,18 +69,18 @@

    - - - -

    + + + + - +

    - + - +

    - +
    +

    About this project

    - +

    - +
    +
    @@ -106,22 +108,23 @@
      - -
    • ID, 'ign_product_title_2', true ); ?>
    • + +
    • + ID, 'ign_product_title_2', true ); ?> +
    • - ID, $name="ign_product_level_count_2", true ); + ID, $name="ign_product_level_count_2", true ); - for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { + for ($i=2 ; $i <= $meta_no_levels_2 ; $i++) { - $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); - $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); - ?> -
    • + $filename = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_filename", true )); + $meta_title = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_2_".($i)."_title", true )); + ?> +
    • - +
    @@ -135,10 +138,8 @@

    Who is installing?

    -
    -
    @@ -152,24 +153,27 @@
      - -
    • ID, 'ign_product_title_3', true ); ?>ID, 'ign_product_image_3', true ); ?>
    • + +
    • ID, 'ign_product_title_3', true ); ?>ID, 'ign_product_image_3', true ); ?> +
    • - ID, $name="ign_product_level_count_3", true ); - - for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { + ID, $name="ign_product_level_count_3", true ); + + for ($i=2 ; $i <= $meta_no_levels_3 ; $i++) { - $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); - $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); - ?> + $what = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_what", true )); + $when = stripslashes(get_post_meta( $post->ID, $name="ign_product_level_3_".($i)."_when", true )); + ?> -
    • - +
    • + +
    • + + - +
    @@ -244,61 +248,54 @@
    -
    - - -
    - + \ No newline at end of file -- GitLab