Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/panel-builder/footer/socials/view.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
3
+
$class = trim('ct-footer-socials' . ' ' . blocksy_visibility_classes(blocksy_default_akg(
4
+
'footer_socials_visibility',
5
+
$atts,
6
+
[
7
+
'desktop' => true,
8
+
'tablet' => true,
9
+
'mobile' => true,
10
+
]
11
+
)));
12
+
13
+
$socialsColor = blocksy_default_akg('footerSocialsColor', $atts, 'custom');
14
+
$socialsType = blocksy_default_akg('socialsType', $atts, 'simple');
15
+
16
+
$socials = blocksy_default_akg(
17
+
'footer_socials',
18
+
$atts,
19
+
[
20
+
[
21
+
'id' => 'facebook',
22
+
'enabled' => true,
23
+
],
24
+
25
+
[
26
+
'id' => 'twitter',
27
+
'enabled' => true,
28
+
],
29
+
30
+
[
31
+
'id' => 'instagram',
32
+
'enabled' => true,
33
+
],
34
+
]
35
+
);
36
+
37
+
$link_rel = '';
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
+
'solid'
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
+
</div>
81
+
82
+