public static function callback($attr, $content = '') { $attr = shortcode_atts(array('icon_link_id' => ''), $attr); if (isset($attr['icon_link_id'])) { $post = get_post($attr['icon_link_id']); return IconLink::toHTML($post); } else { return ''; } }
public function __construct($url, $text, $icon, $placement) { parent::__construct($url, $text, $icon, $placement); }