HEX
Server: Apache
System: Linux webserver101.turnkeywebspace.com 4.18.0-553.81.1.el8_10.x86_64 #1 SMP Mon Oct 27 11:29:19 EDT 2025 x86_64
User: mastech10 (1521)
PHP: 8.2.30
Disabled: show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open,eval
Upload Files
File: /home/mastech10/public_html/wp-content/themes/newses/inc/ansar/admin/tabs/useful-plugin-panel.php
<?php
/**
 * Useful Plugin Panel
 *
 * @package Newses
 */
?>
<div id="useful-plugin-panel" class="panel-left">
	<?php 
	$newses_free_plugins = array(
		'contact-form-7' => array(
		    'name'      => 'Contact form 7',
			'slug'     	=> 'contact-form-7',
			'filename' 	=> 'contact-form-7.php',
		),
		'woocommerce' => array(
		    'name'     	=> 'Woocommerce',
			'slug'     	=> 'woocommerce',
			'filename' 	=> 'woocommerce.php',
		),
		'elementor' => array(
		    'name'     	=> 'Elementor',
			'slug'     	=> 'elementor',
			'filename' 	=> 'elementor.php',
		),
	);
	if( !empty( $newses_free_plugins ) ) { ?>
		<div class="recomended-plugin-wrap">
		<?php
		foreach( $newses_free_plugins as $newses_plugin ) {
			$info 		= newses_call_plugin_api( $newses_plugin['slug'] ); ?>
			<div class="recom-plugin-wrap w-3-col">
				<div class="plugin-title-install clearfix">
					<span class="title">
						<?php echo esc_html( $newses_plugin['name'] ); ?>	
					</span>
					<?php if($newses_plugin['slug'] == 'contact-form-7') : ?>
					<p><?php esc_html_e('To display the contact form, please install the Contact Form 7 plugin.', 'newses'); ?></p>
					<?php endif; ?>
					
					<?php if($newses_plugin['slug'] == 'woocommerce') : ?>
					<p><?php esc_html_e('To display the Woocommerce layout, please install the Woocommerce plugin.', 'newses'); ?></p>
					<?php endif; ?>
					
				    <?php if($newses_plugin['slug'] == 'elementor') : ?>
					<p><?php esc_html_e('To use the Elementor layouts and pages, install the Elementor plugin.', 'newses'); ?></p>
					<?php endif; ?>	
					<?php 
					echo '<div class="button-wrap">';
					echo Newses_Getting_Started_Page_Plugin_Helper::instance()->get_button_html( $newses_plugin['slug'] );
					echo '</div>';
					?>
				</div>
			</div>
			</br>
			<?php
		} ?>
		</div>
	<?php
	} ?>
</div>