# charitable/1.7.0.6/templates/widgets/campaign-terms.php

Charitable – Donation &amp; Fundraising Platform (Donation Forms, Recurring Donations &amp; Fundraising Campaigns), version 1.7.0.6. 36 lines.

- Page: https://pluginprobe.com/plugins/charitable/1.7.0.6/code/templates/widgets/campaign-terms.php
- Raw: https://pluginprobe.com/plugins/charitable/1.7.0.6/raw/templates/widgets/campaign-terms.php
- Modified: 2022-09-21T15:01:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/charitable/1.7.0.6/code/templates/widgets/campaign-terms.php#L10-L20`.

```php
<?php
/**
 * Display a list of campaign categories or tags.
 *
 * Override this template by copying it to yourtheme/charitable/widgets/campaign-terms.php
 *
 * @package Charitable/Templates/Widgets
 * @author  WP Charitable LLC
 * @since   1.0.0
 * @version 1.0.0
 */

$taxonomy   = isset( $view_args['taxonomy'] ) ? $view_args['taxonomy'] : 'campaign_category';
$show_count = isset( $view_args['show_count'] ) && $view_args['show_count'];
$hide_empty = isset( $view_args['hide_empty'] ) && $view_args['hide_empty'];

echo $view_args['before_widget'];

if ( ! empty( $view_args['title'] ) ) :

	echo $view_args['before_title'] . $view_args['title'] . $view_args['after_title'];

endif;
?>
<ul class="charitable-terms-widget">
	<?php wp_list_categories( array(
		'title_li'   => '',
		'taxonomy'   => $taxonomy,
		'show_count' => $show_count,
		'hide_empty' => $hide_empty,
	) ) ?>
</ul><!-- .charitable-terms-widget -->
<?php

echo $view_args['after_widget'];

```
