PATH:
home
/
lab2454c
/
invest.westernclear.com
/
wp-content
/
plugins
/
portfolio
<?php /* Plugin Name: Portfolio Description: Portfolio Pages. Version: 4.27 Author: 3gmediasolution Text Domain: ure Domain Path: /lang/ */ /* Copyright 2021 */ add_action('init', 'what_are_our_investments'); function what_are_our_investments() { $labels = array( 'name' => _x('Portfolio', 'post type general name'), 'singular_name' => _x('investments', 'post type singular name'), 'add_new' => _x('Add New', 'investments item'), 'add_new_item' => __('Add New investments Item'), 'edit_item' => __('Edit investments Item'), 'new_item' => __('New investments Item'), 'view_item' => __('View investments Item'), 'search_items' => __('Search investments'), 'not_found' => __('Nothing found'), 'not_found_in_trash' => __('Nothing found in Trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, //'menu_icon' => get_stylesheet_directory_uri() . '/article16.png', 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','thumbnail','custom-fields') ); register_post_type( 'investments' , $args ); } add_action( 'init', 'our_investments_create_taxonomies', 0 ); function our_investments_create_taxonomies() { // Project Categories register_taxonomy('investments-cat',array('investments'),array( 'hierarchical' => true, 'label' => 'Categories', 'singular_name' => 'investments_category', 'show_ui' => true, 'query_var' => true, 'rewrite' => array('slug' => 'investments-cat' ) )); register_taxonomy( 'our_investments_tag', 'investments', array( 'hierarchical' => false, 'label' => __( 'Tags', CURRENT_THEME ), 'singular_name' => __( 'Tag', CURRENT_THEME ), 'rewrite' => true, 'query_var' => true ) ); } /*---------------what_are_other_asking post type end---------------*/ add_filter( 'comments_open', 'my_comments_open', 10, 2 ); function my_comments_open( $open, $post_id ) { $post = get_post( $post_id ); if ( 'investments' == $post->post_type ) $open = true; return $open; } add_shortcode('page_redirection', 'page_redirection'); function page_redirection(){ ob_start(); page_redirection_code(); return ob_get_clean(); } function page_redirection_code() { if ( is_user_logged_in() ) { $current_user_id = get_current_user_id(); $user_meta=get_userdata($current_user_id); echo $user_roles = $user_meta->roles; echo $_COOKIE["get_permalink"]; if ($_COOKIE["get_permalink"] != "") { wp_redirect($_COOKIE["get_permalink"]); }else{ $site_url = site_url()."/dashboard"; wp_redirect($site_url); } } } function rm_register_meta_box() { add_meta_box( 'rm-meta-box-id', esc_html__( 'Investment', 'text-domain' ), 'rm_meta_box_callback', 'investments', 'advanced', 'high' ); } add_action( 'add_meta_boxes', 'rm_register_meta_box'); //Add field function rm_meta_box_callback( $meta_id ) { global $post; global $wpdb; $pid = $post->ID; $investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $totalinvestment = $investmentdata->total_investment/100; $totalinvestment_round = round($totalinvestment); $total_investment = number_format($totalinvestment_round,2,".",","); $outline = '<b>Total Investment:- </b>'; $outline .= '<b>'.$total_investment.'</b>'; echo $outline; } function add_admin_column($column_title, $post_type, $cb){ // Column Header add_filter( 'manage_' . $post_type . '_posts_columns', function($columns) use ($column_title) { $columns[ sanitize_title($column_title) ] = $column_title; return $columns; } ); // Column Content add_action( 'manage_' . $post_type . '_posts_custom_column' , function( $column, $post_id ) use ($column_title, $cb) { if(sanitize_title($column_title) === $column){ $cb($post_id); } }, 10, 2 ); } add_admin_column(__('Total Investment'), 'investments', function($post_id){ global $post; global $wpdb; $pid = $post_id; $investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $totalinvestment = $investmentdata->total_investment/100; $totalinvestment_round = round($totalinvestment); $total_investment = number_format($totalinvestment_round,2,".",","); echo $total_investment; }); add_admin_column(__('Total Investors'), 'investments', function($post_id){ global $post; global $wpdb; $pid = $post_id; $investors_data = $wpdb->get_row("SELECT COUNT(DISTINCT `cust_id`) AS investors from transaction WHERE `item_number` = '".$pid."'"); $investors_count = $investors_data->investors; echo $investors_count; }); function count_style($input){ $input = number_format($input); $input_count = substr_count($input, ','); if($input_count != '0'){ if($input_count == '1'){ return substr($input, 0, -4).'k'; } else if($input_count == '2'){ return substr($input, 0, -8).'m'; } else if($input_count == '3'){ return substr($input, 0, -12).'b'; } else { return; } } else { return $input; } } function generateRandomString($length = 10) { return substr(str_shuffle(str_repeat($x='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', ceil($length/strlen($x)) )),1,$length); } add_shortcode('cr_portfolio', 'portfolio_cust'); function portfolio_cust(){ ob_start(); portfolio_cust_show(); return ob_get_clean(); } function portfolio_cust_show() { global $wpdb; ?> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap.min.css"> <div class="portfolio__list"> <div class="portfolio__list__inner"> <div class="container"> <div class="row"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'investments', 'posts_per_page' => 28, 'paged'=> $paged, 'order' => 'DESC' ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); $pid = get_the_ID(); $investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $totalinvestment = $investmentdata->total_investment/100; $totalinvestment_round = round($totalinvestment); $investors_data = $wpdb->get_row("SELECT COUNT(DISTINCT `cust_id`) AS investors from transaction WHERE `item_number` = '".$pid."'"); $investors_count = $investors_data->investors; $img_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' ); ?> <div class="col-xl-3 clo-lg-6 col-md-6 col-sm-6 mr__top"> <div class="portfolio__card"> <a href="<?php the_permalink();?>"> <?php $term_list = get_the_terms($post->ID, 'investments-cat'); foreach ( $term_list as $term ) { ?> <div class="category__tag"><?php echo $term->name; ?></div> <?php } ?> <div class="cover__banner"><img src="<?php echo $img_url; ?>" alt="" /></div> <div class="portfolio__card__content"> <h3><?php echo get_field('title',$post->ID); ?></h3> <div class="progress__bar success__bar"></div> <p> <?php echo substr(get_field('subtitle',$post->ID),0,20)."..."; ?></p> <div class="investment__detail"> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo count_style($totalinvestment_round); ?></h5> <h6>Raised</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo count_style($investors_count); ?></h5> <h6>Investors</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo get_field('min_investment',$post->ID); ?></h5> <h6>Min Invest</h6> </div> </div> </div> </div> </a> </div> </div> <?php endwhile; $big = 999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $query->max_num_pages ) ); endif; wp_reset_postdata(); ?> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script> <?php } add_shortcode('single_portfolio', 'portfolio_single'); function portfolio_single(){ ob_start(); portfolio_single_show(); return ob_get_clean(); } function portfolio_single_show() { $site_url = site_url()."/login"; $get_permalink = get_permalink(); setcookie("get_permalink", $get_permalink, time() + (86400 * 30), "/"); global $post; global $wpdb; $pid = $post->ID; $investors_data = $wpdb->get_row("SELECT COUNT(DISTINCT `cust_id`) AS investors from transaction WHERE `item_number` = '".$pid."'"); $investors_count = $investors_data->investors; $investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $totalinvestment = $investmentdata->total_investment/100; $totalinvestment_round = round($totalinvestment); $total_investment = number_format($totalinvestment_round,2,".",","); $img_url = wp_get_attachment_url( get_post_thumbnail_id($post->ID), 'thumbnail' ); ?> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap-select.min.css"> <link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <style type="text/css"> h1.entry-title { display: none !important; } </style> <div class="portfolio__detail__top__wrapp"> <div class="container"> <div class="row"> <div class="col-xl-8 col-lg-8 col-md-8"> <div class="portfolio__video__imege"> <div class="display__brand"> <div class="image__box"><img src="<?php the_field('logo',$post->ID); ?>" alt="" /></div> <div class="brand__detail"> <h3><?php echo get_field('title',$post->ID); ?></h3> <h4><?php echo get_field('subtitle',$post->ID); ?></h4> </div> </div> <div class="image__box"> <img src="<?php echo $img_url; ?>" alt="" /> <a href="#" data-toggle="modal" data-bs-toggle="modal" data-bs-target="#exampleModal"> <i class="ico__box"><img src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/images/play.svg" alt="" /></i> </a> </div> <div class="modal fade modal__main" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal__dialog"> <div class="modal-content modal__content"> <div class="modal-header modal__header"> <button type="button" class="btn-close close__btn" data-bs-dismiss="modal" aria-label="Close"><img src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/images/cancel.svg" alt=""></button> </div> <div class="modal-body modal__body"> <iframe width="100%" height="500" src="<?php echo get_field('media_link',$post->ID); ?>" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div> </div> </div> </div> <div class="portfolio__categories"> <div class="site__location"> <a href="<?php echo get_field('website_link',$post->ID); ?>" target="_blank"><i class="ico__box"><img src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/images/link.svg" alt="" /></i>Website</a> <p><i class="ico__box"><img src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/images/location-pin.svg" alt="" /></i><?php echo get_field('place_name',$post->ID); ?></p> </div> <?php $term_list = get_the_terms($post->ID, 'investments-cat'); foreach ( $term_list as $term ) { ?> <div class="category"><?php echo $term->name; ?></div> <?php } ?> </div> <p> <p><?php echo get_field('description',$post->ID); ?></p> </p> </div> </div> <div class="col-xl-4 col-lg-4 col-md-8"> <div class="investment__detail"> <div class="raised__amount"> <h2>$<?php echo $total_investment; ?></h2> <div class="raised" data-toggle="tooltip" title="" data-original-title="IntriEnergy is raising up to $1.07M with a minimum goal of $10K">raised</div> <div class="i__container"><i class="ico__box" data-toggle="tooltip" title="" data-original-title="IntriEnergy is raising up to $1.07M with a minimum goal of $10K"> <img src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/images/info.svg" alt="" /></i> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo $investors_count; ?></h5> <h6>Investors</h6> </div> <div class="offering__stats"> <h5><?php echo get_field('valuation',$post->ID); ?></h5> <h6>Valuation</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo get_field('price_per_share',$post->ID); ?></h5> <h6>Price per Share </h6> </div> <div class="offering__stats"> <h5><?php echo get_field('min_investment',$post->ID); ?></h5> <h6> Min. Investment </h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo get_field('shares_offered',$post->ID); ?></h5> <h6>Shares Offered</h6> </div> <div class="offering__stats"> <h5><?php echo get_field('offering_type',$post->ID); ?></h5> <h6>Offering Type</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo get_field('offering_max',$post->ID); ?></h5> <h6>Offering Max</h6> </div> <div class="offering__stats"> <h5><?php echo get_field('offering',$post->ID); ?></h5> <h6>Offering</h6> </div> </div> <a href="<?php echo site_url(); ?>/payment/?pid=<?php echo $post->ID; ?>">invest now</a> </div> </div> </div> </div> </div> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.bundle.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/jquery.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap-select.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/popper.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/gijgo.min.js" type="text/javascript"></script> <script> $('#datepicker').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-1').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-2').datepicker({ uiLibrary: 'bootstrap4' }); $(document).ready(function() { $('#exampleModal').on('hidden.bs.modal', function() { var $this = $(this).find('iframe'), tempSrc = $this.attr('src'); $this.attr('src', ""); $this.attr('src', tempSrc); }); }); </script> <?php } add_shortcode('payment_form', 'single_payment'); function single_payment(){ ob_start(); payment_form(); return ob_get_clean(); } function payment_form() { global $wpdb; $site_url = site_url()."/login"; if ( ! is_user_logged_in() ) { wp_redirect($site_url); } if(isset($_GET['pid'])) { $pid = $_GET['pid']; } $product_name = get_field('title',$pid); $min_investment = get_field('min_investment',$pid); $price_per_share = get_field('price_per_share',$post->ID); $product_subtitle = get_field('subtitle',$pid); $product_logo = get_field('logo',$pid); $investment_avg_data = $wpdb->get_row("SELECT AVG(`paid_amount`) AS avg_investment FROM transaction WHERE `item_number` = '".$pid."'"); $avginvestment = $investment_avg_data->avg_investment/100; $avg_investment_round = round($avginvestment); $avg_investment = number_format($avg_investment_round,2,".",","); // $investment_data = $wpdb->get_row("SELECT MAX(`paid_amount`) AS largest_investment FROM transaction WHERE `item_number` = '".$pid."'"); $investment_data = $wpdb->get_row("SELECT `paid_amount` FROM `transaction` WHERE `item_number`= '".$pid."' ORDER BY `item_number` DESC LIMIT 1"); $largestinvestment = $investment_data->paid_amount/100; $largest_investment_round = round($largestinvestment); $largest_investment = number_format($largest_investment_round,2,".",","); ?> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap-select.min.css"> <link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <style type="text/css"> h1.entry-title { display: none !important; } </style> <div class="investment__wrapp"> <div class="container"> <div class="invest__fild__inner"> <div class="display__brand"> <div class="image__box"><img src="<?php echo $product_logo; ?>" alt=""></div> <div class="brand__detail"> <h3><?php echo $product_name; ?></h3> <h4><?php echo $product_subtitle; ?></h4> </div> </div> <form action="<?php echo site_url(); ?>/payment-process/" method="POST" id="paymentForm" enctype="multipart/form-data"> <h3>1. Investment Amount</h3> <div class="button__wrapp"> <p><span id="mini"><?php echo $min_investment; ?></span>Minimum Investment</p> <p><span id="avg">$<?php echo $avg_investment; ?></span>Average Investment</p> <p><span id="lrg">$<?php echo $largest_investment; ?></span>Largest Investment</p> </div> <div class="form-group form__group"> <label>Amount</label> <div class="input__group"> <i class="ico__box">$</i> <input type="text" name="total_amount" id="total_amount" class="form-control form__control" placeholder="480.00 minimum"> </div> <p>Your investment amount will be rounded up to be a multiple of the share price.</p> </div> <div class="form-group form__group"> <label>Annual Income</label> <div class="input__group"> <i class="ico__box">$</i> <input type="text" name="annual_income" id="annual_income" class="form-control form__control" placeholder="Annual Income"> </div> </div> <div class="form-group form__group"> <label>Net Worth</label> <div class="input__group"> <i class="ico__box">$</i> <input type="text" name="net_worth" class="form-control form__control" placeholder="Net Worth"> </div> <p>This information is used to calculate your investment limits for crowdfunding.</p> </div> <h3>2. Contact Information</h3> <div class="row"> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>Legal First Name</label> <input type="text" name="first_name" id="first_name" class="form-control form__control" placeholder=""> </div> </div> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>Legal Last Name</label> <input type="text" name="last_name" id="last_name" class="form-control form__control" placeholder=""> </div> </div> </div> <div class="form-group form__group"> <label>Email</label> <input type="email" name="emailAddress" id="emailAddress" class="form-control form__control" value=""> </div> <div class="form-group form__group"> <label>Country of Residence</label> <select name="customerCountry" id="customerCountry" class="selectpicker form-control select__picker"> <option value="US">United States</option> <option value="AW">Aruba</option> <option value="AF">Afghanistan</option> <option value="AO">Angola</option> <option value="AI">Anguilla</option> <option value="AX">Åland Islands</option> <option value="AL">Albania</option> <option value="AD">Andorra</option> <option value="AE">United Arab Emirates</option> <option value="AR">Argentina</option> <option value="AM">Armenia</option> <option value="AQ">Antarctica</option> <option value="TF">French Southern and Antarctic Lands</option> <option value="AG">Antigua and Barbuda</option> <option value="AU">Australia</option> <option value="AT">Austria</option> <option value="AZ">Azerbaijan</option> <option value="BI">Burundi</option> <option value="BE">Belgium</option> <option value="BJ">Benin</option> <option value="BF">Burkina Faso</option> <option value="BD">Bangladesh</option> <option value="BG">Bulgaria</option> <option value="BH">Bahrain</option> <option value="BS">Bahamas</option> <option value="BA">Bosnia and Herzegovina</option> <option value="BL">Saint Barthélemy</option> <option value="BY">Belarus</option> <option value="BZ">Belize</option> <option value="BM">Bermuda</option> <option value="BO">Bolivia</option> <option value="BR">Brazil</option> <option value="BB">Barbados</option> <option value="BN">Brunei</option> <option value="BT">Bhutan</option> <option value="BV">Bouvet Island</option> <option value="BW">Botswana</option> <option value="CF">Central African Republic</option> <option value="CC">Cocos (Keeling) Islands</option> <option value="CH">Switzerland</option> <option value="CL">Chile</option> <option value="CN">China</option> <option value="CI">Ivory Coast</option> <option value="CM">Cameroon</option> <option value="CD">DR Congo</option> <option value="CG">Republic of the Congo</option> <option value="CK">Cook Islands</option> <option value="CO">Colombia</option> <option value="KM">Comoros</option> <option value="CV">Cape Verde</option> <option value="CR">Costa Rica</option> <option value="CU">Cuba</option> <option value="CW">Curaçao</option> <option value="CX">Christmas Island</option> <option value="KY">Cayman Islands</option> <option value="CY">Cyprus</option> <option value="CZ">Czech Republic</option> <option value="DE">Germany</option> <option value="DJ">Djibouti</option> <option value="DM">Dominica</option> <option value="DK">Denmark</option> <option value="DO">Dominican Republic</option> <option value="DZ">Algeria</option> <option value="EC">Ecuador</option> <option value="EG">Egypt</option> <option value="ER">Eritrea</option> <option value="EH">Western Sahara</option> <option value="ES">Spain</option> <option value="EE">Estonia</option> <option value="ET">Ethiopia</option> <option value="FI">Finland</option> <option value="FJ">Fiji</option> <option value="FK">Falkland Islands</option> <option value="FR">France</option> <option value="FO">Faroe Islands</option> <option value="GA">Gabon</option> <option value="GE">Georgia</option> <option value="GG">Guernsey</option> <option value="GH">Ghana</option> <option value="GI">Gibraltar</option> <option value="GN">Guinea</option> <option value="GP">Guadeloupe</option> <option value="GM">Gambia</option> <option value="GW">Guinea-Bissau</option> <option value="GQ">Equatorial Guinea</option> <option value="GR">Greece</option> <option value="GD">Grenada</option> <option value="GL">Greenland</option> <option value="GT">Guatemala</option> <option value="GF">French Guiana</option> <option value="GY">Guyana</option> <option value="HK">Hong Kong</option> <option value="HM">Heard Island and McDonald Islands</option> <option value="HN">Honduras</option> <option value="HR">Croatia</option> <option value="HT">Haiti</option> <option value="HU">Hungary</option> <option value="IM">Isle of Man</option> <option value="ID">Indonesia</option> <option value="IN">India</option> <option value="IO">British Indian Ocean Territory</option> <option value="IE">Ireland</option> <option value="IR">Iran</option> <option value="IQ">Iraq</option> <option value="IS">Iceland</option> <option value="IL">Israel</option> <option value="IT">Italy</option> <option value="JM">Jamaica</option> <option value="JE">Jersey</option> <option value="JO">Jordan</option> <option value="JP">Japan</option> <option value="KZ">Kazakhstan</option> <option value="KE">Kenya</option> <option value="KG">Kyrgyzstan</option> <option value="KH">Cambodia</option> <option value="KI">Kiribati</option> <option value="KN">Saint Kitts and Nevis</option> <option value="KR">South Korea</option> <option value="XK">Kosovo</option> <option value="KW">Kuwait</option> <option value="LA">Laos</option> <option value="LB">Lebanon</option> <option value="LR">Liberia</option> <option value="LY">Libya</option> <option value="LC">Saint Lucia</option> <option value="LI">Liechtenstein</option> <option value="LK">Sri Lanka</option> <option value="LS">Lesotho</option> <option value="LT">Lithuania</option> <option value="LU">Luxembourg</option> <option value="LV">Latvia</option> <option value="MO">Macau</option> <option value="MF">Saint Martin</option> <option value="MA">Morocco</option> <option value="MC">Monaco</option> <option value="MD">Moldova</option> <option value="MG">Madagascar</option> <option value="MV">Maldives</option> <option value="MX">Mexico</option> <option value="MH">Marshall Islands</option> <option value="MK">Macedonia</option> <option value="ML">Mali</option> <option value="MT">Malta</option> <option value="MM">Myanmar</option> <option value="ME">Montenegro</option> <option value="MN">Mongolia</option> <option value="MZ">Mozambique</option> <option value="MR">Mauritania</option> <option value="MS">Montserrat</option> <option value="MQ">Martinique</option> <option value="MU">Mauritius</option> <option value="MW">Malawi</option> <option value="MY">Malaysia</option> <option value="YT">Mayotte</option> <option value="NA">Namibia</option> <option value="NC">New Caledonia</option> <option value="NE">Niger</option> <option value="NF">Norfolk Island</option> <option value="NG">Nigeria</option> <option value="NI">Nicaragua</option> <option value="NU">Niue</option> <option value="NL">Netherlands</option> <option value="NO">Norway</option> <option value="NP">Nepal</option> <option value="NR">Nauru</option> <option value="NZ">New Zealand</option> <option value="OM">Oman</option> <option value="PK">Pakistan</option> <option value="PA">Panama</option> <option value="PN">Pitcairn Islands</option> <option value="PE">Peru</option> <option value="PH">Philippines</option> <option value="PW">Palau</option> <option value="PG">Papua New Guinea</option> <option value="PL">Poland</option> <option value="PT">Portugal</option> <option value="PY">Paraguay</option> <option value="PS">Palestine</option> <option value="PF">French Polynesia</option> <option value="QA">Qatar</option> <option value="RE">Réunion</option> <option value="RO">Romania</option> <option value="RU">Russia</option> <option value="RW">Rwanda</option> <option value="SA">Saudi Arabia</option> <option value="SD">Sudan</option> <option value="SN">Senegal</option> <option value="SG">Singapore</option> <option value="GS">South Georgia</option> <option value="SJ">Svalbard and Jan Mayen</option> <option value="SB">Solomon Islands</option> <option value="SL">Sierra Leone</option> <option value="SV">El Salvador</option> <option value="SM">San Marino</option> <option value="SO">Somalia</option> <option value="PM">Saint Pierre and Miquelon</option> <option value="RS">Serbia</option> <option value="SS">South Sudan</option> <option value="ST">São Tomé and Príncipe</option> <option value="SR">Suriname</option> <option value="SK">Slovakia</option> <option value="SI">Slovenia</option> <option value="SE">Sweden</option> <option value="SZ">Swaziland</option> <option value="SX">Sint Maarten</option> <option value="SC">Seychelles</option> <option value="SY">Syria</option> <option value="TC">Turks and Caicos Islands</option> <option value="TD">Chad</option> <option value="TG">Togo</option> <option value="TH">Thailand</option> <option value="TJ">Tajikistan</option> <option value="TK">Tokelau</option> <option value="TM">Turkmenistan</option> <option value="TL">Timor-Leste</option> <option value="TO">Tonga</option> <option value="TT">Trinidad and Tobago</option> <option value="TN">Tunisia</option> <option value="TR">Turkey</option> <option value="TV">Tuvalu</option> <option value="TW">Taiwan</option> <option value="TZ">Tanzania</option> <option value="UG">Uganda</option> <option value="UA">Ukraine</option> <option value="UM">United States Minor Outlying Islands</option> <option value="UY">Uruguay</option> <option value="UZ">Uzbekistan</option> <option value="VA">Vatican City</option> <option value="VC">Saint Vincent and the Grenadines</option> <option value="VE">Venezuela</option> <option value="VG">British Virgin Islands</option> <option value="VN">Vietnam</option> <option value="VU">Vanuatu</option> <option value="WF">Wallis and Futuna</option> <option value="WS">Samoa</option> <option value="YE">Yemen</option> <option value="ZA">South Africa</option> <option value="ZM">Zambia</option> <option value="ZW">Zimbabwe</option> </select> <p>At this time, StartEngine does not accept investors from Canada or the United Kingdom.</p> </div> <div class="form-group form__group"> <label>Address Line 1</label> <input type="text" name="customerAddress" id="customerAddress" class="form-control form__control" placeholder=""> <p>PO boxes are not permitted</p> </div> <div class="form-group form__group"> <label>Address Line 2</label> <input type="text" name="customerAddressTwo" class="form-control form__control" placeholder=""> </div> <div class="row"> <div class="col-xl-4 col-lg-4"> <div class="form-group form__group"> <label>City</label> <input type="text" name="customerCity" id="customerCity" class="form-control form__control" placeholder="City"> </div> </div> <div class="col-xl-4 col-lg-4 col-md-6"> <div class="form-group form__group"> <label>State</label> <input type="text" name="customerState" id="customerState" class="form-control form__control" placeholder="Sate"> </div> </div> <div class="col-xl-4 col-lg-4 col-md-6"> <div class="form-group form__group"> <label>Zip Code</label> <input type="text" name="customerZipcode" id="customerZipcode" name="customerZipcode" class="form-control form__control" placeholder="Zip Code"> </div> </div> </div> <div class="form-group form__group"> <label>Cell Phone Number</label> <input type="text" name="cell_phone_number" class="form-control form__control" placeholder="123-456-7890"> <p>By entering your mobile phone number, you consent to receive SMS messages for StartEngine investment reconfirmations when a company makes a material change to their offering.</p> </div> <div class="form__group__inner"> <div class="form__group__single"> <input type="checkbox" name="self_directed" value="1"> <label>I want to invest as a non-person legal entity such as a company, trust, or self-directed IRA</label> </div> </div> <div class="form-group form__group"> <label>Country of Residence</label> <select name="country_of_residence" class="selectpicker form-control select__picker"> <option value="US">Company</option> <option value="AW">Trust</option> <option value="AF">Self-Directed IRA</option> </select> </div> <h3>3. Payment</h3> <div class="row"> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>Card Number</label> <input type="text" name="cardNumber" id="cardNumber" class="form-control form__control" placeholder="1234 5678 9012 3456" maxlength="20" onkeypress=""> </div> </div> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>Expiry Month</label> <input type="text" name="cardExpMonth" id="cardExpMonth" class="form-control form__control" placeholder="MM" maxlength="2" onkeypress="return validateNumber(event);"> </div> </div> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>Expiry Year</label> <input type="text" name="cardExpYear" id="cardExpYear" class="form-control form__control" placeholder="YYYY" maxlength="4" onkeypress="return validateNumber(event);"> </div> </div> <div class="col-xl-6 col-lg-6 col-md-6"> <div class="form-group form__group"> <label>CVC</label> <input type="text" name="cardCVC" id="cardCVC" class="form-control form__control" placeholder="123" maxlength="4" onkeypress="return validateNumber(event);"> </div> </div> </div> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_details" value="<?php echo $product_name; ?>"> <input type="hidden" name="item_number" value="<?php echo $pid; ?>"> <input type="hidden" name="order_number" value="<?php echo generateRandomString(); ?>"> <h3>4. Verification</h3> <div class="form__group"> <div class="form__group__single"> <input type="checkbox" name="check_on_wiretransfer"> <label>I agree to pay for this investment by wire transfer.</label> </div> <p>Note: Minimum wire investment is <?php echo $min_investment; ?>.</p> </div> <div class="form__group"> <div class="form__group__single"> <input type="radio" name="optradio" checked value="yesus"> <label>I am a US Citizen or US Legal Resident</label> </div> </div> <div class="form__group"> <div class="form__group__single"> <input type="radio" name="optradio" value="nonus"> <label>I am not a US Citizen or US Legal Resident</label> </div> </div> <div class="form-group form__group"> <label>Government Issued Identification Number</label> <input type="text" name="giin" class="form-control form__control" placeholder="SSN, SIN, or Tax ID"> <p>If you do not have a national id number, enter '0000'</p> </div> <div class="form-group form__group"> <label>Date of Birth</label> <div class="input-group date input__group" data-provide="datepicker"> <input id="datepicker-1" name="dob" class="form-control form__control" placeholder="MM-DD-YYYY" /> <div class="input-group-addon"> <span class="glyphicon glyphicon-th"></span> </div> </div> </div> <div class="form-group form__group"> <label>International Identification</label> <p>Please upload a photo of your government-issued ID.</p> <p>If your ID does not display the address of your residence, please submit a document dated within the last 90 days that clearly states your full name and residential address (No P.O. Box or commercial addresses). Examples include: Utility/Telephone Bill, Credit Card/Bank Statement.</p> <div class="input-group input__group"> <input type="text" name="idn_file_one" class="form-control form__control" placeholder="Upload File" readonly> <span class="input-group-btn"> <div class="btn btn-default custom-file-uploader"> <input type="file" name="file_one" onchange="this.form.filename.value = this.files.length ? this.files[0].name : ''" /> Select a file </div> </span> </div> </div> <div class="form-group form__group"> <label>International Identification</label> <p>Please upload a photo of your government-issued ID.</p> <p>If your ID does not display the address of your residence, please submit a document dated within the last 90 days that clearly states your full name and residential address (No P.O. Box or commercial addresses). Examples include: Utility/Telephone Bill, Credit Card/Bank Statement.</p> <div class="input-group input__group"> <input type="text" name="idn_file_two" class="form-control form__control" placeholder="Upload File" readonly> <span class="input-group-btn"> <div class="btn btn-default custom-file-uploader"> <input type="file" name="file_two" onchange="this.form.filename.value = this.files.length ? this.files[0].name : ''" /> Select a file </div> </span> </div> </div> <h3>5. Review</h3> <div class="form-group form__group"> <p>I acknowledge that the entry of my name in the field below represents an e-signature as detailed in our <a href="#">terms of use</a>. I acknowledge that I have reviewed and understand the educational materials. I understand that the entire amount of my investment is at risk and may be lost, and am in a financial position to bear the loss of the investment. . I confirm that this purchase price is not more than the greater of 10% of my annual income or net worth (or no more than the greater of 10% of revenue or net assets for a business), unless I am an accredited investor.</p> <p>I have read and agree to the terms set in the <a href="#">Subscription Agreement</a></p> </div> <div class="form-group form__group"> <input type="text" class="form-control form__control" name="review_username" placeholder="Sign your name by typing out your full name"> </div> <div class="form-group form__group"> <p>By clicking "Submit" you agree with our <a href="#">Terms and Conditions</a> & <a href="#">Privacy Policy</a></p> </div> <div class="button__wrapp__submit"><input type="submit" name="payNow" id="payNow" class="submit__btn" value="Continue"></div> </form> </div> </div> </div> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.bundle.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/jquery.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap-select.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/popper.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/gijgo.min.js" type="text/javascript"></script> <script> $('#datepicker').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-1').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-2').datepicker({ uiLibrary: 'bootstrap4' }); $('#mini').click(function(){ var mini = $('#mini').html(); var avoid = "$"; var avoid2 = ","; var mini_val_c1 =mini.replace(avoid, ''); var mini_val =mini_val_c1.replace(avoid2, ''); $('#total_amount').val(mini_val); }); $('#avg').click(function(){ var avg = $('#avg').html(); var avoid = "$"; var avoid2 = ","; var avg_val_c1 =avg.replace(avoid, ''); var avg_val =avg_val_c1.replace(avoid2, ''); $('#total_amount').val(avg_val); }); $('#lrg').click(function(){ var lrg = $('#lrg').html(); var avoid = "$"; var avoid2 = ","; var lrg_val_c1 =lrg.replace(avoid, ''); var lrg_val =lrg_val_c1.replace(avoid2, ''); $('#total_amount').val(lrg_val); }); </script> <script type="text/javascript" src="https://js.stripe.com/v2/"></script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-creditcardvalidator/1.0.0/jquery.creditCardValidator.js"></script> <script type="text/javascript" src="http://162.215.253.89/ercabarter/dev/wp-content/plugins/portfolio/payment1.js"></script> <script type="text/javascript"> Stripe.setPublishableKey('pk_test_51JQdZZEAJtDMbuhoGvZkiYwfBlflB0FLbKke242tY9JwnUM5OeMkYxb7l2gzRgC9py98TvGFUZwtm35OpFNijpb500dUkZ5ACv'); // function stripePay(event) { // event.preventDefault(); $( "#payNow" ).click(function() { var valid = false; var total_amount = $('#total_amount').val(); var cardCVC = $('#cardCVC').val(); var cardExpMonth = $('#cardExpMonth').val(); var cardExpYear = $('#cardExpYear').val(); var cardNumber = $('#cardNumber').val(); var emailAddress = $('#emailAddress').val(); var first_name = $('#first_name').val(); var last_name = $('#last_name').val(); var customerAddress = $('#customerAddress').val(); var customerCity = $('#customerCity').val(); var customerZipcode = $('#customerZipcode').val(); var customerCountry = $('#customerCountry').val(); var validateName = /^[a-z ,.'-]+$/i; var validateEmail = /^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/; var validateMonth = /^01|02|03|04|05|06|07|08|09|10|11|12$/; var validateYear = /^2017|2018|2019|2020|2021|2022|2023|2024|2025|2026|2027|2028|2029|2030|2031$/; var cvv_expression = /^[0-9]{3,3}$/; if(total_amount == ""){ alert('Invalid Data Amount'); var valid = false; }else if(first_name == ""){ alert('Invalid Data First Name'); var valid = false; }else if(last_name == ""){ alert('Invalid Data Last Name'); var valid = false; }else if(emailAddress == ""){ alert('Invalid Data Email'); var valid = false; }else if(customerAddress == ""){ alert('Invalid Data Address Line 1'); var valid = false; }else if(customerCity == ""){ alert('Invalid Data City'); var valid = false; }else if(customerZipcode == ""){ alert('Invalid Data Zip'); var valid = false; }else if(cardNumber == ""){ alert('Invalid Data Card Number'); var valid = false; }else if(!cvv_expression.test(cardCVC)){ alert('Invalid Data CVV'); var valid = false; }else if(!validateMonth.test(cardExpMonth)){ alert('Invalid Data Month'); var valid = false; }else if(!validateYear.test(cardExpYear)){ alert('Invalid Data Year'); var valid = false; }else{ var valid = true; } if(valid == true) { jQuery('#payNow').attr('disabled', 'disabled'); jQuery('#payNow').val('Payment Processing....'); Stripe.createToken({ number:jQuery('#cardNumber').val(), cvc:jQuery('#cardCVC').val(), exp_month : jQuery('#cardExpMonth').val(), exp_year : jQuery('#cardExpYear').val() }, stripeResponseHandler); return false; }else{ return false; } }); function stripeResponseHandler(status, response) { if(response.error) { jQuery('#payNow').attr('disabled', false); jQuery('#message').html(response.error.message).show(); } else { var stripeToken = response['id']; jQuery('#paymentForm').append("<input type='hidden' name='stripeToken' value='" + stripeToken + "' />"); // alert(stripeToken); jQuery('#paymentForm').submit(); } } </script> <?php } add_shortcode('payment_process', 'payment_process'); function payment_process(){ ob_start(); payment_process_code(); return ob_get_clean(); } function payment_process_code() { // echo "<pre>"; // print_r($_POST); // echo "</pre>"; // die("DIE"); $annual_income = $_POST['annual_income']; $net_worth = $_POST['net_worth']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $cell_phone_number = $_POST['cell_phone_number']; $customerAddressTwo = $_POST['customerAddressTwo']; $country_of_residence = $_POST['country_of_residence']; $check_on_wiretransfer = $_POST['check_on_wiretransfer']; $optradio = $_POST['optradio']; $giin = $_POST['giin']; $dob = $_POST['dob']; $file_one = $_POST['file_one']; $file_two = $_POST['file_two']; $review_username = $_POST['review_username']; $self_directed = $_POST['self_directed']; $paymentMessage = ''; if(!empty($_POST['stripeToken'])){ // get token and user details $stripeToken = $_POST['stripeToken']; $customerName = $first_name."".$last_name; $customerEmail = $_POST['emailAddress']; $customerAddress = $_POST['customerAddress']; $customerCity = $_POST['customerCity']; $customerZipcode = $_POST['customerZipcode']; $customerState = $_POST['customerState']; $customerCountry = $_POST['customerCountry']; $cardNumber = $_POST['cardNumber']; $cardCVC = $_POST['cardCVC']; $cardExpMonth = $_POST['cardExpMonth']; $cardExpYear = $_POST['cardExpYear']; //include Stripe PHP library require_once('stripe-php/init.php'); //set stripe secret key and publishable key $stripe = array( "secret_key" => "sk_test_51JQdZZEAJtDMbuhoDE3lmRJ1R69SsFjOhIUYHqH5BZwEB5yZU6Heaxjd8EL0w8i3Fjcfee6ePpswrQf00iMtaVoy00iUHL5S5M", "publishable_key" => "pk_test_51JQdZZEAJtDMbuhoGvZkiYwfBlflB0FLbKke242tY9JwnUM5OeMkYxb7l2gzRgC9py98TvGFUZwtm35OpFNijpb500dUkZ5ACv" ); \Stripe\Stripe::setApiKey($stripe['secret_key']); //add customer to stripe $customer = \Stripe\Customer::create(array( 'name' => $customerName, 'description' => 'test description', 'email' => $customerEmail, 'source' => $stripeToken, "address" => ["city" => $customerCity, "country" => $customerCountry, "line1" => $customerAddress, "line2" => "", "postal_code" => $customerZipcode, "state" => $customerState] )); // item details for which payment made $itemName = $_POST['item_details']; $itemNumber = $_POST['item_number']; // $itemPrice = $_POST['price']; $rawAmount = $_POST['total_amount']; $totalAmount = $rawAmount*100; // $totalAmount = $_POST['total_amount']; $currency = $_POST['currency_code']; $orderNumber = $_POST['order_number']; // details for which payment performed $payDetails = \Stripe\Charge::create(array( 'customer' => $customer->id, 'amount' => $totalAmount, 'currency' => $currency, 'description' => $itemName, 'metadata' => array( 'order_id' => $orderNumber ) )); // get payment details $paymenyResponse = $payDetails->jsonSerialize(); // check whether the payment is successful if($paymenyResponse['amount_refunded'] == 0 && empty($paymenyResponse['failure_code']) && $paymenyResponse['paid'] == 1 && $paymenyResponse['captured'] == 1){ echo "<pre>"; print_r($paymenyResponse); echo "<pre>"; // transaction details $payment_method = $paymenyResponse['payment_method']; $description = $paymenyResponse['description']; $order_id = $paymenyResponse['metadata']['order_id']; $amountPaid = $paymenyResponse['amount']; $balanceTransaction = $paymenyResponse['balance_transaction']; $paidCurrency = $paymenyResponse['currency']; $paymentStatus = $paymenyResponse['status']; $paymentDate = date("Y-m-d H:i:s"); //insert tansaction details into database global $wpdb; $current_user_id = get_current_user_id(); $userdata = array( 'cust_id' => $current_user_id, 'cust_name' =>$customerName, 'cust_email' =>$customerEmail, 'card_number' =>$cardNumber, 'card_cvc' =>$cardCVC, 'card_exp_month' =>$cardExpMonth, 'card_exp_year' => $cardExpYear, 'item_name' => $itemName, 'item_number' => $itemNumber, 'order_id' => $order_id, 'item_price_currency' => $paidCurrency, 'paid_amount' => $amountPaid, 'transaction_id' => $balanceTransaction, 'payment_status' => $paymentStatus, 'created_date'=> $paymentDate ); $successful_data = $wpdb->insert('transaction', $userdata); if ($successful_data) { $path = preg_replace('/wp-content(?!.*wp-content).*/','',__DIR__); include($path.'wp-load.php'); $uploads = wp_upload_dir(); $target_dir = $uploads['baseurl']; $target_file = $target_dir . basename($_FILES["file_one"]["name"]); $imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION)); $target_file2 = $target_dir . basename($_FILES["file_two"]["name"]); $imageFileType2 = strtolower(pathinfo($target_file2,PATHINFO_EXTENSION)); require_once( ABSPATH . 'wp-admin/includes/image.php' ); require_once( ABSPATH . 'wp-admin/includes/file.php' ); require_once( ABSPATH . 'wp-admin/includes/media.php' ); $attachment_id = media_handle_upload( 'file_one', 0); $attachment_id2 = media_handle_upload( 'file_two', 0); // echo 'aa --- '.$attachment_id; update_user_meta( $current_user_id, 'cust_name', $customerName ); update_user_meta( $current_user_id, 'customerAddress', $customerCity ); update_user_meta( $current_user_id, 'customerAddressTwo', $customerAddressTwo ); update_user_meta( $current_user_id, 'customerCity', $customerCity ); update_user_meta( $current_user_id, 'customerState', $customerState ); update_user_meta( $current_user_id, 'customerCountry', $customerCountry ); update_user_meta( $current_user_id, 'annual_income', $annual_income ); update_user_meta( $current_user_id, 'net_worth', $net_worth ); update_user_meta( $current_user_id, 'first_name', $first_name ); update_user_meta( $current_user_id, 'last_name', $last_name ); update_user_meta( $current_user_id, 'cell_phone_number', $cell_phone_number ); update_user_meta( $current_user_id, 'country_of_residence', $country_of_residence ); update_user_meta( $current_user_id, 'check_on_wiretransfer', $check_on_wiretransfer ); update_user_meta( $current_user_id, 'optradio', $optradio ); update_user_meta( $current_user_id, 'giin', $giin ); update_user_meta( $current_user_id, 'dob', $dob ); update_user_meta( $current_user_id, 'file_one', $attachment_id ); update_user_meta( $current_user_id, 'file_two', $attachment_id2 ); update_user_meta( $current_user_id, 'review_username', $review_username ); update_user_meta( $current_user_id, 'self_directed', $self_directed ); $site_url = site_url()."/dashboard"; wp_redirect($site_url); }else{ $paymentMessage = "failed"; } } else{ $paymentMessage = "failed"; } } else{ $paymentMessage = "failed"; } $_SESSION["message"] = $paymentMessage; } add_shortcode('user_dashboard', 'user_dashboard'); function user_dashboard(){ ob_start(); user_dashboard_show(); return ob_get_clean(); } function user_dashboard_show() { global $wpdb; $site_url = site_url()."/login"; if ( ! is_user_logged_in() ) { wp_redirect($site_url); } ?> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap.min.css"> <style type="text/css"> h1.entry-title { display: none !important; } </style> <div class="portfolio__list"> <div class="portfolio__list__inner"> <div class="container"> <div class="row"> <?php $current_user_id = get_current_user_id(); $item_numbers = $wpdb->get_results("SELECT DISTINCT `item_number` from transaction WHERE `cust_id` = '".$current_user_id."'"); foreach ($item_numbers as $itemvalue) { $pid = $itemvalue->item_number; $content_post = get_post($pid); $investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $totalinvestment = $investmentdata->total_investment/100; $totalinvestment_round = round($totalinvestment); $investors_data = $wpdb->get_row("SELECT COUNT(DISTINCT `cust_id`) AS investors from transaction WHERE `item_number` = '".$pid."'"); $investors_count = $investors_data->investors; $img_url = wp_get_attachment_url( get_post_thumbnail_id($pid), 'thumbnail' ); $my_investmentdata = $wpdb->get_row("SELECT SUM(`paid_amount`) AS my_total_investment FROM transaction WHERE `item_number` = '".$pid."'"); $my_totalinvestment = $my_investmentdata->my_total_investment/100; $my_totalinvestment_round = round($my_totalinvestment); $my_totalinvestment_amount = number_format($my_totalinvestment_round,2,".",","); ?> <div class="col-xl-3 clo-lg-6 col-md-6 col-sm-6 mr__top"> <div class="portfolio__card"> <a href="<?php the_permalink($pid);?>"> <?php $term_list = get_the_terms($pid, 'investments-cat'); foreach ( $term_list as $term ) { ?> <div class="category__tag"><?php echo $term->name; ?></div> <?php } ?> <div class="cover__banner"><img src="<?php echo $img_url; ?>" alt="" /></div> <div class="portfolio__card__content"> <h3><?php echo get_field('title',$pid); ?></h3> <div class="progress__bar success__bar"></div> <p> <?php echo substr(get_field('subtitle',$pid),0,20)."..."; ?></p> <div class="investment__detail"> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo count_style($totalinvestment_round); ?></h5> <h6>Raised</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo count_style($investors_count); ?></h5> <h6>Investors</h6> </div> </div> <div class="investment__detail__inner"> <div class="offering__stats"> <h5><?php echo get_field('min_investment',$pid); ?></h5> <h6>Min Invest</h6> </div> </div> </div> <div class="my__investment"> <h3>My investment <span><?php echo $my_totalinvestment_amount; ?></span></h3> </div> </div> </a> </div> </div> <?php } ?> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script> <?php } add_shortcode('user_settings', 'user_settings'); function user_settings(){ ob_start(); user_settings_show(); return ob_get_clean(); } function user_settings_show() { $site_url = site_url()."/login"; if ( ! is_user_logged_in() ) { wp_redirect($site_url); } $current_user_id = get_current_user_id(); if (isset($_POST["save"])) { $customerAddress = $_POST['customerAddress']; $customerCity = $_POST['customerCity']; $customerAddressTwo = $_POST['customerAddressTwo']; $customerState = $_POST['customerState']; $customerCountry = $_POST['customerCountry']; $customerZipcode = $_POST['customerZipcode']; $cell_phone_number = $_POST['cell_phone_number']; update_user_meta( $current_user_id, 'customerAddress', $customerAddress ); update_user_meta( $current_user_id, 'customerAddressTwo', $customerAddressTwo ); update_user_meta( $current_user_id, 'customerState', $customerState ); update_user_meta( $current_user_id, 'customerCountry', $customerCountry ); update_user_meta( $current_user_id, 'customerCity', $customerCity ); update_user_meta( $current_user_id, 'customerZipcode', $customerZipcode ); update_user_meta( $current_user_id, 'cell_phone_number', $cell_phone_number ); } if (isset($_POST["check_submit"])) { $new_password = $_POST['new_password']; $cnf_password = $_POST['cnf_password']; if ($new_password == $cnf_password) { $user = wp_get_current_user(); $old_password_mch = wp_check_password( $_POST['old_password'], $user->user_pass, $user->data->ID ); if ($old_password_mch) { wp_set_password( $new_password, $current_user_id ); }else{ $error_pass_check = "Old Password doesn't match the existing password"; } } update_user_meta( $current_user_id, 'emailandsecurity', $emailandsecurity ); } $user_meta = get_userdata($current_user_id); $get_customerAddress = $user_meta->customerAddress; $get_customerCity = $user_meta->customerCity; $get_customerAddressTwo = $user_meta->customerAddressTwo; $get_customerState = $user_meta->customerState; $get_customerCountry = $user_meta->customerCountry; $get_customerZipcode = $user_meta->customerZipcode; $get_emailandsecurity = $user_meta->emailandsecurity; $get_cell_phone_number = $user_meta->cell_phone_number; $current_user = wp_get_current_user(); $user_email = $current_user->user_email; ?> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap.min.css"> <link rel="stylesheet" href="<?php echo site_url(); ?>/wp-content/plugins/portfolio/css/bootstrap-select.min.css"> <link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <div class="user__account__settings"> <div class="container"> <h2>Settings</h2> <h3>Your account settings</h3> <div class="account__settings__inner"> <nav class="nav__sidebar"> <ul class="nav tabs nav__tabs"> <li class="active"><a href="#tab1" data-toggle="tab">Account</a></li> <li class=""><a href="#tab2" data-toggle="tab">Email and Security Settings</a></li> </ul> </nav> <div class="tab-content tab__content"> <div class="tab-pane tab__pane active" id="tab1"> <h4>Address</h4> <form action="<?php echo site_url(); ?>/settings/" method="POST"> <div class="row"> <div class="col-xl-12 col-lg-12"> <div class="form-group form__group"> <input type="text" name="customerAddress" class="form-control form__control" placeholder="Address Line 1" value="<?php echo $get_customerAddress; ?>"> </div> <div class="form-group form__group"> <input type="text" name="customerAddressTwo" class="form-control form__control" value="<?php echo $customerAddressTwo; ?>" placeholder="Address Line 2"> </div> </div> <div class="col-xl-4 col-lg-4"> <div class="form-group form__group"> <input type="text" name="customerCity" class="form-control form__control" value="<?php echo $get_customerCity; ?>" placeholder="City"> </div> </div> <div class="col-xl-4 col-lg-4"> <div class="form-group form__group"> <input type="text" name="customerState" class="form-control form__control" value="<?php echo $get_customerState; ?>" placeholder="State"> </div> </div> <div class="col-xl-4 col-lg-4"> <div class="form-group form__group"> <input type="text" name="customerZipcode" class="form-control form__control" value="<?php echo $get_customerZipcode; ?>" placeholder="Zip Code"> </div> </div> <div class="col-xl-12 col-lg-12"> <div class="form-group form__group"> <select name="customerCountry" class="selectpicker form-control select__picker"> <option value="US" <?php if ($get_customerCountry == "US") echo ' selected="selected"'; ?>>United States</option> <option value="AW" <?php if ($get_customerCountry == "AW") echo ' selected="selected"'; ?>>Aruba</option> <option value="AF" <?php if ($get_customerCountry == "AF") echo ' selected="selected"'; ?>>Afghanistan</option> <option value="AO" <?php if ($get_customerCountry == "AO") echo ' selected="selected"'; ?>>Angola</option> <option value="AI" <?php if ($get_customerCountry == "AI") echo ' selected="selected"'; ?>>Anguilla</option> <option value="AX" <?php if ($get_customerCountry == "AX") echo ' selected="selected"'; ?>>Åland Islands</option> <option value="AL" <?php if ($get_customerCountry == "AL") echo ' selected="selected"'; ?>>Albania</option> <option value="AD" <?php if ($get_customerCountry == "AD") echo ' selected="selected"'; ?>>Andorra</option> <option value="AE" <?php if ($get_customerCountry == "AE") echo ' selected="selected"'; ?>>United Arab Emirates</option> <option value="AR" <?php if ($get_customerCountry == "AR") echo ' selected="selected"'; ?>>Argentina</option> <option value="AM" <?php if ($get_customerCountry == "AM") echo ' selected="selected"'; ?>>Armenia</option> <option value="AQ" <?php if ($get_customerCountry == "AQ") echo ' selected="selected"'; ?>>Antarctica</option> <option value="TF" <?php if ($get_customerCountry == "TF") echo ' selected="selected"'; ?>>French Southern and Antarctic Lands</option> <option value="AG" <?php if ($get_customerCountry == "AG") echo ' selected="selected"'; ?>>Antigua and Barbuda</option> <option value="AU" <?php if ($get_customerCountry == "AU") echo ' selected="selected"'; ?>>Australia</option> <option value="AT" <?php if ($get_customerCountry == "AT") echo ' selected="selected"'; ?>>Austria</option> <option value="AZ" <?php if ($get_customerCountry == "AZ") echo ' selected="selected"'; ?>>Azerbaijan</option> <option value="BI"<?php if ($get_customerCountry == "BI") echo ' selected="selected"'; ?>>Burundi</option> <option value="BE"<?php if ($get_customerCountry == "BE") echo ' selected="selected"'; ?>>Belgium</option> <option value="BJ"<?php if ($get_customerCountry == "BJ") echo ' selected="selected"'; ?>>Benin</option> <option value="BF"<?php if ($get_customerCountry == "BF") echo ' selected="selected"'; ?>>Burkina Faso</option> <option value="BD"<?php if ($get_customerCountry == "BD") echo ' selected="selected"'; ?>>Bangladesh</option> <option value="BG"<?php if ($get_customerCountry == "BG") echo ' selected="selected"'; ?>>Bulgaria</option> <option value="BH"<?php if ($get_customerCountry == "BH") echo ' selected="selected"'; ?>>Bahrain</option> <option value="BS"<?php if ($get_customerCountry == "BS") echo ' selected="selected"'; ?>>Bahamas</option> <option value="BA"<?php if ($get_customerCountry == "BA") echo ' selected="selected"'; ?>>Bosnia and Herzegovina</option> <option value="BL"<?php if ($get_customerCountry == "BL") echo ' selected="selected"'; ?>>Saint Barthélemy</option> <option value="BY"<?php if ($get_customerCountry == "BY") echo ' selected="selected"'; ?>>Belarus</option> <option value="BZ"<?php if ($get_customerCountry == "BZ") echo ' selected="selected"'; ?>>Belize</option> <option value="BM"<?php if ($get_customerCountry == "BM") echo ' selected="selected"'; ?>>Bermuda</option> <option value="BO"<?php if ($get_customerCountry == "BO") echo ' selected="selected"'; ?>>Bolivia</option> <option value="BR"<?php if ($get_customerCountry == "BR") echo ' selected="selected"'; ?>>Brazil</option> <option value="BB"<?php if ($get_customerCountry == "BB") echo ' selected="selected"'; ?>>Barbados</option> <option value="BN"<?php if ($get_customerCountry == "BN") echo ' selected="selected"'; ?>>Brunei</option> <option value="BT"<?php if ($get_customerCountry == "BT") echo ' selected="selected"'; ?>>Bhutan</option> <option value="BV"<?php if ($get_customerCountry == "BV") echo ' selected="selected"'; ?>>Bouvet Island</option> <option value="BW"<?php if ($get_customerCountry == "BW") echo ' selected="selected"'; ?>>Botswana</option> <option value="CF"<?php if ($get_customerCountry == "CF") echo ' selected="selected"'; ?>>Central African Republic</option> <option value="CC"<?php if ($get_customerCountry == "CC") echo ' selected="selected"'; ?>>Cocos (Keeling) Islands</option> <option value="CH"<?php if ($get_customerCountry == "CH") echo ' selected="selected"'; ?>>Switzerland</option> <option value="CL"<?php if ($get_customerCountry == "CL") echo ' selected="selected"'; ?>>Chile</option> <option value="CN"<?php if ($get_customerCountry == "CN") echo ' selected="selected"'; ?>>China</option> <option value="CI"<?php if ($get_customerCountry == "CI") echo ' selected="selected"'; ?>>Ivory Coast</option> <option value="CM"<?php if ($get_customerCountry == "CM") echo ' selected="selected"'; ?>>Cameroon</option> <option value="CD"<?php if ($get_customerCountry == "CD") echo ' selected="selected"'; ?>>DR Congo</option> <option value="CG"<?php if ($get_customerCountry == "CG") echo ' selected="selected"'; ?>>Republic of the Congo</option> <option value="CK"<?php if ($get_customerCountry == "CK") echo ' selected="selected"'; ?>>Cook Islands</option> <option value="CO"<?php if ($get_customerCountry == "CO") echo ' selected="selected"'; ?>>Colombia</option> <option value="KM"<?php if ($get_customerCountry == "KM") echo ' selected="selected"'; ?>>Comoros</option> <option value="CV"<?php if ($get_customerCountry == "CV") echo ' selected="selected"'; ?>>Cape Verde</option> <option value="CR"<?php if ($get_customerCountry == "CR") echo ' selected="selected"'; ?>>Costa Rica</option> <option value="CU"<?php if ($get_customerCountry == "CU") echo ' selected="selected"'; ?>>Cuba</option> <option value="CW"<?php if ($get_customerCountry == "CW") echo ' selected="selected"'; ?>>Curaçao</option> <option value="CX"<?php if ($get_customerCountry == "CX") echo ' selected="selected"'; ?>>Christmas Island</option> <option value="KY"<?php if ($get_customerCountry == "KY") echo ' selected="selected"'; ?>>Cayman Islands</option> <option value="CY"<?php if ($get_customerCountry == "CY") echo ' selected="selected"'; ?>>Cyprus</option> <option value="CZ"<?php if ($get_customerCountry == "CZ") echo ' selected="selected"'; ?>>Czech Republic</option> <option value="DE"<?php if ($get_customerCountry == "DE") echo ' selected="selected"'; ?>>Germany</option> <option value="DJ"<?php if ($get_customerCountry == "DJ") echo ' selected="selected"'; ?>>Djibouti</option> <option value="DM"<?php if ($get_customerCountry == "DM") echo ' selected="selected"'; ?>>Dominica</option> <option value="DK"<?php if ($get_customerCountry == "DK") echo ' selected="selected"'; ?>>Denmark</option> <option value="DO"<?php if ($get_customerCountry == "DO") echo ' selected="selected"'; ?>>Dominican Republic</option> <option value="DZ"<?php if ($get_customerCountry == "DZ") echo ' selected="selected"'; ?>>Algeria</option> <option value="EC"<?php if ($get_customerCountry == "EC") echo ' selected="selected"'; ?>>Ecuador</option> <option value="EG"<?php if ($get_customerCountry == "EG") echo ' selected="selected"'; ?>>Egypt</option> <option value="ER"<?php if ($get_customerCountry == "ER") echo ' selected="selected"'; ?>>Eritrea</option> <option value="EH" <?php if ($get_customerCountry == "EH") echo ' selected="selected"'; ?>>Western Sahara</option> <option value="ES" <?php if ($get_customerCountry == "ES") echo ' selected="selected"'; ?>>Spain</option> <option value="EE" <?php if ($get_customerCountry == "EE") echo ' selected="selected"'; ?>>Estonia</option> <option value="ET" <?php if ($get_customerCountry == "ET") echo ' selected="selected"'; ?>>Ethiopia</option> <option value="FI" <?php if ($get_customerCountry == "FI") echo ' selected="selected"'; ?>>Finland</option> <option value="FJ" <?php if ($get_customerCountry == "FJ") echo ' selected="selected"'; ?>>Fiji</option> <option value="FK" <?php if ($get_customerCountry == "FK") echo ' selected="selected"'; ?>>Falkland Islands</option> <option value="FR" <?php if ($get_customerCountry == "FR") echo ' selected="selected"'; ?>>France</option> <option value="FO"<?php if ($get_customerCountry == "FO") echo ' selected="selected"'; ?> >Faroe Islands</option> <option value="GA" <?php if ($get_customerCountry == "GA") echo ' selected="selected"'; ?>>Gabon</option> <option value="GE" <?php if ($get_customerCountry == "GE") echo ' selected="selected"'; ?>>Georgia</option> <option value="GG" <?php if ($get_customerCountry == "GG") echo ' selected="selected"'; ?>>Guernsey</option> <option value="GH" <?php if ($get_customerCountry == "GH") echo ' selected="selected"'; ?>>Ghana</option> <option value="GI" <?php if ($get_customerCountry == "GI") echo ' selected="selected"'; ?>>Gibraltar</option> <option value="GN" <?php if ($get_customerCountry == "GN") echo ' selected="selected"'; ?>>Guinea</option> <option value="GP" <?php if ($get_customerCountry == "GP") echo ' selected="selected"'; ?>>Guadeloupe</option> <option value="GM" <?php if ($get_customerCountry == "GM") echo ' selected="selected"'; ?>>Gambia</option> <option value="GW" <?php if ($get_customerCountry == "GW") echo ' selected="selected"'; ?>>Guinea-Bissau</option> <option value="GQ" <?php if ($get_customerCountry == "GQ") echo ' selected="selected"'; ?>>Equatorial Guinea</option> <option value="GR" <?php if ($get_customerCountry == "GR") echo ' selected="selected"'; ?>>Greece</option> <option value="GD" <?php if ($get_customerCountry == "GD") echo ' selected="selected"'; ?>>Grenada</option> <option value="GL" <?php if ($get_customerCountry == "GL") echo ' selected="selected"'; ?>>Greenland</option> <option value="GT" <?php if ($get_customerCountry == "GT") echo ' selected="selected"'; ?>>Guatemala</option> <option value="GF" <?php if ($get_customerCountry == "GF") echo ' selected="selected"'; ?>>French Guiana</option> <option value="GY" <?php if ($get_customerCountry == "GY") echo ' selected="selected"'; ?>>Guyana</option> <option value="HK" <?php if ($get_customerCountry == "HK") echo ' selected="selected"'; ?>>Hong Kong</option> <option value="HM" <?php if ($get_customerCountry == "HM") echo ' selected="selected"'; ?>>Heard Island and McDonald Islands</option> <option value="HN" <?php if ($get_customerCountry == "HN") echo ' selected="selected"'; ?>>Honduras</option> <option value="HR" <?php if ($get_customerCountry == "HR") echo ' selected="selected"'; ?>>Croatia</option> <option value="HT" <?php if ($get_customerCountry == "HT") echo ' selected="selected"'; ?>>Haiti</option> <option value="HU" <?php if ($get_customerCountry == "HU") echo ' selected="selected"'; ?>>Hungary</option> <option value="IM" <?php if ($get_customerCountry == "IM") echo ' selected="selected"'; ?>>Isle of Man</option> <option value="ID" <?php if ($get_customerCountry == "ID") echo ' selected="selected"'; ?>>Indonesia</option> <option value="IN" <?php if ($get_customerCountry == "IN") echo ' selected="selected"'; ?>>India</option> <option value="IO" <?php if ($get_customerCountry == "IO") echo ' selected="selected"'; ?>>British Indian Ocean Territory</option> <option value="IE" <?php if ($get_customerCountry == "IE") echo ' selected="selected"'; ?>>Ireland</option> <option value="IR" <?php if ($get_customerCountry == "IR") echo ' selected="selected"'; ?>>Iran</option> <option value="IQ" <?php if ($get_customerCountry == "IQ") echo ' selected="selected"'; ?>>Iraq</option> <option value="IS" <?php if ($get_customerCountry == "IS") echo ' selected="selected"'; ?>>Iceland</option> <option value="IL" <?php if ($get_customerCountry == "IL") echo ' selected="selected"'; ?>>Israel</option> <option value="IT" <?php if ($get_customerCountry == "IT") echo ' selected="selected"'; ?>>Italy</option> <option value="JM" <?php if ($get_customerCountry == "JM") echo ' selected="selected"'; ?>>Jamaica</option> <option value="JE" <?php if ($get_customerCountry == "JE") echo ' selected="selected"'; ?>>Jersey</option> <option value="JO" <?php if ($get_customerCountry == "JO") echo ' selected="selected"'; ?>>Jordan</option> <option value="JP" <?php if ($get_customerCountry == "JP") echo ' selected="selected"'; ?>>Japan</option> <option value="KZ" <?php if ($get_customerCountry == "KZ") echo ' selected="selected"'; ?>>Kazakhstan</option> <option value="KE" <?php if ($get_customerCountry == "KE") echo ' selected="selected"'; ?>>Kenya</option> <option value="KG" <?php if ($get_customerCountry == "KG") echo ' selected="selected"'; ?>>Kyrgyzstan</option> <option value="KH" <?php if ($get_customerCountry == "KH") echo ' selected="selected"'; ?>>Cambodia</option> <option value="KI" <?php if ($get_customerCountry == "KI") echo ' selected="selected"'; ?>>Kiribati</option> <option value="KN" <?php if ($get_customerCountry == "KN") echo ' selected="selected"'; ?>>Saint Kitts and Nevis</option> <option value="KR" <?php if ($get_customerCountry == "KR") echo ' selected="selected"'; ?>>South Korea</option> <option value="XK" <?php if ($get_customerCountry == "XK") echo ' selected="selected"'; ?>>Kosovo</option> <option value="KW" <?php if ($get_customerCountry == "KW") echo ' selected="selected"'; ?>>Kuwait</option> <option value="LA" <?php if ($get_customerCountry == "LA") echo ' selected="selected"'; ?>>Laos</option> <option value="LB" <?php if ($get_customerCountry == "LB") echo ' selected="selected"'; ?>>Lebanon</option> <option value="LR" <?php if ($get_customerCountry == "LR") echo ' selected="selected"'; ?>>Liberia</option> <option value="LY" <?php if ($get_customerCountry == "LY") echo ' selected="selected"'; ?>>Libya</option> <option value="LC" <?php if ($get_customerCountry == "LC") echo ' selected="selected"'; ?>>Saint Lucia</option> <option value="LI" <?php if ($get_customerCountry == "LI") echo ' selected="selected"'; ?>>Liechtenstein</option> <option value="LK" <?php if ($get_customerCountry == "LK") echo ' selected="selected"'; ?>>Sri Lanka</option> <option value="LS" <?php if ($get_customerCountry == "LS") echo ' selected="selected"'; ?>>Lesotho</option> <option value="LT" <?php if ($get_customerCountry == "LT") echo ' selected="selected"'; ?>>Lithuania</option> <option value="LU" <?php if ($get_customerCountry == "LU") echo ' selected="selected"'; ?>>Luxembourg</option> <option value="LV" <?php if ($get_customerCountry == "LV") echo ' selected="selected"'; ?>>Latvia</option> <option value="MO" <?php if ($get_customerCountry == "MO") echo ' selected="selected"'; ?>>Macau</option> <option value="MF" <?php if ($get_customerCountry == "MF") echo ' selected="selected"'; ?>>Saint Martin</option> <option value="MA" <?php if ($get_customerCountry == "MA") echo ' selected="selected"'; ?>>Morocco</option> <option value="MC" <?php if ($get_customerCountry == "MC") echo ' selected="selected"'; ?>>Monaco</option> <option value="MD" <?php if ($get_customerCountry == "MD") echo ' selected="selected"'; ?>>Moldova</option> <option value="MG" <?php if ($get_customerCountry == "MG") echo ' selected="selected"'; ?>>Madagascar</option> <option value="MV" <?php if ($get_customerCountry == "MV") echo ' selected="selected"'; ?>>Maldives</option> <option value="MX" <?php if ($get_customerCountry == "MX") echo ' selected="selected"'; ?>>Mexico</option> <option value="MH" <?php if ($get_customerCountry == "MH") echo ' selected="selected"'; ?>>Marshall Islands</option> <option value="MK" <?php if ($get_customerCountry == "MK") echo ' selected="selected"'; ?>>Macedonia</option> <option value="ML" <?php if ($get_customerCountry == "ML") echo ' selected="selected"'; ?>>Mali</option> <option value="MT" <?php if ($get_customerCountry == "MT") echo ' selected="selected"'; ?>>Malta</option> <option value="MM" <?php if ($get_customerCountry == "MM") echo ' selected="selected"'; ?>>Myanmar</option> <option value="ME" <?php if ($get_customerCountry == "ME") echo ' selected="selected"'; ?>>Montenegro</option> <option value="MN" <?php if ($get_customerCountry == "MN") echo ' selected="selected"'; ?>>Mongolia</option> <option value="MZ" <?php if ($get_customerCountry == "MZ") echo ' selected="selected"'; ?>>Mozambique</option> <option value="MR" <?php if ($get_customerCountry == "MR") echo ' selected="selected"'; ?>>Mauritania</option> <option value="MS" <?php if ($get_customerCountry == "MS") echo ' selected="selected"'; ?>>Montserrat</option> <option value="MQ" <?php if ($get_customerCountry == "MQ") echo ' selected="selected"'; ?>>Martinique</option> <option value="MU" <?php if ($get_customerCountry == "MU") echo ' selected="selected"'; ?>>Mauritius</option> <option value="MW" <?php if ($get_customerCountry == "MW") echo ' selected="selected"'; ?>>Malawi</option> <option value="MY" <?php if ($get_customerCountry == "MY") echo ' selected="selected"'; ?>>Malaysia</option> <option value="YT" <?php if ($get_customerCountry == "YT") echo ' selected="selected"'; ?>>Mayotte</option> <option value="NA" <?php if ($get_customerCountry == "NA") echo ' selected="selected"'; ?>>Namibia</option> <option value="NC" <?php if ($get_customerCountry == "NC") echo ' selected="selected"'; ?>>New Caledonia</option> <option value="NE" <?php if ($get_customerCountry == "NE") echo ' selected="selected"'; ?>>Niger</option> <option value="NF" <?php if ($get_customerCountry == "NF") echo ' selected="selected"'; ?>>Norfolk Island</option> <option value="NG" <?php if ($get_customerCountry == "NG") echo ' selected="selected"'; ?>>Nigeria</option> <option value="NI" <?php if ($get_customerCountry == "NI") echo ' selected="selected"'; ?>>Nicaragua</option> <option value="NU" <?php if ($get_customerCountry == "NU") echo ' selected="selected"'; ?>>Niue</option> <option value="NL" <?php if ($get_customerCountry == "NL") echo ' selected="selected"'; ?>>Netherlands</option> <option value="NO" <?php if ($get_customerCountry == "NO") echo ' selected="selected"'; ?>>Norway</option> <option value="NP" <?php if ($get_customerCountry == "NP") echo ' selected="selected"'; ?>>Nepal</option> <option value="NR" <?php if ($get_customerCountry == "NR") echo ' selected="selected"'; ?>>Nauru</option> <option value="NZ" <?php if ($get_customerCountry == "NZ") echo ' selected="selected"'; ?>>New Zealand</option> <option value="OM" <?php if ($get_customerCountry == "OM") echo ' selected="selected"'; ?>>Oman</option> <option value="PK" <?php if ($get_customerCountry == "PK") echo ' selected="selected"'; ?>>Pakistan</option> <option value="PA" <?php if ($get_customerCountry == "PA") echo ' selected="selected"'; ?>>Panama</option> <option value="PN" <?php if ($get_customerCountry == "PN") echo ' selected="selected"'; ?>>Pitcairn Islands</option> <option value="PE" <?php if ($get_customerCountry == "PE") echo ' selected="selected"'; ?>>Peru</option> <option value="PH" <?php if ($get_customerCountry == "PH") echo ' selected="selected"'; ?>>Philippines</option> <option value="PW" <?php if ($get_customerCountry == "PW") echo ' selected="selected"'; ?>>Palau</option> <option value="PG" <?php if ($get_customerCountry == "PG") echo ' selected="selected"'; ?>>Papua New Guinea</option> <option value="PL" <?php if ($get_customerCountry == "PL") echo ' selected="selected"'; ?>>Poland</option> <option value="PT" <?php if ($get_customerCountry == "PT") echo ' selected="selected"'; ?>>Portugal</option> <option value="PY" <?php if ($get_customerCountry == "PY") echo ' selected="selected"'; ?>>Paraguay</option> <option value="PS" <?php if ($get_customerCountry == "PS") echo ' selected="selected"'; ?>>Palestine</option> <option value="PF" <?php if ($get_customerCountry == "PF") echo ' selected="selected"'; ?>>French Polynesia</option> <option value="QA" <?php if ($get_customerCountry == "QA") echo ' selected="selected"'; ?>>Qatar</option> <option value="RE" <?php if ($get_customerCountry == "RE") echo ' selected="selected"'; ?>>Réunion</option> <option value="RO" <?php if ($get_customerCountry == "RO") echo ' selected="selected"'; ?>>Romania</option> <option value="RU" <?php if ($get_customerCountry == "RU") echo ' selected="selected"'; ?>>Russia</option> <option value="RW" <?php if ($get_customerCountry == "RW") echo ' selected="selected"'; ?>>Rwanda</option> <option value="SA" <?php if ($get_customerCountry == "SA") echo ' selected="selected"'; ?>>Saudi Arabia</option> <option value="SD" <?php if ($get_customerCountry == "SD") echo ' selected="selected"'; ?>>Sudan</option> <option value="SN" <?php if ($get_customerCountry == "SN") echo ' selected="selected"'; ?>>Senegal</option> <option value="SG" <?php if ($get_customerCountry == "SG") echo ' selected="selected"'; ?>>Singapore</option> <option value="GS" <?php if ($get_customerCountry == "GS") echo ' selected="selected"'; ?>>South Georgia</option> <option value="SJ" <?php if ($get_customerCountry == "SJ") echo ' selected="selected"'; ?>>Svalbard and Jan Mayen</option> <option value="SB" <?php if ($get_customerCountry == "SB") echo ' selected="selected"'; ?>>Solomon Islands</option> <option value="SL" <?php if ($get_customerCountry == "SL") echo ' selected="selected"'; ?>>Sierra Leone</option> <option value="SV" <?php if ($get_customerCountry == "SV") echo ' selected="selected"'; ?>>El Salvador</option> <option value="SM" <?php if ($get_customerCountry == "SM") echo ' selected="selected"'; ?>>San Marino</option> <option value="SO" <?php if ($get_customerCountry == "SO") echo ' selected="selected"'; ?>>Somalia</option> <option value="PM" <?php if ($get_customerCountry == "PM") echo ' selected="selected"'; ?>>Saint Pierre and Miquelon</option> <option value="RS" <?php if ($get_customerCountry == "RS") echo ' selected="selected"'; ?>>Serbia</option> <option value="SS" <?php if ($get_customerCountry == "SS") echo ' selected="selected"'; ?>>South Sudan</option> <option value="ST" <?php if ($get_customerCountry == "ST") echo ' selected="selected"'; ?>>São Tomé and Príncipe</option> <option value="SR" <?php if ($get_customerCountry == "SR") echo ' selected="selected"'; ?>>Suriname</option> <option value="SK" <?php if ($get_customerCountry == "SK") echo ' selected="selected"'; ?>>Slovakia</option> <option value="SI" <?php if ($get_customerCountry == "SI") echo ' selected="selected"'; ?>>Slovenia</option> <option value="SE" <?php if ($get_customerCountry == "SE") echo ' selected="selected"'; ?>>Sweden</option> <option value="SZ" <?php if ($get_customerCountry == "SZ") echo ' selected="selected"'; ?>>Swaziland</option> <option value="SX" <?php if ($get_customerCountry == "SX") echo ' selected="selected"'; ?>>Sint Maarten</option> <option value="SC" <?php if ($get_customerCountry == "SC") echo ' selected="selected"'; ?>>Seychelles</option> <option value="SY" <?php if ($get_customerCountry == "SY") echo ' selected="selected"'; ?>>Syria</option> <option value="TC" <?php if ($get_customerCountry == "TC") echo ' selected="selected"'; ?>>Turks and Caicos Islands</option> <option value="TD" <?php if ($get_customerCountry == "TD") echo ' selected="selected"'; ?>>Chad</option> <option value="TG" <?php if ($get_customerCountry == "TG") echo ' selected="selected"'; ?>>Togo</option> <option value="TH" <?php if ($get_customerCountry == "TH") echo ' selected="selected"'; ?>>Thailand</option> <option value="TJ" <?php if ($get_customerCountry == "TJ") echo ' selected="selected"'; ?>>Tajikistan</option> <option value="TK" <?php if ($get_customerCountry == "TK") echo ' selected="selected"'; ?>>Tokelau</option> <option value="TM" <?php if ($get_customerCountry == "TM") echo ' selected="selected"'; ?>>Turkmenistan</option> <option value="TL" <?php if ($get_customerCountry == "TL") echo ' selected="selected"'; ?>>Timor-Leste</option> <option value="TO" <?php if ($get_customerCountry == "TO") echo ' selected="selected"'; ?>>Tonga</option> <option value="TT" <?php if ($get_customerCountry == "TT") echo ' selected="selected"'; ?>>Trinidad and Tobago</option> <option value="TN" <?php if ($get_customerCountry == "TN") echo ' selected="selected"'; ?>>Tunisia</option> <option value="TR" <?php if ($get_customerCountry == "TR") echo ' selected="selected"'; ?>>Turkey</option> <option value="TV" <?php if ($get_customerCountry == "TV") echo ' selected="selected"'; ?>>Tuvalu</option> <option value="TW" <?php if ($get_customerCountry == "TW") echo ' selected="selected"'; ?>>Taiwan</option> <option value="TZ" <?php if ($get_customerCountry == "TZ") echo ' selected="selected"'; ?>>Tanzania</option> <option value="UG" <?php if ($get_customerCountry == "UG") echo ' selected="selected"'; ?>>Uganda</option> <option value="UA" <?php if ($get_customerCountry == "UA") echo ' selected="selected"'; ?>>Ukraine</option> <option value="UM" <?php if ($get_customerCountry == "UM") echo ' selected="selected"'; ?>>United States Minor Outlying Islands</option> <option value="UY" <?php if ($get_customerCountry == "UY") echo ' selected="selected"'; ?>>Uruguay</option> <option value="UZ" <?php if ($get_customerCountry == "UZ") echo ' selected="selected"'; ?>>Uzbekistan</option> <option value="VA" <?php if ($get_customerCountry == "VA") echo ' selected="selected"'; ?>>Vatican City</option> <option value="VC" <?php if ($get_customerCountry == "VC") echo ' selected="selected"'; ?>>Saint Vincent and the Grenadines</option> <option value="VE" <?php if ($get_customerCountry == "VE") echo ' selected="selected"'; ?>>Venezuela</option> <option value="VG" <?php if ($get_customerCountry == "VG") echo ' selected="selected"'; ?>>British Virgin Islands</option> <option value="VN" <?php if ($get_customerCountry == "VN") echo ' selected="selected"'; ?>>Vietnam</option> <option value="VU" <?php if ($get_customerCountry == "VU") echo ' selected="selected"'; ?>>Vanuatu</option> <option value="WF" <?php if ($get_customerCountry == "WF") echo ' selected="selected"'; ?>>Wallis and Futuna</option> <option value="WS" <?php if ($get_customerCountry == "WS") echo ' selected="selected"'; ?>>Samoa</option> <option value="YE" <?php if ($get_customerCountry == "YE") echo ' selected="selected"'; ?>>Yemen</option> <option value="ZA" <?php if ($get_customerCountry == "ZA") echo ' selected="selected"'; ?>>South Africa</option> <option value="ZM" <?php if ($get_customerCountry == "ZM") echo ' selected="selected"'; ?>>Zambia</option> <option value="ZW" <?php if ($get_customerCountry == "ZW") echo ' selected="selected"'; ?>>Zimbabwe</option> </select> </div> </div> <div class="col-xl-12 col-lg-12"> <div class="form-group form__group"> <label>Phone</label> <input type="text" name="cell_phone_number" class="form-control form__control" value="<?php echo $get_cell_phone_number; ?>" placeholder="Phone number"> </div> </div> </div> <div class="button__wrapp__submit"><input type="submit" name="save" class="submit__btn" value="Save"></div> </form> </div> <div class="tab-pane tab__pane" id="tab2"> <form action="<?php echo site_url(); ?>/settings/" method="POST"> <p>Manage Your Email & Password</p> <p style="color: red;"><?php echo $error_pass_check; ?></p> <div class="form-group form__group"> <input type="email" name="useremail" class="form-control form__control" disabled value="<?php echo $user_email; ?>"> </div> <div class="form-group form__group"> <input type="text" name="old_password" class="form-control form__control" id="old_password" placeholder="Old password"> </div> <div class="form-group form__group"> <input type="text" name="new_password" class="form-control form__control" id="new_password" placeholder="New password"> </div> <div class="form-group form__group"> <input type="text" name="cnf_password" class="form-control form__control" id="cnf_password" placeholder="Confirm password"> </div> <div class="button__wrapp__submit"><input type="submit" name="check_submit" class="submit__btn check_submit" value="Save"></div> </form> </div> </div> </div> </div> </div> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.bundle.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/jquery.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap-select.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/popper.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/bootstrap.min.js"></script> <script src="<?php echo site_url(); ?>/wp-content/plugins/portfolio/js/gijgo.min.js" type="text/javascript"></script> <script> $('#datepicker').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-1').datepicker({ uiLibrary: 'bootstrap4' }); $('#datepicker-2').datepicker({ uiLibrary: 'bootstrap4' }); $( ".check_submit" ).click(function() { var cnf_password = $('#cnf_password').val(); var new_password = $('#new_password').val(); if (cnf_password != new_password) { alert("Password is not matched"); return false; } }); </script> <?php }
[+]
js
[-] portfolio.php-19-11-2021
[edit]
[+]
stripe-php
[+]
..
[-] Investments.php--
[edit]
[-] portfolio.php
[edit]
[-] Investments.php-29-10-2021
[edit]
[-] portfolio.php----subho-bk
[edit]
[-] Investments.php--28-last-su
[edit]
[+]
vendor
[-] Investments.php-pay-27
[edit]
[-] Investments.php----an-29
[edit]
[-] Investments.php-28-10-2021
[edit]
[+]
css
[-] portfolio.php-17-11-2021
[edit]
[-] portfolio.php--01
[edit]
[-] payment1.js-01-11-2021
[edit]
[-] Investments.php-01-11-2021
[edit]
[+]
images
[-] portfolio.php-24-11-2021
[edit]
[-] payment1.js
[edit]
[-] portfolio.php-18-11-2021
[edit]