PATH:
home
/
lab2454c
/
invest.credityork.com
/
wp-content
/
plugins
/
portfolio
<?php /* Plugin Name: investments Description: investments products. 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('Investments', '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','comments') ); 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('cr_portfolio', 'portfolio_cust'); function portfolio_cust(){ ob_start(); portfolio_cust_show(); return ob_get_clean(); } function portfolio_cust_show() { $site_url = site_url()."/login"; if ( ! is_user_logged_in() ) { wp_redirect($site_url); } $args = array( 'post_type' => 'investments', 'posts_per_page' => 6, 'order' => 'DESC' ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ): $the_query->the_post(); echo "<br>"; echo get_field('title',$post->ID); echo "<br>"; echo get_field('subtitle',$post->ID); echo "<br>"; echo get_field('media_link',$post->ID); echo "<br>"; echo get_field('website_link',$post->ID); echo "<br>"; echo substr(get_field('description',$post->ID),0,83)."..."; echo "<br>"; echo get_field('place_name',$post->ID); echo "<br>"; echo get_field('valuation',$post->ID); echo "<br>"; echo get_field('price_per_share',$post->ID); echo "<br>"; echo get_field('min_investment',$post->ID); echo "<br>"; echo get_field('shares_offered',$post->ID); echo "<br>"; echo get_field('offering_type',$post->ID); echo "<br>"; echo get_field('offering_max',$post->ID); echo "<br>"; echo get_field('offering',$post->ID); echo "<br>"; ?> <a href="<?php the_permalink();?>">Link</a> <?php echo "<br>"; endwhile; } wp_reset_postdata(); } 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"; if ( ! is_user_logged_in() ) { wp_redirect($site_url); } global $post; echo "<br>"; echo get_field('title',$post->ID); echo "<br>"; echo get_field('subtitle',$post->ID); echo "<br>"; echo get_field('media_link',$post->ID); echo "<br>"; echo get_field('website_link',$post->ID); echo "<br>"; echo get_field('description',$post->ID); echo "<br>"; echo get_field('place_name',$post->ID); echo "<br>"; echo get_field('valuation',$post->ID); echo "<br>"; echo get_field('price_per_share',$post->ID); echo "<br>"; echo get_field('min_investment',$post->ID); echo "<br>"; echo get_field('shares_offered',$post->ID); echo "<br>"; echo get_field('offering_type',$post->ID); echo "<br>"; echo get_field('offering_max',$post->ID); echo "<br>"; echo get_field('offering',$post->ID); echo "<br>"; ?> <a href="<?php the_permalink();?>">Link</a> <?php echo "<br>"; }
[+]
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]