Exemple #1
0
/**
 * Output the ID of the idea currently being iterated on.
 *
 * @package WP Idea Stream
 * @subpackage ideas/tags
 *
 * @since 2.0.0
 *
 * @uses  wp_idea_stream_ideas_get_id() to get the ID
 */
function wp_idea_stream_ideas_the_id()
{
    echo wp_idea_stream_ideas_get_id();
}
Exemple #2
0
        /**
         * Display the Featured image for the current idea
         *
         * @since  2.3.0
         *
         * @return string HTML Output
         */
        public function featured_image()
        {
            if (!wp_idea_stream_featured_images_allowed() || !current_theme_supports('post-thumbnails') || !bp_is_group() || !wp_idea_stream_is_single_idea()) {
                return;
            }
            $args = bp_parse_args(array(), array('size' => 'post-thumbnail', 'attr' => '', 'container_class' => 'post-thumbnail'), 'wp_idea_stream_featured_image');
            ?>
		<div class="<?php 
            echo sanitize_html_class($args['container_class']);
            ?>
">
			<?php 
            echo get_the_post_thumbnail(wp_idea_stream_ideas_get_id(), $args['size'], $args['attr']);
            ?>
		</div><!-- .post-thumbnail -->
		<?php 
        }