PluginProbe
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid / trunk
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid vtrunk
7.9.4 7.9.3 7.9.2 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.2.0 4.2.1 4.2.2 4.2.3 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 All 87 releases
the-post-grid / app / Divi / Fields / StyleSectionTitle.php
StyleSectionTitle.php
106 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Divi Helper Class
4 *
5 * @package RT_TPG
6 */
7
8 namespace RT\ThePostGrid\Divi\Fields;
9
10
11 use RT\ThePostGrid\Helpers\Fns;
12
13 // Do not allow directly accessing this file.
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit( 'This script cannot be accessed directly.' );
16 }
17
18 /**
19 * Divi Helper Class
20 */
21 class StyleSectionTitle {
22
23 public static function get_fields( $prefix = 'grid' ) {
24 $divi_fields = [
25
26 'section_title_alignment' => [
27 'label' => esc_html__( 'Alignment', 'the-post-grid' ),
28 'type' => 'text_align',
29 'default' => 'left',
30 'options' => et_builder_get_text_orientation_options(),
31 'tab_slug' => 'advanced',
32 'toggle_slug' => 'tpg_section_title_style',
33 ],
34
35 'section_title_color' => [
36 'label' => esc_html__( 'Title Color', 'the-post-grid' ),
37 'type' => 'color-alpha',
38 'tab_slug' => 'advanced',
39 'toggle_slug' => 'tpg_section_title_style',
40 ],
41
42 'section_title_bg_color' => [
43 'label' => esc_html__( 'Title Background Color', 'the-post-grid' ),
44 'type' => 'color-alpha',
45 'tab_slug' => 'advanced',
46 'toggle_slug' => 'tpg_section_title_style',
47 'show_if' => [
48 'section_title_style' => [ 'style2', 'style3' ],
49 ],
50 ],
51
52 'section_title_dot_color' => [
53 'label' => esc_html__( 'Dot / Bar Color', 'the-post-grid' ),
54 'type' => 'color-alpha',
55 'tab_slug' => 'advanced',
56 'toggle_slug' => 'tpg_section_title_style',
57 'show_if' => [
58 'section_title_style' => [ 'style1', 'style4' ],
59 ],
60 ],
61
62 'section_title_line_color' => [
63 'label' => esc_html__( 'Line / Border Color', 'the-post-grid' ),
64 'type' => 'color-alpha',
65 'tab_slug' => 'advanced',
66 'toggle_slug' => 'tpg_section_title_style',
67 'show_if_not' => [
68 'section_title_style' => 'default',
69 ],
70 ],
71
72 'prefix_text_color' => [
73 'label' => esc_html__( 'Prefix Color', 'the-post-grid' ),
74 'type' => 'color-alpha',
75 'tab_slug' => 'advanced',
76 'toggle_slug' => 'tpg_section_title_style',
77 'show_if' => [
78 'section_title_source' => 'page_title',
79 ],
80 ],
81 'suffix_text_color' => [
82 'label' => esc_html__( 'Suffix Color', 'the-post-grid' ),
83 'type' => 'color-alpha',
84 'tab_slug' => 'advanced',
85 'toggle_slug' => 'tpg_section_title_style',
86 'show_if' => [
87 'section_title_source' => 'page_title',
88 ],
89 ],
90
91 'external_icon_color' => [
92 'label' => esc_html__( 'External Link Color', 'the-post-grid' ),
93 'type' => 'color-alpha',
94 'tab_slug' => 'advanced',
95 'toggle_slug' => 'tpg_section_title_style',
96 ],
97
98
99 ];
100
101
102 return $divi_fields;
103 }
104
105 }
106