$sw_ver"; return $outstr; } if ( ! shortcode_exists( 'ff_hh_versions' ) ) { add_shortcode( 'ff_hh_versions', 'ff_hh_shortcode_versions'); } // Example: // [ff_hh_versions] function ff_hh_shortcode_versions( $atts, $content, $name ) { $manifest = ff_hh_getmanifest(FF_HH_STABLE_BASEDIR); $outstr = "
Modell | Erstinstallation | Aktualisierung |
---|---|---|
%s | ', $hw); // factory versions $hw_ver_links = array(); foreach ($versions as $hw_ver => $filename) { $filename = str_replace('-sysupgrade', '', $filename); $hw_ver_links[] = sprintf('%s.x', FF_HH_STABLE_BASEDIR.'factory/', $filename, $hw_ver); } $outstr .= 'Hardware Version ' . join(', ', $hw_ver_links) . ' | '; // sysupgrade versions $hw_ver_links = array(); foreach ($versions as $hw_ver => $filename) { $hw_ver_links[] = sprintf('%s.x', FF_HH_STABLE_BASEDIR.'sysupgrade/', $filename, $hw_ver); } $outstr .= 'Hardware Version ' . join(', ', $hw_ver_links) . ' | '; $outstr .= '
'.print_r($manifest, true).''; return $outstr; }