Plugin Directory

Changeset 1923030


Ignore:
Timestamp:
08/10/2018 04:11:44 PM (7 years ago)
Author:
smartcat
Message:

commit 442

Location:
our-team-enhanced/trunk
Files:
4 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • our-team-enhanced/trunk/constants.php

    r1893062 r1923030  
    33namespace ots;
    44
    5 const VERSION = '4.4.1';
     5const VERSION = '4.4.2';
    66
    77
  • our-team-enhanced/trunk/includes/documentation.php

    r1893062 r1923030  
    514514
    515515        <p>
    516             <a href="//raw.githubusercontent.com/smartcatdev/docs/master/ots/demo-data.csv" class="button button-primary" download="team-export.csv"><?php _e( 'Download Sample CSV', 'ots' ); ?></a>
     516            <a href="<?php echo asset('data/demo.csv' ) ?>" class="button button-primary" download="team-export.csv"><?php _e( 'Download Sample CSV', 'ots' ); ?></a>
    517517        </p>
    518518
  • our-team-enhanced/trunk/includes/functions.php

    r1893062 r1923030  
    2626
    2727    if( !empty( $group ) ) {
    28 
    29         $args['tax_query'] = array(
    30             'relation' => 'OR',
    31             array(
    32                 'taxonomy'  => 'team_member_position',
    33                 'field'     => 'name',
    34                 'terms'     => $group
    35             ),
    36             array(
    37                 'taxonomy'  => 'team_member_position',
    38                 'field'     => 'slug',
    39                 'terms'     => $group
    40             ),
    41         array(
    42             'taxonomy'  => 'team_member_position',
    43             'field'     => 'term_id',
    44             'terms'     => array_map(function ($g) { return absint($g); }, $group)
    45                 )
    46         );
    47 
     28        $group = (array) $group;
     29
     30        if ( is_int( $group[0] ) ) {
     31            $args['tax_query'][] = array(
     32                'taxonomy'  => 'team_member_position',
     33                'field'     => 'term_id',
     34                'terms'     => array_map(function ($g) { return absint($g); }, $group)
     35            );
     36
     37        } else {
     38            $args['tax_query'][] = array(
     39                'taxonomy'  => 'team_member_position',
     40                'field'     => 'slug',
     41                'terms'     => $group
     42            );
     43        }
    4844    }
    4945
    5046    return new \WP_Query( $args );
    51 
    5247}
    5348
  • our-team-enhanced/trunk/our-team-showcase.php

    r1893062 r1923030  
    44 * Plugin URI: https://smartcatdesign.net/downloads/our-team-showcase/
    55 * Description: Display your team members in a very attractive way as a widget or page with a shortcode [our-team] or a widget
    6  * Version: 4.4.1
     6 * Version: 4.4.2
    77 * Author: Smartcat
    88 * Author URI: https://smartcatdesign.net
     
    1616 */
    1717include_once dirname( __FILE__ ) . '/constants.php';
     18
     19
     20if ( !function_exists( 'scts_init' ) ) {
     21    include_once dirname( __FILE__ ) . '/includes/libraries/theme-showcase.php';
     22}
    1823
    1924
  • our-team-enhanced/trunk/readme.txt

    r1893067 r1923030  
    1001002. OR - Upload the unpacked folder folder via FTP into /wp-content/plugins
    101101
    102 == Changelog ==
     102== Changelog ==
     103
     104= 4.4.2 =
     1051. Improved query that pulls team members
    103106
    104107= 4.4.1 =
Note: See TracChangeset for help on using the changeset viewer.