HTML slider template tag?
-
Hi there,
Is there a way I can insert a HTML slider straight into a page template?
I got it to work with the gallery, with<?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { BXSG_ThemeUtils::the_post_gallery( array( 'exclude_featured' => 1 ) ); } ?>
What I want to do is
A) Add a bit of styled html text to the gallery slidesor
B) Build an html slide altogether and insert it outside the entry content area.
[slider] This is my first slide. I can contain any html you like. [next-slide] And the shortcode above has made this text be the second slider. [next-slide] And thus we are now having the third slide of this slider. Below we close the initial shortcode to notify the end of the slider. Simple, isn't it? [/slider]
In the plugin code you say
class BXSG_ThemeUtils { /** * Outputs a gallery related to the current post. If you need to change the output, you can use the * <code>get_the_post_gallery</code> function * * @param array $params the parameters that are passed to the [gallery] or [bxgallery] shortcodes to customize * the output. Please refer to the shortcode reference to know which parameters are available. */ public static function the_post_gallery( $params ) { echo self::get_the_post_gallery( $params ); } public static function get_the_post_gallery( $params ) { global $bsxg_plugin; return $bsxg_plugin->gallery_shortcode->process_shortcode( $params ); } }
Can I add HTML to the slider with this? How so?
Thanks for the great code!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘HTML slider template tag?’ is closed to new replies.