Camp.php
/**
     * Make amp-facebook component
     * @param string id Facebook post URL
     * @param array attrs List of element attributes
     * @return object amp-facebook node
     */
Make amp-facebook component
@param string id Facebook post URL
@param array attrs List of element attributes
@return object amp-facebook node
Make amp - facebook component @param string id Facebook post URL @param array attrs List of element attributes @return object amp - facebook node
private function _makeAmpFacebookPost($id, $attrs){
        unset($attrs['src']);
        if(isset($attrs['frameborder']))
            unset($attrs['frameborder']);
        $attrs['layout'] = 'responsive';
        $attrs['data-href'] = $id;
        $amp_facebook = $this->doc->createElement('amp-facebook');
        $this->_setAttribute($amp_facebook, $attrs);
        $this->_addComponent('amp-facebook');
        return $amp_facebook;
    }
private function _makeAmpFacebookPost ( $ id , $ attrs ) { unset ( $ attrs [ 'src' ] ) ; if ( isset ( $ attrs [ 'frameborder' ] ) ) unset ( $ attrs [ 'frameborder' ] ) ; $ attrs [ 'layout' ] = 'responsive' ; $ attrs [ 'data-href' ] = $ id ; $ amp_facebook = $ this -> doc -> createElement ( 'amp-facebook' ) ; $ this -> _setAttribute ( $ amp_facebook , $ attrs ) ; $ this -> _addComponent ( 'amp-facebook' ) ; return $ amp_facebook ; }
Make amp-facebook component
 @param string id Facebook post URL
 @param array attrs List of element attributes
 @return object amp-facebook node
Make amp - facebook component @param string id Facebook post URL @param array attrs List of element attributes @return object amp - facebook node