Skip to content

Instantly share code, notes, and snippets.

View flokosiol's full-sized avatar

Flo Kosiol flokosiol

View GitHub Profile

Keybase proof

I hereby claim:

  • I am flokosiol on github.
  • I am flokosiol (https://keybase.io/flokosiol) on keybase.
  • I have a public key ASC7xUuxRbH6BOL-ACsuNCOOU66ZX_E79_vSi46YVQrvPQo

To claim this, I am signing this object:

@flokosiol
flokosiol / translations.php
Created December 17, 2016 21:57
Reset 'uptodate' flag of all translations if page is saved in default language via kirby panel
<?php
kirby()->hook('panel.page.update', function($page) {
// only trigger if page has default language
if (site()->language()->code() == site()->defaultLanguage()->code()) {
foreach(site()->languages() as $language) {
// don't reset default language itself
if ($language->code() == site()->defaultLanguage()->code()) {
continue;
}
@flokosiol
flokosiol / getkirby-panel-save-button-fixed.css
Last active September 8, 2020 09:52
Fixes the Kirby (getkirby.com) panel topbar and the save button at the top of the browser window.
/*
Fixes the Kirby (getkirby.com) panel topbar and the save button at the top of the browser window.
Put this css snippet in your assets/css/panel.css file and add the following to your site/config/config.php
c::set('panel.stylesheet', 'assets/css/panel.css');
@see: http://forum.getkirby.com/t/move-the-save-button/1867/11?u=flokosiol
*/
.topbar {
position: fixed;