Beispiel #1
0
 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 '';
     }
 }
Beispiel #2
0
 public function __construct($url, $text, $icon, $placement)
 {
     parent::__construct($url, $text, $icon, $placement);
 }