This commit is contained in:
ThemeLexus
2019-09-28 16:41:11 +07:00
47 changed files with 210 additions and 7723 deletions

View File

@@ -571,11 +571,15 @@ class Opalestate_Property {
return $this->get_metabox_value( 'gallery', true );
}
/**
* Count gallery images.
*
* @return int
*/
public function get_gallery_count() {
$count = $this->get_gallery();
return count( $count );
return is_array( $count ) && $count ? count( $count ) : 0;
}
/**