first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?php if ( ! defined( 'ABSPATH' ) ) {
die();
}
if ( ! defined( 'FW' ) ) {
return;
}
/**
* @var string $before_widget
* @var string $after_widget
* @var array $params
* @var $title
*/
$unique_id = uniqid();
echo wp_kses_post( $before_widget );
echo wp_kses_post( $title );
?>
<ul class="list-unstyled greylinks">
<?php foreach ( $params['contacts'] as $contact ) : ?>
<li>
<div class="media small-media">
<?php if ( !empty( $contact['icon'] ) ) : ?>
<div class="media-left media-middle">
<?php if ( $contact['icon']['type'] === 'icon-font') : ?>
<i class="<?php echo esc_attr( $contact['icon']['icon-class'] ); ?> highlight fontsize_24 cons-width"></i>
<?php else:
echo wp_get_attachment_image( $contact['icon']['attachment-id'] );
endif; ?>
</div>
<?php endif; ?>
<div class="media-body media-middle greylinks">
<?php if ( !empty( $contact['link'] ) ) : ?>
<a href="<?php echo esc_attr( $contact['link'] ); ?>">
<?php endif;
echo nl2br( esc_html( $contact['contact_info'] ) );
if ( !empty( $contact['link'] ) ) : ?>
</a>
<?php endif; ?>
</div>
</div>
</li>
<?php endforeach; ?>
</ul>
<?php echo wp_kses_post( $after_widget );