Skip to content

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

Notifications You must be signed in to change notification settings

marcus-ludwig/hosted-content-importer.wp

 
 

Repository files navigation

Hosted Content Importer (HCI)

Includes a third-party content within WordPress blog texts.

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.5.2
  • MariaDB Version 10.1.13
  • PHP: Version 7.0.5
  • Apache: Version: 2.4.18

Others

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

Experimental Work

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

Usage examples

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

Implemented

  • [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=""]
  • [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=""]

Work|Concepts in Progress

  • [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"]

Parameters

  • Source: Where to seek the data (eg. Content Hosting Server). Examples:
    • markdown
    • wikipedia
    • database
    • url/api
    • file
  • ID: Content ID (unique identifier) of the data you want. Often, full URL as well.
  • Section: Additional parameter to identify the particular section (piece) of the content.

Dependency

  • Uses Parsedown to mark down the HTML output.

Deployment

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.2%
  • CSS 2.2%
  • Other 1.6%