Title: Editor for Timber
Author: dweipert
Published: <strong>29.10.2020</strong>
Last modified: 16.12.2020

---

Шукати плагіни

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

Цей плагін **не перевірявся з останніми 3-ма основними випусками WordPress**. Можливо,
він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності
при використанні з більш новими версіями WordPress.

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

# Editor for Timber

 Від автора [dweipert](https://profiles.wordpress.org/drogueronin/)

[Завантажити](https://downloads.wordpress.org/plugin/editor-for-timber.1.0.2.zip)

 * [Деталі](https://uk.wordpress.org/plugins/editor-for-timber/#description)
 * [Відгуки](https://uk.wordpress.org/plugins/editor-for-timber/#reviews)
 * [Розробка](https://uk.wordpress.org/plugins/editor-for-timber/#developers)

 [Підтримка](https://wordpress.org/support/plugin/editor-for-timber/)

## Опис

### 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
    ```

## Відгуки

Для цього плагіна немає відгуків.

## Учасники та розробники

“Editor for Timber” — проект з відкритим вихідним кодом. В розвиток плагіну внесли
свій вклад наступні учасники:

Учасники

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

“Editor for Timber” було перекладено на 1 локалізацію. Дякуємо [перекладачам](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber/contributors)
за їх роботу.

[Перекладіть “Editor for Timber” на вашу мову.](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)

### Цікавитесь розробкою?

[Перегляньте код](https://plugins.trac.wordpress.org/browser/editor-for-timber/),
перегляньте [сховище SVN](https://plugins.svn.wordpress.org/editor-for-timber/) 
або підпишіться на [журнал розробки](https://plugins.trac.wordpress.org/log/editor-for-timber/)
за допомогою [RSS](https://plugins.trac.wordpress.org/log/editor-for-timber/?limit=100&mode=stop_on_copy&format=rss).

## Мета

 *  Версія **1.0.2**
 *  Останнє оновлення **5 років тому**
 *  Активних встановлень **50+**
 *  Версія WordPress ** 5.5 або вище **
 *  Tested up to **5.5.18**
 *  Версія PHP ** 7.4 або вище **
 *  Мови
 * [English (US)](https://wordpress.org/plugins/editor-for-timber/) і [German](https://de.wordpress.org/plugins/editor-for-timber/).
 *  [Перекладіть на свою мову](https://translate.wordpress.org/projects/wp-plugins/editor-for-timber)
 * Позначки
 * [templates](https://uk.wordpress.org/plugins/tags/templates/)[Timber](https://uk.wordpress.org/plugins/tags/timber/)
   [twig](https://uk.wordpress.org/plugins/tags/twig/)
 *  [Розширений перегляд](https://uk.wordpress.org/plugins/editor-for-timber/advanced/)

## Оцінки

No reviews have been submitted yet.

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

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

## Учасники

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

## Підтримка

Є що сказати? Потрібна допомога?

 [Перейти в форум підтримки](https://wordpress.org/support/plugin/editor-for-timber/)