Title: Editor for Timber
Author: dweipert
Published: <strong>آکتوبر 29, 2020</strong>
Last modified: دسمبر 16, 2020

---

جستجوی افزونه‌ها

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

این افزونه **با آخرین 3 نسخه اصلی وردپرس تست نشده است**. ممکن است دیگر نگهداری یا
پشتیبانی نشود و ممکن است هنگام استفاده با نسخه های جدیدتر وردپرس مشکلات سازگاری 
داشته باشد.

![](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://fa-af.wordpress.org/plugins/editor-for-timber/#description)
 * [نقد و بررسی‌ها](https://fa-af.wordpress.org/plugins/editor-for-timber/#reviews)
 * [توسعه](https://fa-af.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).

## اطلاعات

 *  Version **1.0.2**
 *  Last updated **5 سال پیش**
 *  Active installations **50+**
 *  WordPress version ** 5.5 یا بالاتر **
 *  Tested up to **5.5.18**
 *  PHP version ** 7.4 یا بالاتر **
 *  Languages
 * [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)
 * Tags
 * [templates](https://fa-af.wordpress.org/plugins/tags/templates/)[Timber](https://fa-af.wordpress.org/plugins/tags/timber/)
   [twig](https://fa-af.wordpress.org/plugins/tags/twig/)
 *  [نمایش پیشرفته](https://fa-af.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/)