0, ], $atts ) ); wp_enqueue_style('pt-core'); $package_data = get_post_meta($id, 'adl_pt_data_group', true); $pt_package_theme = get_post_meta($id, 'pt_package_theme', true); // allowed html for the font awesome icon $allowed_html = ['a' => [ 'class' => [], ]]; // count packages number to make div responsive $package_count = count($package_data); switch($package_count){ case 5: case 4: $columns = 'col-sm-6 col-md-3'; break; case 3: $columns = 'col-sm-6 col-md-4'; break; case 2: $columns = 'col-sm-6'; break; default: $columns = 'col-sm-12 col-md-6 col-md-offset-3'; } $ptTblID = 'ID_'.rand(); if ( is_array($package_data) && count($package_data) ) { ( ! empty( $pt_package_theme ) ) ? include PT_DIR . 'themes/' . $pt_package_theme . '/index.php' : include PT_DIR . 'themes/style4/index.php'; }else{ echo 'No Table Found'; } $content = ob_get_clean(); return $content; } } endif;