Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

+13
View File
@@ -155,6 +155,19 @@ class _clubs extends \IPS\Widget
{
if ( \IPS\Settings::i()->clubs and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'clubs', 'front' ) ) )
{
/* Strip any not existing custom field filters, e.g. when a field was deleted */
if ( isset( $this->configuration['filters'] ) and \is_array( $this->configuration['filters'] ) )
{
$fields = \IPS\Member\Club\CustomField::roots();
foreach ( $this->configuration['filters'] as $key => $value )
{
if( !isset( $fields[ $key ] ) )
{
unset( $this->configuration['filters'][ $key ] );
}
}
}
$clubsCount = \IPS\Member\Club::clubs(
\IPS\Member::loggedIn(),
isset( $this->configuration['number_to_show'] ) ? $this->configuration['number_to_show'] : 10,
@@ -1,90 +0,0 @@
<?php
/**
* @brief communityhive Widget
* @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 21 Aug 2023
*/
namespace IPS\core\widgets;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
use IPS\Settings;
/**
* communityhive Widget
*/
class _communityhive extends \IPS\Widget
{
/**
* @brief Widget Key
*/
public $key = 'communityhive';
/**
* @brief App
*/
public $app = 'core';
/**
* @brief Plugin
*/
public $plugin = '';
/**
* Initialise this widget
*
* @return void
*/
public function init()
{
parent::init();
}
/**
* Specify widget configuration
*
* @param null|\IPS\Helpers\Form $form Form object
* @return null|\IPS\Helpers\Form
*/
public function configuration( &$form=null )
{
$form = parent::configuration( $form );
return $form;
}
/**
* Ran before saving widget configuration
*
* @param array $values Values from form
* @return array
*/
public function preConfig( $values )
{
return $values;
}
/**
* Render a widget
*
* @return string
*/
public function render()
{
if ( Settings::i()->hive_enabled AND \IPS\core\Hive::showPromotion() )
{
return $this->output();
}
return '';
}
}