=== Plugin Name === Contributors: vthierry Tags: syndication, export, http request, rendering, feed Requires at least: 3.0.1 Tested up to: 6.4 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html == Description == This plugins offers the following "ground" functionnalities: * 1. Display the content of a post or page without any header, sidebar and footer. * 2. Importing the content from an external web site * 3. Importing an internal content of the wordpress site * 4. A few other deprecated functionalities = 1. Displaying a post or page without any header, sidebar and footer = In order to render the raw content of a post or page without any header, sidebar and footer use the link: `http://#mywordpressadress?httpsyndication&p=#post_or_page_id&title=#1_or_0` where: * `#mywordpressadress` is the wordpress web site adress. * `#post_or_page_id` is the post or page id (you can read the post id in the http link when you edit the post). * `#1_or_0` defines whether the post title (enclosed in a `

` HTML tag) is displayed (default is `1`, i.e., true). *Remarks:* * In this text all words prefixed by `#`, e.g., `#tag` or `#id` correspond to a variable, e.g., `#tag` means any tag name or `#id` means an ID label. * The post content is exported after filtering. = 2. Importing the content from an external web site = In order to import an external a post or page contents in another post or page, use the following shortcode: `[import url="#external_resource_location" ]` where: * `#external_resource_location` is the external web site http location. Inside the `[import ..]` shortcode, the following options allows to select and adjust the content to import: * Content selection: * `body=1` : in order to only import the `..` part of the `....` page. * `tag_id=#id` : only extract the content of the 1st tag of the given id, i.e. the `<#tag id="#id">..` part, where `#tag` is any tag (e.g., `div`, `span`, ..). * `tag_class=#class` : only extract the content of the 1st tag of the given class, i.e. the `<#tag class="#class">..` part, where `#tag` is any tag (e.g., `div`, `span`, ..); the value `#class` can be a regex to deal with multiple defined classes. * `tag_name=#name` : only extract the content of all tags of the given name, i.e. the `<#name ..>..` part (for code safety only 100 tags can be extracted). * Content filtering: * `noscript=1` : in order to delete all `..` parts, avoiding any active JavaScript running from the imported HTML. * `raw_href=1` : in order to provide raw href values, instead of properly relocating relative href in the source HTML code, as done by default. * `mediawiki=1` : adds the `?printable=yes&action=render` query to the URL, in order to properly syndicate mediawiki sites. * `style=#style` or `class=#class` allows to encapsulate the content in a `
Plugins -> Add new` page choose `upload plugin in .zip format via this page` 3. Browse and select the http_syndication.zip to upload 4. Activate the plugin through the 'Plugins' menu in WordPress *Automatic installation* 1. In your WordPress `Dashboard -> Plugins -> Add new` page search for *http syndication* 2. Install the plugin and activate it through the 'Plugins' menu in WordPress == Changelog == = 1.8 = Improve the documentation. = 1.7 = Improve the introduction of style or class in import. = 1.6 = Add the title option of the offering content to other sites Reorganize the doc page, and update code accordingly Declare deprecated some features, still available. = 1.5 = Now wrap with iframe and embed Better support of remote pages parsing = 1.4 = Add the refering content by tiny URL functionnality = 1.3 = Adapt the shortcode parsing to editor that escape '&' = 1.2 = Add the `[import banner=..]` shortcode functionality. = 1.1 = Adding the `[import ..]` shortcode functionality. Uses the [monkeysuffrage/phpuri](https://github.com/monkeysuffrage/phpuri) open PHP library for converting relative URLs to absolute, thanks! = 1.0 = Nothing special with this trivial plugin, debugged with WP_DEBUG.