Our Team Showcase - Version 2.1

Version Description

  1. sidebar widget bug fix
  2. removed archive
  3. fixed columns bug
  4. fixed drag & drop bug
Download this release

Release Info

Developer smartcat
Plugin Icon 128x128 Our Team Showcase
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

README.md DELETED
@@ -1,4 +0,0 @@
1
- our-team
2
- ========
3
-
4
- WordPress Plugin used to display an appealing team profile as a widget or shortcode.
 
 
 
 
admin/options.php CHANGED
@@ -169,7 +169,7 @@
169
  <tr>
170
  <td>
171
  Grid Boxes &amp; Grid Circles Demo<br>
172
- <img src="<?php echo SC_TEAM_URL ?>screenshot-1.png" width="100%">
173
  </td>
174
  <td>
175
  Honeycomb Demo<br>
169
  <tr>
170
  <td>
171
  Grid Boxes &amp; Grid Circles Demo<br>
172
+ <img src="<?php echo SC_TEAM_URL ?>screenshot-1.jpg" width="100%">
173
  </td>
174
  <td>
175
  Honeycomb Demo<br>
admin/reorder.php CHANGED
@@ -10,7 +10,7 @@
10
  <tbody>
11
  <tr>
12
  <td>
13
- <ul class="sortable grid" data-action="<?php echo SC_TEAM_PATH; ?>">
14
  <?php
