Commit 837811b9 by rajshah

finalized site comparison

parent d532082b
<section class="COMPARISON-FORM pt-80"> <!-- SEO - compare Section -->
<div class="container"> <?php
<div class="section-title top-title"> $compare = get_field('compare') ?: [];
<h3>Find Keyword GAP Study from our best competitor analysis tool</h3> if (isset($compare) && is_array($compare) && !empty($compare)):
<p>Unable to find competion gap to perform in google search, try our best competitor analysis tool, which gives $enable_compare = $compare['enable_compare'];
you the detail data of your competitors</p> if ($enable_compare):
$compare_title = $compare['compare_title'] ?: '';
</div> $compare_desc = $compare['compare_desc'] ?: '';
<div class="row"> $compare_url = $compare['compare_url'] ?: '';
<div class="col-sm-6"> $compare_btn = $compare['compare_btn'] ?: '';
<div class="input-field"> ?>
<input type="text" placeholder="Website URL"> <section class="COMPARISON-FORM pt-80">
<div class="container">
<div class="section-title top-title">
<?php if (!empty($compare_title)): ?>
<h3><?php echo $compare_title; ?></h3><?php endif;
echo $compare_desc ?: '';
?>
</div> </div>
</div> <?php
<div class="col-sm-6"> if (!empty($compare_url)):
<div class="input-field"> ?>
<input type="text" placeholder="Competitor’s Website URL"> <form class="turboform" method="POST" action="<?php echo esc_url($compare_url); ?>" onsubmit="return fixURL();">
<div class="row">
<div class="col-sm-6">
<div class="input-field">
<input type="text" id="websiteUrl" name="websiteUrl" placeholder="Website URL">
</div>
</div>
<div class="col-sm-6">
<div class="input-field">
<input type="text" id="competitorUrl" name="competitorUrl" placeholder="Competitor’s Website URL">
</div>
</div>
</div>
<?php if (!empty($compare_btn)): ?>
<div class="submit-field ">
<button class="btn btn-start-project-white">
<?php echo $compare_btn; ?>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z"
fill="white" />
</svg>
</button>
<?php endif; ?>
</div>
</form>
<?php endif;
?>
<!-- <div class="submit-field download-seo-audit">
<input type="submit" value="Experimental Download">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z"
fill="white" />
</svg>
</div> </div>
</div> </div> -->
</div> </section>
<div class="submit-field ">
<button class="btn btn-start-project-white"> <script>
Analyze function fixURL() {
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> var websiteUrl = document.getElementById('websiteUrl').value.trim();
<path fill-rule="evenodd" clip-rule="evenodd" var competitorUrl = document.getElementById('competitorUrl').value.trim();
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z" if (!websiteUrl || !competitorUrl) {
fill="white" /> alert('Please provide both URLs.');
</svg> return false;
</button> }
</div> websiteUrl = websiteUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase();
<div class="submit-field download-seo-audit"> competitorUrl = competitorUrl.replace(/^https?:\/\//, '').replace(/^www\./, '').toLowerCase();
<input type="submit" value="Experimental Download"> var actionUrl = 'https://makuracreations.com/free-seo-audit/compare/' + websiteUrl + '/vs/' + competitorUrl;
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> document.querySelector('form.turboform').action = actionUrl;
<path fill-rule="evenodd" clip-rule="evenodd" return true;
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z" }
fill="white" /> </script><?php endif; endif; ?>
</svg> <!-- !SEO - compare Section -->
</div> \ No newline at end of file
</div>
</section>
\ No newline at end of file
<?php
/**
* Template Name: SITE Comparison
*/
get_header();
the_content();
get_template_part("/template-parts/site-comparison/audit-page-intro", null);
get_template_part("/template-parts/site-comparison/comparison-form", null);
get_template_part("/template-parts/service-detail/service-listing", null);
get_template_part("/template-parts/seo-audit/audit-quote", null);
get_footer();
?>
\ No newline at end of file
<section class="AUDIT-INNER-BANNER pb-40">
<div class="container">
<div class="top-title">
<h1>Best Competitor Analysis Tool for you</h1>
</div>
</div>
</section>
\ No newline at end of file
<section class="COMPARISON-FORM pt-80">
<div class="container">
<div class="section-title top-title">
<h3>Find Keyword GAP Study from our best competitor analysis tool</h3>
<p>Unable to find competion gap to perform in google search, try our best competitor analysis tool, which gives
you the detail data of your competitors</p>
</div>
<div class="row">
<div class="col-sm-6">
<div class="input-field">
<input type="text" placeholder="Website URL">
</div>
</div>
<div class="col-sm-6">
<div class="input-field">
<input type="text" placeholder="Competitor’s Website URL">
</div>
</div>
</div>
<div class="submit-field ">
<button class="btn btn-start-project-white">
Analyze
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z"
fill="white" />
</svg>
</button>
</div>
<div class="submit-field download-seo-audit">
<input type="submit" value="Experimental Download">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M-6.11959e-07 9L12.17 9L6.58 14.59L8 16L16 8L8 6.99382e-07L6.59 1.41L12.17 7L-7.86805e-07 7L-6.11959e-07 9Z"
fill="white" />
</svg>
</div>
</div>
</section>
\ No newline at end of file
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