Commit 54013916 by rajshah

share done

parent 0099427f
<?php
// Single Resources
get_header();
?>
<div class="container-fluid py-40 background-dark blog-breadcrumb-background-dark breadcrumb-background-dark py-40">
<div class="container">
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo site_url('/'); ?>">Home</a></li>
<li class="breadcrumb-item"><a
href="<?php echo get_permalink(get_page_by_path('services')); ?>">Resources</a></li>
<li class="breadcrumb-item active" aria-current="page"><?php the_title(); ?></li>
</ol>
</nav>
</div>
</div>
</div>
<?php
$downloadable_resource = get_field('downloadable_resource') ?: [];
$post_thumbnail_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
if (!$post_thumbnail_url) {
$post_thumbnail_url = get_field('resources_fallback_featured_image', 'option');
}
$downloadable_resource = get_field('downloadable_resource', $post_id) ?: [];
if (isset($downloadable_resource) && is_array($downloadable_resource) && !empty($downloadable_resource)):
$enable_downloadable_resources = $downloadable_resource['enable_downloadable_resources'];
if ($enable_downloadable_resources && isset($enable_downloadable_resources)):
$upload_downloadable_resource = $downloadable_resource['upload_downloadable_resource'] ?: [];
// var_dump($upload_downloadable_resource);
$url = $upload_downloadable_resource['url'];
var_dump($url);
$subtype = $upload_downloadable_resource['subtype'];
var_dump($subtype);
switch (strtolower($subtype)) {
case 'pdf':
$icon_url = '/pdf-icon.png';
$icon = 'PDF';
break;
case 'doc':
case 'docx':
$icon_url = '/word-icon.png';
$icon = 'DOC';
break;
case 'xls':
case 'xlsx':
$icon_url = '/excel-icon.png';
case 'vnd.ms-excel':
case 'vnd.openxmlformats-officedocument.spreadsheetml.sheet':
$icon = 'XLS';
break;
case 'ppt':
case 'pptx':
$icon_url = '/ppt-icon.png';
case 'vnd.openxmlformats-officedocument.presentationml.presentation':
$icon = 'PPT';
break;
default:
$icon_url = '/default-icon.png';
$icon = 'PDF';
}
var_dump($icon_url);
endif;
endif;
?>
<?php get_template_part( '/blocks/faqs-block' ); ?>
<div class="container-fluid py-40 background-dark blog-breadcrumb-background-dark breadcrumb-background-dark py-40">
<div class="container">
<div class="row">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?php echo site_url('/'); ?>">Home</a></li>
<li class="breadcrumb-item"><a
href="<?php echo get_permalink(get_page_by_path('downloadable-resources')); ?>">Downloadable
Resources</a></li>
<li class="breadcrumb-item active" aria-current="page"><?php the_title(); ?></li>
</ol>
</nav>
</div>
</div>
</div>
<section class="background-dark pb-60 ABOUT TOP-BANNER-SECTION inner-banner-absolute-image">
<div class="container">
<div class="inner-banner-wrapper">
<div class="row align-items-center justify-content-between">
<div class="col-lg-6 col-12">
<div class="position-relative left-text-wrapper">
<h1><?php echo get_the_title(); ?></h1>
<p><?php echo wp_trim_words(get_the_excerpt(), 8, ' [...]') ?: wp_trim_words(get_the_content(), 8, ' [...]'); ?>
</p>
<a href="<?php echo esc_url($url); ?>" target="_blank"
class="btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit"
download>Download
Now [<?php echo $icon; ?>]</a>
</div>
</div>
<div class="col-lg-5 col-md-5 mx-auto col-12 text-center right-image">
<div class="image-wrapper">
<div class="image">
<img src="<?php echo esc_url($post_thumbnail_url); ?>"
alt="<?php echo esc_attr(the_title()); ?>">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="resource-detail py-80 makura-new">
<div class="container">
<div class="row">
<div class="col-lg-10 col-xl-8">
<div class="rd-content">
<h3>Overview</h3>
<p>The Mercantile Domain Registration Cover Letter is a professionally crafted template designed to
simplify
the
process of registering a domain with Mercantile. This letter outlines the necessary details
required for
domain
registration, ensuring clarity and professionalism in your communication. Whether you're
registering a
domain
for personal or business purposes, this template provides a structured format that adheres to
official
guidelines, saving you time and effort. Tailor the content to suit your specific needs and
ensure a smooth
registration process.</p>
<h3>Highlights</h3>
<ul>
<li>Professional Format: Pre-designed layout adhering to official guidelines for ease of use.
</li>
<li>Time-Saving: Eliminates the need to draft a cover letter from scratch.</li>
<li>Customizable: Fully editable to suit personal or business requirements.</li>
<li>Clarity and Precision: Ensures all necessary details are clearly communicated.</li>
<li>Seamless Process: Simplifies domain registration with a well-structured template.</li>
</ul>
<?php echo the_content(); ?>
<?php get_template_part('/blocks/faqs-block'); ?>
<!-- faqs -->
<h3>Frequently Asked Questions</h3>
<div class="faq-wrapper">
<div class="faq-item">
......@@ -134,20 +140,24 @@ endif;
</div>
</div>
</div>
<!-- faqs -->
</div>
<div class="rd-footer-action-group">
<div class="row">
<div class="col-md-6 col-lg-4 order-md-2">
<a href="#"
class="btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit">Download
Now [PDF]</a>
<a href="<?php echo esc_url($url); ?>" target="_blank"
class="btn btn-primary btn-padding hover-up btn-start-project font-14 fw-500 btn-padding btn-submit"
download>Download
Now [<?php echo $icon; ?>]</a>
</div>
<div class="col-md-6 col-lg-8 order-md-1">
<div class="rd-socials d-lg-flex align-items-lg-center ">
<strong>Share this Template</strong>
<ul class="d-flex align-items-center justify-content-start">
<!-- Facebook Share -->
<li>
<a href="#">
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode(get_permalink()); ?>"
target="_blank">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="31" height="31" rx="15.5"
......@@ -156,11 +166,14 @@ endif;
d="M19.7188 17H17.375V24H14.25V17H11.6875V14.125H14.25V11.9062C14.25 9.40625 15.75 8 18.0312 8C19.125 8 20.2812 8.21875 20.2812 8.21875V10.6875H19C17.75 10.6875 17.375 11.4375 17.375 12.25V14.125H20.1562L19.7188 17Z"
fill="#878787" />
</svg>
</a>
</li>
<!-- Twitter Share -->
<li>
<a href="#"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"
<a href="https://twitter.com/intent/tweet?url=<?php echo urlencode(get_permalink()); ?>&text=Check%20this%20out!"
target="_blank">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="31" height="31" rx="15.5"
stroke="#878787" />
......@@ -170,8 +183,12 @@ endif;
</svg>
</a>
</li>
<!-- LinkedIn Share -->
<li>
<a href="#"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"
<a href="https://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode(get_permalink()); ?>&title=Check%20this%20template"
target="_blank">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="31" height="31" rx="15.5"
stroke="#878787" />
......@@ -181,33 +198,23 @@ endif;
</svg>
</a>
</li>
<li>
<a href="#">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="31" height="31" rx="15.5"
stroke="#878787" />
<path
d="M24.1562 11.9062C24.5312 13.2188 24.5312 16.0312 24.5312 16.0312C24.5312 16.0312 24.5312 18.8125 24.1562 20.1562C23.9688 20.9062 23.375 21.4688 22.6562 21.6562C21.3125 22 16 22 16 22C16 22 10.6562 22 9.3125 21.6562C8.59375 21.4688 8 20.9062 7.8125 20.1562C7.4375 18.8125 7.4375 16.0312 7.4375 16.0312C7.4375 16.0312 7.4375 13.2188 7.8125 11.9062C8 11.1562 8.59375 10.5625 9.3125 10.375C10.6562 10 16 10 16 10C16 10 21.3125 10 22.6562 10.375C23.375 10.5625 23.9688 11.1562 24.1562 11.9062ZM14.25 18.5625L18.6875 16.0312L14.25 13.5V18.5625Z"
fill="#878787" />
</svg>
</a>
</li>
<!-- Google+ Share -->
<li>
<a href="#">
<a href="https://plus.google.com/share?url=<?php echo urlencode(get_permalink()); ?>"
target="_blank">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="0.5" width="31" height="31" rx="15.5"
stroke="#878787" />
<path
d="M16 12.4062C17.9688 12.4062 19.5938 14.0312 19.5938 16C19.5938 18 17.9688 19.5938 16 19.5938C14 19.5938 12.4062 18 12.4062 16C12.4062 14.0312 14 12.4062 16 12.4062ZM16 18.3438C17.2812 18.3438 18.3125 17.3125 18.3125 16C18.3125 14.7188 17.2812 13.6875 16 13.6875C14.6875 13.6875 13.6562 14.7188 13.6562 16C13.6562 17.3125 14.7188 18.3438 16 18.3438ZM20.5625 12.2812C20.5625 12.75 20.1875 13.125 19.7188 13.125C19.25 13.125 18.875 12.75 18.875 12.2812C18.875 11.8125 19.25 11.4375 19.7188 11.4375C20.1875 11.4375 20.5625 11.8125 20.5625 12.2812ZM22.9375 13.125C23 14.2812 23 17.75 22.9375 18.9062C22.875 20.0312 22.625 21 21.8125 21.8438C21 22.6562 20 22.9062 18.875 22.9688C17.7188 23.0312 14.25 23.0312 13.0938 22.9688C11.9688 22.9062 11 22.6562 10.1562 21.8438C9.34375 21 9.09375 20.0312 9.03125 18.9062C8.96875 17.75 8.96875 14.2812 9.03125 13.125C9.09375 12 9.34375 11 10.1562 10.1875C11 9.375 11.9688 9.125 13.0938 9.0625C14.25 9 17.7188 9 18.875 9.0625C20 9.125 21 9.375 21.8125 10.1875C22.625 11 22.875 12 22.9375 13.125ZM21.4375 20.125C21.8125 19.2188 21.7188 17.0312 21.7188 16C21.7188 15 21.8125 12.8125 21.4375 11.875C21.1875 11.2812 20.7188 10.7812 20.125 10.5625C19.1875 10.1875 17 10.2812 16 10.2812C14.9688 10.2812 12.7812 10.1875 11.875 10.5625C11.25 10.8125 10.7812 11.2812 10.5312 11.875C10.1562 12.8125 10.25 15 10.25 16C10.25 17.0312 10.1562 19.2188 10.5312 20.125C10.7812 20.75 11.25 21.2188 11.875 21.4688C12.7812 21.8438 14.9688 21.75 16 21.75C17 21.75 19.1875 21.8438 20.125 21.4688C20.7188 21.2188 21.2188 20.75 21.4375 20.125Z"
d="M24.1562 11.9062C24.5312 13.2188 24.5312 16.0312 24.5312 16.0312C24.5312 16.0312 24.5312 18.8125 24.1562 20.1562C23.9688 20.9062 23.375 21.4688 22.6562 21.6562C21.3125 22 16 22 16 22C16 22 10.6562 22 9.3125 21.6562C8.59375 21.4688 8 20.9062 7.8125 20.1562C7.4375 18.8125 7.4375 16.0312 7.4375 16.0312C7.4375 16.0312 7.4375 13.2188 7.8125 11.9062C8 11.1562 8.59375 10.5625 9.3125 10.375C10.6562 10 16 10 16 10C16 10 21.3125 10 22.6562 10.375C23.375 10.5625 23.9688 11.1562 24.1562 11.9062ZM14.25 18.5625L18.6875 16.0312L14.25 13.5V18.5625Z"
fill="#878787" />
</svg>
</a>
</li>
</ul>
</div>
</div>
</div>
......
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