Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $landing_pages = ISSSLPG_Landing_Page_Api::get_related_landing_pages( 3, 'medium' ); ?>
- <?php if (! empty ( $landing_pages ) ) : ?>
- <h3>Related Services</h3>
- <?php foreach ( $landing_pages as $landing_page ) : ?>
- <div class="lg:tw-flex tw-mb-4 tw-bg-grey-lighter tw-p-2 tw-rounded tw-shadow-md">
- <div class="tw-w-1/4 tw-bg-cover tw-bg-cover tw-bg-center tw-rounded tw-bg-no-repeat" style="background: url(<?php echo $landing_page['thumbnail']; ?>)">
- <a href="<?php echo $landing_page['permalink']; ?>">
- </a>
- </div>
- <div class=" tw-w-3/4 tw-pl-2">
- <a href="<?php echo $landing_page['permalink']; ?>">
- <?php echo $landing_page['page_title']; ?>
- </a>
- <p><?php echo $landing_page['excerpt']; ?></p>
- <a href="<?php echo $landing_page['permalink']; ?>" class=""> Learn More </a>
- </div>
- </div>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php comments_template( '', true ); ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement