Switched Smarty use from smartyBC() to smarty() using new version.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 4 Dec 2018 18:01:28 +0000 (13:01 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 4 Dec 2018 18:01:28 +0000 (13:01 -0500)
Updated all instancess of using {php} in views. All were associated with wp_editor().

lib/smartyTemplateSupport.php
views/admin/member/memberInfo/editMediaCamera.html
views/admin/member/memberInfo/editMediaVideo.html
views/admin/member/memberInfo/editProfileDescription.html

index 0b0f556..8b54ec2 100755 (executable)
@@ -54,8 +54,8 @@ class smartyTemplateSupport {
                /*
                 * Load and instatiate Smarty Templates
                 */
-               require_once GLM_MEMBERS_PLUGIN_PATH.'/lib/smarty-3.1.33/libs/SmartyBC.class.php';
-               $this->template = new SmartyBC ();
+               require_once GLM_MEMBERS_PLUGIN_PATH.'/lib/smarty-3.1.33/libs/Smarty.class.php';
+               $this->template = new Smarty();
 
                /*
                 * Configure Smarty Templates for this site
index bd7f9c0..9d73450 100644 (file)
             <div class="glm-row not-with-url-type glm-hidden">
                 <h4 {if $memberInfo.fieldRequired.live_cam_descr}class="glm-required"{/if}>Description to Display:</h4>
                 <div {if $memberInfo.fieldFail.live_cam_descr}class="glm-form-bad-input" data-tabid="glm-member-info-live-cam"{/if}>
-                    {php}
-                        wp_editor('{$memberInfo.fieldData.live_cam_descr|escape:quotes}', 'glm_live_cam_descr', array(
-                            'media_buttons' => false,
-                            // 'quicktags' => false,
-                            // 'wpautop' => false,  NOTE: Dont's use. Problem when numerous spaces before text.
-                            'textarea_name' => 'live_cam_descr',
-                            'editor_height' => 200,     // Height in px, overrides editor_rows
-                                // 'textarea_rows' => 8
-                        ));
-                    {/php}
+                    {wp_editor(
+                        $memberInfo.fieldData.live_cam_descr,
+                        'glm_live_cam_descr',
+                        json_decode('{
+                            "media_buttons":    false,
+                            "quicktags":        false,
+                            "textarea_name":    "live_cam_descr",
+                            "editor_height":    200
+                        }', true)
+                    )}
                     {if $memberInfo.fieldFail.live_cam_descr}<p>{$memberInfo.fieldFail.live_cam_descr}</p>{/if}
                 </div>
             </div>
index 175ce98..b43af7e 100644 (file)
             <div class="glm-row">
                 <h4 {if $memberInfo.fieldRequired.video_descr}class="glm-required"{/if}>Video Description:</h4>
                 <div {if $memberInfo.fieldFail.video_descr}class="glm-form-bad-input" data-tabid="glm-member-info-video"{/if}>
-                    {php}
-                        wp_editor('{$memberInfo.fieldData.video_descr|escape:quotes}', 'glm_video_descr', array(
-                            'media_buttons' => false,
-                            // 'quicktags' => false,
-                            // 'wpautop' => false,  NOTE: Dont's use. Problem when numerous spaces before text.
-                            'textarea_name' => 'video_descr',
-                            'editor_height' => 200,     // Height in px, overrides editor_rows
-                                // 'textarea_rows' => 8
-                        ));
-                    {/php}
+                    {wp_editor(
+                        $memberInfo.fieldData.video_descr,
+                        'glm_video_descr',
+                        json_decode('{
+                            "media_buttons":    false,
+                            "quicktags":        false,
+                            "textarea_name":    "video_descr",
+                            "editor_height":    200
+                        }', true)
+                    )}
                     {if $memberInfo.fieldFail.video_descr}<p>{$memberInfo.fieldFail.video_descr}</p>{/if}
                 </div>
             </div>
index 8707996..20a5e5b 100644 (file)
                         <div class="glm-row">
                             <h4 {if $memberInfo.fieldRequired.descr}class="glm-required"{/if}>Full Description</h4>
                             <div {if $memberInfo.fieldFail.descr}class="glm-form-bad-input" data-tabid="glm-member-info-descr"{/if}>
-                                {php}
-                                    wp_editor('{$memberInfo.fieldData.descr|escape:quotes}', 'glm_descr', array(
-                                        'media_buttons' => false,
-                                        // 'quicktags' => false,
-                                        // 'wpautop' => false,  NOTE: Dont's use. Problem when numerous spaces before text.
-                                        'textarea_name' => 'descr',
-                                        'editor_height' => 200,     // Height in px, overrides editor_rows
-                                            // 'textarea_rows' => 8
-                                    ));
-                                {/php}
+                                {wp_editor(
+                                    $memberInfo.fieldData.descr,
+                                    'glm_descr',
+                                    json_decode('{
+                                        "media_buttons":    false,
+                                        "quicktags":        false,
+                                        "textarea_name":    "descr",
+                                        "editor_height":    200
+                                    }', true)
+                                )}
                                 {if $memberInfo.fieldFail.descr}<p>{$memberInfo.fieldFail.descr}</p>{/if}
                             </div>
                         </div>