PluginProbe
Team Showcase / 1.7
Team Showcase v1.7
trunk 1.0 1.1 1.11 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.22.0 1.22.1 1.22.10 1.22.12 1.22.13 1.22.14 All 49 releases
← All changes | team.php +17 -69 1.191.7 View file →
@@ -1,16 +1,16 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: Team
4 -Plugin URI: http://www.pickplugins.com/item/team-responsive-meet-the-team-grid-for-wordpress/
4 +Plugin URI: http://paratheme.com/items/team-responsive-meet-the-team-grid-for-wordpress/
5 5 Description: Fully responsive and mobile ready meet the team showcase plugin for wordpress.
6 -Version: 1.19
7 -Author: pickplugins
8 -Author URI: http://pickplugins.com
6 +Version: 1.7
7 +Author: paratheme, pickplugins
8 +Author URI: http://paratheme.com
9 9 License: GPLv2 or later
10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
11 11
12 -Copyright: 2015 pickplugins
12 +Copyright: 2015 ParaTheme
13 13
14 14 */
15 15
16 16 if ( ! defined('ABSPATH')) exit; // if direct access
@@ -19,22 +19,22 @@
19 19 class Team{
20 20
21 21 public function __construct(){
22 22
23 - define('team_plugin_url', plugins_url('/', __FILE__) );
23 + define('team_plugin_url', WP_PLUGIN_URL . '/' . plugin_basename( dirname(__FILE__) ) . '/' );
24 24 define('team_plugin_dir', plugin_dir_path( __FILE__ ) );
25 25 define('team_wp_url', 'http://wordpress.org/plugins/team/' );
26 26 define('team_wp_reviews', 'http://wordpress.org/support/view/plugin-reviews/team' );
27 - define('team_pro_url', 'http://www.pickplugins.com/item/team-responsive-meet-the-team-grid-for-wordpress/' );
28 - define('team_demo_url', 'http://www.pickplugins.com/demo/team/' );
29 - define('team_conatct_url', 'http://pickplugins.com/contact' );
30 - define('team_qa_url', 'http://pickplugins.com/questions/' );
27 + define('team_pro_url', 'http://paratheme.com/items/team-responsive-meet-the-team-grid-for-wordpress/' );
28 + define('team_demo_url', 'http://paratheme.com/items/team-responsive-meet-the-team-grid-for-wordpress/' );
29 + define('team_conatct_url', 'http://paratheme.com/contact' );
30 + define('team_qa_url', 'http://paratheme.com/qa/' );
31 31 define('team_plugin_name', 'Team' );
32 - define('team_plugin_version', '1.19' );
32 + define('team_plugin_version', '1.7' );
33 33 define('team_customer_type', 'free' ); // pro & free
34 34 define('team_share_url', 'http://wordpress.org/plugins/team/' );
35 35 define('team_tutorial_video_url', '//www.youtube.com/embed/8OiNCDavSQg?rel=0' );
36 - define('team_tutorial_doc_url', 'http://pickplugins.com/docs/documentation/team/' );
36 + define('team_tutorial_doc_url', 'http://paratheme.com/documentation/documentation/team/' );
37 37
38 38 include( 'includes/class-post-types.php' );
39 39 include( 'includes/class-post-meta.php' );
40 40 include( 'includes/class-settings.php' );
@@ -40,43 +40,22 @@
40 40 include( 'includes/class-settings.php' );
41 41 include( 'includes/class-functions.php' );
42 42 include( 'includes/class-shortcodes.php' );
43 43
44 - include( 'templates/single-team_member-hook.php' );
45 - include( 'includes/team-functions.php' );
46 - //include( 'includes/Mobile_Detect.php' );
47 - //include( 'includes/mobble.php' );
48 -
49 44 add_action( 'wp_enqueue_scripts', array( $this, 'team_front_scripts' ) );
50 45 add_action( 'admin_enqueue_scripts', array( $this, 'team_admin_scripts' ) );
51 46 //add_action( 'admin_footer', array( $this, 'colorpickersjs' ) );
52 47 //add_action( 'admin_enqueue_scripts', 'wptuts_add_color_picker' );
48 +
49 + }
53 50
54 - register_activation_hook( __FILE__, array( $this, 'team_install' ) );
55 - register_deactivation_hook( __FILE__, array( $this, 'team_deactivation' ) );
56 - //register_uninstall_hook( __FILE__, array( $this, 'team_uninstall' ) );
57 51
58 - add_action( 'plugins_loaded', array( $this, 'team_load_textdomain' ));
52 +
59 53
60 - add_filter('widget_text', 'do_shortcode');
61 - }
62 -
63 -
64 - public function team_load_textdomain() {
65 - load_plugin_textdomain( 'team', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
66 - }
67 54
68 55
69 56 public function team_install(){
70 57
71 - team_update_team_member_social_field();
72 -
73 - // Reset permalink
74 - $team_class_post_types= new team_class_post_types();
75 - $team_class_post_types->team_posttype_team_member();
76 - flush_rewrite_rules();
77 -
78 -
79 58 do_action( 'team_action_install' );
80 59
81 60 }
82 61
@@ -98,25 +77,9 @@
98 77 wp_localize_script('team_front_js', 'team_ajax', array( 'team_ajaxurl' => admin_url( 'admin-ajax.php')));
99 78
100 79 //wp_enqueue_style('team_front_style', team_plugin_url.'css/style.css'); //ssl issue
101 80 wp_enqueue_style('team_front_style', plugins_url( 'css/style.css', __FILE__ ));
102 - wp_enqueue_style('single-team-member', plugins_url( 'assets/front/css/single-team-member.css', __FILE__ ));
103 - //wp_enqueue_style('owl.carousel', plugins_url( 'css/owl.carousel.css', __FILE__ ));
104 - //wp_enqueue_style('owl.theme', plugins_url( 'css/owl.theme.css', __FILE__ ));
105 - //wp_enqueue_style('owl.carousel', team_plugin_url.'css/owl.carousel.css'); //ssl issue
106 - //wp_enqueue_style('owl.theme', team_plugin_url.'css/owl.theme.css'); //ssl issue
107 -
108 -
109 - //wp_enqueue_script('owl.carousel', plugins_url( '/js/owl.carousel.js' , __FILE__ ) , array( 'jquery' ));
110 -
111 - //wp_enqueue_script('jquery.mixitup.min', plugins_url( '/js/jquery.mixitup.min.js' , __FILE__ ) , array( 'jquery' ));
112 - //wp_enqueue_script('jquery.mixitup-pagination', plugins_url( '/js/jquery.mixitup-pagination.js' , __FILE__ ) , array( 'jquery' ));
113 - wp_enqueue_script('masonry.pkgd.min', plugins_url( '/js/masonry.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
114 -
115 - //wp_enqueue_script('isotope.pkgd.min', plugins_url( '/js/isotope.pkgd.min.js' , __FILE__ ) , array( 'jquery' ));
116 -
117 81
118 -
119 82 do_action('team_action_front_scripts');
120 83 }
121 84
122 85 public function team_admin_scripts(){
@@ -125,20 +88,12 @@
125 88 wp_enqueue_script('jquery-ui-core');
126 89 wp_enqueue_script('jquery-ui-sortable');
127 90 //wp_enqueue_script('jquery-ui-droppable');
128 91
129 - wp_enqueue_script('team_admin_js', plugins_url( '/js/scripts-admin.js' , __FILE__ ) , array( 'jquery' ));
130 - wp_localize_script('team_admin_js', 'team_admin_ajax', array( 'team_admin_ajaxurl' => admin_url( 'admin-ajax.php')));
131 -
132 92 wp_enqueue_style('team_admin_style', plugins_url( 'css/style-admin.css', __FILE__ ));
133 - //wp_enqueue_style('team_admin_style', team_plugin_url.'css/style-admin.css'); //ssl issue
134 93
135 - wp_enqueue_style('font-awesome', plugins_url( 'assets/global/css/font-awesome.css', __FILE__ ));
94 + wp_enqueue_script('team_admin_js', plugins_url( '/js/scripts-admin.js' , __FILE__ ) , array( 'jquery' ));
136 95
137 - //wp_enqueue_script('jquery.tablednd', plugins_url( '/js/jquery.tablednd.js' , __FILE__ ) , array( 'jquery' ));
138 -
139 -
140 -
141 96 //wp_enqueue_script( 'wp-color-picker' );
142 97 wp_enqueue_style( 'wp-color-picker' );
143 98 wp_enqueue_script( 'color-picker', plugins_url('/js/color-picker.js', __FILE__ ), array( 'wp-color-picker' ), true, true );
144 99
@@ -153,14 +108,7 @@
153 108 }
154 109
155 110
156 111
157 -
158 -
159 -
160 112 }
161 113
162 - new Team();
163 -
164 -
165 -
166 -
114 + new Team();