2017 © Pedro Peláez
 

library tumblr-parser

A Tumblr Theme parser in PHP.

image

thefox/tumblr-parser

A Tumblr Theme parser in PHP.

  • Thursday, June 15, 2017
  • by TheFox
  • Repository
  • 3 Watchers
  • 12 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

Tumblr Parser

A Tumblr Theme parser in PHP., (*1)

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., (*2)

Project Outlines

The project outlines as described in my blog post about Open Source Software Collaboration., (*3)

  • The main purpose of this software is to simulate the Tumblr online editor to provide a developer friendly environment.
  • The features should not go beyond the features and functions Tumblr is providing. So the feature-set is kind of restricted what could be possible in the future. But still, feel free to request features.

Installation

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:, (*4)

composer require thefox/tumblr-parser

Get started

To 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., (*5)

Example

See example in example directory., (*6)

Tumblr Custom Theme Implementation

Basic Variables [incomplete]

  • {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}

Posts [incomplete]

  • {block:Posts}
  • {block:Text}
  • {block:Link}
  • {block:Photo}
  • {block:Photoset}
  • {Permalink}
  • {PostID}

Text Posts [complete]

Photo Posts [incomplete]

  • {PhotoAlt}
  • {block:Caption}
  • {Caption}
  • {block:LinkURL}
  • {LinkURL}
  • {LinkOpenTag}
  • {LinkCloseTag}
  • {PhotoURL-500}

Photoset Posts [incomplete]

  • {block:Caption}
  • {Caption}
  • {block:Photos}

Quote Posts [complete]

  • {URL}
  • {Name}
  • {Target}
  • {block:Description}
  • {Description}

Chat Posts [complete]

Answer Posts [incomplete]

  • {Question}
  • {Answer}
  • {Asker}

Dates [incomplete]

  • {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}

Notes [incomplete]

  • {block:PostNotes}
  • {PostNotes}
  • {NoteCount}
  • {NoteCountWithLabel}

Tags [incomplete]

  • {block:HasTags}
  • {block:Tags}
  • {Tag}
  • {TagURL}

Like and Reblog buttons [incomplete]

  • {LikeButton}
  • {NoteCount}

Theme Options [incomplete]

  • Enabling Booleans [complete]
  • Enabling Custom Text [complete]

Contribute

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., (*7)

The Versions

15/06 2017

dev-master

9999999-dev https://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

05/06 2017

v0.6.0

0.6.0.0 https://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

06/03 2017

v0.5.1

0.5.1.0 https://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

04/09 2016

v0.5.0

0.5.0.0 https://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

19/02 2015

v0.4.4

0.4.4.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

14/10 2014

v0.4.3

0.4.3.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPL-3.0

The Requires

 

The Development Requires

parser theme tumblr

07/08 2014

v0.4.2

0.4.2.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr

12/06 2014

v0.4.1

0.4.1.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr

12/06 2014

v0.4.0

0.4.0.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr

12/06 2014

v0.3.0

0.3.0.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr

12/06 2014

v0.2.0

0.2.0.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr

04/06 2014

v0.1.0

0.1.0.0 http://fox21.at

A Tumblr Theme parser in PHP.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

parser theme tumblr