$output .= '</figcaption>'; $output .= '</figure></a>'; $output .= '</div>'; $output .= '</div>'; $output .= '<div class="media-body" >'; $output .= '<p class="team-name">' . esc_attr($location) . '</p>'; $output .= '<h4><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></h4>'; $output .= '<div class="entry-meta">'; $output .= '<span class="entry-tag"> ' . get_the_term_list(get_the_ID(), 'project_tag', '<i class="fa fa-tags"></i> ', ', ') . '</span>'; if ($project_type) { $output .= '<span class="entry-category"><i class="fa fa-trophy"></i> ' . esc_attr($project_type) . '</span>'; } $output .= '<span class="entry-comments"><i class="fa fa-money"></i> ' . __('Total Investment', 'themeum-startup-idea') . ': <strong>' . themeum_get_currency_symbol() . esc_attr($funding_goal) . '</strong></span>'; $output .= '</div>'; $output .= '<p>'; $output .= themeum_the_excerpt_max_charlength(200); $output .= '</p>'; $output .= '<a href="' . get_the_permalink() . '" class="btn btn-default">' . __('See Ideas', 'themeum-startup-idea') . '</a>'; $output .= '</div>'; $output .= '</div>'; $output .= '</div>'; } // Reset Query wp_reset_query(); } $output .= '</div>'; $output .= '</div>'; return $output; }); //Visual Composer if (class_exists('WPBakeryVisualComposerAbstract')) {
$location = rwmb_meta("thm_location"); $funding_goal = rwmb_meta("thm_funding_goal"); $output .= '<div class="handpick ' . esc_attr($class) . '">'; $output .= '<p class="rise-pund">' . __("Fund Raised", "themeum-startup-idea") . '</p>'; $wave = 140 / 100 * themeum_get_project_info(get_the_ID(), 'percent'); $output .= '<div class="loading wave" style="background-size: 75px ' . $wave . 'px;">'; $output .= '<h2>' . themeum_get_project_info(get_the_ID(), 'percent') . '<span>%</span></h2>'; $output .= '</div>'; $output .= '<p class="location">' . esc_attr($location) . '</p>'; $output .= '<h3>' . get_the_title() . '</h3>'; $output .= '<div class="info">'; $output .= '<div class="hp-project-meta">'; $output .= '<span class="entry-money"><i class="fa fa-money"></i> ' . __('Total Investment:', 'themeum-startup-idea') . ' <strong>' . themeum_get_currency_symbol() . esc_attr($funding_goal) . '</strong></span>'; $output .= '<span class="entry-rate">' . themeum_get_ratting_data(get_the_ID()) . '</span>'; $output .= '</div>'; $output .= '<p class="intotext">' . themeum_the_excerpt_max_charlength(110) . '</p>'; $output .= '<a class="btn btn-default" href="' . get_the_permalink() . '">' . __('See Idea', 'themeum-startup-idea') . '</a>'; $output .= '</div>'; $output .= '</div>'; //ideas item } // Reset Query wp_reset_query(); $output .= '</div>'; return $output; }); add_action('init', function () { $projects = get_posts(array('posts_per_page' => -1, 'offset' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'project', 'post_status' => 'publish', 'suppress_filters' => true)); $list_project = array(); foreach ($projects as $post) { $list_project[$post->ID] = $post->post_title;