PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
← All changes | includes/Elementor/Forum_Tab.php +36 -36 1.4.12.2.0 View file →
@@ -15,9 +15,9 @@
15 15 return 'ama_forum_tab';
16 16 }
17 17
18 18 public function get_title() {
19 - return esc_html__( 'BBPC Forum Tabs', 'bbp-core' );
19 + return esc_html__( 'Forumax Forum Tabs', 'forumax' );
20 20 }
21 21
22 22 public function get_icon() {
23 23 return 'bbpc_icon_ama_forum_tab';
@@ -23,9 +23,9 @@
23 23 return 'bbpc_icon_ama_forum_tab';
24 24 }
25 25
26 26 public function get_categories() {
27 - return [ 'bbp-core' ];
27 + return [ 'forumax' ];
28 28 }
29 29
30 30 public function get_style_depends() {
31 31 return['bbpc-el-widgets'];
@@ -43,25 +43,25 @@
43 43
44 44 //======================= Forum Filter Options ==================
45 45 $this->start_controls_section(
46 46 'forum_filter', [
47 - 'label' => __( 'Forum Filter Options', 'bbp-core' ),
47 + 'label' => __( 'Forum Filter Options', 'forumax' ),
48 48 ]
49 49 );
50 50
51 51 $this->add_control(
52 52 'forum_tab_title', [
53 - 'label' => __( 'Forum Tab Title', 'bbp-core' ),
53 + 'label' => __( 'Forum Tab Title', 'forumax' ),
54 54 'type' => \Elementor\Controls_Manager::TEXT,
55 - 'default' => __( 'Show Forums', 'bbp-core' ),
56 - 'placeholder' => __( 'Enter the tab title', 'bbp-core' ),
55 + 'default' => __( 'Show Forums', 'forumax' ),
56 + 'placeholder' => __( 'Enter the tab title', 'forumax' ),
57 57 ]
58 58 );
59 59
60 60 $this->add_control(
61 61 'ppp', [
62 - 'label' => esc_html__( 'Show Forums', 'bbp-core' ),
63 - 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'bbp-core' ),
62 + 'label' => esc_html__( 'Show Forums', 'forumax' ),
63 + 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'forumax' ),
64 64 'default' => 9
65 65 ]
66 66 );
67 67
@@ -66,9 +66,9 @@
66 66 );
67 67
68 68 $this->add_control(
69 69 'order', [
70 - 'label' => esc_html__( 'Order', 'bbp-core' ),
70 + 'label' => esc_html__( 'Order', 'forumax' ),
71 71 'type' => Controls_Manager::SELECT,
72 72 'options' => [
73 73 'ASC' => 'ASC',
74 74 'DESC' => 'DESC'
@@ -79,9 +79,9 @@
79 79
80 80 //==== View More Button
81 81 $this->add_control(
82 82 'more_txt_heading', [
83 - 'label' => esc_html__( 'View More Button', 'bbp-core' ),
83 + 'label' => esc_html__( 'View More Button', 'forumax' ),
84 84 'type' => Controls_Manager::HEADING,
85 85 'separator' => 'before',
86 86 ]
87 87 );
@@ -87,12 +87,12 @@
87 87 );
88 88
89 89 $this->add_control(
90 90 'is_forum_tab_btn', [
91 - 'label' => esc_html__( 'Button (Show/Hide)', 'bbp-core' ),
91 + 'label' => esc_html__( 'Button (Show/Hide)', 'forumax' ),
92 92 'type' => \Elementor\Controls_Manager::SWITCHER,
93 - 'label_on' => esc_html__( 'Show', 'bbp-core' ),
94 - 'label_off' => esc_html__( 'Hide', 'bbp-core' ),
93 + 'label_on' => esc_html__( 'Show', 'forumax' ),
94 + 'label_off' => esc_html__( 'Hide', 'forumax' ),
95 95 'return_value' => 'yes',
96 96 'default' => 'yes',
97 97 ]
98 98 );
@@ -98,12 +98,12 @@
98 98 );
99 99
100 100 $this->add_control(
101 101 'more_txt', [
102 - 'label' => esc_html__( 'Button Label', 'bbp-core' ),
102 + 'label' => esc_html__( 'Button Label', 'forumax' ),
103 103 'type' => Controls_Manager::TEXT,
104 104 'label_block' => true,
105 - 'default' => esc_html__('View More', 'bbp-core'),
105 + 'default' => esc_html__('View More', 'forumax'),
106 106 'condition' => [
107 107 'is_forum_tab_btn' => 'yes'
108 108 ]
109 109 ]
@@ -110,9 +110,9 @@
110 110 );
111 111
112 112 $this->add_control(
113 113 'more_url', [
114 - 'label' => esc_html__( 'Button URL', 'bbp-core' ),
114 + 'label' => esc_html__( 'Button URL', 'forumax' ),
115 115 'type' => \Elementor\Controls_Manager::URL,
116 116 'default' => [
117 117 'url' => get_post_type_archive_link( 'forum' ),
118 118 'is_external' => true,
@@ -129,25 +129,25 @@
129 129
130 130 //======================== Topic Filter Options =========================//
131 131 $this->start_controls_section(
132 132 'topic_filter', [
133 - 'label' => __( 'Topic Filter Options', 'bbp-core' ),
133 + 'label' => __( 'Topic Filter Options', 'forumax' ),
134 134 ]
135 135 );
136 136
137 137 $this->add_control(
138 138 'topics_tab_title', [
139 - 'label' => __( 'Topics Tab Title', 'bbp-core' ),
139 + 'label' => __( 'Topics Tab Title', 'forumax' ),
140 140 'type' => \Elementor\Controls_Manager::TEXT,
141 - 'default' => __( 'Show Topics', 'bbp-core' ),
142 - 'placeholder' => __( 'Enter the tab title', 'bbp-core' ),
141 + 'default' => __( 'Show Topics', 'forumax' ),
142 + 'placeholder' => __( 'Enter the tab title', 'forumax' ),
143 143 ]
144 144 );
145 145
146 146 $this->add_control(
147 147 'ppp2', [
148 - 'label' => esc_html__( 'Show Forums', 'bbp-core' ),
149 - 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'bbp-core' ),
148 + 'label' => esc_html__( 'Show Forums', 'forumax' ),
149 + 'description' => esc_html__( 'Show the forums count at the initial view. Default is 9 forums in a row.', 'forumax' ),
150 150 'label_block' => true,
151 151 'default' => 6
152 152 ]
153 153 );
@@ -153,9 +153,9 @@
153 153 );
154 154
155 155 $this->add_control(
156 156 'order2', [
157 - 'label' => esc_html__( 'Order', 'bbp-core' ),
157 + 'label' => esc_html__( 'Order', 'forumax' ),
158 158 'type' => Controls_Manager::SELECT,
159 159 'options' => [
160 160 'ASC' => 'ASC',
161 161 'DESC' => 'DESC'
@@ -166,9 +166,9 @@
166 166
167 167 //==== View More Button
168 168 $this->add_control(
169 169 'more_txt2_heading', [
170 - 'label' => esc_html__( 'View More Button', 'bbp-core' ),
170 + 'label' => esc_html__( 'View More Button', 'forumax' ),
171 171 'type' => Controls_Manager::HEADING,
172 172 'separator' => 'before',
173 173 ]
174 174 );
@@ -174,12 +174,12 @@
174 174 );
175 175
176 176 $this->add_control(
177 177 'is_topic_tab_btn', [
178 - 'label' => esc_html__( 'Button (Show/Hide)', 'bbp-core' ),
178 + 'label' => esc_html__( 'Button (Show/Hide)', 'forumax' ),
179 179 'type' => \Elementor\Controls_Manager::SWITCHER,
180 - 'label_on' => esc_html__( 'Show', 'bbp-core' ),
181 - 'label_off' => esc_html__( 'Hide', 'bbp-core' ),
180 + 'label_on' => esc_html__( 'Show', 'forumax' ),
181 + 'label_off' => esc_html__( 'Hide', 'forumax' ),
182 182 'return_value' => 'yes',
183 183 'default' => 'yes',
184 184 ]
185 185 );
@@ -186,12 +186,12 @@
186 186
187 187
188 188 $this->add_control(
189 189 'more_txt2', [
190 - 'label' => esc_html__( 'Button Label', 'bbp-core' ),
190 + 'label' => esc_html__( 'Button Label', 'forumax' ),
191 191 'type' => Controls_Manager::TEXT,
192 192 'label_block' => true,
193 - 'default' => esc_html__('View More', 'bbp-core'),
193 + 'default' => esc_html__('View More', 'forumax'),
194 194 'condition' => [
195 195 'is_topic_tab_btn' => 'yes'
196 196 ]
197 197 ]
@@ -198,9 +198,9 @@
198 198 );
199 199
200 200 $this->add_control(
201 201 'more_url2', [
202 - 'label' => esc_html__( 'Button URL', 'bbp-core' ),
202 + 'label' => esc_html__( 'Button URL', 'forumax' ),
203 203 'type' => \Elementor\Controls_Manager::URL,
204 204 'default' => [
205 205 'url' => get_post_type_archive_link( 'topic' ),
206 206 'is_external' => true,
@@ -217,9 +217,9 @@
217 217
218 218 //===================== Forum Tab Title ======================//
219 219 $this->start_controls_section(
220 220 'forum_tab_style', [
221 - 'label' => __( 'Forum Tab Title', 'bbp-core' ),
221 + 'label' => __( 'Forum Tab Title', 'forumax' ),
222 222 'tab' => Controls_Manager::TAB_STYLE,
223 223 ]
224 224 );
225 225
@@ -227,9 +227,9 @@
227 227 $this->add_group_control(
228 228 \Elementor\Group_Control_Typography::get_type(),
229 229 [
230 230 'name' => 'forum_tab_title',
231 - 'label' => __( 'Tab Label Typography', 'bbp-core' ),
231 + 'label' => __( 'Tab Label Typography', 'forumax' ),
232 232 'selector' => '{{WRAPPER}} .community-area .nav-tabs .nav-item button',
233 233 ]
234 234 );
235 235
@@ -235,9 +235,9 @@
235 235
236 236 $this->add_control(
237 237 'forum_tab_title_color',
238 238 [
239 - 'label' => __( 'Tab Label Color', 'bbp-core' ),
239 + 'label' => __( 'Tab Label Color', 'forumax' ),
240 240 'type' => \Elementor\Controls_Manager::COLOR,
241 241 'selectors' => [
242 242 '{{WRAPPER}} .community-area .nav-tabs .nav-item button' => 'color: {{VALUE}}',
243 243 ],
@@ -248,9 +248,9 @@
248 248
249 249
250 250 $this->start_controls_section(
251 251 'forum_tab_button', [
252 - 'label' => esc_html__( 'Forum Tab Button', 'bbp-core' ),
252 + 'label' => esc_html__( 'Forum Tab Button', 'forumax' ),
253 253 'tab' => Controls_Manager::TAB_STYLE,
254 254 ]
255 255 );
256 256
@@ -255,9 +255,9 @@
255 255 );
256 256
257 257 $this->add_responsive_control(
258 258 'tab_btn_margin', [
259 - 'label' => esc_html__( 'Margin', 'bbp-core' ),
259 + 'label' => esc_html__( 'Margin', 'forumax' ),
260 260 'type' => Controls_Manager::DIMENSIONS,
261 261 'size_units' => [ 'px', '%', 'em' ],
262 262 'selectors' => [
263 263 '{{WRAPPER}} .tab-content .show-more-btn.show-more-round' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
@@ -266,9 +266,9 @@
266 266 );
267 267
268 268 $this->add_responsive_control(
269 269 'tab_btn_padding', [
270 - 'label' => esc_html__( 'Tab button padding', 'bbp-core' ),
270 + 'label' => esc_html__( 'Tab button padding', 'forumax' ),
271 271 'type' => Controls_Manager::DIMENSIONS,
272 272 'size_units' => [ 'px', '%', 'em' ],
273 273 'selectors' => [
274 274 '{{WRAPPER}} .tab-content .show-more-btn.show-more-round' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',