e-addons

Share

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on whatsapp
Share on telegram
Share on skype
Share on email
ic Twig bwe-Twig

Editor Twig

The famous PHP template engine has now landed on Elementor thanks to the e-addons Editor Twig.

It is a complete evolution compared to the placeholders because, thanks to its engine, you can insert real parts of code in a safe way. Insert any fields, loops, conditions, filters, functions, variables, etc.
The power of e-addons Editor Twig is now under your control!

it's free

e-addons editor twig
Timber library and Twig are now on Elementor thanks to this awesome e-addons
twig

Twig

A modern template engine for WordPress

FAST

Thanks to its optimization the overhead compared to regular PHP code was reduced to the very minimum.

SECURE

Access only to secure data and function. This allows Twig to be used as a template language for applications where users may modify the template design.

FLEXIBLE

Twig is powered by a flexible lexer and parser. This allows the developer to define its own custom tags and filters, and create its own DSL.

Not only a simple placeholder

The Twig Engine is like a real developing code as PHP

Any Fields

Loops

Conditions

Filters

Functions

Variables

timber

Timber

Twig + Timber
the perfect match for WordPress

The Twig Engine was created for Symfony project, but there it could be integrated also in different projects like WordPress. Timber developed this perfect integration, so the plugin take the most from this incredible library.

All WP Variables

Extension

Print the content value of any WordPress Object

Post

User

Term

Theme

Site Option

WP Query

Queried object

System

Menu

Posts

widget text editor with twig

Editor Twig

Rich Text with Dynamic Content

Insert all Twig code and the text will be elaborated by the Twig Engine and the result will be display.

You can choose from 3 input modality:

  • Wysiwyg
  • Code
  • Template File


The Twig power built in in WordPress thanks to Timber libraries.

WYSIWYG

For simple text replacement with some custom graphics

CODE

For a direct advanced code written directly on the widget

TEMPLATE FILE

Include a custom Twig Template File from your theme

DEMO

Some Twig example

Base

{{post.post_title}}
{{post.my_custom_field}}
{{post.published_at|date("m/d/Y")}}
{{user.user_email}}
{{user.first_name}}
{{term.count}}

Filters

{{post.post_title|trim|lower}}
{{post.get_field('custom_link')|e('esc_url')}}
{{post.post_content|excerpt(30)}}
{{post.title|php('strtotupper')}}
{{system.get.post_id|php('get_post_meta','meta_field_slug', true)}}

Functions

{{ function('edit_post_link', 'Edit', '', '') }}
{{ function('wp_head') }}
{{ function('wp_footer') }}

Site Options

{{site.name}}
{{site.url}}
{{site.description}}
{{theme.link}}

Loops and Conditions

{% for foo in post.related_posts_ids %}
  {{ function('get_post_meta', foo, 'my_custom_field', true) }}
{% endfor %}
{% for image in post.meta('gallery') %}
  {{ get_image(image) }}
{% endfor %}
{% if post.thumbnail %}
  {{ post.thumbnail.src }}
{% endif %}

Download

Insert your email
and proceed to download

Get updates and special offers for e-ADDONS PRO

Thanks!

Get updates and special offers for e-ADDONS PRO

Subscribe to our newsletter

By entering your email, you agree to our Privacy Policy.