PluginProbe
Panorama – Turn Photos into Immersive Virtual Tours / trunk
Panorama – Turn Photos into Immersive Virtual Tours vtrunk
1.8.0 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.1 trunk 1.0.0 1.0.1 1.0.10 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.3 1.1.4 1.1.5 1.1.6 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 All 38 releases
panorama / inc / helpers.php

helpers.php in Panorama – Turn Photos into Immersive Virtual Tours trunk, at inc/helpers.php

29 lines 744 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 if ( ! function_exists( 'bppiv_get_woo_template' ) ) {
7 function bppiv_get_woo_template( $template ) {
8 $path = BPPIV_PATH . 'inc/Woocommerce/template/' . $template;
9 if ( file_exists( $path ) ) {
10 require $path;
11 }
12 }
13 }
14
15 if ( ! function_exists( 'bppiv_isset' ) ) {
16 // get values from csf
17 function bppiv_isset( $array ) {
18 return function( $key1, $isBoolean = false, $default = false, $key2 = '' ) use ( $array ) {
19 if ( isset( $array[ $key1 ][ $key2 ] ) ) {
20 return $isBoolean ? (bool) $array[ $key1 ][ $key2 ] : $array[ $key1 ][ $key2 ];
21 }
22 if ( isset( $array[ $key1 ] ) ) {
23 return $isBoolean ? (bool) $array[ $key1 ] : $array[ $key1 ];
24 }
25 return $default;
26 };
27 }
28 }
29