Plugin Directory

Changeset 2151551


Ignore:
Timestamp:
09/05/2019 11:08:34 AM (6 years ago)
Author:
businessmonitor
Message:

If there is just one review returned render the array directly

Location:
businessmonitor-reviewfeed/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • businessmonitor-reviewfeed/trunk/AggregateRating.php

    r2124691 r2151551  
    44Plugin URI: https://businessmonitor.nl/technologie
    55Description: Wordpress AggregateRating widget
    6 Version: 1.0.9
     6Version: 1.0.10
    77Author: Salesforce up to data b.v.
    88Author URI: https://businessmonitor.nl/contact
  • businessmonitor-reviewfeed/trunk/ReviewFeed.php

    r2124691 r2151551  
    44Plugin URI: https://businessmonitor.nl/technologie
    55Description: Wordpress Reviewfeed
    6 Version: 1.0.9
     6Version: 1.0.10
    77Author: Salesforce up to data b.v.
    88Author URI: https://businessmonitor.nl/contact
  • businessmonitor-reviewfeed/trunk/businessmonitor-api.php

    r2124691 r2151551  
    44Plugin URI: https://businessmonitor.nl/technologie
    55Description: BusinessMonitor API connector
    6 Version: 1.0.9
     6Version: 1.0.10
    77Author: Salesforce up to data b.v.
    88Author URI: https://businessmonitor.nl/contact
  • businessmonitor-reviewfeed/trunk/businessmonitor-class.php

    r2124691 r2151551  
    22/*
    33Description: BusinessMonitor Widgets
    4 Version: 1.0.9
     4Version: 1.0.10
    55Author: Salesforce up to data b.v.
    66Author URI: https://businessmonitor.nl
  • businessmonitor-reviewfeed/trunk/fluffy-business-monitor.php

    r2124691 r2151551  
    44 * Plugin URI: https://businessmonitor.nl/technologie
    55 * Description: Plugin that adds reviews from BusinessMonitor to your website using shortcodes
    6  * Version: 1.0.9
     6 * Version: 1.0.10
    77 * Author: Salesforce up to data b.v.
    88 * Author URI: https://businessmonitor.nl/contact
  • businessmonitor-reviewfeed/trunk/templates/reviewsByLang.php

    r2124691 r2151551  
    44
    55<ul class="businessmonitor-all-reviews">
    6 <?php foreach ($fluffyReviewData as $review): ?>
     6<?php
     7if (array_key_exists('maximumValue',$fluffyReviewData)) {
     8?>
     9    <li>
     10        <strong><?=esc_html($fluffyReviewData['reviewWho'])?> - <?php _e('Beoordeling:', 'fluffymedia')?> <?=esc_html($fluffyReviewData['reviewRating'])?>/10</strong><br>
     11        <em><?=esc_html($fluffyReviewData['reviewBody'])?></em>
     12    </li>
     13<?php
     14}
     15else
     16{
     17 foreach ($fluffyReviewData as $review):
     18?>
    719    <li>
    820        <strong><?=esc_html($review->reviewWho)?> - <?php _e('Beoordeling:', 'fluffymedia')?> <?=esc_html($review->reviewRating)?>/10</strong><br>
    921        <em><?=esc_html($review->reviewBody)?></em>
    1022    </li>
    11 <?php endforeach; ?>
     23<?php
     24 endforeach;
     25}
     26?>
    1227</ul>
Note: See TracChangeset for help on using the changeset viewer.