Version 4.2.0

This commit is contained in:
Neo committed 2025-12-19 05:44:59 -08:00
1 parent 0dc2aee5ed
commit 96997ddd8e
2074 files changed
+125454 -55780

No files matched your search

+7 -6
View File
@@ -1,12 +1,11 @@
<?php
/**
* @brief Width/Height input class for Form Builder
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 28 Mar 2013
* @version SVN_VERSION_NUMBER
*/
namespace IPS\Helpers\Form;
@@ -28,6 +27,7 @@ class _WidthHeight extends FormAbstract
* @code
$defaultOptions = array(
'unlimited' => array( 0, 0 ), // If any value other than NULL is provided, an "Unlimited" checkbox will be displayed. If checked, the values specified will be sent.
'unlimitedLang' => 'unlimited', // Language string to use for unlimited checkbox label
'image' => NULL, // If an \IPS\File object is provided, the image will be shown for resizing rather than a div
'resizableDiv' => FALSE, // If set to false, the resizable div will not be displayed (useful if you expect dimensions to be large)
);
@@ -35,6 +35,7 @@ class _WidthHeight extends FormAbstract
*/
protected $defaultOptions = array(
'unlimited' => NULL,
'unlimitedLang' => 'unlimited',
'image' => NULL,
'resizableDiv' => TRUE,
);
@@ -70,7 +71,7 @@ class _WidthHeight extends FormAbstract
*/
public function html()
{
return \IPS\Theme::i()->getTemplate( 'forms', 'core' )->widthheight( $this->name, $this->value[0], $this->value[1], $this->options['unlimited'], $this->options['image'] ? $this->options['image'] : NULL, $this->options['resizableDiv'] );
return \IPS\Theme::i()->getTemplate( 'forms', 'core' )->widthheight( $this->name, $this->value[0], $this->value[1], $this->options['unlimited'], $this->options['unlimitedLang'], $this->options['image'] ? $this->options['image'] : NULL, $this->options['resizableDiv'] );
}
/**