HEX
Server: LiteSpeed
System: Linux premium221.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: madepabj (2566)
PHP: 8.3.26
Disabled: NONE
Upload Files
File: //home/madepabj/public_html/wp-content/themes/rehub-theme/functions/vc_templates/mdtf_shortcode.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php 
    $post_type = $data_source = $orderby = $order = $show = $ajax = $pag_pos = $tax = $sortid ='';
    $atts = vc_map_get_attributes( $this->getShortcode(), $atts );
    extract( $atts );
    if ($show =='') {$show = '9';}
    if ($order =='') {$order = 'DESC';}

    $sort_panel = ($sortid !='') ? ' panel_id='.intval($sortid).'' : '';
    $out = 'template='.$data_source.' post_type='.$post_type.' orderby='.$orderby.' order='.$order.' per_page='.$show.' pagination='.$pag_pos.' '.$tax.$sort_panel.'';
    $wooout = 'columns=3 orderby='.$orderby.' order='.$order.' per_page='.$show.' pagination='.$pag_pos.' '.$tax.'';
    if($data_source !='woocommerce') {
        if ($ajax !='') {
            echo do_shortcode('[mdf_results_by_ajax shortcode="mdf_custom '.$out.'" animate=1 animate_target=body]');
        }
        else {
            echo do_shortcode('[mdf_custom '.$out.']');
        }
    }
    else {
        if ($ajax !='') {
            echo do_shortcode('[mdf_results_by_ajax shortcode="mdf_products '.$wooout.'" animate=1 animate_target=body]');
        }
        else {
            echo do_shortcode('[mdf_products '.$wooout.']');
        }
    }
        
?>