Sindbad~EG File Manager

Current Path : /home/infinitibizsol/www.erofmesquite.com/wp-content/plugins/ahrefs-seo/php7/
Upload File :
Current File : /home/infinitibizsol/www.erofmesquite.com/wp-content/plugins/ahrefs-seo/php7/class-links.php

<?php

declare(strict_types=1);

namespace ahrefs\AhrefsSeo;

/**
 * Internal links.
 *
 * @since 0.10.2
 */
class Links {

	/**
	 * Get link to Content Audit screen
	 *
	 * @param string|null $tab Content audit table tab.
	 * @param string|null $cat Selected category value.
	 *
	 * @return string
	 */
	public static function content_audit( ?string $tab = null, ?string $cat = null ) : string {
		return add_query_arg(
			[
				'page' => Ahrefs_Seo::SLUG_CONTENT,
				'tab'  => $tab,
				'cat'  => $cat,
			],
			admin_url( 'admin.php' )
		);
	}

	/**
	 * Get link for Wizard step
	 *
	 * @param int|null $step Wizard step.
	 *
	 * @return string
	 */
	public static function wizard_step( ?int $step = null ) : string {
		return add_query_arg(
			[
				'page' => Ahrefs_Seo::SLUG,
				'step' => $step,
			],
			admin_url( 'admin.php' )
		);
	}

	/**
	 * Get link to Settings tab
	 *
	 * @param string      $tab Tab of settings page.
	 * @param string|null $return_to Return back URL.
	 *
	 * @return string
	 */
	public static function settings( string $tab, ?string $return_to = null ) : string {
		return add_query_arg(
			[
				'page'   => Ahrefs_Seo::SLUG_SETTINGS,
				'tab'    => $tab,
				'return' => ! is_null( $return_to ) ? rawurlencode( $return_to ) : null,
			],
			admin_url( 'admin.php' )
		);
	}

	/**
	 * Link to the Scope Settings with return to Content audit page.
	 *
	 * @return string
	 */
	public static function settings_scope_with_return() : string {
		return self::settings( Ahrefs_Seo_Screen_Settings::TAB_CONTENT, self::content_audit() );
	}

	/**
	 * Link to the Schedule Settings with return to Content audit page.
	 *
	 * @return string
	 */
	public static function settings_schedule_with_prefill_and_return() : string {
		return add_query_arg(
			[ 'prefill-monthly' => 'true' ],
			self::settings( Ahrefs_Seo_Screen_Settings::TAB_SCHEDULE, self::content_audit() )
		);
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists