Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/nandedex/www/wp-content/plugins11/financial-pack-pro/template/widget/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nandedex/www/wp-content/plugins11/financial-pack-pro/template/widget/widget-12.php
<?php
/**
 * Type 5 => Style 0
 *
 * @var $atts
 * @var $api
 */

$data = $api->get( array(
	'prices'          => array(),
	'changes_average' => array(),
	'logo'            => array(),
) );

if ( empty( $data ) ) {

	bsfp_print_error();

	return;
}

foreach ( $data as $symbol => $item ) {

	$currency   = $item['main_currency'];
	$title_attr = $item['name'];

	?>
	<div class='bs-fp bs-fp-12 bs-fp-t5 bs-fp-s0'>
		<div class="bs-fp-inner bsfp-clearfix">
			<div class="fp-logo">
				<?php if ( ! empty( $item['logo'] ) ) { ?>
					<img alt="<?php echo $title_attr; ?>" src="<?php echo $item['logo']; ?>">
				<?php } ?>

				<div class="fp-name" title="<?php echo $title_attr; ?>"><?php echo $symbol; ?></div>
			</div>
			<div class="fp-text">

				<?php if ( isset( $item['prices'][ $currency ] ) ) { ?>
					<div class="fp-price"><?php echo bsfp_format_currency( $item['prices'][ $currency ], $currency ); ?></div>
				<?php } ?>

				<?php if ( ! empty( $item['changes_average'][ $currency ] ) ) { ?>
					<div class="fp-changes fp-changes-percentage fp-<?php echo $item['changes_average'][ $currency ]['state']; ?>"><?php
						echo bsfp_format_percentage( $item['changes_average'][ $currency ]['percentage'], 2 );
						?>
					</div>

					<?php if ( $arrow = bsfp_get_arrow_class( $item, $currency, 'style-1' ) ) {
						?>
						<span class="fp-arrow fp-<?php echo $item['changes_average'][ $currency ]['state']; ?> <?php echo $arrow; ?>"></span>
						<?php
					} ?>
				<?php } ?>
			</div>

		</div>
	</div>
<?php }

F1le Man4ger