Rapid Reviews / Global: reviews media

Global: reviews media

The global reviews media widget shows all review media across all products.

You may choose to put this on your homepage, or some other informational page where you’d like to give your potential customers an overview of all review media.

There are two layouts available, 1) a horizontal scroller with pagination, and 2) a tiled layout with pagination.

Rapid Reviews Global Featured Reviews List

Rapid Reviews Global Featured Reviews List Scroller

~CE

<div class="rapid_reviews_global_featured_list"></div>

<!-- TILED LAYOUT -->
<div class="rapid_reviews_global_featured_list r_tiles"></div>

<!-- HORIZONTAL SCROLL LAYOUT -->
<div class="rapid_reviews_global_featured_list rgf_scroll"></div>

<script>
  // DATA DEFINITION FROM SHOPIFY METAFIELDS
  // ONLY NEEDED ONCE PER PAGE
  window.rapid_reviews_global_data = window.rapid_reviews_global_data || {
    data: {% if shop.metafields.rapid_reviews.data %}{{ shop.metafields.rapid_reviews.data }}{% else %}null{% endif %},
    counts: {% if shop.metafields.rapid_reviews.counts %}{{ shop.metafields.rapid_reviews.counts }}{% else %}null{% endif %}
  }

  window.rapid_reviews_config = window.rapid_reviews_config || {};
  window.rapid_reviews_config.display = window.rapid_reviews_config.display || {};
  window.rapid_reviews_config.display.name_trun = 1;

  // GLOBAL WIDGET SCRIPT - DIFFERENT FROM CORE SCRIPT
  // ONLY NEEDED ONCE PER PAGE
  ;(function(){
    if (window.r_u_g_loaded) return; window.r_u_g_loaded = 1;
    var rvsc = document.createElement('script'); rvsc.type = 'text/javascript'; rvsc.async = 'true';
    rvsc.src = 'https://apps.belkapp.com/api/reviews/files/{{ shop.permanent_domain }}/rapid-reviews-global';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rvsc, s);
  })();
</script>

<!-- 
  ADDITIONAL CONFIGURATION BELOW 
-->

<script>
  // OPTIONAL CONFIGURATION
  window.rapid_reviews_config = window.rapid_reviews_config || {};
  window.rapid_reviews_config.display = window.rapid_reviews_config.display || {};
  window.rapid_reviews_config.global = window.rapid_reviews_config.global || {};

  window.rapid_reviews_config.global.search = 1; // SEARCH ENABLED IF TILES LAYOUT
  window.rapid_reviews_config.global.url_inline = 'https://example.com'; // INLINE BADGE URL LINK TO
</script>

<style>
  /* OPTIONAL CSS */
  /* HIDE INLINE BADGE */
  .rapid_reviews_global_featured_list .r_rgb_horz {
    display: none;
  }
  /* MAIN CONTAINER WIDTH */
  .rapid_reviews_global_featured_list.r_tiles > .r_inner {
    max-width: 80%;
  }
</style>
HTML