HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dailygoldindex/public_html/wp-content/themes/jnews/class/Module/Post/Post_Content_Option.php
<?php
/**
 * @author : Jegtheme
 */
namespace JNews\Module\Post;

use JNews\Module\ModuleOptionAbstract;

Class Post_Content_Option extends ModuleOptionAbstract
{
    public function get_category()
    {
        return esc_html__('JNews - Post', 'jnews');
    }

    public function compatible_column()
    {
        return array( 1,2,3,4,5,6,7,8,9,10,11,12 );
    }

    public function get_module_name()
    {
        return esc_html__('JNews - Content', 'jnews');
    }

    public function set_options()
    {
        $this->set_post_option();
        $this->set_style_option();
    }

    public function set_post_option()
    {
        $this->options[] = array(
            'type'          => 'checkbox',
            'param_name'    => 'float_share',
            'heading'       => esc_html__('Enable Float Share on Content','jnews'),
            'value'         => array( "Check to enable float share on content" => 'yes' ),
        );


        $this->options[] = array(
            'type'          => 'dropdown',
            'param_name'    => 'float_style',
            'heading'       => esc_html__('Float Share Style', 'jnews'),
            'description'   => esc_html__('Choose your float share style.', 'jnews'),
            'std'           => 'share-normal',
            'value'         => array(
                esc_html__('Color', 'jnews')        => 'share-normal',
                esc_html__('Monochrome', 'jnews')   => 'share-monocrhome',
            ),
            'dependency'    => array('element' => 'float_share', 'value' => 'yes')
        );
    }

	public function set_typography_option( $instance ) {

		$instance->add_group_control(
			\Elementor\Group_Control_Typography::get_type(),
			[
				'name'        => 'content_typography',
				'label'       => esc_html__( 'Typography', 'jnews' ),
				'selector'    => '{{WRAPPER}} .content-inner *',
			]
		);
	}
}