Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -268,7 +268,7 @@ abstract class _WidgetComment extends \IPS\Widget\PermissionCache
|
||||
$where['item'][] = array( \IPS\Db::i()->in( $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['container'], $this->configuration['widget_feed_container'] ) );
|
||||
}
|
||||
|
||||
/* Status */
|
||||
/* Locked or open status */
|
||||
if ( isset( $this->configuration['widget_feed_item_status_locked'] ) and in_array( 'IPS\Content\Lockable', class_implements( $itemClass ) ) )
|
||||
{
|
||||
if ( $this->configuration['widget_feed_item_status_locked'] == 'closed' )
|
||||
@@ -281,6 +281,7 @@ abstract class _WidgetComment extends \IPS\Widget\PermissionCache
|
||||
}
|
||||
}
|
||||
|
||||
/* Featured or unfeatured */
|
||||
if ( isset( $this->configuration['widget_feed_item_status_featured'] ) and in_array( 'IPS\Content\Featurable', class_implements( $itemClass ) ) )
|
||||
{
|
||||
if ( $this->configuration['widget_feed_item_status_featured'] == 'notfeatured' )
|
||||
@@ -293,6 +294,7 @@ abstract class _WidgetComment extends \IPS\Widget\PermissionCache
|
||||
}
|
||||
}
|
||||
|
||||
/* Pinned or unpinned */
|
||||
if ( isset( $this->configuration['widget_feed_item_status_pinned'] ) and in_array( 'IPS\Content\Pinnable', class_implements( $itemClass ) ) )
|
||||
{
|
||||
if ( $this->configuration['widget_feed_item_status_pinned'] == 'notpinned' )
|
||||
@@ -311,7 +313,7 @@ abstract class _WidgetComment extends \IPS\Widget\PermissionCache
|
||||
$where['item'][] = array( \IPS\Db::i()->in( $itemClass::$databaseTable . '.' . $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['author'], $this->configuration['widget_feed_item_author'] ) );
|
||||
}
|
||||
|
||||
/* Min comments/reviews */
|
||||
/* Min posts/comments/reviews */
|
||||
if ( isset( $this->configuration['widget_feed_item_min_posts'] ) and isset( $this->configuration['widget_feed_item_min_posts'] ) and isset( $this->configuration['widget_feed_item_min_posts'] ) )
|
||||
{
|
||||
$where['item'][] = array( $itemClass::$databaseTable . '.' . $itemClass::$databasePrefix . $itemClass::$databaseColumnMap['num_comments'] . '>?', (int) $this->configuration['widget_feed_item_min_posts'] );
|
||||
|
||||
Reference in new issue
Block a user