HEX
Server: Apache
System: Linux srv-plesk28.ps.kz 5.14.0-284.18.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 29 17:06:27 EDT 2023 x86_64
User: greencl1 (10085)
PHP: 8.1.33
Disabled: apache_setenv,dl,eval,exec,openlog,passthru,pcntl_exec,pcntl_fork,popen,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,socket_create,socket_create_listen,socket_create_pair,syslog,system,socket_listen,stream_socket_server
Upload Files
File: /var/www/vhosts/greenclinic.kz/httpdocs/wp-content/plugins/wp-maintenance-mode/views/sidebar.php
<?php
/**
 * Sidebar
 *
 * @version 2.4.0
 */

defined( 'ABSPATH' ) || exit;
?>
<div id="sidebar" class="wrapper-cell">
	<div class="sidebar_box info_box">
		<h3><?php esc_html_e( 'Plugin Info', 'wp-maintenance-mode' ); ?></h3>
		<div class="inside">
			<?php $plugin_data = wpmm_plugin_info( $this->plugin_slug ); ?>
			<ul>
				<li><?php esc_html_e( 'Name', 'wp-maintenance-mode' ); ?>:
					<?php
					echo ! empty( $plugin_data['Name'] ) ? esc_html( $plugin_data['Name'] ) : '';
					echo ! empty( $plugin_data['Version'] ) ? esc_html( ' v' . $plugin_data['Version'] ) : '';
					?>
				</li>
				<li><?php esc_html_e( 'Author', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['AuthorName'] ) ? esc_html( $plugin_data['AuthorName'] ) : ''; ?></li>
				<li><?php esc_html_e( 'Website', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['AuthorURI'] ) ? '<a href="' . esc_url( wpmm_get_utmized_url( $plugin_data['AuthorURI'], array( 'campaign' => 'plugininfo' ) ) ) . '" target="_blank">' . esc_html( $plugin_data['AuthorName'] ) . $this->get_external_link_icon() . '</a>' : ''; ?></li>
				<li><?php esc_html_e( 'Twitter', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['Twitter'] ) ? '<a href="' . esc_url( 'https://twitter.com/' . $plugin_data['Twitter'] ) . '" target="_blank">@' . esc_html( $plugin_data['Twitter'] ) . $this->get_external_link_icon() . '</a>' : ''; ?></li>
				<li><?php esc_html_e( 'GitHub', 'wp-maintenance-mode' ); ?>: <?php echo ! empty( $plugin_data['GitHub Plugin URI'] ) ? '<a href="' . esc_url( wpmm_get_utmized_url( $plugin_data['GitHub Plugin URI'], array( 'campaign' => 'plugininfo' ) ) ) . '" target="_blank">' . esc_html( basename( $plugin_data['GitHub Plugin URI'] ) ) . $this->get_external_link_icon() . '</a>' : ''; ?></li>
			</ul>
		</div>
	</div>

	<?php
	$banners = wpmm_get_banners();

	if ( ! empty( $banners ) ) {
		?>
		<div class="sidebar_box themes_box">
			<h3><?php esc_html_e( 'Recommended', 'wp-maintenance-mode' ); ?></h3>
			<div class="inside">
				<ul>
					<?php
					foreach ( $banners as $item ) {
						$item['image'] = wpmm_get_banner_url( $item['image'] );

						if ( $item['utm'] ) {
							$item['link'] = wpmm_get_utmized_url(
								$item['link'],
								array(
									'campaign' => 'recommended',
									'content'  => sanitize_key( $item['title'] ),
								)
							);
						}

						printf( '<li><a href="%s" target="_blank" title="%s"><img src="%s" alt="%s" width="280" height="160" /></a></li>', esc_url( $item['link'] ), esc_attr( $item['title'] ), esc_url( $item['image'] ), esc_attr( $item['title'] ) );
					}
					?>
				</ul>
			</div>
		</div>
	<?php } ?>
</div>