15
  $args = array(
16
  'post_type' => 'team_member',
10
  <tbody>
11
  <tr>
12
  <td>
13
+ <ul class="sc_sortable grid" data-action="<?php echo SC_TEAM_PATH; ?>">
14
  <?php
15
  $args = array(
16
  'post_type' => 'team_member',
admin/setting.php CHANGED
@@ -126,11 +126,12 @@
126
  <table class="widefat">
127
  <thead>
128
  <tr>
129
- <th><b>Looking for Support?</b> </th>
130
  </tr>
131
  <tr>
132
  <td>
133
- <p>If you come across any bugs or issues, please <a href="http://smartcatdesign.net/contact" target="_blank">contact us</a> and let us know</p>
 
134
  </td>
135
  </tr>
136
  </thead>
126
  <table class="widefat">
127
  <thead>
128
  <tr>
129
+ <th><b>Showcase Your Services</b> </th>
130
  </tr>
131
  <tr>
132
  <td>
133
+ <p>Make your products/services stand out with our similar Services Showcase plugin.</p>
134
+ <p><a class="button button-primary" href="https://wordpress.org/plugins/our-services-showcase/" target="_blank">Download</a></p>
135
  </td>
136
  </tr>
137
  </thead>
img/check.png DELETED
Binary file
img/email.png DELETED
Binary file
img/fb.png DELETED
Binary file
img/google.png DELETED
Binary file
img/icon.png DELETED
Binary file
img/linkedin.png DELETED
Binary file
img/noprofile.jpg DELETED
Binary file
img/spinner.gif DELETED
Binary file
img/twitter.png DELETED
Binary file
inc/class/class.smartcat-team.php CHANGED
@@ -43,7 +43,6 @@ class SmartcatTeamPlugin {
43
  'single_template' => 'standard',
44
  'redirect' => true,
45
  'single_image_size' => 'small',
46
- 'single_skills' => 'yes'
47
  );
48
 
49
  if ( !get_option( 'smartcat_team_options' ) ) {
@@ -69,8 +68,10 @@ class SmartcatTeamPlugin {
69
  add_action( 'add_meta_boxes', array( $this, 'smartcat_team_member_info_box' ) );
70
  add_action( 'save_post', array( $this, 'team_member_box_save' ) );
71
  add_action( 'widgets_init', array( $this, 'wpb_load_widget' ) );
72
- add_filter( 'manage_posts_columns', array( $this, 'posts_columns' ), 5 );
73
- add_action( 'manage_posts_custom_column', array( $this, 'posts_custom_columns' ), 5, 2 );
 
 
74
  add_action( 'wp_ajax_smartcat_team_update_pm', array( $this, 'smartcat_team_update_order' ) );
75
  add_action( 'wp_head', array( $this, 'sc_custom_styles' ) );
76
  add_filter( 'the_content', array( $this, 'smartcat_set_single_content' ) );
@@ -176,7 +177,7 @@ class SmartcatTeamPlugin {
176
  'public' => true,
177
  'menu_icon' => SC_TEAM_URL . 'inc/img/icon.png',
178
  'supports' => array( 'title', 'editor', 'thumbnail' ),
179
- 'has_archive' => true,
180
  );
181
  register_post_type( 'team_member', $args );
182
  flush_rewrite_rules();
@@ -299,32 +300,11 @@ class SmartcatTeamPlugin {
299
  update_post_meta( $post_id, 'team_member_gplus', $gplus_url );
300
  }
301
  }
302
-
303
- public function sc_team_switch_skill( $value ){
304
- if( $value < 0 )
305
- return 0;
306
- elseif( $value > 10 )
307
- return 10;
308
- else
309
- return $value;
310
-
311
- }
312
 
313
  public function wpb_load_widget() {
314
  register_widget( 'smartcat_team_widget' );
315
  }
316
 
317
- public function posts_columns( $defaults ) {
318
- $defaults[ 'riv_post_thumbs' ] = __( 'Profile Picture' );
319
- return $defaults;
320
- }
321
-
322
- public function posts_custom_columns( $column_name, $id ) {
323
- if ( $column_name === 'riv_post_thumbs' ) {
324
- echo the_post_thumbnail( 'thumbnail' );
325
- }
326
- }
327
-
328
  public function smartcat_team_update_order() {
329
  $post_id = $_POST[ 'id' ];
330
  $sc_member_order = $_POST[ 'sc_member_order' ];
@@ -385,7 +365,7 @@ class SmartcatTeamPlugin {
385
  if ( $gplus != '' )
386
  echo '<a href="' . $gplus . '"><img src="' . SC_TEAM_URL . 'inc/img/google.png" class="sc-social"/></a>';
387
  if ( $email != '' )
388
- echo '<a href=mailto:"' . $email . '"><img src="' . SC_TEAM_URL . 'inc/img/email.png" class="sc-social"/></a>';
389
  }
390
 
391
  public function smartcat_get_social_content( $facebook, $twitter, $linkedin, $gplus, $email ){
@@ -402,7 +382,7 @@ class SmartcatTeamPlugin {
402
  if ( $gplus != '' )
403
  $content .= '<a href="' . $gplus . '"><img src="' . SC_TEAM_URL . 'inc/img/google.png" class="sc-social"/></a>';
404
  if ( $email != '' )
405
- $content .= '<a href=mailto:"' . $email . '"><img src="' . SC_TEAM_URL . 'inc/img/email.png" class="sc-social"/></a>';
406
  }
407
  return $content;
408
  }
@@ -441,7 +421,7 @@ class smartcat_team_widget extends WP_Widget {
441
 
442
  function __construct() {
443
  parent::__construct(
444
- 'smartcat_team_widget', __( 'Our Team Widget', 'smartcat_team_widget_domain' ), array( 'description' => __( 'Use this widget to display the Our Team anywhere on the site.', 'smartcat_team_widget_domain' ), )
445
  );
446
  }
447
 
@@ -456,7 +436,11 @@ class smartcat_team_widget extends WP_Widget {
456
  echo $args[ 'before_title' ] . $title . $args[ 'after_title' ];
457
 
458
  // This is where you run the code and display the output
459
- include 'inc/widget.php';
 
 
 
 
460
  // echo $args['after_title'];
461
  }
462
 
43
  'single_template' => 'standard',
44
  'redirect' => true,
45
  'single_image_size' => 'small',
 
46
  );
47
 
48
  if ( !get_option( 'smartcat_team_options' ) ) {
68
  add_action( 'add_meta_boxes', array( $this, 'smartcat_team_member_info_box' ) );
69
  add_action( 'save_post', array( $this, 'team_member_box_save' ) );
70
  add_action( 'widgets_init', array( $this, 'wpb_load_widget' ) );
71
+ // add_filter( 'manage_posts_columns', array( $this, 'posts_columns' ), 5 );
72
+ // add_action( 'manage_posts_custom_column', array( $this, 'posts_custom_columns' ), 5, 2 );
73
+
74
+ // add_filter( 'manage_edit-team_member_columns', array( $this, 'edit_columns') );
75
  add_action( 'wp_ajax_smartcat_team_update_pm', array( $this, 'smartcat_team_update_order' ) );
76
  add_action( 'wp_head', array( $this, 'sc_custom_styles' ) );
77
  add_filter( 'the_content', array( $this, 'smartcat_set_single_content' ) );
177
  'public' => true,
178
  'menu_icon' => SC_TEAM_URL . 'inc/img/icon.png',
179
  'supports' => array( 'title', 'editor', 'thumbnail' ),
180
+ 'has_archive' => false,
181
  );
182
  register_post_type( 'team_member', $args );
183
  flush_rewrite_rules();
300
  update_post_meta( $post_id, 'team_member_gplus', $gplus_url );
301
  }
302
  }
 
 
 
 
 
 
 
 
 
 
303
 
304
  public function wpb_load_widget() {
305
  register_widget( 'smartcat_team_widget' );
306
  }
307
 
 
 
 
 
 
 
 
 
 
 
 
308
  public function smartcat_team_update_order() {
309
  $post_id = $_POST[ 'id' ];
310
  $sc_member_order = $_POST[ 'sc_member_order' ];
365
  if ( $gplus != '' )
366
  echo '<a href="' . $gplus . '"><img src="' . SC_TEAM_URL . 'inc/img/google.png" class="sc-social"/></a>';
367
  if ( $email != '' )
368
+ echo '<a href=mailto:' . $email . '><img src="' . SC_TEAM_URL . 'inc/img/email.png" class="sc-social"/></a>';
369
  }
370
 
371
  public function smartcat_get_social_content( $facebook, $twitter, $linkedin, $gplus, $email ){
382
  if ( $gplus != '' )
383
  $content .= '<a href="' . $gplus . '"><img src="' . SC_TEAM_URL . 'inc/img/google.png" class="sc-social"/></a>';
384
  if ( $email != '' )
385
+ $content .= '<a href=mailto:' . $email . '><img src="' . SC_TEAM_URL . 'inc/img/email.png" class="sc-social"/></a>';
386
  }
387
  return $content;
388
  }
421
 
422
  function __construct() {
423
  parent::__construct(
424
+ 'smartcat_team_widget', __( 'Our Team Sidebar Widget', 'smartcat_team_widget_domain' ), array( 'description' => __( 'Use this widget to display the Our Team anywhere on the site.', 'smartcat_team_widget_domain' ), )
425
  );
426
  }
427
 
436
  echo $args[ 'before_title' ] . $title . $args[ 'after_title' ];
437
 
438
  // This is where you run the code and display the output
439
+ include SC_TEAM_PATH . 'inc/template/widget.php';
440
+
441
+
442
+
443
+
444
  // echo $args['after_title'];
445
  }
