How to do something between exact two dates in PHP?

Sometimes you need to show something on your website in timeframe. This snippet will show you how to do it precisely:

Flamingo plugin with proper polish csv export

In case anyone searching I’ve created a modified version of Flamingo plugin for WordPress. Now it exports proper polish csv files out of box (encoded in Windows-1250 and delimited with semicolons).

Download here: http://realhe.ro/pub/flamingo-polish-export.zip

Install using zip upload ability in WordPress or by FTP.

How to access language var from PHP in Grav CMS?

Gravs documentation is a little bit harsh on PHP developers that want to write plugins. What can you do in this situation? Look trough source code, check other plugins or var_dump $this object 🙂

I’ve spent some time searching for an answer how to access language var in plugins class. And this is it:

// Will output two letter ISO 3166-1 alpha-2 code of country
$language =  $this->grav['language']; 
$language->getLanguage();

Have fun with coding and don’t get crazy during that 🙂