Plugin Directory

Changeset 3388980


Ignore:
Timestamp:
11/03/2025 03:25:38 PM (5 months ago)
Author:
webangon
Message:

Updated tested upto

Location:
news-element/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • news-element/trunk/includes/ext/sticky.php

    r3276137 r3388980  
    189189            );
    190190
     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
    191415            $element->end_controls_section();
    192416
  • news-element/trunk/includes/helper.php

    r3385866 r3388980  
    697697    }
    698698    //TODO: remove function
    699     static function madmag_lazy_img($id,$size){
     699    static function madmag_lazy_img($id,$size,$class=""){
    700700        if (!$id){
    701701            return;
     
    713713        $placeholder =  plugins_url( '../assets/lazyload.svg', __FILE__ );
    714714
    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.'"/>';
    716716
    717717        return $out;
     
    14951495        $link_attr        = ' rel="v:url" property="v:title"';
    14961496        $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 crumbs
     1497        $delimiter        = '<span class="delimiter">'.self::display_iconfont($icon).'</span>';              // Delimiter between crumbs
    14981498        $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 
    15001500        $page_addon       = '';                       // Adds the page number if the query is paged
    15011501        $breadcrumb_trail = '';
  • news-element/trunk/includes/widget-control.php

    r3385866 r3388980  
    2020        add_action( 'newsmag_swiper_control', [$this, 'swiper_control']);
    2121        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);
    2323        add_action( 'newsmag_post_excerpt_style', [$this, 'excerpt_meta']);
    2424        add_action( 'newsmag_post_cat_bg_style', [$this, 'bg_cat_control'],10,2);
     
    332332
    333333    }
    334     static function post_meta($wb,$alt,$dark='')
     334    static function post_meta($wb,$alt='')
    335335    {
    336336
     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        );
    337358        $wb->add_responsive_control(
    338359            'mtsp',
     
    344365                    '{{WRAPPER}} .meta-space' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
    345366                ]
    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                 ],
    368367            ]
    369368        );
     
    395394
    396395        }
    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
    423397        $wb->add_group_control(
    424398            Group_Control_Typography::get_type(),
  • news-element/trunk/readme.txt

    r3385866 r3388980  
    44Tags: elementor, post grid, elementor addons, magazine, post list
    55Requires at least: 5.0
    6 Tested up to: 6.5
     6Tested up to: 6.8
    77Requires PHP: 7.0
    88Stable tag: 1.0.6
  • news-element/trunk/widgets/block/breadcum/index.php

    r2966276 r3388980  
    225225        $settings = $this->get_settings();
    226226        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>';
    228228        } else {
    229229            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  
    500500            ]
    501501        );
    502 
    503         do_action('newsmag_post_meta_style', $this,'');
     502 
     503        do_action('newsmag_post_meta_style', $this,'.first','.rest');
    504504
    505505        $this->end_controls_section();
  • news-element/trunk/widgets/block/post-meta/index.php

    r3228866 r3388980  
    4545            ]
    4646        );
    47 
     47 
    4848        $this->add_control(
    4949            'metas',
     
    5555            ]
    5656        );
    57 
     57 
    5858        $this->add_control(
    5959            'emphasis',
     
    6161                'label' => __( 'Emphasis first letter', 'news-element' ),
    6262                '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                ],               
    6374            ]
    6475        );
  • news-element/trunk/widgets/block/post-meta/view.php

    r3228866 r3388980  
    22use News_Element\Khobish_Helper;
    33$meta = Khobish_Helper::king_buildermeta_to_string($settings['metas']);
     4$excerpt_length = isset($settings['exl']['size']) ? $settings['exl']['size'] : '';
    45?>
    56
    67    <div class="khobish-single-meta <?php echo $settings['emphasis'];?>">
    78        <div class="inr">
    8         <?php Khobish_Helper::ae_build_postmeta($meta,20);?>
     9        <?php Khobish_Helper::ae_build_postmeta($meta,$excerpt_length);?>
    910        </div>
    1011    </div>
  • news-element/trunk/widgets/block/post-navigation/five.php

    r3228866 r3388980  
    1414                <div class="pn-text">
    1515                    <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>
    1717                </div>     
    1818            </a>
     
    2929                    <div class="pn-text">
    3030                        <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>
    3232                    </div>
    3333                </a>
  • news-element/trunk/widgets/block/post-navigation/index.php

    r3228866 r3388980  
    290290            ]
    291291        );
     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        );
    292303
    293304        $this->add_group_control(
  • news-element/trunk/widgets/block/post-navigation/one.php

    r3228866 r3388980  
    99            <a class="prev-post" href="<?php echo esc_url($previous_post);?>">
    1010                <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>       
    1212            </a>
    1313        <?php endif; ?>
     
    1919                <a class="next-post" href="<?php echo esc_url($next_post);?>">
    2020                    <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>
    2222                </a>
    2323        <?php endif; ?>
  • news-element/trunk/widgets/block/post-navigation/two.php

    r3228866 r3388980  
    99            <a class="prev-post" href="<?php echo $previous_post;?>">
    1010                <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>       
    1212            </a>
    1313        <?php endif; ?>
     
    2020                <a class="next-post" href="<?php echo $next_post;?>">
    2121                    <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>
    2323                </a>
    2424        <?php endif; ?>
  • news-element/trunk/widgets/block/post-thumbnail/index.php

    r3228866 r3388980  
    44use Elementor\Controls_Manager;
    55use Elementor\Group_Control_Border;
     6use Elementor\Group_Control_Background;
    67use News_Element\Khobish_Helper;
    78
     
    8990            ]
    9091        );
    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        );
    92102        $this->add_group_control(
    93103            Group_Control_Border::get_type(),
     
    98108            ]
    99109        );
    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        );
    101122        $this->end_controls_section();
    102123
  • news-element/trunk/widgets/block/post-thumbnail/style.css

    r3228866 r3388980  
    44    right: 0px;
    55}
     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  
    3838 margin-right:-10px;
    3939}
    40 .khbrelatedgrid .catbg-wrap{
    41    position: absolute;
    42 }
     40
    4341.khbrelatedgrid ul.kb_subcats_list li.notneeded{
    4442   display: inline-block;
  • news-element/trunk/widgets/block/trending-6/index.php

    r2966276 r3388980  
    396396        );
    397397
    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');
    429399
    430400        $this->end_controls_tab();
     
    437407        );
    438408
    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');
    470410
    471411        $this->end_controls_tab();
     
    483423        );
    484424
    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');
    527426
    528427        $this->end_controls_section();
     
    539438        );
    540439
    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_');
    595441
    596442        $this->end_controls_section();
Note: See TracChangeset for help on using the changeset viewer.