Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/inc/classes/class-ct-group-title.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Group title
4
+
*
5
+
* @package Blocksy
6
+
*/
7
+
8
+
/**
9
+
* Implement group title
10
+
*/
11
+
class Blocksy_Group_Title extends WP_Customize_Section {
12
+
/**
13
+
* Type of this section.
14
+
*
15
+
* @var string
16
+
*/
17
+
public $type = 'ct-group-title';
18
+
19
+
/**
20
+
* Special categorization for the section.
21
+
*
22
+
* @var string
23
+
*/
24
+
public $kind = 'default';
25
+
26
+
/**
27
+
* Output
28
+
*/
29
+
public function render() {
30
+
$description = $this->description;
31
+
$class = 'accordion-section ct-group-title';
32
+
33
+
if ('divider' === $this->kind) {
34
+
$class = 'accordion-section ct-group-divider';
35
+
}
36
+
37
+
if ('option' === $this->kind) {
38
+
$class = 'accordion-section ct-option-title';
39
+
}
40
+
41
+
?>
42
+
43
+
<li
44
+
id="accordion-section-<?php echo esc_attr( $this->id ); ?>"
45
+
class="<?php echo esc_attr( $class ); ?>">
46
+
<?php if (! empty($this->title) && strpos($this->title, '</div>') === false || $this->kind === 'divider') { ?>
47
+
<h3><?php echo $this->title; ?></h3>
48
+
<?php } else { ?>
49
+
<?php echo $this->title; ?>
50
+
<?php } ?>
51
+
52
+
<?php if ( ! empty( $description ) ) { ?>
53
+
<span class="description"><?php echo esc_html( $description ); ?></span>
54
+
<?php } ?>
55
+
</li>
56
+
<?php
57
+
}
58
+
}
59
+
60
+