# team/1.7/includes/class-shortcodes.php

Team Showcase, version 1.7. 58 lines.

- Page: https://pluginprobe.com/plugins/team/1.7/code/includes/class-shortcodes.php
- Raw: https://pluginprobe.com/plugins/team/1.7/raw/includes/class-shortcodes.php
- Modified: 2015-09-19T06:56:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/team/1.7/code/includes/class-shortcodes.php#L10-L20`.

```php
<?php

/*
* @Author 		ParaTheme
* @Folder	 	Team/Includes
* @version     3.0.5

* Copyright: 	2015 ParaTheme
*/

if ( ! defined('ABSPATH')) exit;  // if direct access 	


class class_team_shortcodes  {
	
	
    public function __construct()
    {
		
		add_shortcode( 'team', array( $this, 'team_display' ) );
		//add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 );
    	//add_action('admin_menu', array($this, 'create_menu'));
    }
	
	public function team_display($atts, $content = null ) {
			$atts = shortcode_atts(
				array(
					'id' => "",
	
					), $atts);
	
				$html = '';
				$post_id = $atts['id'];
	
				$team_themes = get_post_meta( $post_id, 'team_themes', true );

				$class_team_functions = new class_team_functions();
				$team_themes_dir = $class_team_functions->team_themes_dir();
				$team_themes_url = $class_team_functions->team_themes_url();

				//var_dump($team_themes_url);
				
				
				echo '<link  type="text/css" media="all" rel="stylesheet"  href="'.$team_themes_url[$team_themes].'/style.min.css" >';				

				include $team_themes_dir[$team_themes].'/index.php';				
	
				return $html;
	
	
	}

}


new class_team_shortcodes();


```