446
 
inc/script/sc_our_team_admin.js CHANGED
@@ -28,28 +28,28 @@ jQuery(document).ready(function($) {
28
 
29
  sc_team_set_order();
30
 
31
- $('.sortable').sortable();
32
- $('.handles').sortable({
33
  handle: 'span'
34
  });
35
- $('.connected').sortable({
36
  connectWith: '.connected'
37
  });
38
- $('.exclude').sortable({
39
  items: ':not(.disabled)'
40
  });
41
- $('.sortable').sortable().bind('sortupdate', function(e, ui) {
42
  sc_team_set_order();
43
  });
44
 
45
  function sc_team_set_order() {
46
- $('.sortable li').each(function() {
47
  $(this).attr('sc_member_order', $(this).index());
48
  });
49
  }
50
 
51
  $('#set_order').click(function() {
52
- var post_path = $('.sortable').attr('data-action');
53
  // UX
54
  $(this).attr('disabled','disable');
55
 
@@ -57,7 +57,7 @@ jQuery(document).ready(function($) {
57
  $(this).delay(800).fadeOut(200);
58
  });
59
 
60
- $('.sortable li').each(function() {
61
 
62
  var data = {
63
  action: 'sc_team_update_order',
@@ -90,7 +90,7 @@ jQuery(document).ready(function($) {
90
  */
91
  (function($) {
92
  var dragging, placeholders = $();
93
- $.fn.sortable = function(options) {
94
  var method = String(options);
95
  options = $.extend({
96
  connectWith: false
28
 
29
  sc_team_set_order();
30
 
31
+ $('.sc_sortable').sc_sortable();
32
+ $('.handles').sc_sortable({
33
  handle: 'span'
34
  });
35
+ $('.connected').sc_sortable({
36
  connectWith: '.connected'
37
  });
38
+ $('.exclude').sc_sortable({
39
  items: ':not(.disabled)'
40
  });
41
+ $('.sc_sortable').sc_sortable().bind('sortupdate', function(e, ui) {
42
  sc_team_set_order();
43
  });
44
 
45
  function sc_team_set_order() {
46
+ $('.sc_sortable li').each(function() {
47
  $(this).attr('sc_member_order', $(this).index());
48
  });
49
  }
50
 
51
  $('#set_order').click(function() {
52
+ var post_path = $('.sc_sortable').attr('data-action');
53
  // UX
54
  $(this).attr('disabled','disable');
55
 
57
  $(this).delay(800).fadeOut(200);
58
  });
59
 
60
+ $('.sc_sortable li').each(function() {
61
 
62
  var data = {
63
  action: 'sc_team_update_order',
90
  */
91
  (function($) {
92
  var dragging, placeholders = $();
93
+ $.fn.sc_sortable = function(options) {
94
  var method = String(options);
95
  options = $.extend({
96
  connectWith: false
inc/style/sc_our_team.css CHANGED
@@ -474,12 +474,12 @@
474
  /**
475
  * widget css
476
  */
477
- .widget#sc_our_team .sc_team_member{
478
  width: 100%;
479
  overflow: hidden;
480
  margin: 0 0 10px 0;
481
  }
482
- .widget#sc_our_team .sc_team_member .wp-post-image{
483
  float: left;
484
  width: 25%;
485
  border: 1px solid #d0d0d0;
@@ -487,14 +487,14 @@
487
  box-sizing: border-box;
488
  margin: 0;
489
  }
490
- .widget#sc_our_team .sc_team_member .sc_team_member_overlay{
491
  float: left;
492
  width: 75%;
493
  padding: 0 0 0 10px;
494
  box-sizing: border-box;
495
  }
496
 
497
- .widget#sc_our_team .sc_team_member .sc_team_member_overlay .sc_team_member_name{
498
  font-weight: bold;
499
  }
500
 
474
  /**
475
  * widget css
476
  */
477
+ .widget#sc_our_team .sc_sidebar_team_member{
478
  width: 100%;
479
  overflow: hidden;
480
  margin: 0 0 10px 0;
481
  }
482
+ .widget#sc_our_team .sc_sidebar_team_member .wp-post-image{
483
  float: left;
484
  width: 25%;
485
  border: 1px solid #d0d0d0;
487
  box-sizing: border-box;
488
  margin: 0;
489
  }
490
+ .widget#sc_our_team .sc_sidebar_team_member .sc_team_member_overlay{
491
  float: left;
492
  width: 75%;
493
  padding: 0 0 0 10px;
494
  box-sizing: border-box;
495
  }
496
 
497
+ .widget#sc_our_team .sc_sidebar_team_member .sc_team_member_overlay .sc_team_member_name{
498
  font-weight: bold;
499
  }
500
 
inc/style/sc_our_team_admin.css CHANGED
@@ -45,7 +45,7 @@ root {
45
  width: 460px;
46
  font-size: 0.9em;
47
  }
48
- .connected, .sortable, .exclude, .handles {
49
  margin: auto;
50
  padding: 0;
51
  width: 450px;
@@ -56,10 +56,10 @@ root {
56
  -ms-user-select: none;
57
  user-select: none;
58
  }
59
- .sortable.grid {
60
  overflow: hidden;
61
  }
62
- .connected li, .sortable li, .exclude li, .handles li {
63
  list-style: none;
64
  border: 1px solid #CCC;
65
  background: #F6F6F6;
@@ -75,7 +75,7 @@ root {
75
  li.disabled {
76
  opacity: 0.5;
77
  }
78
- .sortable.grid li {
79
  line-height: 80px;
80
  float: left;
81
  width: 80px;
@@ -97,7 +97,7 @@ li.highlight {
97
  .connected.no2 {
98
  float: right;
99
  }
100
- li.sortable-placeholder {
101
  border: 1px dashed #CCC;
102
  background: none;
103
  }
45
  width: 460px;
46
  font-size: 0.9em;
47
  }
48
+ .connected, .sc_sortable, .exclude, .handles {
49
  margin: auto;
50
  padding: 0;
51
  width: 450px;
56
  -ms-user-select: none;
57
  user-select: none;
58
  }
59
+ .sc_sortable.grid {
60
  overflow: hidden;
61
  }
62
+ .connected li, .sc_sortable li, .exclude li, .handles li {
63
  list-style: none;
64
  border: 1px solid #CCC;
65
  background: #F6F6F6;
75
  li.disabled {
76
  opacity: 0.5;
77
  }
78
+ .sc_sortable.grid li {
79
  line-height: 80px;
80
  float: left;
81
  width: 80px;
97
  .connected.no2 {
98
  float: right;
99
  }
100
+ li.sc_sortable-placeholder {
101
  border: 1px dashed #CCC;
102
  background: none;
103
  }
inc/template/standard.php DELETED
@@ -1,7 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * Here comes the text of your license
5
- * Each line should be prefixed with *
6
- */
7
-
 
 
 
 
 
 
 
inc/template/vcard.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
- get_header();
3
- $options = get_option( 'smartcat_team_options' );
4
- ?>
5
- <?php
6
- $facebook = get_post_meta( get_the_ID(), 'team_member_facebook', true );
7
- $twitter = get_post_meta( get_the_ID(), 'team_member_twitter', true );
8
- $linkedin = get_post_meta( get_the_ID(), 'team_member_linkedin', true );
9
- $gplus = get_post_meta( get_the_ID(), 'team_member_gplus', true );
10
- $email = get_post_meta( get_the_ID(), 'team_member_email', true );
11
- ?>
12
- <div>
13
- <?php while ( have_posts() ) : the_post(); ?>
14
- <div class="sc_team_single_member <?php echo $options[ 'single_template' ]; ?>">
15
-
16
- <div class="sc_single_side" itemscope itemtype="http://schema.org/Person">
17
-
18
- <div class="inner">
19
- <?php echo the_post_thumbnail( 'medium' ); ?>
20
- <h2 class="name" itemprop="name"><?php echo the_title(); ?></h2>
21
- <h3 class="title" itemprop="jobtitle"><?php echo get_post_meta( get_the_ID(), 'team_member_title', true ); ?></h3>
22
- <ul class="social">
23
- <?php if ( $facebook ) : ?><li><a href="<?php echo $facebook; ?>"><img src="<?php echo SC_TEAM_URL; ?>inc/img/fb.png" class="sc-social"/>Facebook</a></li><?php endif; ?>
24
- <?php if ( $twitter ) : ?><li><a href="<?php echo $twitter; ?>"><img src="<?php echo SC_TEAM_URL; ?>inc/img/twitter.png" class="sc-social"/>Twitter</a></li><?php endif; ?>
25
- <?php if ( $linkedin ) : ?><li><a href="<?php echo $linkedin; ?>"><img src="<?php echo SC_TEAM_URL; ?>inc/img/linkedin.png" class="sc-social"/>Linkedin</a></li><?php endif; ?>
26
- <?php if ( $gplus ) : ?><li><a href="<?php echo $gplus; ?>"><img src="<?php echo SC_TEAM_URL; ?>inc/img/google.png" class="sc-social"/>Google Plus</a></li><?php endif; ?>
27
- <?php if ( $email ) : ?><li><a href="mailto:<?php echo $email; ?>"><img src="<?php echo SC_TEAM_URL; ?>inc/img/email.png" class="sc-social"/><?php echo $email; ?></a></li><?php endif; ?>
28
- </ul>
29
- </div>
30
- </div>
31
-
32
- <div class="sc_single_main <?php echo 'yes' == $options['single_skills'] ? 'sc-skills' : ''; ?>">
33
- <?php echo the_content(); ?>
34
- </div>
35
- <?php if( 'yes' == $options['single_skills'] ) : ?>
36
- <div class="sc_team_single_skills">
37
- <div class="inner">
38
- <?php //echo get_post_meta( get_the_ID(), 'team_member_skill1', TRUE); ?>
39
- <div class="progress">
40
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
41
- <span class="sr-only">40% Complete (success)</span>
42
- </div>
43
- </div>
44
-
45
- <div class="progress">
46
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
47
- <span class="sr-only">40% Complete (success)</span>
48
- </div>
49
- </div>
50
-
51
- <div class="progress">
52
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
53
- <span class="sr-only">40% Complete (success)</span>
54
- </div>
55
- </div>
56
-
57
- <div class="progress">
58
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
59
- <span class="sr-only">40% Complete (success)</span>
60
- </div>
61
- </div>
62
- </div>
63
- </div>
64
- <?php endif; ?>
65
- </div>
66
-
67
- <?php endwhile; ?>
68
- </div>
69
- <?php get_footer(); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/template/widget.php CHANGED
@@ -20,12 +20,12 @@ $team = new WP_Query($args);
20
  $team->the_post();
21
  // echo wp_get_attachment_url( get_post_thumbnail_id(get_the_ID() ));
22
  ?>
23
- <div itemscope itemtype="http://schema.org/Person" class="sc_team_member">
24
  <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
25
  <?php if (has_post_thumbnail())
26
  echo the_post_thumbnail('medium');
27
  else
28
- echo '<img src="' . SC_TEAM_PATH .'img/noprofile.jpg" class="attachment-medium wp-post-image"/>';?>
29
  </a>
30
  <div class="sc_team_member_overlay">
31
  <div itemprop="name" class="sc_team_member_name">
20
  $team->the_post();
21
  // echo wp_get_attachment_url( get_post_thumbnail_id(get_the_ID() ));
22
  ?>
23
+ <div itemscope itemtype="http://schema.org/Person" class="sc_sidebar_team_member">
24
  <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
25
  <?php if (has_post_thumbnail())
26
  echo the_post_thumbnail('medium');
27
  else
28
+ echo '<img src="' . SC_TEAM_URL .'inc/img/noprofile.jpg" class="attachment-medium wp-post-image"/>';?>
29
  </a>
30
  <div class="sc_team_member_overlay">
31
  <div itemprop="name" class="sc_team_member_name">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://smartcatdesign.net
4
  Tags: team, staff, employees, widget, shortcode, members, honeycomb, stack, grid, custom, template, social, profile, custom post type, portfolio, profile,meet team, skills, cv,v-card
5
  Requires at least: 3.2
6
  Tested up to: 4.1
7
- Stable tag: 1.3
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. Multiple appealing templates,SEO friendly, re-order functionality.
@@ -12,20 +12,27 @@ The best way to display your employees, team members, or any type of list. Multi
12
  == Description ==
13
 
14
  [View Demo](http://smartcatdesign.net/our-team-showcase-demo/)
15
- This demo shows you the grid style template.
16
 
17
- * This plugin allows you to add, edit, search and display your team members on any page, or in a widget
18
- quickly and easily.
19
- * It comes with a couple of different styles to choose from.
20
  * Re-order team members with a simple drag & drop.
21
- * output your team members anywhere with the shortcode [our-team]
 
 
 
 
 
 
 
 
22
  * Boosts SEO with schema.org markup
 
23
 
24
  [youtube http://youtu.be/upV_fevCh_s]
25
 
26
  == Screenshots ==
27
  1. Plugin includes Grid boxes, Grid Circular and sidebar templates
28
- 2. Easy edit with wysiwyg editor, featured image, and some extra options
29
  3. Drag & Drop re-order of memebers
30
  4. PRO VERSION - Honeycomb Demo
31
  5. PRO VERSION - stacked list Demo
@@ -36,6 +43,12 @@ quickly and easily.
36
 
37
  == Changelog ==
38
 
 
 
 
 
 
 
39
  = 2.0 =
40
  1. Major appearance and functionality changes
41
  2. updated pro version
4
  Tags: team, staff, employees, widget, shortcode, members, honeycomb, stack, grid, custom, template, social, profile, custom post type, portfolio, profile,meet team, skills, cv,v-card
5
  Requires at least: 3.2
6
  Tested up to: 4.1
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. Multiple appealing templates,SEO friendly, re-order functionality.
12
  == Description ==
13
 
14
  [View Demo](http://smartcatdesign.net/our-team-showcase-demo/)
 
15
 
16
+ * 2 Grid templates: Circles & Boxes
17
+ * 1 sidebar widget
 
18
  * Re-order team members with a simple drag & drop.
19
+ * Select the number of columns
20
+ * Customize the height of each row
21
+ * Customize the margin
22
+ * Display Social Icons & email icon
23
+ * Unlimited Colors
24
+ * Single member page social icons
25
+ * Add/Edit/Search/Display your staff or team members
26
+ * Display members by group/deparment (category)
27
+ * It comes with different styles to choose from: boxes or circles
28
  * Boosts SEO with schema.org markup
29
+ * output your team members anywhere with the shortcode [our-team]
30
 
31
  [youtube http://youtu.be/upV_fevCh_s]
32
 
33
  == Screenshots ==
34
  1. Plugin includes Grid boxes, Grid Circular and sidebar templates
35
+ 2. Sidebar widget
36
  3. Drag & Drop re-order of memebers
37
  4. PRO VERSION - Honeycomb Demo
38
  5. PRO VERSION - stacked list Demo
43
 
44
  == Changelog ==
45
 
46
+ = 2.1 =
47
+ 1. sidebar widget bug fix
48
+ 2. removed archive
49
+ 3. fixed columns bug
50
+ 4. fixed drag & drop bug
51
+
52
  = 2.0 =
53
  1. Major appearance and functionality changes
54
  2. updated pro version
sc_our_team.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Our Team Showcase
4
  Plugin URI: http://smartcatdesign.net/downloads/our-team-showcase/
5
  Description: Display your team members in a very attractive way as a widget or page with a shortcode
6
- Version: 2.0
7
  Author: SmartCat
8
  Author URI: http://smartcatdesign.net
9
  License: GPL v2
3
  Plugin Name: Our Team Showcase
4
  Plugin URI: http://smartcatdesign.net/downloads/our-team-showcase/
5
  Description: Display your team members in a very attractive way as a widget or page with a shortcode
6
+ Version: 2.1
7
  Author: SmartCat
8
  Author URI: http://smartcatdesign.net
9
  License: GPL v2
screenshot-1.jpg ADDED
Binary file
screenshot-1.png DELETED
Binary file
screenshot-2.jpg ADDED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-5.jpg CHANGED
Binary file
script/sc_our_team.js DELETED
@@ -1,19 +0,0 @@
1
- /*
2
- * To change this template, choose Tools | Templates
3
- * and open the template in the editor.
4
- */
5
-
6
- jQuery(document).ready(function($){
7
- $('.grid#sc_our_team .sc_team_member').hover(function(){
8
- $('.sc_team_member_overlay',this).stop(true,false).animate({'height' : '100%'},350);
9
- },function(){
10
- $('.sc_team_member_overlay',this).stop(true,false).animate({'height' : '35px'},330);
11
- });
12
-
13
- $('.grid_circles#sc_our_team .sc_team_member').hover(function(){
14
- $('.sc_team_member_overlay',this).stop(true,false).fadeIn(350);
15
- },function(){
16
- $('.sc_team_member_overlay',this).stop(true,false).fadeOut(330);
17
- });
18
-
19
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
script/sc_our_team_admin.js DELETED
@@ -1,141 +0,0 @@
1
- /*
2
- * To change this template, choose Tools | Templates
3
- * and open the template in the editor.
4
- */
5
-
6
-
7
- jQuery(document).ready(function($) {
8
- sc_team_set_order();
9
-
10
- $('.sortable').sortable();
11
- $('.handles').sortable({
12
- handle: 'span'
13
- });
14
- $('.connected').sortable({
15
- connectWith: '.connected'
16
- });
17
- $('.exclude').sortable({
18
- items: ':not(.disabled)'
19
- });
20
- $('.sortable').sortable().bind('sortupdate', function(e, ui) {
21
- sc_team_set_order();
22
- });
23
-
24
- function sc_team_set_order() {
25
- $('.sortable li').each(function() {
26
- $(this).attr('sc_member_order', $(this).index());
27
- });
28
- }
29
-
30
- $('#set_order').click(function() {
31
- var post_path = $('.sortable').attr('data-action');
32
- // UX
33
- $(this).attr('disabled','disable');
34
-
35
- $('.sc_team_member_update_status .sc_team_member_updating').stop(true,false).fadeIn(200,function(){
36
- $(this).delay(800).fadeOut(200);
37
- });
38
-
39
- $('.sortable li').each(function() {
40
- var data = {
41
- action: 'my_update_pm',
42
- id: $(this).attr('id'),
43
- sc_member_order: $(this).attr('sc_member_order')
44
- };
45
- jQuery.post('admin-ajax.php', data, function(response) {
46
- // whatever you need to do; maybe nothing
47
- $('.sc_team_member_update_status .sc_team_member_updating').hide();
48
- $('.sc_team_member_update_status .sc_team_member_saved').stop(true,false).fadeIn(200,function() {
49
- $(this).delay(1000).fadeOut(200);
50
- });
51
- $('#set_order').removeAttr('disabled');
52
- });
53
- });
54
- });
55
- });
56
-
57
- /*
58
- * HTML5 Sortable jQuery Plugin
59
- * http://farhadi.ir/projects/html5sortable
60
- *
61
- * Copyright 2012, Ali Farhadi
62
- * Released under the MIT license.
63
- */
64
- (function($) {
65
- var dragging, placeholders = $();
66
- $.fn.sortable = function(options) {
67
- var method = String(options);
68
- options = $.extend({
69
- connectWith: false
70
- }, options);
71
- return this.each(function() {
72
- if (/^enable|disable|destroy$/.test(method)) {
73
- var items = $(this).children($(this).data('items')).attr('draggable', method == 'enable');
74
- if (method == 'destroy') {
75
- items.add(this).removeData('connectWith items')
76
- .off('dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s');
77
- }
78
- return;
79
- }
80
- var isHandle, index, items = $(this).children(options.items);
81
- var placeholder = $('<' + (/^ul|ol$/i.test(this.tagName) ? 'li' : 'div') + ' class="sortable-placeholder">');
82
- items.find(options.handle).mousedown(function() {
83
- isHandle = true;
84
- }).mouseup(function() {
85
- isHandle = false;
86
- });
87
- $(this).data('items', options.items)
88
- placeholders = placeholders.add(placeholder);
89
- if (options.connectWith) {
90
- $(options.connectWith).add(this).data('connectWith', options.connectWith);
91
- }
92
- items.attr('draggable', 'true').on('dragstart.h5s', function(e) {
93
- if (options.handle && !isHandle) {
94
- return false;
95
- }
96
- isHandle = false;
97
- var dt = e.originalEvent.dataTransfer;
98
- dt.effectAllowed = 'move';
99
- dt.setData('Text', 'dummy');
100
- index = (dragging = $(this)).addClass('sortable-dragging').index();
101
- }).on('dragend.h5s', function() {
102
- if (!dragging) {
103
- return;
104
- }
105
- dragging.removeClass('sortable-dragging').show();
106
- placeholders.detach();
107
- if (index != dragging.index()) {
108
- dragging.parent().trigger('sortupdate', {item: dragging});
109
- }
110
- dragging = null;
111
- }).not('a[href], img').on('selectstart.h5s', function() {
112
- this.dragDrop && this.dragDrop();
113
- return false;
114
- }).end().add([this, placeholder]).on('dragover.h5s dragenter.h5s drop.h5s', function(e) {
115
- if (!items.is(dragging) && options.connectWith !== $(dragging).parent().data('connectWith')) {
116
- return true;
117
- }
118
- if (e.type == 'drop') {
119
- e.stopPropagation();
120
- placeholders.filter(':visible').after(dragging);
121
- dragging.trigger('dragend.h5s');
122
- return false;
123
- }
124
- e.preventDefault();
125
- e.originalEvent.dataTransfer.dropEffect = 'move';
126
- if (items.is(this)) {
127
- if (options.forcePlaceholderSize) {
128
- placeholder.height(dragging.outerHeight());
129
- }
130
- dragging.hide();
131
- $(this)[placeholder.index() < $(this).index() ? 'after' : 'before'](placeholder);
132
- placeholders.not(placeholder).detach();
133
- } else if (!placeholders.is(this) && !$(this).children(options.items).length) {
134
- placeholders.detach();
135
- $(this).append(placeholder);
136
- }
137
- return false;
138
- });
139
- });
140
- };
141
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
style/sc_our_team.css DELETED
@@ -1,175 +0,0 @@
1
- /*
2
- Document : sc_our_team
3
- Created on : Jun 23, 2014, 7:07:26 PM
4
- Author : Bilal
5
- Description:
6
- Purpose of the stylesheet follows.
7
- */
8
-
9
- /**
10
- * Grid CSS
11
- */
12
- .grid#sc_our_team{
13
- overflow: hidden;
14
- width: 100%;
15
- }
16
- .grid#sc_our_team .sc_team_member{
17
- overflow: hidden;
18
- box-sizing: border-box;
19
- padding: 5px;
20
-
21
- }
22
- .grid#sc_our_team .sc_team_member .icons{
23
- margin-top: 70%;
24
- }
25
- .grid#sc_our_team .sc_team_member .icons img{
26
- width: 25px;
27
- margin-right: 5px;
28
-
29
- }
30
- .grid#sc_our_team .sc_team_member .sc_team_member_jobtitle,
31
- .grid#sc_our_team .sc_team_member .sc_team_member_name{
32
- height: 15px;
33
- }
34
- .grid#sc_our_team .sc_team_member img.wp-post-image{
35
-
36
- width: 100%;
37
- display: block;
38
- margin: 0 auto;
39
- float: none;
40
- border: none;
41
- padding: 0;
42
- }
43
- .grid#sc_our_team .sc_team_member .sc_team_member_name{
44
- font-weight: bold;
45
- font-size: 16px;
46
- }
47
-
48
- .grid#sc_our_team .sc_team_member_inner{
49
- height: 200px;
50
- width: 200px;
51
- overflow: hidden;
52
- background-size: cover;
53
- position: relative;
54
- text-align: center;
55
- background: #404040;
56
- }
57
- .grid#sc_our_team .sc_team_member .sc_team_member_overlay{
58
- position: absolute;
59
- width: 100%;
60
- left: 0;
61
- bottom: 0;
62
- padding: 0 10px;
63
- height: 35px;
64
- color: #fff;
65
- background: rgba(50,50,50,0.5);
66
- }
67
- @media (min-width: 768px){
68
- .grid#sc_our_team .sc_team_member{
69
- float: left;
70
- width: 25%;
71
- }
72
- .grid#sc_our_team .sc_team_member img.wp-post-image{
73
-
74
- }
75
- .grid#sc_our_team .sc_team_member_inner{
76
-
77
- }
78
- }
79
-
80
- @media (min-width: 481px) and (max-width: 767px){
81
- .grid#sc_our_team .sc_team_member{
82
- float: left;
83
- width: 33.33%;
84
- }
85
- }
86
- @media (max-width: 480px){
87
- .grid#sc_our_team .sc_team_member{
88
- float: left;
89
- width: 50%;
90
- }
91
- }
92
-
93
- /**
94
- * Circles CSS
95
- **/
96
- .grid_circles#sc_our_team .sc_team_member{
97
- float: left;
98
- width: 150px;
99
- height: 150px;
100
- overflow: hidden;
101
- border-radius: 100%;
102
- margin: 10px;
103
- text-align: center;
104
- box-shadow:
105
- 0 0 0 4px #fff,
106
- 0 0 0 7px #E2E2E2;
107
- position: relative;
108
-
109
- }
110
- .grid_circles#sc_our_team .sc_team_member .wp-post-image{
111
- border: none;
112
- padding: 0;
113
- float: none;
114
- margin: 0;
115
- width: 150px;
116
- height: 150px;
117
-
118
- }
119
- .grid_circles#sc_our_team .sc_team_member .sc_team_member_overlay{
120
- position: absolute;
121
- width: 100%;
122
- left: 0;
123
- top: 0;
124
- height: 100%;
125
- background: rgba(50,50,50,0.7);
126
- color: #ffffff;
127
- display: none;
128
- }
129
- .grid_circles#sc_our_team .sc_team_member .sc_team_member_overlay .sc_team_member_name{
130
- margin-top: 30px;
131
- font-size: 18px;
132
- }
133
- .grid_circles#sc_our_team .sc_team_member .sc_team_member_overlay .icons a{
134
- margin-right: 5px;
135
- }
136
- .grid_circles#sc_our_team .icons img{
137
- width: 25px;
138
- }
139
-
140
- /**
141
- * widget css
142
- */
143
- .widget#sc_our_team .sc_team_member{
144
- width: 100%;
145
- overflow: hidden;
146
- margin: 0 0 10px 0;
147
- }
148
- .widget#sc_our_team .sc_team_member .wp-post-image{
149
- float: left;
150
- width: 25%;
151
- border: 1px solid #d0d0d0;
152
- padding: 3px;
153
- box-sizing: border-box;
154
- margin: 0;
155
- }
156
- .widget#sc_our_team .sc_team_member .sc_team_member_overlay{
157
- float: left;
158
- width: 75%;
159
- padding: 0 0 0 10px;
160
- box-sizing: border-box;
161
- }
162
-
163
- .widget#sc_our_team .sc_team_member .sc_team_member_overlay .sc_team_member_name{
164
- font-weight: bold;
165
- }
166
- /**
167
- * single post
168
- */
169
- .sc_team_single_icons img.sc-social{
170
- width: 25px;
171
- margin-right: 10px;
172
- box-shadow: none;
173
- -moz-box-shadow: none;
174
- -webkit-box-shadow: none;
175
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
style/sc_our_team_admin.css DELETED
@@ -1,103 +0,0 @@
1
- /*
2
- Document : sc_our_team_admin
3
- Created on : Jun 25, 2014, 10:07:44 PM
4
- Author : Bilal
5
- Description:
6
- Purpose of the stylesheet follows.
7
- */
8
-
9
- root {
10
- display: block;
11
- }
12
-
13
- .sc_team_member{
14
- width: 20%;
15
- float: left;
16
- overflow: hidden;
17
- }
18
- .sc_team_member img{
19
- width: 100%;
20
- }
21
-
22
- .sc_team_member_update_status .sc_team_member_updating,
23
- .sc_team_member_update_status .sc_team_member_saved{
24
- display: none;
25
- }
26
-
27
- .sc_team_member_inner{
28
- height: 100%;
29
- width: 100%;
30
- position: relative;
31
- }
32
- .sc_team_member_overlay{
33
- position: absolute;
34
- height: 20px;
35
- color: #fff;
36
- width: 100%;
37
- bottom: -5px;
38
- left: 0;
39
- line-height: 20px;
40
- background: rgba(50,50,50,0.5);
41
- }
42
-
43
- #features {
44
- margin: auto;
45
- width: 460px;
46
- font-size: 0.9em;
47
- }
48
- .connected, .sortable, .exclude, .handles {
49
- margin: auto;
50
- padding: 0;
51
- width: 450px;
52
- -webkit-touch-callout: none;
53
- -webkit-user-select: none;
54
- -khtml-user-select: none;
55
- -moz-user-select: none;
56
- -ms-user-select: none;
57
- user-select: none;
58
- }
59
- .sortable.grid {
60
- overflow: hidden;
61
- }
62
- .connected li, .sortable li, .exclude li, .handles li {
63
- list-style: none;
64
- border: 1px solid #CCC;
65
- background: #F6F6F6;
66
- font-family: "Tahoma";
67
- color: #1C94C4;
68
- margin: 5px;
69
- padding: 5px;
70
- height: 22px;
71
- }
72
- .handles span {
73
- cursor: move;
74
- }
75
- li.disabled {
76
- opacity: 0.5;
77
- }
78
- .sortable.grid li {
79
- line-height: 80px;
80
- float: left;
81
- width: 80px;
82
- height: 80px;
83
- text-align: center;
84
- }
85
- li.highlight {
86
- background: #FEE25F;
87
- }
88
- #connected {
89
- width: 440px;
90
- overflow: hidden;
91
- margin: auto;
92
- }
93
- .connected {
94
- float: left;
95
- width: 200px;
96
- }
97
- .connected.no2 {
98
- float: right;
99
- }
100
- li.sortable-placeholder {
101
- border: 1px dashed #CCC;
102
- background: none;
103
- }