function rw_the_post_shortcode($atts) { RWLogger::LogEnterence('rw_the_post_shortcode'); if (RWLogger::IsOn()) { RWLogger::Log('rw_the_post_shortcode', var_export($atts, true)); } extract(shortcode_atts(array('post_id' => false, 'type' => 'blog-post', 'add_schema' => true), $atts)); if (is_string($add_schema)) { $add_schema = 'true' === strtolower($add_schema); } return rw_get_post_rating($post_id, $type, $add_schema); }
function rw_the_post_shortcode($atts) { extract(shortcode_atts(array('post_id' => 1, 'type' => 'blog-post', 'add_schema' => false), $atts)); return rw_get_post_rating($post_id, $type, $add_schema); }