From: Steve Sutton Date: Tue, 12 Feb 2019 14:02:20 +0000 (-0500) Subject: updating for smarty X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8e3a04ef7ad32beab76b465c2afbf29be7f3fa91;p=WP-Plugins%2Fglm-member-db-contacts.git updating for smarty Use Smarty version that doesn't allow php tags. --- diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 65c8caf..af864f9 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -890,16 +890,16 @@ Position/Responsibilities - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} diff --git a/views/admin/member/contacts--POS_OLD.html b/views/admin/member/contacts--POS_OLD.html index 4d90702..7a0ea4e 100644 --- a/views/admin/member/contacts--POS_OLD.html +++ b/views/admin/member/contacts--POS_OLD.html @@ -296,16 +296,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} diff --git a/views/admin/profile/index.html b/views/admin/profile/index.html index 79201e0..8f52e52 100644 --- a/views/admin/profile/index.html +++ b/views/admin/profile/index.html @@ -126,16 +126,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if}