Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -151,14 +151,8 @@ class _Images
|
||||
/* Image sitemap data */
|
||||
$data['image:image'] = array(
|
||||
'image:loc' => (string) \IPS\File::get( 'gallery_Images', $item->masked_file_name )->url->setScheme( ( mb_substr( \IPS\Settings::i()->base_url, 0, 5 ) === 'https' ) ? 'https' : 'http' ),
|
||||
'image:caption' => $item->mapped('title'),
|
||||
'image:title' => $item->mapped('title')
|
||||
);
|
||||
|
||||
if( \IPS\GeoLocation::enabled() AND $item->gps_show )
|
||||
{
|
||||
$data['image:image']['image:geo_location'] = $item->loc_short;
|
||||
}
|
||||
|
||||
$priority = ( $item->sitemapPriority() ?: ( \intval( isset( $settings["sitemap_{$class::$title}_priority"] ) ? $settings["sitemap_{$class::$title}_priority"] : \IPS\core\extensions\core\Sitemap\Content::RECOMMENDED_ITEM_PRIORITY ) ) );
|
||||
if ( $priority !== -1 )
|
||||
@@ -172,7 +166,6 @@ class _Images
|
||||
}
|
||||
|
||||
$sitemap->buildSitemapFile( $filename, $entries, $lastId, array( 'image' => 'http://www.google.com/schemas/sitemap-image/1.1' ) );
|
||||
|
||||
return $lastId;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user