Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/panel-builder/header/socials/view.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + $class = 'ct-header-socials';
4 +
5 + $visibility = blocksy_default_akg('visibility', $atts, [
6 + 'tablet' => true,
7 + 'mobile' => true,
8 + ]);
9 +
10 + $class .= ' ' . blocksy_visibility_classes($visibility);
11 +
12 + $socialsColor = blocksy_default_akg('headerSocialsColor', $atts, 'custom');
13 + $socialsType = blocksy_default_akg('socialsType', $atts, 'simple');
14 +
15 + $socials = blocksy_default_akg(
16 + 'header_socials',
17 + $atts,
18 + [
19 + [
20 + 'id' => 'facebook',
21 + 'enabled' => true,
22 + ],
23 +
24 + [
25 + 'id' => 'twitter',
26 + 'enabled' => true,
27 + ],
28 +
29 + [
30 + 'id' => 'instagram',
31 + 'enabled' => true,
32 + ],
33 + ]
34 + );
35 +
36 + $link_rel = '';
37 +
38 +
39 + $link_target = blocksy_default_akg('link_target', $atts, 'no');
40 +
41 + if ($link_target === 'yes') {
42 + $link_target = '_blank';
43 + $link_rel = 'noopener noreferrer';
44 + } else {
45 + $link_target = false;
46 + }
47 +
48 + $link_nofollow = blocksy_default_akg('link_nofollow', $atts, 'no');
49 +
50 + if ($link_nofollow === 'yes') {
51 + $link_rel .= ' nofollow';
52 + }
53 +
54 + ?>
55 +
56 + <div
57 + class="<?php echo esc_attr($class) ?>"
58 + <?php echo blocksy_attr_to_html($attr) ?>>
59 +
60 + <?php echo blocksy_social_icons($socials, [
61 + 'type' => $socialsType,
62 + 'icons-color' => $socialsColor,
63 + 'fill' => blocksy_default_akg(
64 + 'socialsFillType',
65 + $atts,
66 + 'outline'
67 + ),
68 + 'label_visibility' => blocksy_akg(
69 + 'socialsLabelVisibility',
70 + $atts,
71 + [
72 + 'desktop' => false,
73 + 'tablet' => false,
74 + 'mobile' => false,
75 + ]
76 + ),
77 + 'links_target' => $link_target,
78 + 'links_rel' => $link_rel,
79 + ]) ?>
80 +
81 + </div>
82 +