diff --git a/freifunk-versions.php b/freifunk-versions.php index e5ecce7..93b65bb 100644 --- a/freifunk-versions.php +++ b/freifunk-versions.php @@ -95,6 +95,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $domain = 'ffhh'; $branch = 'stable'; $grep = false; + $filter = false; if ( is_array( $atts ) ) { if ( array_key_exists( 'domain', $atts ) && ! empty( $atts['domain'] ) ) { $domain = $atts['domain']; @@ -105,6 +106,9 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { if ( array_key_exists( 'grep', $atts ) && ! empty( $atts['grep'] ) ) { $grep = $atts['grep']; } + if ( array_key_exists( 'filter', $atts ) && ! empty( $atts['filter'] ) ) { + $filter = explode ( ',', $atts['filter'] ); + } } $branch_url = FF_HH_UPDATES_URL . $domain . '/' . $branch; @@ -114,10 +118,24 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) { $outstr .= '
Modell | Erstinstallation | Aktualisierung |
---|---|---|
%s | ", $hw );