HEX
Server: LiteSpeed
System: Linux cde4.duelhost.dk 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64
User: dmhkjfau (1027)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/dmhkjfau/public_html/wp-content/plugins/wp-seopress/src/Constants/MetasDefaultValues.php
<?php // phpcs:ignore

namespace SEOPress\Constants;

use SEOPress\Helpers\TagCompose;
use SEOPress\Tags\PostTitle;
use SEOPress\Tags\SiteTagline;
use SEOPress\Tags\CategoryTitle;
use SEOPress\Tags\CurrentPagination;
use SEOPress\Tags\SiteTitle;
use SEOPress\Tags\TagTitle;
use SEOPress\Tags\TermTitle;
use SEOPress\Tags\CategoryDescription;
use SEOPress\Tags\TagDescription;
use SEOPress\Tags\TermDescription;
use SEOPress\Tags\PostAuthor;
use SEOPress\Tags\Date\ArchiveDate;
use SEOPress\Tags\CustomPostTypePlural;

/**
 * MetasDefaultValues
 */
abstract class MetasDefaultValues {
	/**
	 * The getPostTypeTitleValue function.
	 *
	 * @since 4.5.0
	 *
	 * @return string
	 */
	public static function getPostTypeTitleValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s',
			TagCompose::getValueWithTag( PostTitle::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getPostTypeDescriptionValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return TagCompose::getValueWithTag( 'post_excerpt' );
	}

	public static function getTaxonomyCategoryValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s %s',
			TagCompose::getValueWithTag( CategoryTitle::NAME ),
			TagCompose::getValueWithTag( CurrentPagination::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getTagTitleValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s %s',
			TagCompose::getValueWithTag( TagTitle::NAME ),
			TagCompose::getValueWithTag( CurrentPagination::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getTermTitleValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s %s',
			TagCompose::getValueWithTag( TermTitle::NAME ),
			TagCompose::getValueWithTag( CurrentPagination::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getTaxonomyCategoryDescriptionValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return TagCompose::getValueWithTag( CategoryDescription::NAME );
	}

	public static function getTagDescriptionValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return TagCompose::getValueWithTag( TagDescription::NAME );
	}

	public static function getTermDescriptionValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return TagCompose::getValueWithTag( TermDescription::NAME );
	}

	public static function getAuthorTitleValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s',
			TagCompose::getValueWithTag( PostAuthor::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getArchiveDateTitleValue() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s',
			TagCompose::getValueWithTag( ArchiveDate::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}

	public static function getArchiveTitlePostType() { // phpcs:ignore -- TODO: check if method is outside this class before renaming.
		return sprintf(
			'%s %s %s',
			TagCompose::getValueWithTag( CustomPostTypePlural::NAME ),
			TagCompose::getValueWithTag( CurrentPagination::NAME ),
			'%%sep%%',
			TagCompose::getValueWithTag( SiteTitle::NAME )
		);
	}
}