{"id":15730,"date":"2011-11-18T18:03:49","date_gmt":"2011-11-18T18:03:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-edit-in-place\/"},"modified":"2011-11-18T18:03:49","modified_gmt":"2011-11-18T18:03:49","slug":"wp-edit-in-place","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-edit-in-place\/","author":144759,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0 RC 1","stable_tag":"trunk","tested":"3.2.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"WP Edit in Place","header_author":"leogermani, rafael.chaves.freitas","header_description":"","assets_banners_color":"","last_updated":"2011-11-18 18:03:49","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1830,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2275,23745,3002,975,3972],"plugin_category":[43,59],"plugin_contributors":[80208,81431],"plugin_business_model":[],"class_list":["post-15730","plugin","type-plugin","status-closed","hentry","plugin_tags-developer","plugin_tags-edit-in-place","plugin_tags-framework","plugin_tags-template","plugin_tags-tools","plugin_category-customization","plugin_category-utilities-and-tools","plugin_contributors-leogermani","plugin_contributors-rafaelchavesfreitas","plugin_committers-leogermani","plugin_committers-rafaelchavesfreitas"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-edit-in-place.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is for theme developers who want to let their users (site administrators) to edit all the strings in the template interface.<\/p>\n\n<p>It works in a similar way that the internacionalization functions _e() and __(). When you want a string to be editable by the admin, you will use: _oi('Default value for this text')<\/p>\n\n<p>The admin will then be able to edit it directly from the front end or through the admin panel.<\/p>\n\n<p>It will work together with you<\/p>\n\n<h3>Usage<\/h3>\n\n<p>This plugin gives you, theme developer, two useful functions to add editable texts to your template. _oi() tha echoes the text and __i() that returns it.<\/p>\n\n<p>Why \"oi\"? because its easy to type.<\/p>\n\n<p>Simple use:<\/p>\n\n<pre><code>&lt;?php _oi('Please contact us'); ?&gt;\n<\/code><\/pre>\n\n<p>This simple line of code will:\n1. echo the text\n1. Give the ability for the admin to edit it right from the front end (Ctrl + Click over the text)\n1. Create an entry in the admin, so he\/she can also edit ir from there<\/p>\n\n<p>Tip: Hold Shift + Ctrl to highlight all the editable texts in the page<\/p>\n\n<p>Its a good idea to add a description to the text, so when you go to the admin panel, you know which text is which. This would be:<\/p>\n\n<pre><code>&lt;?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer'); ?&gt;\n<\/code><\/pre>\n\n<p>If the text is an attribute of an HTML element, the value of a button for example, you can not user the edit in place funcionality. In those\ncases you will have to disable it:<\/p>\n\n<pre><code>&lt;?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', false); ?&gt;\n<\/code><\/pre>\n\n<p>If you are using a multi language plugin, you can pass the current language, and you will have all the options in the admin:<\/p>\n\n<pre><code>&lt;?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', 'en_US'); ?&gt;\n&lt;?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', $language_code); ?&gt;\n<\/code><\/pre>\n\n<p>If you need to pass the language AND disable the front end editor:<\/p>\n\n<pre><code>&lt;?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', $language_code, false); ?&gt;\n<\/code><\/pre>\n\n<p>If you want to return it to use somewhere in your code:<\/p>\n\n<pre><code>&lt;?php $myvar = __i('Please contact us', 'the text tha goes on the bottom right corner of the footer'); ?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the package content to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>See 'Usage' to understand how it works<\/li>\n<\/ol>","raw_excerpt":"This plugin is for theme developers who want to let their users (site administrators) edit all the strings in the template interface.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15730","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=15730"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/leogermani"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15730"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15730"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15730"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15730"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15730"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}