Giter Site home page Giter Site logo

anytizer / hosted-content-importer.wp Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 3.0 2.9 MB

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

Home Page: https://wordpress.org/plugins/hosted-content-importer/

License: MIT License

CSS 1.77% PHP 96.52% Shell 0.56% Batchfile 0.56% JavaScript 0.60% Hack 0.01%
wordpress-plugin third-party content importer hci parsedown gist jotform

hosted-content-importer.wp's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.