HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpmuhibbah_err/wp-content/plugins/give/templates/shortcode-totals-progress.php
<?php
/**
 * This template is used to display the progress of [give_totals]
 */

// Bail out if total goal is empty.
if ( empty( $total_goal ) ) {
	return false;
}

// Set Give total progress bar color.
$color = apply_filters( 'give_totals_progress_color', '#2bc253' );

// Give total.
$total = ! empty( $total ) ? $total : 0;

/**
 * Filter the goal progress output
 *
 * @since 2.1
 */
$progress = round( ( $total / $total_goal ) * 100, 2 );

// Set progress to 100 percentage if total > total_goal
$progress = $total >= $total_goal ? 100 : $progress;
$progress = apply_filters( 'give_goal_totals_funded_percentage_output', $progress, $total, $total_goal );

?>
<div class="give-goal-progress">
	<div class="raised">
		<?php
		echo sprintf(
			/* translators: %s: percentage of the amount raised compared to the goal target */
			__( '<span class="give-percentage">%s%%</span> funded', 'give' ),
			round( $progress )
		);
		?>
	</div>

	<div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100"
		 aria-valuenow="<?php echo esc_attr( $progress ); ?>">
			<span style="width: <?php echo esc_attr( $progress ); ?>%;
											<?php
											if ( ! empty( $color ) ) {
												echo 'background-color:' . $color;
											}
											?>
			"></span>
	</div><!-- /.give-progress-bar -->

</div><!-- /.goal-progress -->