From 8ebfdb3bbc638ddd106816cd715873af47d69ba6 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 4 Dec 2018 13:01:28 -0500 Subject: [PATCH] Switched Smarty use from smartyBC() to smarty() using new version. Updated all instancess of using {php} in views. All were associated with wp_editor(). --- lib/smartyTemplateSupport.php | 4 ++-- .../member/memberInfo/editMediaCamera.html | 20 +++++++++---------- .../member/memberInfo/editMediaVideo.html | 20 +++++++++---------- .../memberInfo/editProfileDescription.html | 20 +++++++++---------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/smartyTemplateSupport.php b/lib/smartyTemplateSupport.php index 0b0f5564..8b54ec2e 100755 --- a/lib/smartyTemplateSupport.php +++ b/lib/smartyTemplateSupport.php @@ -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 diff --git a/views/admin/member/memberInfo/editMediaCamera.html b/views/admin/member/memberInfo/editMediaCamera.html index bd7f9c01..9d734505 100644 --- a/views/admin/member/memberInfo/editMediaCamera.html +++ b/views/admin/member/memberInfo/editMediaCamera.html @@ -32,16 +32,16 @@

Description to Display:

- {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}

{$memberInfo.fieldFail.live_cam_descr}

{/if}
diff --git a/views/admin/member/memberInfo/editMediaVideo.html b/views/admin/member/memberInfo/editMediaVideo.html index 175ce981..b43af7e3 100644 --- a/views/admin/member/memberInfo/editMediaVideo.html +++ b/views/admin/member/memberInfo/editMediaVideo.html @@ -44,16 +44,16 @@

Video Description:

- {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}

{$memberInfo.fieldFail.video_descr}

{/if}
diff --git a/views/admin/member/memberInfo/editProfileDescription.html b/views/admin/member/memberInfo/editProfileDescription.html index 8707996c..20a5e5b5 100644 --- a/views/admin/member/memberInfo/editProfileDescription.html +++ b/views/admin/member/memberInfo/editProfileDescription.html @@ -13,16 +13,16 @@

Full Description

- {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}

{$memberInfo.fieldFail.descr}

{/if}
-- 2.17.1