| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/sortable-column.php.tar |
dev/wp-content/plugins/all-in-one-seo-pack/app/Common/Views/sitemap/xsl/partials/sortable-column.php0000644 00000001673 15114356744 0032576 0 ustar 00 home/xbodynamge <?php
/**
* XSL sortableColumn partial for the sitemap.
*
* @since 4.1.5
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
// Just print out the title for now.
echo esc_html( $data['title'] );
/*$orderBy = 'ascending';
if ( ! empty( $data['parameters']['sitemap-orderby'] ) ) {
$orderBy = $data['parameters']['sitemap-orderby'];
}
$isOrdering = false;
if ( ! empty( $data['parameters']['sitemap-order'] ) ) {
$isOrdering = $data['column'] === $data['parameters']['sitemap-order'];
}
$link = add_query_arg( [
'sitemap-order' => $data['column'],
'sitemap-orderby' => 'ascending' === $orderBy ? 'descending' : 'ascending'
], $data['sitemapUrl'] );
?>
<a href="<?php echo esc_url( $link ); ?>" class="sortable <?php echo esc_attr( ( $isOrdering ? 'active' : '' ) . ' ' . $orderBy ); ?>">
<?php echo esc_html( $data['title'] ); ?>
</a>*/