=== WPML Shortcodes === Contributors: mirkolofio , SED Web Enhancement Donate link: http://mircobabini.com/donate/ Tags: wpml, language, translate, translation, translator, shortcode, lang, theme, plugin Requires at least: 2.8 Tested up to: 4.2.2 Stable tag: 1.2.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Easily add strings to translate to your (child) theme or everywhere in your WordPress website. == Description == Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your WordPress website. Make your WordPress full WPML ready
<?php wpml__( $text, $domain ); ?>
<?php wpml_e( $text, $domain ); ?>
Similarly to the behaviour of the __, _e functions, you must provide a string to make translateable and a domain. That’s it; just provide translations from the WPML > String Translations admin panel. Check how to use the shotcode below. = Usage (via code) =
<h1><?php echo wpml__( ‘Title’, ‘wpmlshortcodes’ ); ?></h1>
<h2><?php wpml_e( ‘Subtitle’, ‘wpmlshortcodes’ ); ?></h2>
= Usage (via shortcode) =
<h1>[wpml__ domain=wpmlshortcodes]Title[/wpml__]</h1>
<h2>[wpml__ domain=wpmlshortcodes]Subtitle[/wpml__]</h2>
= Contribute = If you wanna contribute, pull requests on [github.com](https://github.com/mircobabini/wpml-shortcodes). Author: [Mirco Babini](http://www.mircobabini.com/), **Web Developer and Mobile App Developer; Wordpress Consultant**. == Installation == Simply search for ‘WPML Shortcodes’ in the Plugins Admin page, then install and activate it. That's it! == Frequently asked questions == == Screenshots == == Changelog == = 1.2.4 = * Integration: WPML Translate Shortcode (deprecated since now) * usage: [wpml_if lang=it]ciao[/wpml_if][wpml_if lang=en]hello[/wpml_if] = 1.2.3 = * Support defined name for shortcodes = 1.2.2 = * Fallback (english) if WPML is missing = 1.2.1 = * Fix the J.D. Grimes issue (/pull/1) * Needed to manually restore all the translated strings = 1.2.0 = * Ready for the marketplace