X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/leadin/public/admin
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
leadin
/
public
/
admin
/
📁
..
📄
class-adminconstants.php
(7.24 KB)
📄
class-connection.php
(5.28 KB)
📄
class-contentembedinstaller.php
(4.94 KB)
📄
class-deactivationform.php
(3.51 KB)
📄
class-gutenberg.php
(1.21 KB)
📄
class-impact.php
(1.02 KB)
📄
class-leadinadmin.php
(10.25 KB)
📄
class-links.php
(6.28 KB)
📄
class-menuconstants.php
(492 B)
📄
class-noticemanager.php
(2.19 KB)
📄
class-pluginactionsmanager.php
(1.79 KB)
📄
class-reviewbanner.php
(2.93 KB)
📄
class-reviewcontroller.php
(2.18 KB)
📄
class-routing.php
(2.57 KB)
📁
modules
📁
widgets
Editing: 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 } }
Upload File
Create Folder