</div> <?php } ?> <div class="accommodation-content"> <h3><a href="<?php the_permalink(); ?> " title="<?php the_title_attribute(); ?> "><?php the_title(); ?> </a></h3> <?php happybeds_accommodation_price(); ?> <?php the_excerpt(); ?> <?php happybeds_booking_button(); ?> </div> </div> </article>
function happybeds_property_button($post_id = false) { $is_single_disabled = get_theme_mod('happybeds_property_single_disable', false); if (false == $is_single_disabled) { ?> <a href="<?php echo get_permalink($post_id); ?> " class="property-read-more" role="button"><?php _e('Read More', 'happybeds-property'); ?> </a> <?php } else { happybeds_booking_button(); } }