Uname:Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 216.250.13.251  /  Your IP : 216.73.217.100
Web Server : nginx/1.24.0
System : Linux gunay 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gunay/wp-content/plugins/rt19-extentions/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gunay/wp-content/plugins/rt19-extentions/widgets/contact_info.php
<?php
/**
 * RT-Theme Contact Info Widget
 *
 * @author RT-Themes
 * @version 1.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

if ( ! class_exists( 'Contact_Info' ) ) :

class Contact_Info extends WP_Widget {

	function __construct() {
		$opts =array(
					'classname' 	=> 'widget_contact_info',
					'description' 	=> __( 'Use this widget to display your contact details with icons.','rt_theme' )
				);

		parent::__construct('contact_info', '['. RT_THEMENAME.']   '.__('Contact Info','rt_theme'), $opts);
	}
	

	function widget( $args, $instance ) {
		extract( $args );
		
		$title                  = !empty( $instance['title'] ) ? apply_filters('widget_title', $instance['title'])  : "";
		$address                = !empty( $instance['address'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Address', $instance['address'] ) : "";
		$phone_1                = !empty( $instance['phone_1'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Phone 1', $instance['phone_1'] ) : "";
		$phone_2                = !empty( $instance['phone_2'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Phone 2', $instance['phone_2'] ) : "";
		$m_phone_1              = !empty( $instance['m_phone_1'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Mobile Phone 1', $instance['m_phone_1'] ) : "";
		$m_phone_2              = !empty( $instance['m_phone_2'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Mobile Phone 2', $instance['m_phone_2'] ) : "";		
		$fax_1                  = !empty( $instance['fax_1'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Fax 1', $instance['fax_1'] ) : "";
		$fax_2                  = !empty( $instance['fax_2'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Fax 2', $instance['fax_2'] ) : "";
		$mail_1                 = !empty( $instance['mail_1'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Email 1', $instance['mail_1'] ) : "";
		$mail_2                 = !empty( $instance['mail_2'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Email 2', $instance['mail_2'] ) : "";
		$support_mail_1         = !empty( $instance['support_mail_1'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Support Email 1', $instance['support_mail_1'] ) : "";
		$support_mail_2         = !empty( $instance['support_mail_2'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Support Email 2', $instance['support_mail_2'] ) : "";
		$map_link               = !empty( $instance['map_link'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Map Link', $instance['map_link'] ) : "";
		$contact_form_link      = !empty( $instance['contact_form_link'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Contact Form Link', $instance['contact_form_link'] ) : "";
		$map_link_text          = !empty( $instance['map_link_text'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Map Link Text', $instance['map_link_text'] ) : "";
		$contact_form_link_text = !empty( $instance['contact_form_link_text'] ) ? rt_wpml_t( RT_THEMESLUG , $this->id. 'Contact Form Link Text', $instance['contact_form_link_text'] ) : "";


 
		//Contact Info
 		$contactInfo = '<div class="with_icons style-1">';
		
		if(!empty($address)) 			$contactInfo .= '<div><span class="icon icon-home"></span><div>'.$address.'</div></div>';
		if(!empty($phone_1)) 			$contactInfo .= '<div><span class="icon icon-phone"></span><div>'.$phone_1.'</div></div>';
		if(!empty($phone_2))			$contactInfo .= '<div><span class="icon icon-phone"></span><div>'.$phone_2.'</div></div>';
		if(!empty($m_phone_1)) 			$contactInfo .= '<div><span class="icon icon-mobile"></span><div>'.$m_phone_1.'</div></div>';
		if(!empty($m_phone_2))			$contactInfo .= '<div><span class="icon icon-mobile"></span><div>'.$m_phone_2.'</div></div>';		
		if(!empty($fax_1)) 				$contactInfo .= '<div><span class="icon icon-print"></span><div>'.$fax_1.'</div></div>';
		if(!empty($fax_2))				$contactInfo .= '<div><span class="icon icon-print"></span><div>'.$fax_2.'</div></div>';
		if(!empty($mail_1)) 			$contactInfo .= '<div><span class="icon icon-mail-1"></span><div><a href="mailto:'.$mail_1.'">'.$mail_1.'</a></div></div>';
		if(!empty($mail_2)) 			$contactInfo .= '<div><span class="icon icon-mail-1"></span><div><a href="mailto:'.$mail_2.'">'.$mail_2.'</a></div></div>';
		if(!empty($support_mail_1)) 	$contactInfo .= '<div><span class="icon icon-lifebuoy"></span><div><a href="mailto:'.$support_mail_1.'">'.$support_mail_1.'</a></div></div>';
		if(!empty($support_mail_2)) 	$contactInfo .= '<div><span class="icon icon-lifebuoy"></span><div><a href="mailto:'.$support_mail_2.'">'.$support_mail_2.'</a></div></div>';
		if(!empty($map_link)) 			$contactInfo .= '<div><span class="icon icon-map"></span><div><a href="'.$map_link.'" title="'.$map_link_text.'">'.$map_link_text.'</a></div></div>';
		if(!empty($contact_form_link)) 	$contactInfo .= '<div><span class="icon icon-pencil-1"></span><div><a href="'.$contact_form_link.'" title="'.$contact_form_link_text.'">'.$contact_form_link_text.'</a></div></div>';
		
		$contactInfo .= '</div>';
		 

		echo $before_widget;
		if ($title) echo $before_title . $title . $after_title;
		echo $contactInfo;
		echo $after_widget;
	}

	function update( $new_instance, $old_instance ) {
		 
		$instance = $old_instance;
		$instance['title']                  = ($new_instance['title']);  
		$instance['address']                = ($new_instance['address']);	
		$instance['phone_1']                = ($new_instance['phone_1']);
		$instance['phone_2']                = ($new_instance['phone_2']);
		$instance['m_phone_1']              = ($new_instance['m_phone_1']);
		$instance['m_phone_2']              = ($new_instance['m_phone_2']);		
		$instance['fax_1']                  = ($new_instance['fax_1']);
		$instance['fax_2']                  = ($new_instance['fax_2']);		
		$instance['mail_1']                 = ($new_instance['mail_1']);
		$instance['mail_2']                 = ($new_instance['mail_2']);
		$instance['support_mail_1']         = strip_tags($new_instance['support_mail_1']);
		$instance['support_mail_2']         = strip_tags($new_instance['support_mail_2']);
		$instance['contact_form_link']      = strip_tags($new_instance['contact_form_link']);
		$instance['map_link']               = strip_tags($new_instance['map_link']);		
		$instance['contact_form_link_text'] = strip_tags($new_instance['contact_form_link_text']);
		$instance['map_link_text']          = strip_tags($new_instance['map_link_text']);
		
		return $instance;
	}

	function form( $instance ) {
		$title                  = isset($instance['title']) ? esc_attr($instance['title']) : '';
		$address                = isset($instance['address']) ? esc_attr($instance['address']) : '';
		$phone_1                = isset($instance['phone_1']) ? esc_attr($instance['phone_1']) : '';
		$phone_2                = isset($instance['phone_2']) ? esc_attr($instance['phone_2']) : '';
		$m_phone_1              = isset($instance['m_phone_1']) ? esc_attr($instance['m_phone_1']) : '';
		$m_phone_2              = isset($instance['m_phone_2']) ? esc_attr($instance['m_phone_2']) : '';		
		$fax_1                  = isset($instance['fax_1']) ? esc_attr($instance['fax_1']) : '';
		$fax_2                  = isset($instance['fax_2']) ? esc_attr($instance['fax_2']) : '';		
		$mail_1                 = isset($instance['mail_1']) ? esc_attr($instance['mail_1']) : '';
		$mail_2                 = isset($instance['mail_2']) ? esc_attr($instance['mail_2']) : '';
		$support_mail_1         = isset($instance['support_mail_1']) ? esc_attr($instance['support_mail_1']) : '';
		$support_mail_2         = isset($instance['support_mail_2']) ? esc_attr($instance['support_mail_2']) : '';
		$map_link               = isset($instance['map_link']) ? esc_attr($instance['map_link']) : '';
		$contact_form_link      = isset($instance['contact_form_link']) ? esc_attr($instance['contact_form_link']) : '';
		$map_link_text          = isset($instance['map_link_text']) ? esc_attr($instance['map_link_text']) : '';
		$contact_form_link_text = isset($instance['contact_form_link_text']) ? esc_attr($instance['contact_form_link_text']) : '';
		
		// Categories
		$rt_getcat = rt_get_categories();
		

?>
		<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title ?>" /></p>
 
		<p><label for="<?php echo $this->get_field_id('address'); ?>"><?php _e('Address:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('address'); ?>" name="<?php echo $this->get_field_name('address'); ?>" type="text" value="<?php echo $address; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('phone_1'); ?>"><?php _e('Phone 1:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('phone_1'); ?>" name="<?php echo $this->get_field_name('phone_1'); ?>" type="text" value="<?php echo $phone_1; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('phone_2'); ?>"><?php _e('Phone 2:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('phone_2'); ?>" name="<?php echo $this->get_field_name('phone_2'); ?>" type="text" value="<?php echo $phone_2; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('phone_1'); ?>"><?php _e('Mobile Phone 1:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('m_phone_1'); ?>" name="<?php echo $this->get_field_name('m_phone_1'); ?>" type="text" value="<?php echo $m_phone_1; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('phone_2'); ?>"><?php _e('Mobile Phone 2:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('m_phone_2'); ?>" name="<?php echo $this->get_field_name('m_phone_2'); ?>" type="text" value="<?php echo $m_phone_2; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('fax_1'); ?>"><?php _e('Fax 1:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('fax_1'); ?>" name="<?php echo $this->get_field_name('fax_1'); ?>" type="text" value="<?php echo $fax_1; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('fax_2'); ?>"><?php _e('Fax 2:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('fax_2'); ?>" name="<?php echo $this->get_field_name('fax_2'); ?>" type="text" value="<?php echo $fax_2; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('mail_1'); ?>"><?php _e('Email 1:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('mail_1'); ?>" name="<?php echo $this->get_field_name('mail_1'); ?>" type="text" value="<?php echo $mail_1; ?>" /></p>		

		<p><label for="<?php echo $this->get_field_id('mail_2'); ?>"><?php _e('Email 2:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('mail_2'); ?>" name="<?php echo $this->get_field_name('mail_2'); ?>" type="text" value="<?php echo $mail_2; ?>" /></p>		

		<p><label for="<?php echo $this->get_field_id('support_mail_1'); ?>"><?php _e('Support Email 1:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('support_mail_1'); ?>" name="<?php echo $this->get_field_name('support_mail_1'); ?>" type="text" value="<?php echo $support_mail_1; ?>" /></p>		
 	
		<p><label for="<?php echo $this->get_field_id('support_mail_2'); ?>"><?php _e('Support Email 2:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('support_mail_2'); ?>" name="<?php echo $this->get_field_name('support_mail_2'); ?>" type="text" value="<?php echo $support_mail_2; ?>" /></p>
 	
		<p><label for="<?php echo $this->get_field_id('contact_form_link'); ?>"><?php _e('Contact Form Link:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('contact_form_link'); ?>" name="<?php echo $this->get_field_name('contact_form_link'); ?>" type="text" value="<?php echo $contact_form_link; ?>" /></p>				

		<p><label for="<?php echo $this->get_field_id('contact_form_link_text'); ?>"><?php _e('Contact Form Link Text:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('contact_form_link_text'); ?>" name="<?php echo $this->get_field_name('contact_form_link_text'); ?>" type="text" value="<?php echo empty($contact_form_link_text) ? __('Contact Form','rt_theme') : $contact_form_link_text; ?>" /></p>				
 	 	
		<p><label for="<?php echo $this->get_field_id('map_link'); ?>"><?php _e('Map Link:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('map_link'); ?>" name="<?php echo $this->get_field_name('map_link'); ?>" type="text" value="<?php echo $map_link; ?>" /></p>

		<p><label for="<?php echo $this->get_field_id('map_link_text'); ?>"><?php _e('Map Link Text:','rt_theme'); ?></label>
		<input class="widefat" id="<?php echo $this->get_field_id('map_link_text'); ?>" name="<?php echo $this->get_field_name('map_link_text'); ?>" type="text" value="<?php echo empty($map_link_text) ? __('Find us on map','rt_theme') : $map_link_text; ?>" /></p>								
<?php } } 

endif;
register_widget('Contact_Info');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit