Plugin Directory

Changeset 2332028


Ignore:
Timestamp:
06/28/2020 07:00:19 PM (6 years ago)
Author:
windzwp
Message:

Resolve campaign carousel display issue

Location:
windzfare/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • windzfare/trunk/includes/Helpers/Shortcodes.php

    r2323687 r2332028  
    279279
    280280                    <?php while ( $c_query->have_posts() ) : $c_query->the_post();
    281                     $campaign_id = get_the_ID();
     281                    $args['campaign_id'] = get_the_ID();
     282
     283                   
    282284                        if ( $args['show'] == 'successful' ):
    283285                            if ( Utils::is_reach_target_goal() ):
    284                                 Partials::output_causes_grid_carousel_part( $campaign_id );
     286                                Partials::output_causes_grid_carousel_part( $args );
    285287                            endif;
    286288                        elseif ( $args['show'] == 'expired' ):
    287289                            if ( Utils::date_remaining() == false ):
    288                                 Partials::output_causes_grid_carousel_part( $campaign_id );
     290                                Partials::output_causes_grid_carousel_part( $args );
    289291                            endif;
    290292                        elseif ( $args['show'] == 'valid' ):
    291293                            if ( Utils::is_campaign_valid() ):
    292                                 Partials::output_causes_grid_carousel_part( $campaign_id );
     294                                Partials::output_causes_grid_carousel_part( $args );
    293295                            endif;
    294296                        else:
    295                             Partials::output_causes_grid_carousel_part( $campaign_id );
     297                            Partials::output_causes_grid_carousel_part( $args );
    296298                        endif;
    297299                    endwhile; ?>
     
    299301                <?php
    300302                else:
    301                     Partials::output_causes_grid_carousel_part();
     303                    Partials::output_causes_grid_carousel_part( );
    302304                endif;
    303305            ?></div><?php
    304306        $html = ob_get_clean();
     307
    305308        wp_reset_postdata();
    306309        return $html;
  • windzfare/trunk/readme.txt

    r2329195 r2332028  
    55Tested up to: 5.4
    66Requires PHP: 5.6
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6464= 1.0.4 - 2020-06-14 =
    6565* Improve frontend design
     66
     67= 1.0.5 - 2020-06-29 =
     68* Resolve campaign carousel display issue
Note: See TracChangeset for help on using the changeset viewer.