{"id":6094,"date":"2023-09-02T16:49:02","date_gmt":"2023-09-02T16:49:02","guid":{"rendered":"https:\/\/www.arcacardio.eu\/?page_id=6094"},"modified":"2023-09-02T16:49:02","modified_gmt":"2023-09-02T16:49:02","slug":"valvulopatie","status":"publish","type":"page","link":"https:\/\/www.arcacardio.eu\/valvulopatie\/","title":{"rendered":"Valvulopatie"},"content":{"rendered":"<h2>Valvulopatie<\/h2>\n\t\t\t<script src=\"https:\/\/www.arcacardio.eu\/ext\/download-manager\/assets\/datatables\/datatables.min.js\"><\/script>\n\t\t<link href=\"https:\/\/www.arcacardio.eu\/ext\/download-manager\/assets\/datatables\/datatables.css\" rel=\"stylesheet\"\/>\n\t\t<style>\n\t\t\t\/* Category Filter - Shortcode specific *\/\n\t\t\t.wpdm-dt-category-wrap {\n\t\t\t\tdisplay: inline-flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmargin-left: 12px;\n\t\t\t}\n\t\t\t#wpdm-all-packages .wpdm-dt-category-filter {\n\t\t\t\tmin-width: 160px;\n\t\t\t\tpadding: 10px 14px;\n\t\t\t\tfont-size: 14px;\n\t\t\t\tborder: 1px solid var(--wpdm-border, #e5e7eb);\n\t\t\t\tborder-radius: 8px;\n\t\t\t\tbackground: var(--wpdm-bg, #fff);\n\t\t\t\tcolor: var(--wpdm-text, #1e293b);\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\t#wpdm-all-packages .wpdm-dt-category-filter:focus {\n\t\t\t\toutline: none;\n\t\t\t\tborder-color: var(--wpdm-accent, #6366f1);\n\t\t\t\tbox-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);\n\t\t\t}\n\t\t\t\/* Download button width override *\/\n\t\t\t.__dt_col_download_link a {\n\t\t\t\tmin-width: 160px;\n\t\t\t}\n\t\t<\/style>\n\t\t\n    <script>\n        jQuery(function ($) {\n            \/\/ Column definitions for server-side rendering\n            var colDefs = [[\"page_link\",\"file_count\",\"download_count\"],[\"categories\"],[\"update_date\"],[\"download_link\"]];\n            var colHeads = [\"Title\",\"Categories\",\"Update Date\",\"Download\"];\n            var ajaxParams = {\"cols\":\"page_link,file_count,download_count|categories|update_date|download_link\",\"categories\":\"valvulopatie\",\"tag\":\"\",\"order_by\":\"date\",\"order\":\"DESC\"};\n            var tableId = 'wpdm_29a3a7a6-1ef4-44a4-93e5-678789fcd9a9';\n\n            \/\/ Build column configurations\n            var columns = [];\n            colDefs.forEach(function(colGroup, index) {\n                var primaryCol = colGroup[0];\n                columns.push({\n                    data: null,\n                    orderable: ['page_link', 'title', 'publish_date', 'update_date', 'download_count', 'view_count', 'package_size', 'date', 'modified'].indexOf(primaryCol) !== -1,\n                    render: function(data, type, row) {\n                        if (type === 'sort' || type === 'type') {\n                            if (primaryCol === 'update_date' || primaryCol === 'modified') return row.update_date_raw;\n                            if (primaryCol === 'publish_date' || primaryCol === 'date') return row.publish_date_raw;\n                            if (primaryCol === 'download_count') return row.download_count;\n                            if (primaryCol === 'view_count') return row.view_count;\n                            if (primaryCol === 'page_link' || primaryCol === 'title') return row.title;\n                            return data;\n                        }\n\n                        var html = '';\n                        colGroup.forEach(function(col, cx) {\n                            var cxc = cx > 0 ? 'small-txt' : '';\n                            switch(col) {\n                                case 'title':\n                                    html += '<strong>' + row.title + '<\/strong><br\/>';\n                                    break;\n                                case 'page_link':\n                                    html += row.page_link + '<br\/>';\n                                    break;\n                                case 'excerpt':\n                                    html += '<div class=\"__dt_excerpt ' + cxc + '\">' + (row.excerpt || '') + '<\/div>';\n                                    break;\n                                case 'file_count':\n                                    html += cx > 0\n                                        ? '<span class=\"__dt_file_count ' + cxc + '\"><i class=\"far fa-copy\"><\/i> ' + row.file_count + ' file<\/span>'\n                                        : '<span class=\"__dt_file_count ' + cxc + '\">' + row.file_count + '<\/span>';\n                                    break;\n                                case 'download_count':\n                                    html += cx > 0\n                                        ? '<span class=\"__dt_download_count ' + cxc + '\"><i class=\"far fa-arrow-alt-circle-down\"><\/i> ' + row.download_count + ' ' + (row.download_count > 1 ? 'download' : 'download') + '<\/span>'\n                                        : '<span class=\"__dt_download_count ' + cxc + '\">' + row.download_count + '<\/span>';\n                                    break;\n                                case 'view_count':\n                                    html += cx > 0\n                                        ? '<span class=\"__dt_view_count ' + cxc + '\"><i class=\"fa fa-eye\"><\/i> ' + row.view_count + ' ' + (row.view_count > 1 ? 'visualizzazioni' : 'visualizzazione') + '<\/span>'\n                                        : '<span class=\"__dt_view_count ' + cxc + '\">' + row.view_count + '<\/span>';\n                                    break;\n                                case 'categories':\n                                    html += '<span class=\"__dt_categories ' + cxc + '\">' + (row.categories || '') + '<\/span>';\n                                    break;\n                                case 'tags':\n                                    html += '<span class=\"__dt_categories ' + cxc + '\">' + (row.tags || '') + '<\/span>';\n                                    break;\n                                case 'update_date':\n                                case 'modified':\n                                    html += '<span class=\"__dt_update_date ' + cxc + '\">' + row.update_date + '<\/span>';\n                                    break;\n                                case 'publish_date':\n                                case 'date':\n                                    html += '<span class=\"__dt_publish_date ' + cxc + '\">' + row.publish_date + '<\/span>';\n                                    break;\n                                case 'download_link':\n                                    html += row.download_link;\n                                    break;\n                                default:\n                                    \/\/ Handle excerpt_N pattern (e.g., excerpt_80)\n                                    if (col.match(\/^excerpt_\\d+$\/i) && row[col] !== undefined) {\n                                        html += '<div class=\"__dt_excerpt ' + cxc + '\">' + row[col] + '<\/div>';\n                                    } else if (row[col] !== undefined) {\n                                        html += '<span class=\"__dt_' + col + ' ' + cxc + '\">' + row[col] + '<\/span>';\n                                    }\n                            }\n                        });\n                        if (index === 0) html += '<div class=\"hidden-md hidden-lg td-mobile\"><\/div>';\n                        return html;\n                    },\n                    createdCell: function(td, cellData, rowData, row, col) {\n                        if (index === 0 && rowData.icon) {\n                            $(td).css({\n                                'background-image': 'url(' + rowData.icon + ')',\n                                'background-size': '36px',\n                                'background-position': '5px center',\n                                'background-repeat': 'no-repeat',\n                                'padding-left': '52px',\n                                'line-height': 'normal'\n                            });\n                        }\n                        $(td).addClass('__dt_col_' + index + ' __dt_col __dt_col_' + colGroup[0]);\n                    }\n                });\n            });\n\n            var __dt = $('#wpdmmydls-wpdm_29a3a7a6-1ef4-44a4-93e5-678789fcd9a9').DataTable({\n                processing: true,\n                serverSide: true,\n                ajax: {\n                    url: 'https:\/\/www.arcacardio.eu\/ajax',\n                    type: 'POST',\n                    data: function(d) {\n                        d.action = 'wpdm_all_packages_data';\n                        d.params = ajaxParams;\n                        d.cfurl = 'https:\/\/www.arcacardio.eu\/valvulopatie\/';\n                    },\n                    dataSrc: function(json) {\n                        \/\/ TEMPORARY DEBUG - remove after fixing performance\n                        if (json.debug) {\n                            console.log('\ud83d\udd0d WPDM Total Time:', json.debug.total_ms + 'ms');\n                            console.table(json.debug.breakdown_ms);\n                        }\n                        return json.data;\n                    }\n                },\n                columns: columns,\n                responsive: true,\n                autoWidth: false,\n                order: [[0, \"asc\"]],\n                pageLength: 10,\n                lengthMenu: [[10, 10, 25, 50, 100], [10, 10, 25, 50, 100]],\n                language: {\n                    lengthMenu: \"_MENU_\",\n                    zeroRecords: \"No matching downloads found\",\n                    info: \"Showing _START_ to _END_ of _TOTAL_\",\n                    infoEmpty: \"Nessun download disponibile\",\n                    infoFiltered: \"(filtered from _MAX_)\",\n                    emptyTable: \"Nessun download disponibile\",\n                    loadingRecords: \"Caricamento in corso...\",\n                    processing: '<div class=\"wpdm-dt-loading\">Caricamento in corso...<\/div>',\n                    search: \"Cerca\",\n                    searchPlaceholder: \"Type to filter...\",\n                    paginate: {\n                        first: \"\u00ab\",\n                        last: \"\u00bb\",\n                        next: \"\u203a\",\n                        previous: \"\u2039\"\n                    }\n                },\n                drawCallback: function() {\n                    $(this).find('tr').addClass('__dt_row');\n                },\n                initComplete: function() {\n                    \/\/ Move category filter next to length menu\n                    var $categoryFilter = $('#wpdm-category-filter-' + tableId);\n                    if ($categoryFilter.length) {\n                        var $wrapper = $categoryFilter.closest('.wpdm-dt-category-wrap');\n                        var $lengthMenu = $('#wpdmmydls-' + tableId + '_wrapper').find('.dt-length');\n                        if ($lengthMenu.length) {\n                            $wrapper.appendTo($lengthMenu).show();\n                        }\n                    }\n                }\n            });\n\n            \/\/ Category filter change handler\n            $('#wpdm-category-filter-' + tableId).on('change', function() {\n                var selectedCategory = $(this).val();\n                ajaxParams.categories = selectedCategory;\n                __dt.ajax.reload();\n            });\n\n\t\t\t        });\n    <\/script>\n\n<div class=\"w3eden\">\n    <div id=\"wpdm-all-packages\">\n\t\t        <table id=\"wpdmmydls-wpdm_29a3a7a6-1ef4-44a4-93e5-678789fcd9a9\" class=\"table table-striped wpdm-all-packages-table\">\n            <thead>\n            <tr>\n\t\t\t\t                    <th  id=\"pagelink\"\n                                                                        class=\"\">Titolo<\/th>\n\t\t\t\t                    <th  id=\"categories\"\n                                                                        class=\"hidden-sm hidden-xs\">Categorie<\/th>\n\t\t\t\t                    <th  id=\"updatedate\"\n                                                                        class=\"hidden-sm hidden-xs\">Data aggiornamento<\/th>\n\t\t\t\t                    <th  id=\"downloadlink\"\n                                                                        class=\"hidden-sm hidden-xs\">Download<\/th>\n\t\t\t\t\n            <\/tr>\n            <\/thead>\n            <tbody><\/tbody>\n        <\/table>\n\n\t\t<!-- Process: Array\n(\n)\n -->\n    <\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Valvulopatie<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-6094","page","type-page","status-publish","hentry"],"publishpress_future_action":{"enabled":false,"date":"2026-05-06 13:59:44","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/pages\/6094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/comments?post=6094"}],"version-history":[{"count":1,"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/pages\/6094\/revisions"}],"predecessor-version":[{"id":6095,"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/pages\/6094\/revisions\/6095"}],"wp:attachment":[{"href":"https:\/\/www.arcacardio.eu\/rest\/wp\/v2\/media?parent=6094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}