/** * Set's up the core shortcode and starts the shortcode * replacement process using the WordPress shortcode API. * * @access public * @since 0.8 * @static * @param array $atts The shortcode $atts array. * @param string $content The content of an enclosing shortcode tag. * @param array $results The cnRetrieve query results. * @param object $template An instance of the cnTemplate object. * * @return string */ private function __construct($atts, $content, $results, $template) { // Store the entry query array $results and the cnTemplate object $template // so they can be easily passed to the template part shortcode callbacks. $this->atts = $atts; $this->template = $template; $this->results = $results; $this->html = $this->do_shortcode(cnShortcode::removePBR($content)); }