{"id":31043,"date":"2014-08-12T06:20:09","date_gmt":"2014-08-12T06:20:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wpml-shortcodes\/"},"modified":"2016-03-05T15:08:43","modified_gmt":"2016-03-05T15:08:43","slug":"wpml-shortcodes","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wpml-shortcodes\/","author":12551003,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2.6","stable_tag":"1.2.6","tested":"4.4.34","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"WPML Shortcodes","header_author":"Mirco Babini","header_description":"","assets_banners_color":"222222","last_updated":"2016-03-05 15:08:43","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/mircobabini.com\/donate\/","header_plugin_uri":"http:\/\/github.com\/mircobabini\/wpml-shortcodes","header_author_uri":"http:\/\/github.com\/mircobabini","rating":5,"author_block_rating":0,"active_installs":900,"downloads":9809,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":5},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"964347","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.0","1.2.1","1.2.4","1.2.5","1.2.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1385,95,2333,2334,103],"plugin_category":[43,48],"plugin_contributors":[81963,81964],"plugin_business_model":[],"class_list":["post-31043","plugin","type-plugin","status-publish","hentry","plugin_tags-language","plugin_tags-translate","plugin_tags-translation","plugin_tags-translator","plugin_tags-wpml","plugin_category-customization","plugin_category-language-tools","plugin_contributors-mirkolofio","plugin_contributors-sed-web-enhancement","plugin_committers-mirkolofio"],"banners":{"banner":"https:\/\/ps.w.org\/wpml-shortcodes\/assets\/banner-772x250.jpg?rev=964347","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wpml-shortcodes_222222.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your WordPress website. Make your WordPress <strong>full WPML ready<\/strong><\/p>\n\n<pre>&lt;?php wpml__( $text, $context ); ?&gt;\n&lt;?php wpml_e( $text, $context ); ?&gt;<\/pre>\n\n<p>Similarly to the behaviour of the __, _e functions, you must provide a string to make translateable and a context.\nThat's it; just provide translations from the WPML &gt; String Translations admin panel.<\/p>\n\n<p>Check how to use the shortcode below.<\/p>\n\n<h4>Usage (via code)<\/h4>\n\n<pre>&lt;h1&gt;&lt;?php echo wpml__( 'Title', 'wpmlshortcodes' ); ?&gt;&lt;\/h1&gt;\n&lt;h2&gt;&lt;?php wpml_e( 'Subtitle', 'wpmlshortcodes' ); ?&gt;&lt;\/h2&gt;<\/pre>\n\n<h4>Usage (via shortcode)<\/h4>\n\n<pre>&lt;h1&gt;[wpml__ context=wpmlshortcodes]Title[\/wpml__]&lt;\/h1&gt;\n&lt;h2&gt;[wpml__ context=wpmlshortcodes]Subtitle[\/wpml__]&lt;\/h2&gt;<\/pre>\n\n<blockquote>\n  <p><strong>NEWS! WPML Translate (+ shortcode)<\/strong><br \/>\n  Adds the wpml_if (ex wpml_translate) shortcode to your WPML suite. You can also use the wpml_e__if_language( $content, $lang ) in your php code.<\/p>\n<\/blockquote>\n\n<h4>Usage (via code)<\/h4>\n\n<pre>&lt;p&gt;&lt;?php\nwpml_e__if_language( 'Text', 'en' );\nwpml_e__if_language( 'Testo', 'it' );\n?&gt;&lt;\/p&gt;<\/pre>\n\n<h4>Usage (via shortcode)<\/h4>\n\n<pre>[wpml_if lang='en']Text[\/wpml_if][wpml_if lang='it']Testo[\/wpml_if]<\/pre>\n\n<p>It also supports backward compatibility for wpml_translate and wpml_language from WPML Translate Shortcode (deprecated plugin);<\/p>\n\n<h4>WPML Translate Shortcode &gt; WPML Shortcodes<\/h4>\n\n<p>Welcome to the new WPML Shortcodes. This plugin is the new WPML Translate Shortcode, became a full-translation suite.<\/p>\n\n<p>Of course we still support WPML Translate Shortcode, with a new shortcode (1.2.4+): wpml_if (see usage above).\nAlso, we provide full backward compatibility (yes, you can still use wpml_translate or wpml_language shortcodes) on 1.2.6+.<\/p>\n\n<h4>Contribute<\/h4>\n\n<p>Pull requests on <a href=\"https:\/\/github.com\/mircobabini\/wpml-shortcodes\">github.com<\/a>.<\/p>\n\n<p>Author: <a href=\"http:\/\/github.com\/mircobabini\">Mirco Babini<\/a>, <strong>Web Developer and Mobile App Developer; WordPress Consultant<\/strong>.<\/p>\n\n<!--section=installation-->\n<p>Simply search for 'WPML Shortcodes' in the Plugins Admin page, then install and activate. That's it!<\/p>\n\n<!--section=changelog-->\n<h4>1.2.6<\/h4>\n\n<ul>\n<li>Add backward compatibility to wpml_translate and wpml_language from WPML Translate Shortcode (deprecated plugin)<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Fix docs<\/li>\n<li>Support optional context in main api<\/li>\n<li>Fallback on global context, api: wpml__main_context( $context )<\/li>\n<li>Fix shortcodes<\/li>\n<li>Refactoring<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Integration: WPML Translate Shortcode (deprecated since now)<\/li>\n<li>usage: [wpml_if lang=it]ciao[\/wpml_if][wpml_if lang=en]hello[\/wpml_if]<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Support defined name for shortcodes<\/li>\n<\/ul>\n\n<h4>1.2.2<\/h4>\n\n<ul>\n<li>Fallback (english) if WPML is missing<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix the J.D. Grimes issue (\/pull\/1)<\/li>\n<li>Needed to manually restore all the translated strings<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Ready for the marketplace<\/li>\n<\/ul>","raw_excerpt":"Adds shortcodes to the WPML environment, like wpml__, wpml_e and more. Makes WP full WPML ready.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/31043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=31043"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mirkolofio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=31043"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=31043"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=31043"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=31043"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=31043"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=31043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}