# iyp : # @ ` CD99V]99V]99VXp99V@&f="YX%:@&y& X ::@&'+%  XP,@;@&4I&@TX z"2 ; @&Ke@@[ D99V]99V]99V p99V ( A"pXPOP;  ($z'Y{ 0; (,1p Pd ; (9; e@  0'(;H (CU( |0; (]aP@| `|-Y 8; (ix'  |`@; ( ~@ H`); return ! empty( $options[ "sitemap-buddypress-roles-exclude-profile-role-$role" ] ); } /** * Retrieves the user's images. * * @param int $id The user ID. * * @return array The user's images. */ private function get_user_images( $id ) { if ( ! Utils::sitemap_images_enabled() ) { return array(); } $avatar = $this->get_user_avatar( $id ); $images = $this->find_images( $avatar ); $cover = $this->get_user_cover_url( $id ); if ( $cover ) { $images[] = array( 'src' => $cover, 'title' => '', 'alt' => '', ); } return $images; } /** * Retrieves the user's avatar. * * @param int $id The user ID. * * @return string The user's avatar URL. */ private function get_user_avatar( $id ) { return function_exists( '\bp_core_fetch_avatar' ) ? \bp_core_fetch_avatar( array( 'item_id' => $id, 'object' => 'user', 'type' => 'full', 'html' => true, ) ) : ''; } /** * Retrieves the user's cover URL. * * @param int $id The user ID. * * @return string|void The user's cover URL. */ private function get_user_cover_url( $id ) { return function_exists( '\bp_attachments_get_attachment' ) ? \bp_attachments_get_attachment( 'url', array( 'object_dir' => 'members', 'item_id' => $id, ) ) : ''; } }