Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

+10 -6
View File
@@ -102,14 +102,18 @@ class _stream extends \IPS\Widget\PermissionCache
'multiple' => TRUE,
'unlimited' => 0,
) ) );
$form->add( new \IPS\Helpers\Form\Select( 'date', ( isset( $this->configuration['date'] ) ) ? $this->configuration['date'] : 'year', FALSE, array(
$dateField = new \IPS\Helpers\Form\Select( 'date', ( isset( $this->configuration['date'] ) ) ? $this->configuration['date'] : 'year', FALSE, array(
'options' => array(
'today' => 'today',
'week' => 'week',
'month' => 'month',
'year' => 'year'
'today' => 'search_day',
'week' => 'search_week',
'month' => 'search_month',
'year' => 'search_year'
)
) ) );
) );
$dateField->label = \IPS\Member::loggedIn()->language()->addToStack( 'stream_date_relative_days' );
$form->add( $dateField );
$form->add( new \IPS\Helpers\Form\Number( 'max_results', $this->configuration['max_results'] ?? 5, TRUE, array( 'max' => 20 ) ) );
return $form;
}