function location_cards($atts, $content) { global $wpdb; $atts = shortcode_atts(array("for" => null, "type" => null, "with" => null, "of" => null, "using" => 'inline'), $atts); $mm = array(); if (!is_null($atts['for'])) { $mm['Region'] = $atts['for']; } if (!is_null($atts['type'])) { $mm['type'] = $atts['type']; } if (!is_null($atts['with'])) { if (!is_null($atts['of'])) { $col = $atts['with']; // Normalize & quote if necessary if (preg_match('/[^A-Za-z0-9]/', $col)) { $col = $wpdb->escape($col); $col = "'{$col}'"; } $values = explode("/", $atts['of']); $mm[$col] = $values; } } ob_start(); the_occupy_sandy_cards(array("matches" => $mm, "template-class" => $atts['using'])); $html = ob_get_clean(); return $html; }
<?php get_template_part('content', 'page'); ?> </div> <?php comments_template('', true); ?> <?php foreach ($filters as $axis => $ff) { options_filter_ul($ff, $axis); } ?> <div class="container"> <?php the_occupy_sandy_cards(); ?> <div class="card tile-always-display"> <h5 class="cardType">Start Your Own</h5> <p class="cardDetails">If there is an urgent need in the area you were searching in, please let us know at <a href="mailto:OccupySandy@interoccupy.net">OccupySandy@interoccupy.net</a></p> </div> </div> </div><!-- #content --> </div><!-- #primary --> <?php get_footer();