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/Archive/Archive_Hero_View.php
<?php
/**
 * @author : Jegtheme
 */

namespace JNews\Module\Archive;

Class Archive_Hero_View extends ArchiveViewAbstract {

	public function render_module_back( $attr, $column_class ) {
		return $this->build_hero_module( $attr );
	}

	public function render_module_front( $attr, $column_class ) {
		return $this->build_hero_module( $attr );
	}

	public function build_hero_module( $attr ) {

		if ( $attr['first_page'] && jnews_get_post_current_page() > 1 ) {
			return false;
		}

        $name			= jnews_get_view_class_from_shortcode( 'JNews_Hero_' . $attr['hero_type'] );
		$instance		= jnews_get_module_instance( $name );
		$result			= $this->get_result( $attr, $instance->get_number_post() );
		$column_class	= $this->get_module_column_class( $attr );
		$column_class	.= ' ' . $this->unique_id; 
		$column_class	.= ' ' . $this->get_vc_class_name(); 

		return $instance->render_output( $result['result'], $attr, $column_class );
	}
}