| @@ -86,60 +86,9 @@ | ||
| 86 | 86 | endforeach; |
| 87 | 87 | ?> |
| 88 | 88 | </ol> |
| 89 | 89 | <?php else : ?> |
| 90 | - <?php if ( is_admin() && 1 === intval( $view_args['builder_preview'] ) ) : ?> | |
| 91 | - <?php | |
| 92 | - /* fake data for preview area */ | |
| 93 | - $charitable_limit = isset( $view_args['number'] ) && intval( $view_args['number'] > 0 ) && intval( $view_args['number'] <= 10 ) ? intval( $view_args['number'] ) : 10; | |
| 94 | - | |
| 95 | - /** | |
| 96 | - * Add something before the donors loop. | |
| 97 | - * | |
| 98 | - * @since 1.8.1.12 | |
| 99 | - * | |
| 100 | - * @param array $donors The donors. | |
| 101 | - * @param mixed $campaign_id The campaign ID. | |
| 102 | - * @param array $args Loop args. | |
| 103 | - */ | |
| 104 | - do_action( 'charitable_campaign_loop_before', $charitable_donors, $charitable_campaign_id, $charitable_args ); | |
| 105 | - | |
| 106 | - ?> | |
| 107 | - <ol class="donors-list donors-list-<?php echo esc_attr( $charitable_orientation ); ?>"> | |
| 108 | - <?php for ( $charitable_x = 1; $charitable_x <= $charitable_limit; $charitable_x++ ) : ?> | |
| 109 | - <li class="donor"> | |
| 110 | - <?php if ( ! empty( $args['show_avatar'] ) && 1 === intval( $args['show_avatar'] ) ) : ?> | |
| 111 | - <img alt="" src="<?php echo esc_url( charitable()->get_path( 'directory', false ) ) . 'assets/images/campaign-builder/fields/donor-wall/avatar.jpg'; ?>" class="avatar avatar-100 photo" loading="lazy" decoding="async" width="100" height="100"> | |
| 112 | - <?php endif; ?> | |
| 113 | - <?php if ( ! empty( $args['show_name'] ) && 1 === intval( $args['show_name'] ) ) : ?> | |
| 114 | - <p class="donor-name"><?php esc_html_e( 'John Smith', 'charitable' ); ?></p> | |
| 115 | - <?php endif; ?> | |
| 116 | - <?php if ( ! empty( $args['show_location'] ) && 1 === intval( $args['show_location'] ) ) : ?> | |
| 117 | - <div class="donor-location"><?php esc_html_e( 'US', 'charitable' ); ?></div> | |
| 118 | - <?php endif; ?> | |
| 119 | - <?php if ( ! empty( $args['show_amount'] ) && 1 === intval( $args['show_amount'] ) ) : ?> | |
| 120 | - <div class="donor-donation-amount"><?php esc_html_e( '$100.00', 'charitable' ); ?></div> | |
| 121 | - <?php endif; ?> | |
| 122 | - </li><!-- .donor-x --> | |
| 123 | - <?php endfor; ?> | |
| 124 | - </ol> | |
| 125 | - <?php | |
| 126 | - | |
| 127 | - /** | |
| 128 | - * Add something before the donors loop. | |
| 129 | - * | |
| 130 | - * @since 1.8.1.12 | |
| 131 | - * | |
| 132 | - * @param array $donors The donors. | |
| 133 | - * @param mixed $campaign_id The campaign ID. | |
| 134 | - * @param array $args Loop args. | |
| 135 | - */ | |
| 136 | - do_action( 'charitable_donor_list_loop_after', $charitable_donors, $charitable_campaign_id, $charitable_args ); | |
| 137 | - | |
| 138 | - ?> | |
| 139 | - <?php else : ?> | |
| 140 | - <p><?php echo esc_html__( 'No donors yet. Be the first!', 'charitable' ); ?></p> | |
| 141 | - <?php endif; ?> | |
| 90 | + <p><?php echo esc_html__( 'No donors yet. Be the first!', 'charitable' ); ?></p> | |
| 142 | 91 | <?php |
| 143 | 92 | endif; |
| 144 | 93 | |
| 145 | 94 | /** |