Commit b81a6c18 by rajshah

new changes done in resources listing block

parent 8fb385e6
...@@ -56,7 +56,7 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc ...@@ -56,7 +56,7 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
$post_excerpt = $sel_res->post_excerpt; $post_excerpt = $sel_res->post_excerpt;
?> ?>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="resource-item d-xl-flex justify-content-start slide-up"> <div class="resource-item d-sm-flex flex-sm-column flex-xl-row justify-content-xl-start slide-up">
<div class="resource-image"> <div class="resource-image">
<a href="<?php echo esc_url($post_url); ?>" class="d-block"> <a href="<?php echo esc_url($post_url); ?>" class="d-block">
<img src="<?php echo esc_url($post_thumbnail_url); ?>" <img src="<?php echo esc_url($post_thumbnail_url); ?>"
...@@ -64,11 +64,12 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc ...@@ -64,11 +64,12 @@ if (isset($resources_listing) && is_array($resources_listing) && !empty($resourc
</a> </a>
</div> </div>
<div class="resource-content"> <div class="resource-content">
<h6><a href="<?php echo esc_url($post_url); ?>"> <div class="rc-detail">
<h6><a href="<?php echo esc_url($post_url); ?>">
<?php echo esc_html($post_title); ?></a></h6> <?php echo esc_html($post_title); ?></a></h6>
<P class="sm-text"> <P class="sm-text">
<?php echo wp_trim_words($post_excerpt, 8, '...') ?: wp_trim_words($post_content, 8, '...'); ?> <?php echo wp_trim_words($post_excerpt, 8, '...') ?: wp_trim_words($post_content, 8, '...'); ?>
</P> </P></div>
<div class="format-and-btn-wrapper d-flex justify-content-between"> <div class="format-and-btn-wrapper d-flex justify-content-between">
<?php <?php
$downloadable_resource = get_field('downloadable_resource', $post_id) ?: []; $downloadable_resource = get_field('downloadable_resource', $post_id) ?: [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment