prepare_items(); $active_filter = $table->get_active_filter(); $active_sort = $table->get_active_sort(); $active_order = $table->get_active_order(); $filter_counts = $table->get_filter_counts(); $sort_labels = $table->get_sort_option_labels(); // "Not linked yet" replaces the earlier "Orphans" wording — that word // already means something else in WordPress (orphaned media attachments), // which is a real source of confusion, not just unfamiliar jargon. $filters = array( 'all' => __( 'All', 'postlinkly' ), 'broken' => __( 'Broken', 'postlinkly' ), 'orphan' => __( 'Not linked yet', 'postlinkly' ), ); $page_action = ''; $page_action .= ' '; $page_action .= esc_html__( 'Export CSV', 'postlinkly' ); $page_action .= ''; if ( ( $filter_counts['broken'] ?? 0 ) > 0 ) { $page_action .= ' '; $page_action .= esc_html__( 'Bulk fix broken', 'postlinkly' ); $page_action .= ''; } require __DIR__ . '/partials/page-header.php'; ?>
$filter_label ) : ?> 0 ) : ?> ()
items ) ) : ?>

no_items(); ?>

items as $item ) : ?> render_item( $item ), \Postlinkly\Admin\ListTables\ReportListTable::allowed_item_html() ); ?>
pagination( 'bottom' ); ?>
$pl_status_obj ) { if ( isset( $pl_status_obj->label ) ) { $pl_status_labels[ $pl_status ] = $pl_status_obj->label; } } // Behaviour lives in assets/js/admin-report.js, enqueued by the page. // Printed with the footer scripts, which run after this template renders. wp_localize_script( \Postlinkly\Admin\Assets\AssetRegistrar::HANDLE_REPORT_JS, 'postlinklyReport', array( 'statusLabels' => $pl_status_labels, 'i18n' => array( 'loading' => __( 'Loading links…', 'postlinkly' ), 'emptyInbound' => __( 'No other post on your site links to this one yet.', 'postlinkly' ), 'emptyOutbound' => __( "This post doesn't link to any other posts on your site.", 'postlinkly' ), 'emptyExternal' => __( "This post doesn't link to any other websites.", 'postlinkly' ), 'loadFailedHttp' => __( 'Could not load links (HTTP', 'postlinkly' ), 'loadFailed' => __( 'Could not load links.', 'postlinkly' ), 'edit' => __( 'Edit', 'postlinkly' ), 'replace' => __( 'Replace', 'postlinkly' ), 'external' => __( 'External', 'postlinkly' ), 'unpublished' => __( 'Unpublished', 'postlinkly' ), 'deleted' => __( 'Deleted', 'postlinkly' ), 'broken' => __( 'broken', 'postlinkly' ), 'total' => __( 'total', 'postlinkly' ), 'linksToPosts' => __( 'links to other posts', 'postlinkly' ), 'linksToSites' => __( 'links to other websites', 'postlinkly' ), 'postsLinkHere' => __( 'posts link here', 'postlinkly' ), ), ) ); require __DIR__ . '/partials/page-footer.php'; ?>