Plugin / AP Twig Bridge

Denis Voytyuk

Frequently Asked Questions (FAQ)

This plugin should support php > 5.3.0, but is tested only on php 5.3.8.
You can directly edit files in twigbridge theme folder (don’t forget to copy it to you wp-content/themes directory). You can use functions.php to add some hooks or to load text domain. You must have at least these files: style.css, index.php (must contain php-code to display the template, please check the example), header.php, footer.php, searchform.php. All twig files must be in wp-content/themes/yourthemefolder/Twig. At least index.html.twig must exist.
Check please links.php and archives.php about how the php-file should look like. Create a similar file with the name you want (e.g. special.php). Then you just create a special.html.twig file and write all the code you need there.
Yes, I know, that I didn’t include many WordPress API function, because initially this plugin was just a proff of concept. Actually, you can add the functions you need to APBridge_TwigExtension module yourself, but your changes will be overwritten next time you update the plugin to a new version. So, creating your own extension will be the best way to add the functions you need. You can do it in index.php this way: $twigBridge->getTwig()->addExtension(new YourExtensionClass()). It must be called befor template rendering, of course. You can use APBridge_TwigExtension class as an example. Also you can write to me about the functions you need, so that I could include them in future versions.
Of course there is. Visit ArtPrima.cz in order to find our e-mail address and other contacts.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.0

First Released

25 Dec, 2011

Total Downloads

934

Wordpress Version

3.3 or higher

Tested up to:

3.3.2

Require PHP Version:

-

Tags

There is no tag found

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.