Changeset 3388980
- Timestamp:
- 11/03/2025 03:25:38 PM (5 months ago)
- Location:
- news-element/trunk
- Files:
-
- 16 edited
-
includes/ext/sticky.php (modified) (1 diff)
-
includes/helper.php (modified) (3 diffs)
-
includes/widget-control.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
widgets/block/breadcum/index.php (modified) (1 diff)
-
widgets/block/magazine-8/index.php (modified) (1 diff)
-
widgets/block/post-meta/index.php (modified) (3 diffs)
-
widgets/block/post-meta/view.php (modified) (1 diff)
-
widgets/block/post-navigation/five.php (modified) (2 diffs)
-
widgets/block/post-navigation/index.php (modified) (1 diff)
-
widgets/block/post-navigation/one.php (modified) (2 diffs)
-
widgets/block/post-navigation/two.php (modified) (2 diffs)
-
widgets/block/post-thumbnail/index.php (modified) (3 diffs)
-
widgets/block/post-thumbnail/style.css (modified) (1 diff)
-
widgets/block/related-posts/style.css (modified) (1 diff)
-
widgets/block/trending-6/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
news-element/trunk/includes/ext/sticky.php
r3276137 r3388980 189 189 ); 190 190 191 192 $element->add_responsive_control( 193 'ne_contmxwid', 194 [ 195 'label' => esc_html__('Max width', 'the-pack-addon'), 196 'type' => Controls_Manager::SLIDER, 197 'range' => [ 198 'px' => [ 199 'min' => 0, 200 'max' => 1000, 201 'step' => 1, 202 ], 203 ], 204 'size_units' => ['px', '%'], 205 'selectors' => [ 206 '{{WRAPPER}}' => 'max-width:{{SIZE}}{{UNIT}};', 207 ], 208 ] 209 ); 210 211 $element->add_responsive_control( 212 'ne_contvctras', 213 [ 214 'label' => esc_html__('Left position', 'the-pack-addon'), 215 'type' => Controls_Manager::SLIDER, 216 'range' => [ 217 'px' => [ 218 'min' => -1000, 219 'max' => 1000, 220 'step' => 1, 221 ], 222 '%' => [ 223 'min' => -100, 224 'max' => 100, 225 'step' => 1, 226 ], 227 ], 228 'size_units' => ['px', '%'], 229 'selectors' => [ 230 '{{WRAPPER}}' => 'left:{{SIZE}}{{UNIT}};', 231 ], 232 ] 233 ); 234 235 $element->add_responsive_control( 236 'ne_conrpos', 237 [ 238 'label' => esc_html__('Right position', 'the-pack-addon'), 239 'type' => Controls_Manager::SLIDER, 240 'range' => [ 241 'px' => [ 242 'min' => -1000, 243 'max' => 1000, 244 'step' => 1, 245 ], 246 '%' => [ 247 'min' => -100, 248 'max' => 100, 249 'step' => 1, 250 ], 251 ], 252 'size_units' => ['px', '%'], 253 'selectors' => [ 254 '{{WRAPPER}}' => 'right:{{SIZE}}{{UNIT}};', 255 ], 256 ] 257 ); 258 259 $element->add_responsive_control( 260 'ne_conthctras', 261 [ 262 'label' => esc_html__('Top position', 'the-pack-addon'), 263 'type' => Controls_Manager::SLIDER, 264 'range' => [ 265 'px' => [ 266 'min' => -1000, 267 'max' => 1000, 268 'step' => 1, 269 ], 270 '%' => [ 271 'min' => -100, 272 'max' => 100, 273 'step' => 1, 274 ], 275 ], 276 'size_units' => ['px', '%'], 277 'selectors' => [ 278 '{{WRAPPER}}' => 'top:{{SIZE}}{{UNIT}};', 279 ], 280 ] 281 ); 282 283 $element->add_responsive_control( 284 'ne_conbpd', 285 [ 286 'label' => esc_html__('Bottom position', 'the-pack-addon'), 287 'type' => Controls_Manager::SLIDER, 288 'range' => [ 289 'px' => [ 290 'min' => -1000, 291 'max' => 1000, 292 'step' => 1, 293 ], 294 '%' => [ 295 'min' => -100, 296 'max' => 100, 297 'step' => 1, 298 ], 299 ], 300 'size_units' => ['px', '%'], 301 'selectors' => [ 302 '{{WRAPPER}}' => 'bottom:{{SIZE}}{{UNIT}};', 303 ], 304 ] 305 ); 306 307 $element->add_responsive_control( 308 'ne_contcolheight', 309 [ 310 'label' => esc_html__('Height', 'the-pack-addon'), 311 'type' => Controls_Manager::SLIDER, 312 'range' => [ 313 'px' => [ 314 'min' => 0, 315 'max' => 1000, 316 'step' => 1, 317 ], 318 ], 319 'size_units' => ['px', 'vh', '%'], 320 'selectors' => [ 321 '{{WRAPPER}}' => 'height:{{SIZE}}{{UNIT}};', 322 ], 323 ] 324 ); 325 326 $element->add_responsive_control( 327 'ne_con_x_wid', 328 [ 329 'label' => esc_html__('Extra width', 'the-pack-addon'), 330 'type' => Controls_Manager::SLIDER, 331 'selectors' => [ 332 '{{WRAPPER}}' => 'width: calc(100% + {{SIZE}}{{UNIT}});', 333 ], 334 335 ] 336 ); 337 338 $element->add_control( 339 'ne_full_pad', 340 [ 341 'label' => esc_html__('Full padding', 'the-pack-addon'), 342 'type' => Controls_Manager::CHOOSE, 343 'condition' => [ 344 'content_width' => 'full', 345 ], 346 'options' => [ 347 'padding-left' => [ 348 'title' => esc_html__('Left', 'the-pack-addon'), 349 'icon' => 'eicon-h-align-left', 350 ], 351 'padding-right' => [ 352 'title' => esc_html__('Right', 'the-pack-addon'), 353 'icon' => 'eicon-h-align-right', 354 ] 355 ], 356 'prefix_class' => 'tp-full-', 357 ] 358 ); 359 360 $element->add_responsive_control( 361 'ne_pad_max_width', 362 [ 363 'label' => esc_html__('Max width', 'the-pack-addon'), 364 'type' => \Elementor\Controls_Manager::SLIDER, 365 'condition' => [ 366 'full_pad!' => '', 367 ], 368 'size_units' => ['px', '%'], 369 'range' => [ 370 'px' => [ 371 'min' => 0, 372 'max' => 2000, 373 ], 374 ], 375 'selectors' => [ 376 '{{WRAPPER}}.tp-full-padding-left >.e-con-full' => 'padding-left: calc((100% - {{SIZE}}{{UNIT}}) / 2)', 377 '{{WRAPPER}}.tp-full-padding-right >.e-con-full' => 'padding-right: calc((100% - {{SIZE}}{{UNIT}}) / 2)', 378 ], 379 ] 380 ); 381 382 $element->add_control( 383 'ne_abs_pos', 384 [ 385 'label' => esc_html__('Absolute position', 'the-pack-addon'), 386 'type' => Controls_Manager::SWITCHER, 387 'selectors' => [ 388 '{{WRAPPER}}' => 'position:absolute;', 389 ], 390 ] 391 ); 392 393 $element->add_control( 394 'ne_no_b_spy', 395 [ 396 'label' => esc_html__('Absolute center', 'the-pack-addon'), 397 'type' => Controls_Manager::SWITCHER, 398 'selectors' => [ 399 '{{WRAPPER}}' => 'transform: translate(-50%,-50%);', 400 ], 401 ] 402 ); 403 404 $element->add_responsive_control( 405 'ne_tpbdf', 406 [ 407 'label' => esc_html__('Backdrop blur', 'the-pack-addon'), 408 'type' => Controls_Manager::SLIDER, 409 'selectors' => [ 410 '{{WRAPPER}}' => 'backdrop-filter:blur({{SIZE}}{{UNIT}});-webkit-backdrop-filter:blur({{SIZE}}{{UNIT}});', 411 ], 412 ] 413 ); 414 191 415 $element->end_controls_section(); 192 416 -
news-element/trunk/includes/helper.php
r3385866 r3388980 697 697 } 698 698 //TODO: remove function 699 static function madmag_lazy_img($id,$size ){699 static function madmag_lazy_img($id,$size,$class=""){ 700 700 if (!$id){ 701 701 return; … … 713 713 $placeholder = plugins_url( '../assets/lazyload.svg', __FILE__ ); 714 714 715 $out = '<img class="featured-img lazyload " src= "'.$placeholder.'" width= "'.$attachment_data['width'].'" height="'.$attachment_data['height'].'" data-src="'.$src['0'].'" alt="'.$alt.'"/>';715 $out = '<img class="featured-img lazyload '.$class.'" src= "'.$placeholder.'" width= "'.$attachment_data['width'].'" height="'.$attachment_data['height'].'" data-src="'.$src['0'].'" alt="'.$alt.'"/>'; 716 716 717 717 return $out; … … 1495 1495 $link_attr = ' rel="v:url" property="v:title"'; 1496 1496 $link = $link_before . '<a' . $link_attr . ' href="%1$s">%2$s</a>' . $link_after; 1497 $delimiter = '<span class="delimiter"> <i class="'.$icon['value'].'" aria-hidden="true"></i></span>'; // Delimiter between crumbs1497 $delimiter = '<span class="delimiter">'.self::display_iconfont($icon).'</span>'; // Delimiter between crumbs 1498 1498 $before = '<span class="current">'; // Tag before the current crumb 1499 $after = '</span>'; // Tag after the current crumb 1499 $after = '</span>'; // Tag after the current crumb 1500 1500 $page_addon = ''; // Adds the page number if the query is paged 1501 1501 $breadcrumb_trail = ''; -
news-element/trunk/includes/widget-control.php
r3385866 r3388980 20 20 add_action( 'newsmag_swiper_control', [$this, 'swiper_control']); 21 21 add_action( 'newsmag_post_title_style', [$this, 'post_title_style'],10,3); 22 add_action( 'newsmag_post_meta_style', [$this, 'post_meta'],10, 3);22 add_action( 'newsmag_post_meta_style', [$this, 'post_meta'],10,2); 23 23 add_action( 'newsmag_post_excerpt_style', [$this, 'excerpt_meta']); 24 24 add_action( 'newsmag_post_cat_bg_style', [$this, 'bg_cat_control'],10,2); … … 332 332 333 333 } 334 static function post_meta($wb,$alt ,$dark='')334 static function post_meta($wb,$alt='') 335 335 { 336 336 337 $wb->add_responsive_control( 338 'pmkl', 339 [ 340 'label' => __( 'Color', 'news-element' ), 341 'type' => Controls_Manager::COLOR, 342 'selectors' => [ 343 '{{WRAPPER}} .leffect-1' => 'color: {{VALUE}};', 344 ], 345 ] 346 ); 347 348 $wb->add_responsive_control( 349 'pmkll', 350 [ 351 'label' => __( 'Link Color', 'news-element' ), 352 'type' => Controls_Manager::COLOR, 353 'selectors' => [ 354 '{{WRAPPER}} .leffect-1 a' => 'color: {{VALUE}};', 355 ], 356 ] 357 ); 337 358 $wb->add_responsive_control( 338 359 'mtsp', … … 344 365 '{{WRAPPER}} .meta-space' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 345 366 ] 346 ]347 );348 349 $wb->add_responsive_control(350 'pmkl',351 [352 'label' => __( 'Color', 'news-element' ),353 'type' => Controls_Manager::COLOR,354 'selectors' => [355 '{{WRAPPER}} .leffect-1' => 'color: {{VALUE}};',356 ],357 ]358 );359 360 $wb->add_responsive_control(361 'pmkll',362 [363 'label' => __( 'Link Color', 'news-element' ),364 'type' => Controls_Manager::COLOR,365 'selectors' => [366 '{{WRAPPER}} .leffect-1 a' => 'color: {{VALUE}};',367 ],368 367 ] 369 368 ); … … 395 394 396 395 } 397 if($dark){ 398 399 $wb->add_responsive_control( 400 'pmxclr', 401 [ 402 'label' => __( 'Dark Color', 'news-element' ), 403 'type' => Controls_Manager::COLOR, 404 'selectors' => [ 405 '{{WRAPPER}} '.$dark.' .leffect-1' => 'color: {{VALUE}};', 406 407 ], 408 ] 409 ); 410 411 $wb->add_responsive_control( 412 'pmxlclr', 413 [ 414 'label' => __( 'Dark Link Color', 'news-element' ), 415 'type' => Controls_Manager::COLOR, 416 'selectors' => [ 417 '{{WRAPPER}} '.$dark.' .leffect-1 a' => 'color: {{VALUE}};', 418 ], 419 ] 420 ); 421 422 } 396 423 397 $wb->add_group_control( 424 398 Group_Control_Typography::get_type(), -
news-element/trunk/readme.txt
r3385866 r3388980 4 4 Tags: elementor, post grid, elementor addons, magazine, post list 5 5 Requires at least: 5.0 6 Tested up to: 6. 56 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 8 Stable tag: 1.0.6 -
news-element/trunk/widgets/block/breadcum/index.php
r2966276 r3388980 225 225 $settings = $this->get_settings(); 226 226 if ( Plugin::instance()->editor->is_edit_mode() ){ 227 echo '<div class="xlbreadcrumb"><a href="#" rel="v:url" property="v:title">Home</a><span class="delimiter"> <i class="tivo ti-arrow-right" aria-hidden="true"></i></span><span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="#">Travel</a></span><span class="delimiter"><i class="tivo ti-arrow-right" aria-hidden="true"></i></span><span class="current">African Olympians and Paralympians prepare for their London odyssey</span></div>';227 echo '<div class="xlbreadcrumb"><a href="#" rel="v:url" property="v:title">Home</a><span class="delimiter">'.Khobish_Helper::display_iconfont($settings['icon']).'</span><span typeof="v:Breadcrumb"><a rel="v:url" property="v:title" href="#">Travel</a></span><span class="delimiter">'.Khobish_Helper::display_iconfont($settings['icon']).'</span><span class="current">African Olympians and Paralympians prepare for their London odyssey</span></div>'; 228 228 } else { 229 229 echo Khobish_Helper::thepack_hansel_breadcum($settings['icon'],$settings['home'],$settings['author'],$settings['search'],$settings['error']); -
news-element/trunk/widgets/block/magazine-8/index.php
r3385866 r3388980 500 500 ] 501 501 ); 502 503 do_action('newsmag_post_meta_style', $this,' ');502 503 do_action('newsmag_post_meta_style', $this,'.first','.rest'); 504 504 505 505 $this->end_controls_section(); -
news-element/trunk/widgets/block/post-meta/index.php
r3228866 r3388980 45 45 ] 46 46 ); 47 47 48 48 $this->add_control( 49 49 'metas', … … 55 55 ] 56 56 ); 57 57 58 58 $this->add_control( 59 59 'emphasis', … … 61 61 'label' => __( 'Emphasis first letter', 'news-element' ), 62 62 'type' => Controls_Manager::SWITCHER, 63 ] 64 ); 65 66 $this->add_control( 67 'exl', 68 [ 69 'label' => esc_html__( 'Excerpt length', 'news-element' ), 70 'type' => Controls_Manager::SLIDER, 71 'default' => [ 72 'size' => 20, 73 ], 63 74 ] 64 75 ); -
news-element/trunk/widgets/block/post-meta/view.php
r3228866 r3388980 2 2 use News_Element\Khobish_Helper; 3 3 $meta = Khobish_Helper::king_buildermeta_to_string($settings['metas']); 4 $excerpt_length = isset($settings['exl']['size']) ? $settings['exl']['size'] : ''; 4 5 ?> 5 6 6 7 <div class="khobish-single-meta <?php echo $settings['emphasis'];?>"> 7 8 <div class="inr"> 8 <?php Khobish_Helper::ae_build_postmeta($meta, 20);?>9 <?php Khobish_Helper::ae_build_postmeta($meta,$excerpt_length);?> 9 10 </div> 10 11 </div> -
news-element/trunk/widgets/block/post-navigation/five.php
r3228866 r3388980 14 14 <div class="pn-text"> 15 15 <span class="pnlable"><?php echo $settings['ptxt'];?></span> 16 <h4 class="link "><?php echo $previous_post_title;?></h4>16 <h4 class="link tbtr"><?php echo $previous_post_title;?></h4> 17 17 </div> 18 18 </a> … … 29 29 <div class="pn-text"> 30 30 <span class="pnlable"><?php echo $settings['ntxt'];?></span> 31 <h4 class="link "><?php echo $next_post_title;?></h4>31 <h4 class="link tbtr"><?php echo $next_post_title;?></h4> 32 32 </div> 33 33 </a> -
news-element/trunk/widgets/block/post-navigation/index.php
r3228866 r3388980 290 290 ] 291 291 ); 292 $this->add_control( 293 'txmr', 294 [ 295 'label' => __('Margin', 'elementor' ), 296 'type' => Controls_Manager::DIMENSIONS, 297 'size_units' => [ 'px', 'em', '%' ], 298 'selectors' => [ 299 '{{WRAPPER}} .link' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 300 ], 301 ] 302 ); 292 303 293 304 $this->add_group_control( -
news-element/trunk/widgets/block/post-navigation/one.php
r3228866 r3388980 9 9 <a class="prev-post" href="<?php echo esc_url($previous_post);?>"> 10 10 <span class="fa fa-angle-left"></span> 11 <span class="link "><?php echo $previous_post_title;?></span>11 <span class="link tbtr"><?php echo $previous_post_title;?></span> 12 12 </a> 13 13 <?php endif; ?> … … 19 19 <a class="next-post" href="<?php echo esc_url($next_post);?>"> 20 20 <span class="fa fa-angle-right"></span> 21 <span class="link "><?php echo $next_post_title;?></span>21 <span class="link tbtr"><?php echo $next_post_title;?></span> 22 22 </a> 23 23 <?php endif; ?> -
news-element/trunk/widgets/block/post-navigation/two.php
r3228866 r3388980 9 9 <a class="prev-post" href="<?php echo $previous_post;?>"> 10 10 <span class="pnlable"><?php echo $settings['ptxt'];?></span> 11 <span class="link "><?php echo $previous_post_title;?></span>11 <span class="link tbtr"><?php echo $previous_post_title;?></span> 12 12 </a> 13 13 <?php endif; ?> … … 20 20 <a class="next-post" href="<?php echo $next_post;?>"> 21 21 <span class="pnlable"><?php echo $settings['ntxt'];?></span> 22 <span class="link "><?php echo $next_post_title;?></span>22 <span class="link tbtr"><?php echo $next_post_title;?></span> 23 23 </a> 24 24 <?php endif; ?> -
news-element/trunk/widgets/block/post-thumbnail/index.php
r3228866 r3388980 4 4 use Elementor\Controls_Manager; 5 5 use Elementor\Group_Control_Border; 6 use Elementor\Group_Control_Background; 6 7 use News_Element\Khobish_Helper; 7 8 … … 89 90 ] 90 91 ); 91 92 $this->add_responsive_control( 93 'thbng', 94 [ 95 'label' => esc_html__('Border radius', 'the-pack-addon'), 96 'type' => Controls_Manager::SLIDER, 97 'selectors' => [ 98 '{{WRAPPER}} .ne-post-thumb' => 'border-radius: {{SIZE}}{{UNIT}};', 99 ], 100 ] 101 ); 92 102 $this->add_group_control( 93 103 Group_Control_Border::get_type(), … … 98 108 ] 99 109 ); 100 110 $this->add_group_control( 111 Group_Control_Background::get_type(), 112 [ 113 'name' => 'gdbr', 114 'selector' => '{{WRAPPER}} .ne-post-thumb::before', 115 'fields_options' => [ 116 'background' => [ 117 'label' => esc_html__('Background overlay', 'the-pack-addon'), 118 ] 119 ] 120 ] 121 ); 101 122 $this->end_controls_section(); 102 123 -
news-element/trunk/widgets/block/post-thumbnail/style.css
r3228866 r3388980 4 4 right: 0px; 5 5 } 6 .ne-post-thumb::before 7 { 8 position: absolute; 9 content: ''; 10 top: 0; 11 left: 0; 12 height: 100%; 13 width: 100%; 14 } -
news-element/trunk/widgets/block/related-posts/style.css
r3228866 r3388980 38 38 margin-right:-10px; 39 39 } 40 .khbrelatedgrid .catbg-wrap{ 41 position: absolute; 42 } 40 43 41 .khbrelatedgrid ul.kb_subcats_list li.notneeded{ 44 42 display: inline-block; -
news-element/trunk/widgets/block/trending-6/index.php
r2966276 r3388980 396 396 ); 397 397 398 $this->add_responsive_control( 399 'pt1mr', 400 [ 401 'label' => __('Margin', 'webangon'), 402 'type' => Controls_Manager::DIMENSIONS, 403 'size_units' => ['px', 'em'], 404 'selectors' => [ 405 '{{WRAPPER}} .khb-big-block .entry_title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 406 ] 407 ] 408 ); 409 410 $this->add_control( 411 'pt1c', 412 [ 413 'label' => __( 'Color', 'news-element' ), 414 'type' => Controls_Manager::COLOR, 415 'selectors' => [ 416 '{{WRAPPER}} .khb-big-block .entry_title a' => 'color: {{VALUE}};', 417 ], 418 ] 419 ); 420 421 $this->add_group_control( 422 Group_Control_Typography::get_type(), 423 [ 424 'name' => 'pt1ty', 425 'label' => __('Typography', 'webangon'), 426 'selector' => '{{WRAPPER}} .khb-big-block .entry_title', 427 ] 428 ); 398 do_action('newsmag_post_title_style', $this,'sed_','.khb-big-block .entry_title'); 429 399 430 400 $this->end_controls_tab(); … … 437 407 ); 438 408 439 $this->add_responsive_control( 440 'pt2mr', 441 [ 442 'label' => __('Margin', 'webangon'), 443 'type' => Controls_Manager::DIMENSIONS, 444 'size_units' => ['px', 'em'], 445 'selectors' => [ 446 '{{WRAPPER}} .khb-small-block .entry_title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 447 ] 448 ] 449 ); 450 451 $this->add_control( 452 'pt2c', 453 [ 454 'label' => __( 'Color', 'news-element' ), 455 'type' => Controls_Manager::COLOR, 456 'selectors' => [ 457 '{{WRAPPER}} .khb-small-block .entry_title a' => 'color: {{VALUE}};', 458 ], 459 ] 460 ); 461 462 $this->add_group_control( 463 Group_Control_Typography::get_type(), 464 [ 465 'name' => 'pt2ty', 466 'label' => __('Typography', 'webangon'), 467 'selector' => '{{WRAPPER}} .khb-small-block .entry_title', 468 ] 469 ); 409 do_action('newsmag_post_title_style', $this,'ght_','.khb-small-block .entry_title'); 470 410 471 411 $this->end_controls_tab(); … … 483 423 ); 484 424 485 $this->add_responsive_control( 486 'metsspt', 487 [ 488 'label' => __('Meta spacing', 'webangon'), 489 'type' => Controls_Manager::DIMENSIONS, 490 'size_units' => ['px', 'em'], 491 'selectors' => [ 492 '{{WRAPPER}} .meta-space' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 493 ] 494 ] 495 ); 496 497 $this->add_control( 498 'btm_color', 499 [ 500 'label' => __( 'Meta color', 'news-element' ), 501 'type' => Controls_Manager::COLOR, 502 'selectors' => [ 503 '{{WRAPPER}} .leffect-1' => 'color: {{VALUE}};', 504 ], 505 ] 506 ); 507 508 $this->add_control( 509 'btm_colora', 510 [ 511 'label' => __( 'Meta link color', 'news-element' ), 512 'type' => Controls_Manager::COLOR, 513 'selectors' => [ 514 '{{WRAPPER}} .leffect-1 a' => 'color: {{VALUE}};', 515 ], 516 ] 517 ); 518 519 $this->add_group_control( 520 Group_Control_Typography::get_type(), 521 [ 522 'name' => 'btm_typo', 523 'label' => __('Typography', 'webangon'), 524 'selector' => '{{WRAPPER}} .leffect-1', 525 ] 526 ); 425 do_action('newsmag_post_meta_style', $this,'.smtitle'); 527 426 528 427 $this->end_controls_section(); … … 539 438 ); 540 439 541 $this->add_responsive_control( 542 'bgr_cat', 543 [ 544 'label' => __('Position', 'webangon'), 545 'type' => Controls_Manager::DIMENSIONS, 546 'size_units' => ['px', '%'], 547 'allowed_dimensions' => [ 'top', 'left'], 548 'selectors' => [ 549 '{{WRAPPER}} .khboverlaythumb' => 'top: {{TOP}}{{UNIT}};left:{{LEFT}}{{UNIT}};', 550 ] 551 ] 552 ); 553 554 $this->add_group_control( 555 Group_Control_Typography::get_type(), 556 [ 557 'name' => 'tax_typography', 558 'selector' => '{{WRAPPER}} .khboverlaythumb .cat-bg', 559 ] 560 ); 561 562 $this->add_responsive_control( 563 'tax_pad', 564 [ 565 'label' => __('Padding', 'webangon'), 566 'type' => Controls_Manager::DIMENSIONS, 567 'size_units' => ['px', 'em'], 568 'selectors' => [ 569 '{{WRAPPER}} .khboverlaythumb .cat-bg' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 570 ] 571 ] 572 ); 573 574 $this->add_control( 575 'tax_color', 576 [ 577 'label' => __( 'Color', 'news-element' ), 578 'type' => Controls_Manager::COLOR, 579 'selectors' => [ 580 '{{WRAPPER}} .khboverlaythumb .cat-bg' => 'color: {{VALUE}};', 581 ], 582 ] 583 ); 584 585 $this->add_control( 586 'tax_bgcolor', 587 [ 588 'label' => __( 'Background', 'news-element' ), 589 'type' => Controls_Manager::COLOR, 590 'selectors' => [ 591 '{{WRAPPER}} .khboverlaythumb .cat-bg' => 'background: {{VALUE}} !important;', 592 ], 593 ] 594 ); 440 do_action('newsmag_overlay_tax_style', $this,'ofvtx_'); 595 441 596 442 $this->end_controls_section();
Note: See TracChangeset
for help on using the changeset viewer.