a:2:{s:16:"site_wide_header";a:2:{i:0;a:12:{s:2:"id";i:2050;s:5:"title";s:18:"Fix captcha styles";s:4:"code";s:241:"#brxe-kojnaz form input{
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    margin-top: 0 !important;
	padding-bottom: 11px !important;
}

#brxe-kojnaz form{
 position: relative !important;
}

";s:9:"code_type";s:3:"css";s:8:"location";s:16:"site_wide_header";s:11:"auto_insert";i:1;s:13:"insert_number";i:1;s:9:"use_rules";b:0;s:5:"rules";a:0:{}s:8:"priority";i:10;s:14:"location_extra";s:0:"";s:20:"shortcode_attributes";a:0:{}}i:1;a:12:{s:2:"id";i:1872;s:5:"title";s:15:"Ajax Card Style";s:4:"code";s:1247:".ajax-style-card #brxe-vbytqs{
	position: relative;
}
.ajax-style-card #brxe-vbytqs:before{
  content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 101px solid transparent;
    border-bottom: 70px solid white;
    z-index: 5;
    left: 0;
    transform: rotate(180deg);
}

   
.ajax-style-card {
	background-color: #f5f5f5;
}
.ajax-style-card #brxe-ciaxux{
	display: grid; 
	grid-template-columns: 1fr 1.5fr;
}
.ajax-style-card #brxe-vbytqs{
	position: relative;
	overflow: hidden; 
	min-height: 255px;
}
.ajax-style-card #brxe-vbytqs img{
	bottom: 0;
    display: flex;
    height: 100%;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute!important;
    right: 0;
    top: 0;
    width: 100%;
}

.ajax-style-card #brxe-hkpbaa{
	padding: 25px;
}
.ajax-style-card #brxe-hkpbaa h3{
	font-size: 28px;
    line-height: 1.1;
    margin-top: 1px;
}
.brxe-post-excerpt{
	margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
.ajax-style-card #brxe-vbytqs img{
    min-width: 30em;
  }
}

@media screen and (max-width: 478px) {
.ajax-style-card #brxe-ciaxux{
	grid-template-columns: 1fr;
  }
}
";s:9:"code_type";s:3:"css";s:8:"location";s:16:"site_wide_header";s:11:"auto_insert";i:1;s:13:"insert_number";i:1;s:9:"use_rules";b:0;s:5:"rules";a:0:{}s:8:"priority";i:10;s:14:"location_extra";s:0:"";s:20:"shortcode_attributes";a:0:{}}}s:10:"everywhere";a:1:{i:0;a:12:{s:2:"id";i:1745;s:5:"title";s:11:"Ajax Script";s:4:"code";s:1117:"function wpb_hook_javascript() {?>
 <script type="text/javascript">
$('.cat-list_item').on('click', function() {
  $('.cat-list_item').removeClass('active');
  $(this).addClass('active');
  $.ajax({
    type: 'POST',
    url: '/wp-admin/admin-ajax.php',
    dataType: 'html',
    data: {
      action: 'filter_projects',
      category: $(this).data('id'),
    },
    success: function(res) {
      $('.project-tiles').html(res);
    }
  })
});
   </script>
<?php }
add_action('wp_footer', 'wpb_hook_javascript');

function filter_projects() {
  $catID = $_POST['category'];

  $ajaxposts = new WP_Query([
    'post_type' => 'post',
    'posts_per_page' => 6,
    'cat' => $catID,
  ]);
  $response = '';

  if($ajaxposts->have_posts()) {
    while($ajaxposts->have_posts()) : $ajaxposts->the_post();
	    $response .= do_shortcode('[bricks_template id="1840"]');
    endwhile;
  } else {
    $response = 'empty';
  }

  echo $response;
  exit;
}
add_action('wp_ajax_filter_projects', 'filter_projects');
add_action('wp_ajax_nopriv_filter_projects', 'filter_projects');

";s:9:"code_type";s:3:"php";s:8:"location";s:10:"everywhere";s:11:"auto_insert";i:1;s:13:"insert_number";i:1;s:9:"use_rules";b:0;s:5:"rules";a:0:{}s:8:"priority";i:10;s:14:"location_extra";s:0:"";s:20:"shortcode_attributes";a:0:{}}}}