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 enginge is now landed on elementor thanks to e-addons.
A complete evolution compared to placeholders because, thanks to its engine, it is possible to insert real parts of code in a safe way.
Insert any fields, loops, conditions, filters, functions, variables. The power of Twig e-addons is now in your control!

it's free

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 into the WYSIWYG editor, The text will be elaborated by the Twig Engine and the result will be display.

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

DEMO

Some Twig example

Base

{{post.post_title}}
{{post.my_custom_field}}
{{user.user_email}}

Filters

{{post.post_title|trim|lower}}
{{ post.get_field('custom_link')|e('esc_url') }}
{{post.post_content|excerpt(30)}}

Loops and Conditions

{% for image in post.meta('gallery') %}
  {{ get_image(image) }}
{% endfor %}
{% if post.thumbnail %}
  {{ post.thumbnail.src }}
{% endif %}

Site Options

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