This file contains 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: Services | |
*/ | |
get_header(); ?> | |
<?php if (have_posts()): ?> | |
<?php while (have_posts()): the_post(); ?> | |
This file contains 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: Home | |
*/ | |
get_header(); ?> | |
<?php if (have_posts()): ?> | |
<?php while (have_posts()): the_post(); ?> | |
This file contains 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 search_filter($query) { | |
if ( !is_admin() && $query->is_main_query() ) { | |
if ($query->is_home() || $query->is_search()) { | |
$query->set('post_type', array( 'post', 'event' )); | |
} | |
} | |
} | |
add_action('pre_get_posts','search_filter'); ?> | |
<?php if (have_posts()) : ?> |
This file contains 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 | |
$options = array( | |
'' => 'Filter By Type', | |
'event' => 'Events', | |
'post' => 'News', | |
); | |
?> | |
<?php if (isset($_GET['post_type'])): ?> | |
<?php $current = $_GET['post_type'] ?> | |
<?php else: ?> |
This file contains 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
//full | |
if ($('.article-aside').length === 0) { | |
$('.article-content').addClass('full'); | |
}; |
This file contains 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
<div class="article-body"> | |
<div class="shell"> | |
<div class="article-content"> | |
<div class="article-entry"> | |
<?php the_content(); ?> | |
</div><!-- /.article-entry --> | |
</div><!-- /.article-content --> | |
<?php get_template_part('fragments/article-aside'); ?> | |
</div><!-- /.shell --> |
This file contains 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
$submit_btn = $('.last-step'); | |
$submit_btn.on('click', function(e) { | |
$('form').trigger('submit'); | |
e.preventDefault; | |
}); |
This file contains 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 crb_handle_valcher_form() { | |
$post_content = array(); | |
$response = array( | |
'status' => false, | |
'errors' => array(), | |
); | |
$email = $_POST['email']; | |
$post_title = $email; |
This file contains 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
add_action('wp', 'crb_import_joomla_events'); | |
function crb_import_joomla_events() { | |
if (!isset($_GET['events_import'])) { | |
return false; | |
} | |
error_reporting(E_ALL); |
This file contains 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
var widgetTitles = $('.home .cols .widget').find('h2'); | |
widgetTitles.each(function(e) { | |
e.preventDefault; | |
var $linkMore = $(this).find('.view-more'); | |
$linkMore.clone().appendTo($(this)); | |
}); |
OlderNewer