From 9cfff679bd94cd77b89c221d4fd52a3a5eae8962 Mon Sep 17 00:00:00 2001 From: marwen kheder Date: Mon, 23 Oct 2017 18:16:26 +0100 Subject: [PATCH] Fix #47 HTML Syntax Errors --- css/style.css | 3 +++ functions.php | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/css/style.css b/css/style.css index 0cc0eb8..a21d5d1 100644 --- a/css/style.css +++ b/css/style.css @@ -109,6 +109,9 @@ td .tbl-bdf-td{ float: right; margin-right: 10px; } +div.ratings { + display: inline; +} .star-blocks { background:#FFF; } diff --git a/functions.php b/functions.php index c1e80bb..9024210 100644 --- a/functions.php +++ b/functions.php @@ -187,7 +187,7 @@ function display_rich_snippet($content) { $event .= ''.esc_attr( $event_region ).''; if(trim($event_postal_code) != "") $event .= '-'.esc_attr( $event_postal_code ).''; - $event .= ''; + $itemprop="ratingValue" .= ''; $event .='
'; @@ -464,7 +464,7 @@ function display_rich_snippet($content) { } $product .= '
'; $product .= ''.average_rating().''; - $product .= ' based on '.rating_count().' votes
'; + $product .= ' based on '.rating_count().' votes
'; if(trim($product_brand) != "") @@ -492,7 +492,7 @@ function display_rich_snippet($content) { { if($args_product['product_avail'] != "") $product .= '
'.esc_attr( stripslashes( $args_product['product_avail'] ) ).'
'; - $product .= '
'.esc_attr( $availability ).'
'; + $product .= '
'.esc_attr( $availability ).'
'; } $product .= '
'; } @@ -676,7 +676,7 @@ function display_rich_snippet($content) { $software .= '
'.esc_attr( stripslashes( $args_soft['software_agr'] ) ).'
'; $software .= '
'; $software .= ''.average_rating().''; - $software .= ' based on '.rating_count().' votes
'; + $software .= ' based on '.rating_count().' votes
'; if(trim($software_name) != "") { @@ -971,7 +971,7 @@ function display_rich_snippet($content) { $service .= '
'.esc_attr( stripslashes( $args_service['service_rating'] ) ).'
'; $service .= '
'; $service .= ''.average_rating().''; - $service .= ' based on '.rating_count().' votes
'; + $service .= ' based on '.rating_count().' votes
'; } } @@ -1193,7 +1193,7 @@ function bsf_update_rating() function display_rating() { global $post; - $rating = '
'; + $rating = '
'; $rating .= '
'; $rating .= ''; $rating .= ''; @@ -1203,7 +1203,7 @@ function display_rating() { $rating .= ''; $rating .= ''; $rating .= '
'; - $rating .= '
'; + $rating .= '
'; $script = '