( empty( $product ) ? 'non' : $product->get_name() ), 'pcat' => ( is_product_category() ? '1' : '0' ), 'tag' => ( is_product_tag() ? '1' : '0' ), 'front' => ( is_front_page() ? '1' : '0' ), 'shop' => ( is_shop() ? '1' : '0' ), ); } $str = json_encode( $p, JSON_PRETTY_PRINT ); if ( ! AFSA_Config::is_ajax() ) { print '
' . $str . '
'; } } }