Version 4.3.6
This commit is contained in:
1 parent
fe1acf984a
commit
1a0c7fd3c2
609 files changed
+14707
-5726
No files matched your search
@@ -45,7 +45,7 @@ class _Images
|
||||
*/
|
||||
public function getFilenames()
|
||||
{
|
||||
$count = \IPS\gallery\Image::getItemsWithPermission( array( 'image_media=?', 0 ), NULL, 10, 'read', \IPS\Content\Hideable::FILTER_AUTOMATIC, 0, NULL, FALSE, FALSE, FALSE, TRUE );
|
||||
$count = \IPS\gallery\Image::getItemsWithPermission( array( 'image_media=?', 0 ), NULL, 10, 'read', \IPS\Content\Hideable::FILTER_AUTOMATIC, 0, new \IPS\Member, FALSE, FALSE, FALSE, TRUE );
|
||||
$files = array();
|
||||
|
||||
$count = ceil( $count / \IPS\Sitemap::MAX_PER_FILE );
|
||||
@@ -77,7 +77,12 @@ class _Images
|
||||
$totalLimit = isset( $settings["sitemap_{$class::$title}_count"] ) AND $settings["sitemap_{$class::$title}_count"] ? $settings["sitemap_{$class::$title}_count"] : \IPS\core\extensions\core\Sitemap\Content::RECOMMENDED_ITEM_LIMIT;
|
||||
$offset = ( $block - 1 ) * \IPS\Sitemap::MAX_PER_FILE;
|
||||
$limit = \IPS\Sitemap::MAX_PER_FILE;
|
||||
|
||||
|
||||
if ( ! $totalLimit )
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ( $totalLimit > -1 and ( $offset + $limit ) > $totalLimit )
|
||||
{
|
||||
$limit = $totalLimit - $offset;
|
||||
@@ -136,7 +141,7 @@ class _Images
|
||||
|
||||
/* Image sitemap data */
|
||||
$data['image:image'] = array(
|
||||
'image:loc' => (string) \IPS\File::get( 'gallery_Images', $item->masked_file_name )->url,
|
||||
'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')
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user