{"id":40,"date":"2016-05-09T09:29:26","date_gmt":"2016-05-09T09:29:26","guid":{"rendered":"http:\/\/multiratingpro.wpengine.com\/?page_id=40"},"modified":"2017-11-10T20:23:38","modified_gmt":"2017-11-10T09:23:38","slug":"template-system","status":"publish","type":"page","link":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system","title":{"rendered":"Template System"},"content":{"rendered":"<p>Multi Rating Pro contains an extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the plugin&#8217;s presentation. Simply copy &#038; paste the template file from the plugin&#8217;s &#8220;templates&#8221; folder and place it one of the following theme locations:<\/p>\n<ol>\n<li>wp-content\/themes\/CHILD_THEME\/multi-rating-pro\/{filename}<\/li>\n<li>wp-content\/themes\/PARENT_THEME\/multi-rating-pro\/{filename}<\/li>\n<li>wp-content\/plugins\/multi-rating-pro\/templates\/{filename}<\/li>\n<\/ol>\n<p>The plugin searches the above following file locations in order of priority and will use the new template file if it finds a match.<\/p>\n<p>Note: There are various action hooks and filters also available within the templates which can also be used to customize the presentation.<\/p>\n<p>The plugin contains the following template files:<\/p>\n<table class=\"table-striped table-bordered\">\n<tr>\n<th>Template File<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>comment-text.php<\/td>\n<td>Shows the ratings alongside comment text. WP comments system integration only.<\/td>\n<\/tr>\n<tr>\n<td>custom-field-value.php<\/td>\n<td>Shows the value of a rating entry for a custom field.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-custom-fields.php<\/td>\n<td>Show custom field input or textarea in a rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-custom-star-images.php<\/td>\n<td>Shows the custom star rating images as a rating item type in the rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-radio.php<\/td>\n<td>Shows the radio buttons as a rating item type in the rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-rating-item.php<\/td>\n<td>Iterates rating items in a rating form and invokes appropriate templates.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-select.php<\/td>\n<td>Shows the select dropdown as a rating item type in the rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-star-rating.php<\/td>\n<td>Shows the star ratings as a rating item type in the rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form-thumbs.php<\/td>\n<td>Shows the thumbs up\/thumbs down as a rating item type in the rating form and the WP comment form.<\/td>\n<\/tr>\n<tr>\n<td>rating-form.php<\/td>\n<td>Shows the rating form and invokes appropriate templates.<\/td>\n<\/tr>\n<tr>\n<td>rating-item-results.php<\/td>\n<td>Iterates rating items and invokes templates to show results.<\/td>\n<\/tr>\n<tr>\n<td>rating-result-custom-star-images.php<\/td>\n<td>Shows custom star rating images rating result.<\/td>\n<\/tr>\n<tr>\n<td>rating-result-list.php<\/td>\n<td>Iterates ratings and shows a list of ratings. Invokes appropriate templates.<\/td>\n<\/tr>\n<tr>\n<td>rating-result-percentage.php<\/td>\n<td>Shows the percentage rating result.<\/td>\n<\/tr>\n<tr>\n<td>rating-entry-details-list.php<\/td>\n<td>Iterates rating entries and shows them in a review format<\/td>\n<\/tr>\n<tr>\n<td>notification-rating-details.php<\/td>\n<td>Rating details used in e-mail templates<\/td>\n<\/tr>\n<tr>\n<td>rating-result-score.php<\/td>\n<td>Shows the score rating result.<\/td>\n<\/tr>\n<tr>\n<td>rating-result-star-rating.php<\/td>\n<td>Shows the star rating result.<\/td>\n<\/tr>\n<tr>\n<td>rating-result.php<\/td>\n<td>Invokes templates to show the appropriate rating result.<\/td>\n<\/tr>\n<tr>\n<td>thumbs-value.php<\/td>\n<td>Shows the value of a rating entry for the thumbs rating item type.<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Multi Rating Pro contains an extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the plugin&#8217;s presentation. Simply copy &#038; paste the template file from the plugin&#8217;s &#8220;templates&#8221; folder and place it one of the following theme locations: wp-content\/themes\/CHILD_THEME\/multi-rating-pro\/{filename} wp-content\/themes\/PARENT_THEME\/multi-rating-pro\/{filename} wp-content\/plugins\/multi-rating-pro\/templates\/{filename} The plugin searches the above following file locations&hellip; <span class=\"excerpt-more\"><a href=\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\">Read More<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":11797,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"mrp_rating_form_position":"","mrp_rating_results_position":"","mrp_structured_data_type":"","mrp_allow_anonymous":"","mrp_rating_form_id":"1","footnotes":""},"class_list":["post-40","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Template System - Multi Rating Pro<\/title>\n<meta name=\"description\" content=\"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Template System - Multi Rating Pro\" \/>\n<meta property=\"og:description\" content=\"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\" \/>\n<meta property=\"og:site_name\" content=\"Multi Rating Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-10T09:23:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\",\"url\":\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\",\"name\":\"Template System - Multi Rating Pro\",\"isPartOf\":{\"@id\":\"https:\/\/multiratingpro.com\/#website\"},\"datePublished\":\"2016-05-09T09:29:26+00:00\",\"dateModified\":\"2017-11-10T09:23:38+00:00\",\"description\":\"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.\",\"breadcrumb\":{\"@id\":\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/multiratingpro.com\/documentation\/developers\/template-system#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/multiratingpro.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/multiratingpro.com\/documentation\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Developers\",\"item\":\"https:\/\/multiratingpro.com\/documentation\/developers\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Template System\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/multiratingpro.com\/#website\",\"url\":\"https:\/\/multiratingpro.com\/\",\"name\":\"Multi Rating Pro\",\"description\":\"A powerful rating system and review plugin for WordPress.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/multiratingpro.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Template System - Multi Rating Pro","description":"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system","og_locale":"en_US","og_type":"article","og_title":"Template System - Multi Rating Pro","og_description":"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.","og_url":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system","og_site_name":"Multi Rating Pro","article_modified_time":"2017-11-10T09:23:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system","url":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system","name":"Template System - Multi Rating Pro","isPartOf":{"@id":"https:\/\/multiratingpro.com\/#website"},"datePublished":"2016-05-09T09:29:26+00:00","dateModified":"2017-11-10T09:23:38+00:00","description":"Documentation on the extensive template system which allows anyone with basic PHP, HTML and CSS knowledge to customize the presentation of the plugin.","breadcrumb":{"@id":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/multiratingpro.com\/documentation\/developers\/template-system"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/multiratingpro.com\/documentation\/developers\/template-system#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/multiratingpro.com\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/multiratingpro.com\/documentation"},{"@type":"ListItem","position":3,"name":"Developers","item":"https:\/\/multiratingpro.com\/documentation\/developers"},{"@type":"ListItem","position":4,"name":"Template System"}]},{"@type":"WebSite","@id":"https:\/\/multiratingpro.com\/#website","url":"https:\/\/multiratingpro.com\/","name":"Multi Rating Pro","description":"A powerful rating system and review plugin for WordPress.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/multiratingpro.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"multi-rating-pro":{"mrp_rating_result_1":[{"adjusted_star_result":0,"star_result":0,"total_max_option_value":12,"adjusted_score_result":0,"score_result":0,"percentage_result":0,"adjusted_percentage_result":0,"count_entries":0,"post_id":40,"rating_form_id":1}],"mrp_rating_result_2":[],"mrp_rating_result_3":[],"mrp_rating_result_4":[],"mrp_rating_result_5":[],"mrp_rating_result_6":[],"rating_form":1},"_links":{"self":[{"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/pages\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":0,"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/pages\/40\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/pages\/11797"}],"wp:attachment":[{"href":"https:\/\/multiratingpro.com\/wp-json\/wp\/v2\/media?parent=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}