HEX
Server: Apache/2.4.65 (Unix) OpenSSL/1.1.1k
System: Linux server-manager.elshandawiily.com 4.18.0-553.87.1.el8_10.x86_64 #1 SMP Mon Dec 1 05:11:16 EST 2025 x86_64
User: elshanda (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/elshanda/biz.elshandawiily.com/wp-content/plugins/fusion-builder/inc/i18n/years.php
<?php
/**
 * Years.
 *
 * @package fusion-builder
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'Direct script access denied.' );
}

/**
 * Adds years predefined choices
 *
 * @param array $choices The predefined choices.
 */
function fusion_builder_predefined_years( $choices = [] ) {
	$values = [];
	$date   = (int) date( 'Y' );

	for ( $x = 0; $x <= 100; $x++ ) {
		$values[] = (string) $date;
		$date--;
	}

	$choices[] = [
		'name'   => __( 'Years', 'fusion-builder' ),
		'values' => $values,
	];
	return $choices;
}
add_filter( 'fusion_predefined_choices', 'fusion_builder_predefined_years' );