Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Template escape
  • Loading branch information
remdex committed Jun 21, 2021
1 parent 88945f5 commit 7e0df0a
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
@@ -1,10 +1,10 @@
<div role="tabpanel" class="tab-pane" id="main-extension-fb">
<div class="form-group">
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/cannedmsg','Message');?></label>
<textarea class="form-control" name="MessageExtFB"><?php echo isset($canned_message->additional_data_array['message_fb']) ? $canned_message->additional_data_array['message_fb'] : '';?></textarea>
<textarea class="form-control" name="MessageExtFB" ng-non-bindable><?php echo isset($canned_message->additional_data_array['message_fb']) ? $canned_message->additional_data_array['message_fb'] : '';?></textarea>
</div>
<div class="form-group">
<label><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/cannedmsg','Fallback message');?></label>
<textarea class="form-control" name="FallbackMessageExtFB"><?php echo isset($canned_message->additional_data_array['fallback_fb']) ? $canned_message->additional_data_array['fallback_fb'] : '';?></textarea>
<textarea class="form-control" name="FallbackMessageExtFB" ng-non-bindable><?php echo isset($canned_message->additional_data_array['fallback_fb']) ? $canned_message->additional_data_array['fallback_fb'] : '';?></textarea>
</div>
</div>
@@ -1,7 +1,7 @@
<?php if ($buttonData['item'] == 'fb_chat') : ?>

<?php if (isset($chat->chat_variables_array['fb_chat']) && $chat->chat_variables_array['fb_chat'] == true) : ?>
<tr>
<tr ng-non-bindable>
<td>
<img width="14" src="<?php echo erLhcoreClassDesign::design('images/F_icon.svg')?>" title="Facebook chat" />&nbsp;<?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat','FB Chat')?>
</td>
Expand All @@ -14,7 +14,7 @@
if ($fbLead instanceof erLhcoreClassModelFBLead) : $fbNotification = erLhcoreClassModelFBNotificationScheduleItem::findOne(array('filter' => array('lead_id' => $fbLead->id,'status' => 1)));
if ($fbNotification instanceof erLhcoreClassModelFBNotificationScheduleItem) : $fbSchedule = erLhcoreClassModelFBNotificationSchedule::fetch($fbNotification->schedule_id);
if ($fbSchedule instanceof erLhcoreClassModelFBNotificationSchedule) : ?>
<tr>
<tr ng-non-bindable>
<td colspan="2">
<h5><strong><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/adminchat','Last marketing message')?></strong></h5>
<?php echo erLhcoreClassBBCode::make_clickable(htmlspecialchars($fbSchedule->message));?>
Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/bbcode.tpl.php
Expand Up @@ -2,7 +2,7 @@

<?php if (isset($items)) : ?>

<table cellpadding="0" cellspacing="0" class="table" width="100%">
<table cellpadding="0" cellspacing="0" class="table" width="100%" ng-non-bindable>
<thead>
<tr>
<th><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('module/fbmessenger','Name');?></th>
Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/edit.tpl.php
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/edit')?>/<?php echo $item->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/edit')?>/<?php echo $item->id?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form.tpl.php'));?>

Expand Down
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/editbbcode')?>/<?php echo $item->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/editbbcode')?>/<?php echo $item->id?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form_bbcode.tpl.php'));?>

Expand Down
Expand Up @@ -8,7 +8,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/alert_success.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/editnotification')?>/<?php echo $item->id?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/editnotification')?>/<?php echo $item->id?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form_notification.tpl.php'));?>

Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/leads.tpl.php
Expand Up @@ -8,7 +8,7 @@

<?php if (isset($items)) : ?>

<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%">
<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%" ng-non-bindable>
<thead>
<tr>
<th><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('module/fbmessenger','ID');?></th>
Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/list.tpl.php
Expand Up @@ -2,7 +2,7 @@

<?php if (isset($items)) : ?>

<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%">
<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%" ng-non-bindable>
<thead>
<tr>
<th width="1%">ID</th>
Expand Down
@@ -1,4 +1,4 @@
<table class="table">
<table class="table" ng-non-bindable>
<thead>
<th colspan="3">Page</th>
</thead>
Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/new.tpl.php
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/new')?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/new')?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form.tpl.php'));?>

Expand Down
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/newbbcode')?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/newbbcode')?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form_bbcode.tpl.php'));?>

Expand Down
Expand Up @@ -4,7 +4,7 @@
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
<?php endif; ?>

<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/newnotification')?>" method="post">
<form action="<?php echo erLhcoreClassDesign::baseurl('fbmessenger/newnotification')?>" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhfbmessenger/parts/form_notification.tpl.php'));?>

Expand Down
Expand Up @@ -8,7 +8,7 @@

<?php if (isset($items)) : ?>

<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%">
<table cellpadding="0" cellspacing="0" class="table table-sm" width="100%" ng-non-bindable>
<thead>
<tr>
<th><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('module/fbmessenger','Name');?></th>
Expand Down
2 changes: 1 addition & 1 deletion design/fbmessengertheme/tpl/lhfbmessenger/options.tpl.php
@@ -1,6 +1,6 @@
<h1 class="attr-header">Facebook Messenger Options</h1>

<form action="" method="post">
<form action="" method="post" ng-non-bindable>

<?php include(erLhcoreClassDesign::designtpl('lhkernel/csfr_token.tpl.php'));?>

Expand Down

0 comments on commit 7e0df0a

Please sign in to comment.