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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
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. |
<?php namespace Leadin\admin; use Leadin\data\User; use Leadin\admin\Connection; use Leadin\data\User_Metadata; use Leadin\admin\AdminConstants; use Leadin\admin\ReviewBanner; /** * Class responsible for rendering the admin notices. */ class NoticeManager { /** * Class constructor, adds the necessary hooks. */ public function __construct() { add_action( 'admin_notices', array( $this, 'leadin_action_required_notice' ) ); } /** * Render the disconnected banner. */ private function leadin_render_disconnected_banner() { ?> <div id="leadin-disconnected-banner" class="leadin-banner notice notice-warning is-dismissible"> <p> <img src="<?php echo esc_attr( LEADIN_ASSETS_PATH . '/images/sprocket.svg' ); ?>" height="16" style="margin-bottom: -3px" /> <?php echo sprintf( /* translators: %1$s: HTML anchor opening tag %2$s: HTML anchor closing tag */ esc_html( __( 'The HubSpot plugin is not connected right now To use HubSpot tools on your WordPress site, %1$sconnect the plugin now%2$s', 'leadin' ) ), '<a class="leadin-banner__link" href="admin.php?page=leadin&bannerClick=true">', '</a>' ); ?> </p> </div> <?php } /** * Find what notice (if any) needs to be rendered */ public function leadin_action_required_notice() { $current_screen = get_current_screen(); if ( User::is_admin() ) { if ( self::should_show_disconnected_notice() ) { $this->leadin_render_disconnected_banner(); } elseif ( self::should_show_review_notice() ) { $review_banner = new ReviewBanner(); $review_banner->leadin_render_review_banner(); } } } /** * Find if disconnected notice should be shown */ public function should_show_disconnected_notice() { $current_screen = get_current_screen(); return ! Connection::is_connected() && 'leadin' !== $current_screen->parent_base; } /** * Find if review notice should be shown */ public function should_show_review_notice() { $current_screen = get_current_screen(); $is_dashboard = 'index' === $current_screen->parent_base; $is_not_skipped = empty( User_Metadata::get_skip_review() ); return $is_dashboard && Connection::is_connected() && $is_not_skipped; } }
SILENT KILLER Tool