added link to price search engine for each model

This commit is contained in:
ruben 2015-04-01 00:01:04 +02:00
parent af55ec2a69
commit 6f0a978965

View file

@ -78,7 +78,7 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) {
$manifest = ff_hh_getmanifest( FF_HH_STABLE_BASEDIR ); $manifest = ff_hh_getmanifest( FF_HH_STABLE_BASEDIR );
$outstr = "<div class=\"ff $name\">"; $outstr = "<div class=\"ff $name\">";
$outstr .= '<table><tr><th>Modell</th><th>Erstinstallation</th><th>Aktualisierung</th></tr>'; $outstr .= '<table><tr><th>Modell</th><th>Erstinstallation</th><th>Aktualisierung</th><th>Preissuche</th></tr>';
# optionally filter output by given substring # optionally filter output by given substring
if ( is_array( $atts ) if ( is_array( $atts )
@ -120,6 +120,10 @@ function ff_hh_shortcode_versions( $atts, $content, $name ) {
} }
$outstr .= '<td>Hardware Version ' . join( ', ', $hw_ver_links ) . '</td>'; $outstr .= '<td>Hardware Version ' . join( ', ', $hw_ver_links ) . '</td>';
// link to Geizhals
$outstr .= sprintf( "\n<tr><td><a href=\"http://geizhals.de/?fs=%s\" target=\"_blank\">Suchen</a></td>", $hw );
$outstr .= '</tr>'; $outstr .= '</tr>';
} }