{"id":86,"date":"2020-03-08T18:45:44","date_gmt":"2020-03-08T18:45:44","guid":{"rendered":"https:\/\/demo.daext.com\/soccer-engine\/?page_id=86"},"modified":"2023-10-11T14:05:45","modified_gmt":"2023-10-11T14:05:45","slug":"trophies","status":"publish","type":"page","link":"https:\/\/demo.daext.com\/soccer-engine\/trophies\/","title":{"rendered":"Trophies"},"content":{"rendered":"\n<p>The <strong>Trophies<\/strong> block allows you to display in the front-end of the website a table with information about the trophies.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example 1<\/h3>\n\n\n\n<p>A generic list of trophies.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"trophy\">\n\n            \n            <div id=\"dase-paginated-table-1\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'trophy',\n                  filter: {'trophy_type_id': '0','team_id': '0','start_assignment_date': '1900-01-01','end_assignment_date': '2100-01-01',},\n                  columns: ['trophy_type','team','assignment_date'],\n                  hiddenColumnsBreakpoint1: [],\n                  hiddenColumnsBreakpoint2: [],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-1',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h3 class=\"wp-block-heading\">Example 2<\/h3>\n\n\n\n<p>Champions leagues won by Real Madrid.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"trophy\">\n\n            \n            <div id=\"dase-paginated-table-2\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'trophy',\n                  filter: {'trophy_type_id': '6','team_id': '0','start_assignment_date': '1900-01-01','end_assignment_date': '2100-01-01',},\n                  columns: ['trophy_type','team','assignment_date'],\n                  hiddenColumnsBreakpoint1: [],\n                  hiddenColumnsBreakpoint2: [],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-2',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n\n<h3 class=\"wp-block-heading\">Example 3<\/h3>\n\n\n\n<p>La liga won by Barcelona.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"trophy\">\n\n            \n            <div id=\"dase-paginated-table-3\"><\/div>\n            <script>\n\n              \n              document.addEventListener(\"DOMContentLoaded\", function(event) {\n                new DasePaginatedTable({\n                  ajaxUrl: DASE_PHPDATA.ajaxUrl,\n                  nonce: DASE_PHPDATA.nonce,\n                  currentPage: 1,\n                  action: 'dase_get_paginated_table_data',\n                  tableId: 'trophy',\n                  filter: {'trophy_type_id': '5','team_id': '58','start_assignment_date': '1900-01-01','end_assignment_date': '2100-01-01',},\n                  columns: ['trophy_type','team','assignment_date'],\n                  hiddenColumnsBreakpoint1: [],\n                  hiddenColumnsBreakpoint2: [],\n                  pagination: 10,\n                  tableIdAttribute: 'dase-paginated-table-3',\n                });\n              });\n\n            <\/script>\n\n            \n\t\t<\/div>\n\n\t\t\n\n<div  class='av-buildercomment av-qo3i-592de648a3e582df99b4f008759e6024'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Trophies block allows you to display in the front-end of the website a table with information about the trophies. Example 1 A generic list of trophies. Example 2 Champions leagues won by Real Madrid. Example 3 La liga won by Barcelona.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-86","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/86\/revisions"}],"predecessor-version":[{"id":707,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/86\/revisions\/707"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/media?parent=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}