PluginProbe
Tagembed: Social Media Feeds and Customer Reviews Widget / 7.8
Tagembed: Social Media Feeds and Customer Reviews Widget v7.8
7.8 7.5 7.6 7.7 7.4 trunk 3.10 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 5.6 All 43 releases
← All changes | views/widget/widgetView.php +10 -7 7.47.8 View file →
@@ -1,5 +1,8 @@
1 1 <?php
2 +if (!defined('ABSPATH')) :
3 + exit;
4 +endif;
2 5 include_once TAGEMBED_PLUGIN_DIR_PATH . 'views/includes/headView.php';
3 6 include_once TAGEMBED_PLUGIN_DIR_PATH . 'views/includes/headerView.php';
4 7 ?>
5 8 <div id="__tagembed__widgetab" class="__tagembed__tabcontent">
@@ -17,9 +20,9 @@
17 20 if (!empty($__tagembed__widgets)) :
18 21 $count = 0;
19 22 foreach ($__tagembed__widgets as $__tagembed__widget) :
20 23 ?>
21 - <div class="__tagembed__widgetbox <?php echo $__tagembed__active_widget_id == $__tagembed__widget->id ? 'active' : ''; ?>" id="__tagembed__widgetbox<?php echo esc_html($count); ?>">
24 + <div class="__tagembed__widgetbox <?php echo $__tagembed__active_widget_id == $__tagembed__widget->id ? 'active' : ''; ?>" id="<?php echo esc_attr('__tagembed__widgetbox' . $count); ?>">
22 25 <div class="__tagembed__widgethead">
23 26 <div>
24 27 <h3><?php echo esc_html($__tagembed__widget->name); ?></h3>
25 28 <ul>
@@ -29,10 +32,10 @@
29 32 </div>
30 33 <div class="tooltip">
31 34 <div class="__tagembed__toggleOnBut __tagembed__switch">
32 35 <div class="__tagembed__onoffswitch">
33 - <input data-widgetStatus="<?php echo esc_html($__tagembed__widget->status); ?>" onchange="__tagembed__updateWidgetStauts('<?php echo esc_html($__tagembed__widget->id); ?>', '<?php echo esc_html($count); ?>');" type="checkbox" name="widget-<?php echo esc_html($count); ?>" id="widget-<?php echo esc_html($count); ?>" class="__tagembed__onoffswitch-checkbox __tagembed__updateStatus" data-on-color="#009385" data-off-color="#989898" <?php echo (esc_html($__tagembed__widget->status)) ? 'checked' : ''; ?>>
34 - <label class="__tagembed__onoffswitch-label" for="widget-<?php echo esc_html($count); ?>">
36 + <input data-widgetStatus="<?php echo esc_attr($__tagembed__widget->status); ?>" onchange="__tagembed__updateWidgetStauts('<?php echo esc_js($__tagembed__widget->id); ?>', '<?php echo esc_js($count); ?>');" type="checkbox" name="<?php echo esc_attr('widget-' . $count); ?>" id="<?php echo esc_attr('widget-' . $count); ?>" class="__tagembed__onoffswitch-checkbox __tagembed__updateStatus" data-on-color="#009385" data-off-color="#989898" <?php echo ($__tagembed__widget->status) ? "checked" : ""; ?>>
37 + <label class="__tagembed__onoffswitch-label" for="<?php echo esc_attr('widget-' . $count); ?>">
35 38 <span class="__tagembed__onoffswitch-inner"></span>
36 39 <span class="__tagembed__onoffswitch-switch" style="background: rgb(152, 152, 152);"></span>
37 40 </label>
38 41 </div>
@@ -39,22 +42,22 @@
39 42 </div>
40 43 <span class="tooltiptext">Status</span>
41 44 </div>
42 45 </div>
43 - <div class="__tagembed__widget_sourcecode" onclick="__tagembed__copyToWidgetShortCode('[tagembed widgetid <?php echo esc_html($__tagembed__widget->id); ?>]');">
46 + <div class="__tagembed__widget_sourcecode" onclick="__tagembed__copyToWidgetShortCode('[tagembed widgetid <?php echo esc_js($__tagembed__widget->id); ?>]');">
44 47 <p>[tagembed widgetid <?php echo esc_html($__tagembed__widget->id); ?>]</p>
45 48 <button title="Copy Short Code"><i class="fa fa-files-o" aria-hidden="true"></i></button>
46 49 </div>
47 50 <div class="__tagembed__widgetfoot">
48 51 <ul>
49 - <li><a href="javascript:void(0);" onclick="__tagembed__menus(2, '<?php echo esc_html($__tagembed__widget->id); ?>')"> Open </a></li>
52 + <li><a href="javascript:void(0);" onclick="__tagembed__menus(2, '<?php echo esc_js($__tagembed__widget->id); ?>')"> Open </a></li>
50 53 <li>
51 - <a href="javascript:void(0);" onclick="__tagembed__widgetEditForm('<?php echo esc_html($__tagembed__widget->id); ?>', '<?php echo addslashes($__tagembed__widget->name); ?>');">
54 + <a href="javascript:void(0);" onclick="__tagembed__widgetEditForm('<?php echo esc_js($__tagembed__widget->id); ?>', '<?php echo esc_js($__tagembed__widget->name); ?>');">
52 55 Rename
53 56 </a>
54 57 </li>
55 58
56 - <li><a href="javascript:void(0);" onclick="__tagembed__deleteWidget('<?php echo esc_html($__tagembed__widget->id); ?>', '__tagembed__widgetbox<?php echo esc_html($count); ?>');"> Delete </a></li>
59 + <li><a href="javascript:void(0);" onclick="__tagembed__deleteWidget('<?php echo esc_js($__tagembed__widget->id); ?>', '<?php echo esc_js('__tagembed__widgetbox' . $count); ?>');"> Delete </a></li>
57 60 </ul>
58 61 </div>
59 62 </div>
60 63 <?php