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 | |
/////////////////////////////////////////// | |
// Movement Library: | |
////////////////////////////////////////// | |
// Facets: | |
echo facetwp_display( 'facet', 'post_title_autocomplete_search' ); | |
// The Loop | |
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
/** | |
* Ensure that FacetWP detects custom post-type query loops: | |
* NOTE: the query vars must have a custom 'facetwp' parameter, like this: | |
$args = array( | |
'post_type' => 'event', | |
'posts_per_page' => 10, | |
'facetwp' => true, // we added this | |
); | |
$query = new WP_Query( $args ); | |
*/ |
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 id="member-resources-movements"> | |
<?php | |
if( function_exists('facetwp_display') ) | |
{ | |
// Facets: | |
echo ' | |
<div class="movement-library_filters"> | |
' . facetwp_display( 'facet', 'post_title_autocomplete_search' ) . ' | |
</div> |
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 | |
/* | |
Plugin Name: WUWO css2pdf implementation | |
Plugin URI: | |
Description: Using the css2pdf library for generating client side WUWO Session Plan PDF export files. | |
Author: Colin Safranek / css2pdf | |
Version: 1.0 | |
Author URI: https://github.com/Xportability/css-to-pdf | |
*/ |
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 | |
/* ============================================================================= | |
Apply single-session-plan.php to all session plan post types: | |
Uses $session_plan_slugs global defined below | |
========================================================================== */ | |
add_filter( 'template_include', function( $template ) | |
{ | |
// session plan post types array: | |
global $session_plan_slugs; |