{"id":41,"date":"2020-03-08T18:25:33","date_gmt":"2020-03-08T18:25:33","guid":{"rendered":"https:\/\/demo.daext.com\/soccer-engine\/?page_id=41"},"modified":"2023-10-11T14:05:45","modified_gmt":"2023-10-11T14:05:45","slug":"matches","status":"publish","type":"page","link":"https:\/\/demo.daext.com\/soccer-engine\/matches\/","title":{"rendered":"Matches"},"content":{"rendered":"\n<p>The <strong>Matches<\/strong> block allows you to display in the front-end of the website a table with information about the matches.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1<\/h4>\n\n\n\n<p> A generic collection of matches.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"match\">\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: 'match',\n                  filter: {'team_id_1': '0','team_id_2': '0','start_date': '1900-01-01','end_date': '2100-01-01',},\n                  columns: ['date','time','team_1','result','team_2'],\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<h4 class=\"wp-block-heading\">Example 2<\/h4>\n\n\n\n<p>Matches with Juventus as the home team.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"match\">\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: 'match',\n                  filter: {'team_id_1': '21','team_id_2': '0','start_date': '1900-01-01','end_date': '2100-01-01',},\n                  columns: ['date','time','team_1','result','team_2'],\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<h4 class=\"wp-block-heading\">Example 3<\/h4>\n\n\n\n<p>Matches played in a specific period. In this example from January 1, 2018 to May 31, 2018.<\/p>\n\n\n\n\t\t<div class=\"dase-paginated-table-container\" data-type=\"match\">\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: 'match',\n                  filter: {'team_id_1': '0','team_id_2': '0','start_date': '2018-01-01T00:00:00','end_date': '2018-05-31T00:00:00',},\n                  columns: ['date','time','team_1','result','team_2'],\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-2qet-0ac39526c11c2369be2b7fc7e5a0aaad'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Matches block allows you to display in the front-end of the website a table with information about the matches. Example 1 A generic collection of matches. Example 2 Matches with Juventus as the home team. Example 3 Matches played in a specific period. In this example from January 1, 2018 to May 31, 2018.<\/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-41","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/41","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=41"}],"version-history":[{"count":1,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/41\/revisions"}],"predecessor-version":[{"id":690,"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/pages\/41\/revisions\/690"}],"wp:attachment":[{"href":"https:\/\/demo.daext.com\/soccer-engine\/wp-json\/wp\/v2\/media?parent=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}