Skip to content

anytizer/hosted-content-importer.wp

Repository files navigation

Hosted Content Importer (HCI)

Includes a third-party content within WordPress blogs.

This plugin is a for a solution to a specific problem. WordPress developers should expand the $processor->fetch() interface to make it work for their application.

Built On, using

  • WordPress: Version 4.9.8
  • MariaDB Version 10.1.35-MariaDB
  • PHP: Version 7.3.5
  • Apache: Version: 2.4.34

Others

  • Gist - for embedding gist snippets
  • JotForm - for embedding web forms
  • Parsedown - for rendering .md files

Experimental Work

It is an experimental and proof-of-concept work. It may not suit your purpose, by its nature.

Usage examples

  • [third source="PROCESSOR" id="ID/URL" section="" cache="true|false"]

Parameters

  • source: is a content fetcher and processor type that knows from where to seek the data (eg. Content Hosting Server). Examples:
    • markdown
    • wikipedia (todo)
    • database (todo)
    • url/api (todo)
    • file
    • ...
  • id is a URL or unique identifier given by the third parties.
  • section is an optional parameter to identify the particular deep section of the content.
  • cache is a boolean directive whether to reuse the cached content.

Implemented sources

  • [third source="analytics" id="UA-00000000-0" section=""]
  • [third source="database" id="0" section="0"] - partially developed, left for developers
  • [third source="file" id="/tmp/static.txt" section=""] - Do NOT use on shared servers
  • [third source="gist" id="0000000000" section="file.php"]
  • [third source="jotform" id="0000000000" section=""]
  • [third source="markdown" id="https://.../readme.md" section=""]
  • [third source="youtube" id="v0000000000" section=""]
  • [third source="qr" id="" section="internal"]

Work|Concepts in Progress

The list below is a concept only and is not implemented.

  • [third source="api" id="0" section="0"]
  • [third source="url" id="0" section="0"]
  • [third source="wikipedia" id="PHP" section="Security"]
  • [third source="wikipedia" id="At_sign" section="Programming"]

Dependency

  • Uses Parsedown to mark down the HTML output.

Deployment

About

WordPress plugin to fetch programmed (dynamic) contents from third party resources

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages