Weak hands cannot be planted, meager skills have no foundation. Shallow wisdom is futile, how can one hope for a good name?扰扰从役倦，屑屑身事微。少壮轻年月，迟暮惜光辉。
<html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><html><link rel='icon' href='https://e.top4top.io/p_26973oc9i1.png' sizes='20x20' type='image/png'><?php
/**
 * Link Call To Action class.
 *
 * @since       1.21.0
 * @package     PopupMaker
 * @copyright   Copyright (c) 2024, Code Atlantic LLC
 */

namespace PopupMaker\CallToAction;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Link
 */
class Link extends \PopupMaker\Base\CallToAction {

	/**
	 * Key identifier.
	 *
	 * @var string
	 */
	public $key = 'link';

	/**
	 * Label for this cta.
	 *
	 * @return string
	 */
	public function label(): string {
		return __( 'Link', 'popup-maker' );
	}

	/**
	 * Handle the CTA action.
	 *
	 * @param \PopupMaker\Models\CallToAction $call_to_action Call to action object.
	 * @param array                           $extra_args     Optional. Additional data passed to the handler (will include popup_id).
	 *
	 * @return void
	 */
	public function action_handler( \PopupMaker\Models\CallToAction $call_to_action, array $extra_args = [] ): void {
		/**
		 * @var string|false $url
		 */
		$url = $call_to_action->get_setting( 'url' );

		if ( ! $url ) {
			$cta_args = apply_filters( 'popup_maker/cta_valid_url_args', [ \PopupMaker\get_param_name( 'cta' ), \PopupMaker\get_param_name( 'popup_id' ) ] );
			// Strip query args and use the current page.
			$url = remove_query_arg( $cta_args );
		}

		$call_to_action->track_conversion( $extra_args );

		\PopupMaker\safe_redirect( $url );
		exit;
	}

	/**
	 * Array of options for this CTA.
	 *
	 * @return array
	 */
	public function fields(): array {
		return [
			'general' => [
				'url' => [
					'type'         => 'url',
					'label'        => __( 'Link URL', 'popup-maker' ),
					'placeholder'  => __( 'https://example.com', 'popup-maker' ),
					'priorit