HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/pewnabryka.pl/public_html/wp-content/themes/vehica/templates/general/users_v2.php
<?php
/* @var \Vehica\Widgets\General\UsersV2GeneralWidget $vehicaCurrentWidget */
global $vehicaCurrentWidget;

$vehicaImageSize = $vehicaCurrentWidget->getImageSize();
?>
<div class="vehica-users-v2">
    <?php if ($vehicaCurrentWidget->hasText()) : ?>
        <div class="vehica-user-card-v2 vehica-user-card-v2--text-editor">
            <div class="vehica-user-card-v2__text-editor">
                <?php echo wp_kses_post($vehicaCurrentWidget->getText()); ?>
            </div>
        </div>
    <?php endif; ?>

    <?php foreach ($vehicaCurrentWidget->getUsers() as $vehicaUser) :
        /* @var \Vehica\Model\User\User $vehicaUser */
        $vehicaShowPhone = $vehicaCurrentWidget->showPhone($vehicaUser);
        ?>
        <div class="vehica-user-card-v2">
            <a
                    class="vehica-user-card-v2__image"
                    href="<?php echo esc_url($vehicaUser->getUrl()); ?>"
                    title="<?php echo esc_attr($vehicaUser->getName()); ?>"
            >
                <?php if ($vehicaUser->hasImageUrl('vehica_672_568')) : ?>
                    <img
                            src="<?php echo esc_url($vehicaUser->getImageUrl('vehica_672_568')); ?>"
                            alt="<?php echo esc_attr($vehicaUser->getName()); ?>"
                    >
                <?php endif; ?>
            </a>

            <div class="vehica-user-card-v2__content">
                <div class="vehica-user-card__icons">
                    <?php if ($vehicaShowPhone) : ?>
                        <a
                                href="tel:<?php echo esc_attr($vehicaUser->getPhoneUrl()); ?>"
                                class="vehica-user-card__icon vehica-user-card__icon--phone vehica-bg-primary"
                        >
                            <i class="fas fa-phone-alt"></i>
                        </a>
                    <?php endif ?>

                    <a href="mailto:<?php echo esc_attr($vehicaUser->getMail()); ?>"
                       class="vehica-user-card__icon vehica-user-card__icon--email vehica-bg-primary">
                        <i class="fas fa-envelope"></i>
                    </a>
                </div>

                <a
                        class="vehica-user-card-v2__name"
                        href="<?php echo esc_url($vehicaUser->getUrl()); ?>"
                        title="<?php echo esc_attr($vehicaUser->getName()); ?>"
                >
                    <?php echo esc_html($vehicaUser->getName()); ?>
                </a>

                <?php if ($vehicaUser->hasJobTitle()) : ?>
                    <div class="vehica-user-card-v2__job-title">
                        <?php echo esc_html($vehicaUser->getJobTitle()); ?>
                    </div>
                <?php endif; ?>

                <?php if ($vehicaCurrentWidget->showSocialIcons()) : ?>
                    <div class="vehica-user-card-v2__social-icons">
                        <?php if ($vehicaUser->hasFacebookProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getFacebookProfile()); ?>"
                                        title="<?php esc_attr_e('Facebook', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>

                        <?php if ($vehicaUser->hasInstagramProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getInstagramProfile()); ?>"
                                        title="<?php esc_attr_e('Instagram', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>

                        <?php if ($vehicaUser->hasLinkedinProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getLinkedinProfile()); ?>"
                                        title="<?php esc_attr_e('LinkedIn', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>

                        <?php if ($vehicaUser->hasTwitterProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getTwitterProfile()); ?>"
                                        title="<?php esc_attr_e('X', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>

                        <?php if ($vehicaUser->hasTikTokProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getTikTokProfile()); ?>"
                                        title="<?php esc_attr_e('TikTok', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>

                        <?php if ($vehicaUser->hasTelegramProfile()) : ?>
                            <div class="vehica-user-card-v2__social-icon">
                                <a
                                        href="<?php echo esc_url($vehicaUser->getTelegramProfile()); ?>"
                                        title="<?php esc_attr_e('Telegram', 'vehica'); ?>"
                                        target="_blank"
                                >
                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512">
                                        <!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.-->
                                        <path d="M248 8C111 8 0 119 0 256S111 504 248 504 496 393 496 256 385 8 248 8zM363 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5q-3.3 .7-104.6 69.1-14.8 10.2-26.9 9.9c-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3q.8-6.7 18.5-13.7 108.4-47.2 144.6-62.3c68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9a10.5 10.5 0 0 1 3.5 6.7A43.8 43.8 0 0 1 363 176.7z"/>
                                    </svg>
                                </a>
                            </div>
                        <?php endif; ?>
                    </div>
                <?php endif; ?>

                <?php if ($vehicaShowPhone) : ?>
                    <a
                            href="tel:<?php echo esc_attr($vehicaUser->getPhoneUrl()); ?>"
                            class="vehica-user-card-v2__phone"
                    >
                        <i class="fa fa-phone-alt"></i>
                        <?php echo esc_html($vehicaUser->getPhone()); ?>
                    </a>
                <?php endif; ?>

                <a
                        class="vehica-user-card-v2__email"
                        href="mailto:<?php echo esc_attr($vehicaUser->getMail()); ?>"
                >
                    <i class="fa fa-envelope"></i>
                    <?php echo esc_html($vehicaUser->getMail()); ?>
                </a>

            </div>
        </div>
    <?php endforeach; ?>
</div>