A Tumblr Theme parser in PHP.
Tired of getting sick of Tumblr's online HTML editor for custom themes? With Tumblr Parser you can edit a theme in your favourite HTML editor and render the output in your browser on your own/local server. So you can create themes for Tumblr without editing the HTML in Tumblr's online HTML editor.
The project outlines as described in my blog post about Open Source Software Collaboration.
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to composer.json:
composer require thefox/tumblr-parserTo get started first look into the example.php in the example directory. There are several ways to use this tool. You can generate a whole weblog or just a single post. You can do this in your browser or in background in your shell.
See example in example directory.
{Title}{Description}{CustomCSS}{block:PermalinkPage}{block:IndexPage}{block:PostTitle}, {PostTitle}{block:Pagination}{block:PreviousPage}{block:NextPage}{PreviousPage}{NextPage}{CurrentPage}{TotalPages}{block:AskEnabled}{AskLabel}{block:HasPages}{block:Pages}{URL}{Label}{block:Posts}{block:Text}{block:Link}{block:Photo}{block:Photoset}{Permalink}{PostID}{PhotoAlt}{block:Caption}{Caption}{block:LinkURL}{LinkURL}{LinkOpenTag}{LinkCloseTag}{PhotoURL-500}{block:Caption}{Caption}{block:Photos}{URL}{Name}{Target}{block:Description}{Description}{Question}{Answer}{Asker}{block:Date}{DayOfMonth}{DayOfMonthWithZero}{DayOfWeek}{ShortDayOfWeek}{DayOfWeekNumber}{DayOfMonthSuffix}{DayOfYear}{WeekOfYear}{Month}{ShortMonth}{MonthNumber}{MonthNumberWithZero}{Year}{ShortYear}{AmPm}{CapitalAmPm}{12Hour}{24Hour}{12HourWithZero}{24HourWithZero}{Minutes}{Seconds}{Timestamp}{block:PostNotes}{PostNotes}{NoteCount}{NoteCountWithLabel}{block:HasTags}{block:Tags}{Tag}{TagURL}{LikeButton}{NoteCount}You're welcome to contribute to this project. Fork this project at https://github.com/TheFox/tumblr-parser. You should read GitHub's How to Fork a Repo.