src/public/class-wordlift-navigator-shortcode.php 1 location
|
@@ 37-48 (lines=12) @@
|
| 34 |
|
'squared_thumbs' => false, |
| 35 |
|
), $atts ); |
| 36 |
|
|
| 37 |
|
foreach ( |
| 38 |
|
array( |
| 39 |
|
'with_carousel', |
| 40 |
|
'squared_thumbs', |
| 41 |
|
) as $att |
| 42 |
|
) { |
| 43 |
|
|
| 44 |
|
// See http://wordpress.stackexchange.com/questions/119294/pass-boolean-value-in-shortcode |
| 45 |
|
$shortcode_atts[ $att ] = filter_var( |
| 46 |
|
$shortcode_atts[ $att ], FILTER_VALIDATE_BOOLEAN |
| 47 |
|
); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
/* |
| 51 |
|
* Display the navigator only on the single post/page. |
src/shortcodes/wordlift_shortcode_faceted_search.php 1 location
|
@@ 27-35 (lines=9) @@
|
| 24 |
|
|
| 25 |
|
), $atts ); |
| 26 |
|
|
| 27 |
|
foreach ( |
| 28 |
|
array( |
| 29 |
|
'show_facets', |
| 30 |
|
'with_carousel', |
| 31 |
|
'squared_thumbs', |
| 32 |
|
) as $att |
| 33 |
|
) { |
| 34 |
|
|
| 35 |
|
// See http://wordpress.stackexchange.com/questions/119294/pass-boolean-value-in-shortcode. |
| 36 |
|
$shortcode_atts[ $att ] = filter_var( |
| 37 |
|
$shortcode_atts[ $att ], FILTER_VALIDATE_BOOLEAN |
| 38 |
|
); |