PluginProbe
Taboola / 1.0.15
Taboola v1.0.15
1.0.4 1.0.5 1.0.6 1.0.8 2.0.1 2.0.2 2.1.0 2.1.1 2.2.2 2.2.3 3.0.0 3.0.1 3.0.2 3.1.0 trunk 1.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.2 1.0.3
← All changes | widget.php +7 -4 1.0.31.0.15 View file →
@@ -65,12 +65,15 @@
65 65 echo '<div id="'.$container.'"></div>';
66 66 }
67 67
68 68 //widget content
69 - $script2_content = str_replace('{{WIDGET_ID}}', $widget_id, file_get_contents($this->plugin_directory.'js/script2.js'));
70 - $script2_content = str_replace('{{CONTAINER}}', $container, $script2_content);
71 - $script2_content = str_replace('{{PLACEMENT}}', $placement, $script2_content);
72 - echo '<script type="text/javascript">'.$script2_content.'</script>';
69 + $stringParams = array(
70 + "{{WIDGET_ID}}" => $widget_id,
71 + "{{CONTAINER}}" => $container,
72 + "{{PLACEMENT}}" => $placement
73 + );
74 + $widgetInjectionScript_content = str_replace(array_keys($stringParams), array_values($stringParams), file_get_contents($this->plugin_directory.'js/widgetInjectionScript.js'));
75 + echo '<script type="text/javascript">'.$widgetInjectionScript_content.'</script>';
73 76
74 77 echo $after_widget;
75 78 }
76 79