Last active
May 16, 2019 08:07
-
-
Save samhowat/e1a6e96b9144b03dd41aff1fd6bacdbe to your computer and use it in GitHub Desktop.
Power Reviews Code Samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| Power Reviews Widget | |
| This code is used each time you want to display the power reviews widget. | |
| We link to the reviews-list.html file where all reviews are listed. | |
| --> | |
| <script src="//ui.powerreviews.com/stable/4.0/ui.js"></script> | |
| <style type="text/css"> | |
| /* Recommended Styles Overrides */ | |
| .pr-snippet-review-count, .pr-snippet-write-review-link { display: none; } | |
| </style> | |
| <div style="width: 300px;"> | |
| <div id="pr-reviewsnippet"></div> | |
| <script> | |
| POWERREVIEWS.display.render({ | |
| api_key: 'API KEY HERE', | |
| locale: 'en_US', | |
| merchant_group_id: 'XXXXXX', | |
| merchant_id: 'XXXXXX', | |
| page_id: 'STAT ID HERE', | |
| components: { | |
| ReviewSnippet: 'pr-reviewsnippet' | |
| } | |
| }); | |
| </script> | |
| <a href="link-to-reviews-page.html" title="Read our Reviews">Read our Reviews</a> | |
| </div> | |
| <!-- | |
| Power Reviews List Page | |
| The code below was used to populate the output of all Power Reviews into the page of the site. | |
| The style embed that is displayed below was used to hide elements that we didn't want to output in the page. | |
| --> | |
| <script src="//ui.powerreviews.com/stable/4.0/ui.js"></script> | |
| <style type="text/css"> | |
| /* Recommended Styles Overrides */ | |
| .pr-snippet-review-count, | |
| .pr-snippet-write-review-link { display: none; } | |
| .pr-review-snapshot-block-container, | |
| .pr-review-snapshot-faceoff { | |
| display: none !important; | |
| } | |
| </style> | |
| <div id="pr-reviewdisplay"></div> | |
| <script> | |
| POWERREVIEWS.display.render({ | |
| api_key: 'API KEY HERE', | |
| locale: 'en_US', | |
| merchant_group_id: 'XXXXXX', | |
| merchant_id: 'XXXXXX', | |
| page_id: 'STAT ID HERE', | |
| components: { | |
| ReviewDisplay: 'pr-reviewdisplay' | |
| } | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI
Can we implement the same in Mobile APP developed in Xamarin