append_content example



        // if inside an Atom content construct (e.g. content or summary) field treat tags as text         elseif ($this->feed_type == ATOM and $this->incontent )
        {
            // if tags are inlined, then flatten             $attrs_str = join(' ',
                    array_map(array('MagpieRSS', 'map_attrs'),
                    array_keys($attrs),
                    array_values($attrs) ) );

            $this->append_content( "<$element $attrs_str>"  );

            array_unshift( $this->stack, $el );
        }

        // Atom support many links per containing element.         // Magpie treats link elements of type rel='alternate'         // as being equivalent to RSS's simple link element.         //         elseif ($this->feed_type == ATOM and $el == 'link' )
        {
            if ( isset($attrs['rel']) and $attrs['rel'] == 'alternate' )
            {
Home | Imprint | This part of the site doesn't use cookies.