bubble image

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #200943

    EH
    Expired Member
    Post count: 96

    Is there a way for me to change the code below from my child functions? I would like to either display a default image for when $plink is empty or simply not echo this markup:

    <div class="geodir-bubble_image"></div>
    
    
                                  if (!empty($post_images)) {
                                      ?>
                                     <div class="geodir-bubble_image"><a href="<?php if ($plink != '') {
                                              echo $plink;
                                          } else {
    
                                  <?php
                                  }else{
                                     echo '<div class="geodir-bubble_image"></div>';
                                  }
                              } else {
                                 if ($image = geodir_show_featured_image($ID, 'widget-thumb', true, false, $postinfo_obj->featured_image)) {
                                      ?>
                                     <div class="geodir-bubble_image"><a href="<?php echo $plink; ?>"><?php echo $image; ?></a></div>
                                  <?php
                                  }else{
                                     echo '<div class="geodir-bubble_image"></div>';
                                  }
                             }
    #200946

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can use this hook to strip and replace what u want:

    
    
    /**
                 * Filter to change infowindow html
                 *
                 * You can use this filter to change infowindow html.
                 *
                 * @since 1.0.0
                 * @package GeoDirectory
                 * @param string $html Infowindow html.
                 * @param object $postinfo_obj The Post object.
                 * @param bool|string $post_preview Is this a post preview?
                 */
                $html = apply_filters('geodir_custom_infowindow_html', $html, $postinfo_obj, $post_preview);

    Stiofan

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount