Plugin Directory

Changeset 3292971


Ignore:
Timestamp:
05/14/2025 06:06:55 AM (9 months ago)
Author:
investi
Message:

support 'include-select-for-additional-years' on investi-announcements-tab

Location:
investi/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • investi/trunk/includes/widgets.php

    r3290275 r3292971  
    156156}
    157157
     158function get_investi_attr($flag, $atts) {
     159  $attrVal = $atts[$flag] ?? '';
     160  if(!empty($attrVal)){
     161    $attrVal = "data-investi-$flag=\"$attrVal\"";
     162    return $attrVal;
     163  }
     164  return '';
     165}
     166
    158167function investi_announcements_tab_func( $atts ) {
    159168  $color = $atts['color'] ?? '';
     
    178187  $maximumNumYears = $atts['maximum-num-years'] ?? '';
    179188  $searchBox = investi_is_flag('searchbox', $atts ) ? 'data-investi-searchbox' : '';
     189 
     190  $includeSelectForAdditionalYears = get_investi_attr('include-select-for-additional-years', $atts);
     191 
     192  $selectPriorYearText = get_investi_attr('select-prior-year-text', $atts);
    180193 
    181194  return "
     
    218231  $startYear
    219232  $searchBox
     233  $includeSelectForAdditionalYears
     234  $selectPriorYearText
    220235  " . investi_get_apiKey($atts) . "
    221236    ></div>
  • investi/trunk/investi.php

    r3290275 r3292971  
    77* Plugin URI: https://web.investi.com.au/wordpress-plugin
    88* Description: Share Price Charts and Widgets. Our comprehensive and timely data quickly summarises your current and historical share price performance,displaying charts and widgets to enhance engagement with your investor audience.
    9 * Version: 1.0.14
     9* Version: 1.0.15
    1010* Author: Investi Services Pty Ltd
    1111* Author URI: https://web.investi.com.au
  • investi/trunk/readme.txt

    r3290275 r3292971  
    66Requires PHP:      7.2
    77Tested up to: 6.8
    8 Stable tag: 1.0.14
    9 Version: 1.0.14
     8Stable tag: 1.0.15
     9Version: 1.0.15
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== Changelog ==
     50
     51= 1.0.15 =
     52* support 'include-select-for-additional-years' on investi-announcements-tab
    5053
    5154= 1.0.14 =
Note: See TracChangeset for help on using the changeset viewer.