HEX
Server: Apache
System: Linux sys.digiflyeg.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User: opal (1023)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/opal/public_html/wp-content/plugins/master-addons/inc/traits/widget-notice.php
<?php

namespace MasterAddons\Inc\Traits;

if ( !defined( 'ABSPATH' ) ) {
    exit;
}
// If this file is called directly, abort.
trait Widget_Notice
{
    /**
     * Adding Go Premium message to all widgets
     */
    public function upgrade_to_pro_message() {
        $this->start_controls_section( 'jltma_pro_section', [
            'label' => sprintf( 
                /* translators: %s: icon for the "Pro" section */
                __( '%s Unlock more possibilities', 'master-addons' ),
                '<i class="eicon-pro-icon"></i>'
             ),
        ] );
        $this->add_control( 'jltma_get_pro_style_tab', [
            'label'       => __( 'Unlock more possibilities', 'master-addons' ),
            'type'        => \Elementor\Controls_Manager::CHOOSE,
            'options'     => [
                '1' => [
                    'title' => '',
                    'icon'  => 'fa fa-unlock-alt',
                ],
            ],
            'default'     => '1',
            'toggle'      => false,
            'description' => '<span class="jltma-widget-pro-feature"> Get the  <a href="https://master-addons.com/pricing/" target="_blank">Pro version</a> for more awesome elements and powerful modules.</span>',
        ] );
        $this->end_controls_section();
    }

}