uawdijnntqw1x1x1
IP : 216.73.216.109
Hostname : premium160.web-hosting.com
Kernel : Linux premium160.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
batcwwjx
/
.
/
.
/
public_html
/
wp-content
/
themes
/
born-to-give
/
charitable
/
widgets
/
campaigns.php
/
/
<?php /** * Display a list of campaigns. * * Override this template by copying it to yourtheme/charitable/widgets/campaigns.php * * @author Studio 164a * @since 1.0.0 */ $campaigns = $view_args[ 'campaigns' ]; $show_thumbnail = isset( $view_args[ 'show_thumbnail' ] ) ? $view_args[ 'show_thumbnail' ] : true; $thumbnail_size = apply_filters( 'charitable_campaign_widget_thumbnail_size', 'borntogive-70x70' ); if ( ! $campaigns->have_posts() ) : return; endif; echo $view_args[ 'before_widget' ]; if ( ! empty( $view_args[ 'title' ] ) ) : echo $view_args[ 'before_title' ] . $view_args[ 'title' ] . $view_args[ 'after_title' ]; endif; ?> <ol class="campaigns"> <?php while( $campaigns->have_posts() ) : $campaigns->the_post(); $campaign = new Charitable_Campaign( get_the_ID() ); $donated = $campaign->get_percent_donated(); $donated = str_replace("%", "", $donated); if($donated<=30) { $color = 'F23827'; } elseif($donated>30&&$donated<=60) { $color = 'F6bb42'; } else { $color = '8cc152'; } ?> <li> <a href="<?php the_permalink() ?>" class="cause-thumb"> <?php if ( $show_thumbnail && has_post_thumbnail() ) : the_post_thumbnail( $thumbnail_size, array('class'=>'img-thumbnail') ); else : echo '<img src="'.get_template_directory_uri().'/images/cause-thumb.png" alt="">'; endif; ?> <div class="cProgress" data-complete="<?php echo esc_attr($donated); ?>" data-color="<?php echo esc_attr($color); ?>"> <strong></strong> </div> </a> <h5><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h5> <span class="meta-data"><?php echo ''.$campaign->get_time_left(); ?></span> </li> <?php endwhile ?> </ol> <?php echo $view_args[ 'after_widget' ]; wp_reset_postdata();
/home/batcwwjx/././public_html/wp-content/themes/born-to-give/charitable/widgets/campaigns.php