SILENT KILLERPanel

Current Path: > home > transcarter > public_html > wp-content > plugins > leadin > > public > admin >


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter/public_html/wp-content/plugins/leadin//public/admin/

NameTypeSizeLast ModifiedActions
modules Directory - -
widgets Directory - -
class-adminconstants.php File 7415 bytes July 17 2025 21:06:25.
class-connection.php File 5403 bytes July 17 2025 21:06:25.
class-contentembedinstaller.php File 5054 bytes July 17 2025 21:06:25.
class-deactivationform.php File 3593 bytes July 17 2025 21:06:25.
class-gutenberg.php File 1243 bytes July 17 2025 21:06:25.
class-impact.php File 1045 bytes July 17 2025 21:06:25.
class-leadinadmin.php File 10491 bytes July 17 2025 21:06:25.
class-links.php File 6427 bytes July 17 2025 21:06:25.
class-menuconstants.php File 492 bytes July 17 2025 21:06:25.
class-noticemanager.php File 2246 bytes July 17 2025 21:06:25.
class-pluginactionsmanager.php File 1832 bytes July 17 2025 21:06:25.
class-reviewbanner.php File 3004 bytes July 17 2025 21:06:25.
class-reviewcontroller.php File 2234 bytes July 17 2025 21:06:25.
class-routing.php File 2636 bytes July 17 2025 21:06:25.

Reading File: /home/transcarter/public_html/wp-content/plugins/leadin//public/admin//class-reviewbanner.php

<?php

namespace Leadin\admin;

use Leadin\data\User_Metadata;
use Leadin\admin\AdminConstants;
use Leadin\AssetsManager;

/**
 * Class responsible for rendering the review banner
 */
class ReviewBanner {


	/**
	 * Constructor enqueues scripts for tracking events and creates background leadin iframe
	 */
	public function __construct() {
		AssetsManager::enqueue_review_banner_tracking_script();
	}

	/**
	 * Render the review banner.
	 */
	public function leadin_render_review_banner() {
		$nonce               = wp_create_nonce( 'leadin-review' );
		$dismiss_notice_text = __( 'Dismiss this notice', 'leadin' );

		$hello_text = sprintf(
			/* translators: %1$s: Current user name or nickname */
			__( 'Hey %1$s,', 'leadin' ),
			User_Metadata::get_first_name() ? User_Metadata::get_first_name() : User_Metadata::get_nickname()
		);

		/* translators: %1$s: HTML anchor opening tag %2$s: HTML anchor closing tag */
		$notice_text       = __( 'Have you got 2 minutes to complete %1$sthis survey%2$s about the HubSpot for WordPress plugin?', 'leadin' );
		$feedback_text     = __( 'We read every response Your feedback helps our team make the improvements that you need the most', 'leadin' );
		$from_hubspot_text = __( 'HubSpot for WordPress Team', 'leadin' );
		$thanks_message    = __( 'Thanks,', 'leadin' );
		?>
			<div id="leadin-review-banner" class="leadin-banner leadin-review-banner leadin-review-banner--hide notice notice-warning">

				<a href="?leadin_review=false&_wpnonce=<?php echo esc_html( $nonce ); ?>"
					id="dismiss-review-banner-button">
						<button class="leadin-review-banner__dismiss notice-dismiss">
							<span class="screen-reader-text">
								<?php	echo esc_html( $dismiss_notice_text ); ?>
							</span>
						</button>
				</a>

				<div class="leadin-review-banner__content">
					<p class="leadin-review-banner__text">
						<?php	echo esc_html( $hello_text ); ?>
					</p>

					<div class="leadin-review-banner__content-body">

						<p class="leadin-review-banner__text">
							<?php
							echo sprintf(
								esc_html( $notice_text ),
								'<a class="leadin-banner__link" id="leave-review-button" target="_blank" href="?leadin_review=true&_wpnonce=' . esc_html( $nonce ) . '" aria-label="' . esc_html( __( 'Leave us a review | link opens in a new tab', 'leadin' ) ) . '" >',
								'</a>'
							);
							?>
						</p>
						<p class="leadin-review-banner__text">
							<?php	echo esc_html( $feedback_text ); ?>
						</p>
					</div>
					<div class="leadin-review-banner__content-body">
					<p class="leadin-review-banner__text">
						<?php	echo esc_html( $thanks_message ); ?>
					</p>
						</div>
				</div>

				<div class="leadin-review-banner__author">
					<img src="<?php echo esc_attr( LEADIN_ASSETS_PATH . '/images/hubspot-team-profile.png' ); ?>" height="48" />

					<p class="leadin-review-banner__text">
						Kelly
						<br/>
						<?php echo esc_html( $from_hubspot_text ); ?>
					</p>
				</div>
			</div>


		<?php
	}
}

SILENT KILLER Tool