Пример #1
0
 function get_links($rel = 'alternate')
 {
     return apply_filters('feedwordpie_item_get_links', parent::get_links($rel), $rel, $this);
 }
        function get_links($linktypes) {
        
            $mylinks = array();
            foreach ($linktypes as $type)
            {
                $links =parent::get_links($type);

                if (!is_null($links)) {
                    foreach ($links as $link) {
                        $mylinks[] = array('rel' => $type, 'href' => $link);
                    }
                }
            }
            return $mylinks;
        }