<?php # -*- coding: utf-8 -*-

add_action( 'init', array ( 'WPrev_Zill_Plugin_Action', 'init' ) );

class WPrev_Zill_Plugin_Action
{
    /**
     * Creates a new instance.
     *
     * @wp-hook init
     * @see    __construct()
     * @return void
     */
    public static function init()
    {
        new self;
    }

    /**
     * Register the action. May do more magic things.
     */
    public function __construct()
    {
        add_action( 'wprev_zillow_plugin_action', array ( $this, 'wpzillow_slider_action_print' ), 10, 1 );
    }

    /**
     * Prints out reviews
     *
     * Usage:
     *    <code>do_action( 'wprev_zillow_plugin_action', 1 );</code>
     *	
     * @wp-hook wprev_zillow_plugin_action
     * @param int $templateid
     * @return void
     */
    public function wpzillow_slider_action_print( $templateid = 0 )
    {
		$a['tid']=$templateid;
		if($templateid>0){
		//ob_start();
		include plugin_dir_path( __FILE__ ) . 'partials/wp-zillow-review-slider-public-display.php';
		//return ob_get_clean();
		}
    }
}