/** * Для вывода отдельного опроса * @param int $id ID опроса * @return HTML */ function democracy_poll($id = 0, $before_title = '', $after_title = '') { echo get_democracy_poll($id, $before_title, $after_title); }
function poll_shortcode($atts) { return '<div class="dem-poll-shortcode">' . get_democracy_poll(@$atts['id']) . '</div>'; }