Title: Editor for Timber
Author: dweipert
Published: <strong>29. 10. 2020</strong>
Last modified: 16. 12. 2020

---

Prohledat pluginy

![](https://ps.w.org/editor-for-timber/assets/banner-772x250.jpg?rev=2411861)

Plugin **nebyl testován na 3 nejnovějších verzích WordPressu.** Nemusí už být tedy
podporován a u novějších verzí WordPressu může mít problémy s kompatibilitou a může
být nestabilní.

![](https://ps.w.org/editor-for-timber/assets/icon-128x128.png?rev=2411861)

# Editor for Timber

 Autor: [dweipert](https://profiles.wordpress.org/drogueronin/)

[Stáhnout](https://downloads.wordpress.org/plugin/editor-for-timber.1.0.2.zip)

 * [Podrobnosti](https://cs.wordpress.org/plugins/editor-for-timber/#description)
 * [Hodnocení](https://cs.wordpress.org/plugins/editor-for-timber/#reviews)
 * [Vývojáři](https://cs.wordpress.org/plugins/editor-for-timber/#developers)

 [Podpora](https://wordpress.org/support/plugin/editor-for-timber/)

## Popis

### Features

 * adds a metabox to configurable Post-Types to create and edit Twig templates
 * adds Twig support to the WP Theme & Plugin editors
    - you can even customize the CodeMirror theme

### Plugin Dependencies

 * https://wordpress.org/plugins/timber-library/
 * https://wordpress.org/plugins/classic-editor/

### How to use the MetaBox Feature

The plugin uses the path defined in `Timber::$locations` as the templates path or
falls back to the uploads folder if none is provided.

Either adjust your `Timber::render('page.twig', $context)`-functions like this:

    ```
    $filenames = [TimberEditor::getTemplateFilename(), 'page.twig'];
    Timber::render($filenames, $context);
    ```

like this

    ```
    TimberEditor::render('page.twig', $context);
    # 'page.twig' serves as a fallback if the current posts's template doesn't exist
    ```

or like this

    ```
    TimberEditor::renderPost('page.twig', $context);
    # renderPost() automatically adds ['post' => new Timber\Post()] to the $context
    ```

## Recenze

Pro tento plugin nejsou žádné recenze.

## Autoři

Editor for Timber je otevřený software. Následující lidé přispěli k vývoji tohoto
pluginu.

Spolupracovníci

 *   [ dweipert ](https://profiles.wordpress.org/drogueronin/)

Plugin „Editor for Timber“ byl přeložen do 1 jazyku. Děkujeme všem [překladatelům](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber/contributors)
za jejich pomoc.

[Přeložte “Editor for Timber” do svého jazyka.](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)

### Zajímá vás vývoj?

[Prohledejte kód](https://plugins.trac.wordpress.org/browser/editor-for-timber/),
podívejte se do [SVN repozitáře](https://plugins.svn.wordpress.org/editor-for-timber/),
nebo se přihlaste k[ odběru protokolu vývoje](https://plugins.trac.wordpress.org/log/editor-for-timber/)
pomocí [RSS](https://plugins.trac.wordpress.org/log/editor-for-timber/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Verze **1.0.2**
 *  Poslední aktualizace **před 6 roky**
 *  Aktivních instalací **50+**
 *  Verze WordPressu ** 5.5 nebo novější **
 *  Testováno až do WordPressu **5.5.19**
 *  Verze PHP ** 7.4 nebo novější **
 *  Jazyky
 * [English (US)](https://wordpress.org/plugins/editor-for-timber/) a [German](https://de.wordpress.org/plugins/editor-for-timber/).
 *  [Přeložte do vašeho jazyka](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)
 * Štítky
 * [templates](https://cs.wordpress.org/plugins/tags/templates/)[Timber](https://cs.wordpress.org/plugins/tags/timber/)
   [twig](https://cs.wordpress.org/plugins/tags/twig/)
 *  [Podrobnosti](https://cs.wordpress.org/plugins/editor-for-timber/advanced/)

## Hodnocení

Zatím nebyly zadány žádné recenze.

[Your review](https://wordpress.org/support/plugin/editor-for-timber/reviews/#new-post)

[Zobrazit všechny recenze](https://wordpress.org/support/plugin/editor-for-timber/reviews/)

## Spolupracovníci

 *   [ dweipert ](https://profiles.wordpress.org/drogueronin/)

## Podpora

Potřebujete pomoc?

 [Fórum podpory](https://wordpress.org/support/plugin/editor-for-timber/)