Skip to content

WordPress plugin to roll your own custom lorem ipsum generator

Notifications You must be signed in to change notification settings

joshesslinger/wp-any-ipsum

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Any Ipsum

WordPress plugin to roll your own custom lorem ipsum generator - used by the Bacon Ipsum web site

Code Climate

What's in here?

  • wp-anyipsum.php - WordPress plugin wrapper (loades classes, registers core hooks, etc)
  • readme.txt - Info for the WordPress repo
  • uninstall.php - WordPress uninstall code
  • assets/ - Assets for the WordPress plugin repository
  • lang/ - For future translastions
  • lib/
    • admin-help - Help page for the plugin
    • default-custom.txt - Default custom text (meat)
    • default-filler.txt - Default filler text (lorem ipsum)
    • class-WPAnyIpsumCore.php - Exposes filters used by other classes
    • class-WPAnyIpsumForm.php - Shortcode for generating the form to allow visitors to generate your custom filler
    • class-WPAnyIpsumSettings.php - Admin settings for managing your custom filler text
    • class-WPAnyIpsumAPI.php - API endpoint (supports JSON and plain text)
    • class-WPAnyIpsumOembed.php - oEmbed endpoint
    • class-WPAnyIpsumGenerator.php - The WPAnyIpsumGenerator class for generating custom filler text.

Revision History

v1.4.0 June 9, 2015

  • Added 'html' format to API, which wraps each paragraph in

    tags.

  • Added range values for the 'paras' parameter to allow random number of paragraphs, ex: paras=3-7
  • Added charset to Content-Type header for all API calls
  • Added Content-Length header for all API calls

v1.3.0 May 29, 2015

  • API now supports a 'format' parameter to specify return format
  • 'text' return format added to return ipsum in plain text

v1.2.3 March 27, 2015

  • Trim each word before adding it to a sentence

v1.2.2 March 6, 2015

  • Bux fix for API POST requests

v1.2.1 March 4, 2015

  • Code refactoring to use filter_input() and better WordPress coding standards
  • Fixed activation bug that was not setting up the initial oEmbed settings

v1.2.0 January 7, 2015

  • Added admin notice to visit settings page on plugin activation
  • Bug fix for sentences in JSON API

v1.1.0 October 22, 2014

  • Added a header for the form shortcode, ex: [anyipsum-form]Give our ipsum a try! It's the best![/anyipsum-form]
  • Added sentence mode for ipsum generators that want to use full sentences as custom words.
  • The ipsum generator on baconipsum.com site is now powered by this plugin!

v1.0.1 September 12, 2014

  • Initial Release

About

WordPress plugin to roll your own custom lorem ipsum generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%