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 9a2a559e4d6a09dc2b30a4f44a48264c1490ee6a..f01fabdd0493206bedf2944b076b2f90db53739d 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 '

Project Timeline 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 77c0f7b2540801d52995f512ebba1fc0f9ab01b8..3cbcea00a926da8cc9e35da3127cc73c63cf5fa0 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'), @@ -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, diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 7b1618315b44f13844df8047f4ecfa3d27dc82e5..159edc3affad5861e660a948ef5d7c4184d49cfe 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -11,7 +11,22 @@ ID, 'ign_project_id', true ); - //$meta = the_meta(); + $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 ); + $health = get_post_meta( $post->ID, 'ign_health', true ); + $Environmental = get_post_meta( $post->ID, 'ign_Environmental', true ); + $Financial = get_post_meta( $post->ID, 'ign_Financial', true ); + $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(); $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 +46,19 @@
    @@ -43,20 +68,38 @@
    -

    Church of God Saint Michaels

    -

    Brooklyn, 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 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.

    + +

    About this project

    + + +

    + +
    +
    @@ -65,9 +108,25 @@
      -
    • 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 )); + ?> +
    • + + + +
    @@ -79,11 +138,8 @@

    Who is installing?

    -
    -

    Bill’s Heating

    -

    3234 Flushing Ave.

    -

    Brooklyn, NY 11223

    -

    Visit website

    +
    +
    @@ -96,10 +152,28 @@
      -
    • April 2016

      Funds collected

    • -
    • May 2016

      >LED lighting installed

    • -
    • August 2016

      Insulation and new boiler installed

    • -
    • September 2016

      Project complete

    • + + +
    • 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 )); + ?> + +
    • + +
    • + + + +
    @@ -112,7 +186,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.

    +

    @@ -122,30 +196,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.

    +

    @@ -158,91 +232,70 @@
    +

    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!

    +
    +
    +
    +

    How does this work?

    +

    Your contribution make this bulding energy efficient, saving money and providing a positive social impact to the community.

    +
    - -
    -
    - -
    -
    - + \ No newline at end of file diff --git a/wordpress/wp-content/themes/backer/style1.css b/wordpress/wp-content/themes/backer/style1.css index d663a8ea9904a9cb32e23baed5e1b310209c5cfa..ee270295c2b9759c15a8134cd8417502010f7790 100644 --- a/wordpress/wp-content/themes/backer/style1.css +++ b/wordpress/wp-content/themes/backer/style1.css @@ -134,6 +134,14 @@ section #banner { .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%;}