Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
www
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
app
/
Common
/
Views
/
sitemap
/
xsl
/
templates
/
Editing: format-priority.php
<?php /** * XSL formatPriority template for the sitemap. * * @since 4.1.5 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // phpcs:disable ?> <xsl:template name="formatPriority"> <xsl:param name="priority"/> <xsl:variable name="priorityLevel"> <xsl:choose> <xsl:when test="$priority <= 0.5">low</xsl:when> <xsl:when test="$priority >= 0.6 and $priority <= 0.8">medium</xsl:when> <xsl:when test="$priority >= 0.9">high</xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="priorityLabel"> <xsl:choose> <xsl:when test="$priorityLevel = 'low'"><?php _e( 'Low', 'all-in-one-seo-pack' ); ?></xsl:when> <xsl:when test="$priorityLevel = 'medium'"><?php _e( 'Medium', 'all-in-one-seo-pack' ); ?></xsl:when> <xsl:when test="$priorityLevel = 'high'"><?php _e( 'High', 'all-in-one-seo-pack' ); ?></xsl:when> </xsl:choose> </xsl:variable> <div> <xsl:attribute name="class"> <xsl:value-of select="concat('priority priority--', $priorityLevel)" /> </xsl:attribute> <xsl:value-of select="$priorityLabel" /> </div> </xsl:template>
Save
Cancel