Our Team Showcase - Version 1.3

Version Description

Download this release

Release Info

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

Code changes from version 1.2 to 1.3

inc/grid.php CHANGED
@@ -7,7 +7,7 @@
7
  $args = sc_get_args();
8
  $members = new WP_Query($args);
9
  ?>
10
- <div id="sc_our_team" class="<?php echo get_option('sc_our_team_template'); ?>">
11
  <div class="clear"></div>
12
  <?php
13
  if ($members->have_posts()) {
7
  $args = sc_get_args();
8
  $members = new WP_Query($args);
9
  ?>
10
+ <div id="sc_our_team" class="<?php echo esc_html( get_option('sc_our_team_template') ); ?>">
11
  <div class="clear"></div>
12
  <?php
13
  if ($members->have_posts()) {
inc/grid_circles.php CHANGED
@@ -7,7 +7,7 @@
7
  $args = sc_get_args();
8
  $members = new WP_Query($args);
9
  ?>
10
- <div id="sc_our_team" class="<?php echo get_option('sc_our_team_template'); ?>">
11
  <div class="clear"></div>
12
  <?php
13
  if ($members->have_posts()) {
7
  $args = sc_get_args();
8
  $members = new WP_Query($args);
9
  ?>
10
+ <div id="sc_our_team" class="<?php echo esc_html( get_option('sc_our_team_template') ); ?>">
11
  <div class="clear"></div>
12
  <?php
13
  if ($members->have_posts()) {
inc/options.php CHANGED
@@ -33,7 +33,7 @@
33
  <tr>
34
  <td>Max Number of members to display</td>
35
  <td>
36
- <input type="text" value="<?php echo get_option('sc_our_team_member_count'); ?>" name="sc_our_team_member_count" placeholder="number of members to show"/><br>
37
  <em>Set to -1 to display all members</em>
38
  </td>
39
  </tr>
33
  <tr>
34
  <td>Max Number of members to display</td>
35
  <td>
36
+ <input type="text" value="<?php echo esc_html( get_option('sc_our_team_member_count') ); ?>" name="sc_our_team_member_count" placeholder="number of members to show"/><br>
37
  <em>Set to -1 to display all members</em>
38
  </td>
39
  </tr>
inc/stacked.php CHANGED
@@ -12,7 +12,7 @@ if ($members->have_posts()) {
12
  while ($members->have_posts()) {
13
  $members->the_post();
14
  ?>
15
- <div class="sc_our_team <?php echo get_option('sc_our_team_template'); ?>">
16
  <h1><?php the_title() ?></h1>
17
  <div class='content'>
18
  <?php the_post_thumbnail(); ?>
12
  while ($members->have_posts()) {
13
  $members->the_post();
14
  ?>
15
+ <div class="sc_our_team <?php echo esc_html( get_option('sc_our_team_template') ); ?>">
16
  <h1><?php the_title() ?></h1>
17
  <div class='content'>
18
  <?php the_post_thumbnail(); ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://smartcatdesign.net
4
  Tags: team, page, widget, shortcode, members, title, sidebar, honeycomb, stack, custom, shortcode, template, social, profile, custom post type
5
  Requires at least: 3.2
6
  Tested up to: 3.91
7
- Stable tag: 1.1
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. SEO friendly, comes with multiple templates & drag & drop re-order functionality. Ready out of the box! Display your team members in a professional and modern style.
4
  Tags: team, page, widget, shortcode, members, title, sidebar, honeycomb, stack, custom, shortcode, template, social, profile, custom post type
5
  Requires at least: 3.2
6
  Tested up to: 3.91
7
+ Stable tag: 1.2
8
  License: GPLv2 or later
9
 
10
  The best way to display your employees, team members, or any type of list. SEO friendly, comes with multiple templates & drag & drop re-order functionality. Ready out of the box! Display your team members in a professional and modern style.
sc_our_team.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Our Team Showcase
4
  Plugin URI: http://smartcatdesign.net/our-team-showcase/
5
  Description: Display your team members in a very attractive way as a widget or page with a shortcode
6
- Version: 1.2
7
  Author: SmartCat
8
  Author URI: http://smartcatdesign.net
9
  License: GPL v2
@@ -127,7 +127,7 @@ function set_our_team($atts) {
127
  include 'inc/grid.php';
128
  $output = ob_get_clean();
129
  } else {
130
- include 'inc/' . get_option('sc_our_team_template') . '.php';
131
  $output = ob_get_clean();
132
  }
133
  return $output;
@@ -397,7 +397,7 @@ function sc_get_args(){
397
  'meta_key' => 'sc_member_order',
398
  'orderby' => 'meta_value_num',
399
  'order' => 'ASC',
400
- 'posts_per_page' => get_option('sc_our_team_member_count'),
401
  );
402
 
403
  return $args;
3
  Plugin Name: Our Team Showcase
4
  Plugin URI: http://smartcatdesign.net/our-team-showcase/
5
  Description: Display your team members in a very attractive way as a widget or page with a shortcode
6
+ Version: 1.3
7
  Author: SmartCat
8
  Author URI: http://smartcatdesign.net
9
  License: GPL v2
127
  include 'inc/grid.php';
128
  $output = ob_get_clean();
129
  } else {
130
+ include 'inc/' . esc_attr( get_option('sc_our_team_template') ) . '.php';
131
  $output = ob_get_clean();
132
  }
133
  return $output;
397
  'meta_key' => 'sc_member_order',
398
  'orderby' => 'meta_value_num',
399
  'order' => 'ASC',
400
+ 'posts_per_page' => esc_attr( get_option('sc_our_team_member_count') ),
401
  );
402
 
403
  return $args;