PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.7.0.1
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.7.0.1
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / templates / widgets / campaign-terms.php

campaign-terms.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.7.0.1, at templates/widgets/campaign-terms.php

36 lines 960 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Display a list of campaign categories or tags.
4 *
5 * Override this template by copying it to yourtheme/charitable/widgets/campaign-terms.php
6 *
7 * @package Charitable/Templates/Widgets
8 * @author WP Charitable LLC
9 * @since 1.0.0
10 * @version 1.0.0
11 */
12
13 $taxonomy = isset( $view_args['taxonomy'] ) ? $view_args['taxonomy'] : 'campaign_category';
14 $show_count = isset( $view_args['show_count'] ) && $view_args['show_count'];
15 $hide_empty = isset( $view_args['hide_empty'] ) && $view_args['hide_empty'];
16
17 echo $view_args['before_widget'];
18
19 if ( ! empty( $view_args['title'] ) ) :
20
21 echo $view_args['before_title'] . $view_args['title'] . $view_args['after_title'];
22
23 endif;
24 ?>
25 <ul class="charitable-terms-widget">
26 <?php wp_list_categories( array(
27 'title_li' => '',
28 'taxonomy' => $taxonomy,
29 'show_count' => $show_count,
30 'hide_empty' => $hide_empty,
31 ) ) ?>
32 </ul><!-- .charitable-terms-widget -->
33 <?php
34
35 echo $view_args['after_widget'];
36