<?php
/*
 * Software Name: Eorisis Pixels
 * Software URI: https://eorisis.com/shop/software/joomla/pixels
 * Author: Eorisis
 * Author URI: https://eorisis.com
 * Copyright: Copyright (C) 2011-2025 EORISIS. All Rights Reserved.
 * License: GNU General Public License version 2; See https://eorisis.com/gpl
 * Terms of Service: https://eorisis.com/tos
 */
namespace com_eorisis_pixels\framework\install_package\lib\core\model;
\defined('_JEXEC') or die;

use com_eorisis_pixels\framework\install_package\lib\core\model\language as language_model;
use com_eorisis_pixels\framework\install_package\lib\core\model\data;
use com_eorisis_pixels\framework\install_package\lib\core\view\link;

class document
{
	public static $html = '';

	// --------------------------------------------------

	public function __construct() {}

	// --------------------------------------------------

	public static function set(string $setup_txt, string $version_txt, string $new_key) // void
	{
		$changelog_uri = data::$package['author_uri'].data::$package['app_uri'].'/changelog';

		self::$html  = '<p>';
		self::$html .=	language_model::text('THANKS_FOR_CHOOSING_EORISIS');
		self::$html .=	'<br>';
		self::$html .=	language_model::text('THE').' '.$setup_txt.' '.language_model::text('OF').' ';
		self::$html .=	'<b>'.data::$package['title'].' '.language_model::text($new_key).'</b> '.language_model::text('HAS_BEEN_COMPLETED_SUCCESSFULLY').'.';
		self::$html .=	'<br>';
		self::$html .=	$version_txt;
		self::$html .=	'<br>';
		self::$html .=	language_model::text('AFTER_INSTALL_UPDATE_UNINSTALL_CLEAR_CACHE');
		self::$html .=	'<br>';
		self::$html .=	language_model::text('SEE_WHATS_NEW').': <b>'.link::external($changelog_uri).'</b>';
		self::$html .=	'<br>';
		self::$html .=	data::$package['copyright'];
		self::$html .= '</p>';
	}
}
