updating for smarty
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 14:02:20 +0000 (09:02 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 14:02:20 +0000 (09:02 -0500)
Use Smarty version that doesn't allow php tags.

views/admin/contacts/edit.html
views/admin/member/contacts--POS_OLD.html
views/admin/profile/index.html

index 65c8caf..af864f9 100644 (file)
                             <tr>
                                 <th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities</th>
                                 <td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
-                                    {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}<p>{$contactInfo.fieldFail.descr}</p>{/if}
                                 </td>
                             </tr>
index 4d90702..7a0ea4e 100644 (file)
                 <tr>
                     <th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities:</th>
                     <td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
-                        {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}<p>{$contactInfo.fieldFail.descr}</p>{/if}
                     </td>
                 </tr>
index 79201e0..8f52e52 100644 (file)
                 <tr>
                     <th {if $contactInfo.fieldRequired.descr}class="glm-required"{/if}>Position/Responsibilities:</th>
                     <td {if $contactInfo.fieldFail.descr}class="glm-form-bad-input"{/if}>
-                        {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}<p>{$contactInfo.fieldFail.descr}</p>{/if}
                     </td>
                 </tr>