2017 © Pedro Peláez
 

library wordpress

Wordpress Addon for the Disco PHP Framework

image

discophp/wordpress

Wordpress Addon for the Disco PHP Framework

  • Sunday, June 8, 2014
  • by discophp
  • Repository
  • 2 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Wordpress Addon

Sick of Wordpress's bloated code but love their administration panel? Your in the right place., (*1)

How to use

First install wordpress via their instructions, (*2)

Then remove the index.php file from the installation directory, you can move the installation directory to any where now to hide it from public view and mask the login without affecting the frontend., (*3)

Prep your application by registering the Wordpress Facades with the Disco container:, (*4)

Make the WP Facade, (*5)

   Disco::make('WP',function(){
        return new Disco\addon\Wordpress\classes\WordPress;
   });

Create a Router Filter for the wordpress directory, (*6)

    Router::filter(WP::path().'/{*}')->to('WordPress');

Thats it! Wordpress is set up!, (*7)

Override any of the templates used

You can override the templates used by the Wordpress Addon by just creating a folder under your template folder called wordpress/ and naming the template you wish to override by the same name as the one used by the Addon, (*8)

List of Templates, (*9)

Work with strictly the Data

Using the method:, (*10)

    $data = WP::get([option],[vars]);

You can receive mysqli_result objects back, (*11)

[option], (*12)

  • index : Primary wordpress feed of articles listed by date.
  • search : Search for regex matches of a search term in the database.
  • list-posts : Return the most recent posts as a feed.
  • post : A single post identified by the slug.
  • tag : Articles sorted by date that used a particular tag.
  • category : Articles sorted by date that used a particular category.
  • author : Articles written by a particular author.
  • recent-posts : List of recent posts.
  • top-terms : Top X terms either 'category' or 'post_tag'.
  • top-authors : top X authors.

The Versions

08/06 2014

dev-master

9999999-dev

Wordpress Addon for the Disco PHP Framework

  Sources   Download

Apache License V2

The Requires

  • php >=5.4.0

 

by Bradley Hamilton

08/06 2014

1.0

1.0.0.0

Wordpress Addon for the Disco PHP Framework

  Sources   Download

Apache License V2

The Requires

  • php >=5.4.0

 

by Bradley Hamilton