This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function linerSearch (matrix2D, target) { | |
for (i =0; i < matrix2D.length; i++){ | |
for(j=0; j< matrix2D[i].length; j++){ | |
// console.log(matrix2D[i][j]) | |
if(matrix2D[i][j] == target) { | |
return console.log([i, j]) | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Template Name: Products */ ?> | |
<?php | |
get_header(); | |
$site_url=getSiteURL(); | |
$StateRelatedProducts=productsRelatedToZipcodeState(); | |
$product_categories_data = categories(); //defined in functions.php | |
$firstCategory=$product_categories_data[0]->name; //get first category name | |
$firstCategoryslug=$product_categories_data[0]->slug; //get first category slug | |
$display_domainName = getDomainData()->domain_name; //get domain name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Template Name: BuildPrice */ ?> | |
<?php get_header()?> | |
<script src='https://www.google.com/recaptcha/api.js'></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.validate.js"></script> | |
<script> | |
var templateUrl = '<?= get_bloginfo("template_url"); ?>'; | |
var insideView = true; | |
var buildingConfig = null; | |
<?php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header()?> | |
<?php $contact_numbers_data = contactPhoneNumbers(); ?> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('ul.blog_categories a').click(function(){ | |
var selected_category = $(this).text(); | |
<?php | |
echo "var blog_url='".get_page_link( get_page_by_title( 'whatsNew' )->ID )."';"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// **********Ajax Code Starts for DealerQuote Filter*********** | |
add_action( 'wp_ajax_quotefilter', 'dealerQuoteFilter'); | |
add_action( 'wp_ajax_nopriv_quotefilter', 'dealerQuoteFilter'); | |
function dealerQuoteFilter(){ | |
$current_user = wp_get_current_user(); | |
$display_name = $current_user->display_name; | |
$buildingCode_ImageArray=buildingConfigData(); | |
$request_quote_pod = pods('request_quote'); | |
$params = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Template Name: Products */ ?> | |
<?php get_header(); | |
$StateRelatedProducts=productsRelatedToZipcodeState(); | |
$product_categories_data = categories(); //defined in functions.php | |
?> | |
<script type="text/javascript"> | |
<?php | |
$roofstyle_pod = pods('roof_style_dropdown'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* Template Name: Products */ ?> | |
<?php get_header(); | |
$StateRelatedProducts=productsRelatedToZipcodeState(); | |
$product_categories_data = categories(); //defined in functions.php | |
?> | |
<script type="text/javascript"> | |
<?php | |
$roofstyle_pod = pods('roof_style_dropdown'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); | |
$domain_name = getDomainData()->name; | |
?> | |
<div class="container"> | |
<div class="tab-content"> | |
<div class="tab-pane active" id="carport" role="tabpanel"> | |
<div class="row"> | |
<?php | |
$product_region_pod=pods('product_region'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header();?> | |
<?php | |
$categories = post_categories(); | |
$domain_name = getDomainData()->name; | |
$post_pod = pods('post'); | |
if($_GET["type"]){ | |
$params = array( | |
"where" => "domain_name.name = '$domain_name' AND category.name ='".$_GET['type']."' ", |
NewerOlder