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/Element/Element_Ads_View.php
<?php
/**
 * @author : Jegtheme
 */
namespace JNews\Module\Element;

use JNews\Module\ModuleViewAbstract;

Class Element_Ads_View extends ModuleViewAbstract
{
    public function render_module($attr, $column_class)
    {
        return "<div {$this->element_id($attr)} class='jeg_ad jeg_ad_module {$this->unique_id} {$this->additional_class($attr)} {$this->get_vc_class_name()} {$attr['el_class']}'>" . $this->build_module_ads( $attr ) . "</div>";
    }

    protected function additional_class($attr)
    {
    	$class = array();

    	if ( $attr['google_desktop'] === 'hide' )
	    {
	    	$class[] = 'jeg_ads_hide_desktop';
	    }

	    if ( $attr['google_tab'] === 'hide' )
	    {
		    $class[] = 'jeg_ads_hide_tab';
	    }

	    if ( $attr['google_phone'] === 'hide' )
	    {
		    $class[] = 'jeg_ads_hide_phone';
	    }

    	return implode(' ', $class);
    }
}