| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 4 |
|
| 5 |
if ( is_admin() ) |
| 6 |
{ |
| 7 |
// enqueue? |
| 8 |
//return; |
| 9 |
} |
| 10 |
|
| 11 |
extract(shortcode_atts(array( |
| 12 |
"hide_thumbnails" => "", |
| 13 |
), $atts)); |
| 14 |
|
| 15 |
global $property; |
| 16 |
|
| 17 |
if ( !isset($property->id) ) { |
| 18 |
return; |
| 19 |
} |
| 20 |
|
| 21 |
if ( isset($atts['hide_thumbnails']) && $atts['hide_thumbnails'] == 'yes' ) |
| 22 |
{ |
| 23 |
remove_action( 'propertyhive_product_thumbnails', 'propertyhive_show_property_thumbnails', 20 ); |
| 24 |
} |
| 25 |
|
| 26 |
propertyhive_show_property_images(); |