| @@ -17,11 +17,10 @@ | ||
| 17 | 17 | public function __construct() |
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | add_shortcode( 'team', array( $this, 'team_display' ) ); |
| 21 | - //add_shortcode( 'team_single', array( $this, 'team_single_display' ) ); | |
| 22 | - | |
| 23 | - | |
| 21 | + //add_action( 'admin_menu', array( $this, 'admin_menu' ), 12 ); | |
| 22 | + //add_action('admin_menu', array($this, 'create_menu')); | |
| 24 | 23 | } |
| 25 | 24 | |
| 26 | 25 | public function team_display($atts, $content = null ) { |
| 27 | 26 | $atts = shortcode_atts( |
| @@ -33,57 +32,24 @@ | ||
| 33 | 32 | $html = ''; |
| 34 | 33 | $post_id = $atts['id']; |
| 35 | 34 | |
| 36 | 35 | $team_themes = get_post_meta( $post_id, 'team_themes', true ); |
| 37 | - | |
| 36 | + | |
| 38 | 37 | $class_team_functions = new class_team_functions(); |
| 39 | 38 | $team_themes_dir = $class_team_functions->team_themes_dir(); |
| 40 | 39 | $team_themes_url = $class_team_functions->team_themes_url(); |
| 41 | 40 | |
| 42 | - | |
| 41 | + //var_dump($team_themes_url); | |
| 42 | + | |
| 43 | + | |
| 44 | + echo '<link type="text/css" media="all" rel="stylesheet" href="'.$team_themes_url[$team_themes].'/style.min.css" >'; | |
| 43 | 45 | |
| 44 | 46 | include $team_themes_dir[$team_themes].'/index.php'; |
| 45 | 47 | |
| 46 | - include team_plugin_dir.'/templates/team-grid-custom-css.php'; | |
| 47 | - | |
| 48 | - $html.= '<link type="text/css" media="all" rel="stylesheet" href="'.$team_themes_url[$team_themes].'/style.min.css" >'; | |
| 49 | - | |
| 50 | 48 | return $html; |
| 51 | 49 | |
| 52 | 50 | |
| 53 | 51 | } |
| 54 | - | |
| 55 | - | |
| 56 | - | |
| 57 | - public function team_single_display($atts, $content = null ) { | |
| 58 | - $atts = shortcode_atts( | |
| 59 | - array( | |
| 60 | - 'themes' => "flat", | |
| 61 | - | |
| 62 | - ), $atts); | |
| 63 | - | |
| 64 | - $html = ''; | |
| 65 | - $themes = $atts['themes']; | |
| 66 | - | |
| 67 | - | |
| 68 | - $class_team_functions = new class_team_functions(); | |
| 69 | - $team_single_themes_dir = $class_team_functions->team_single_themes_dir(); | |
| 70 | - $team_single_themes_url = $class_team_functions->team_single_themes_url(); | |
| 71 | - | |
| 72 | - echo '<link type="text/css" media="all" rel="stylesheet" href="'.$team_single_themes_url[$themes].'/style.min.css" >'; | |
| 73 | - | |
| 74 | - include $team_single_themes_dir[$themes].'/index.php'; | |
| 75 | - | |
| 76 | - return $html; | |
| 77 | - | |
| 78 | - | |
| 79 | - } | |
| 80 | - | |
| 81 | - | |
| 82 | - | |
| 83 | - | |
| 84 | - | |
| 85 | - | |
| 86 | 52 | |
| 87 | 53 | } |
| 88 | 54 | |
| 89 | 55 | |