Changeset 2795104
- Timestamp:
- 10/06/2022 12:12:39 PM (3 years ago)
- Location:
- taboola
- Files:
-
- 19 added
- 4 edited
-
tags/1.0.13 (added)
-
tags/1.0.13/JavaScriptWrapper.php (added)
-
tags/1.0.13/img (added)
-
tags/1.0.13/img/arrow_right_32.png (added)
-
tags/1.0.13/img/question-mark.png (added)
-
tags/1.0.13/img/taboola.jpg (added)
-
tags/1.0.13/img/taboola.png (added)
-
tags/1.0.13/img/taboola_icon.png (added)
-
tags/1.0.13/js (added)
-
tags/1.0.13/js/flushInjectionScript.js (added)
-
tags/1.0.13/js/js_inject.js (added)
-
tags/1.0.13/js/js_inject.min.js (added)
-
tags/1.0.13/js/loaderInjectionScript.js (added)
-
tags/1.0.13/js/widgetInjectionScript.js (added)
-
tags/1.0.13/readme.txt (added)
-
tags/1.0.13/settings.php (added)
-
tags/1.0.13/simple_html_dom.php (added)
-
tags/1.0.13/taboola_widget.php (added)
-
tags/1.0.13/widget.php (added)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings.php (modified) (10 diffs)
-
trunk/simple_html_dom.php (modified) (2 diffs)
-
trunk/taboola_widget.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
taboola/trunk/readme.txt
r2795095 r2795104 63 63 == Changelog == 64 64 65 = 1.0.13 = 66 * Minor fixes and improvements. 67 65 68 = 1.0.12 = 66 69 * Minor fix for PHP 8.0.x -
taboola/trunk/settings.php
r2795095 r2795104 116 116 <td>Publisher ID</td> 117 117 <td> 118 <input type="text" name="publisher_id" placeholder="publisher" value="<?php echo htmlspecialchars($settings->publisher_id)?>"/>118 <input type="text" name="publisher_id" placeholder="publisher" value="<?php echo !empty($settings->publisher_id) ? htmlspecialchars($settings->publisher_id) : '' ?>"/> 119 119 </td> 120 120 <td class='tooltip'> … … 134 134 135 135 <div class='checkbox'> 136 <input id="first_bc_enabled" type="checkbox" <?php echo $settings->first_bc_enabled? "checked='checked'" : "" ?> name="first_bc_enabled"/>136 <input id="first_bc_enabled" type="checkbox" <?php echo !empty($settings->first_bc_enabled) ? "checked='checked'" : "" ?> name="first_bc_enabled"/> 137 137 Below Article 138 138 </div> … … 141 141 <td>Widget ID</td> 142 142 <td> 143 <input type="text" value="<?php echo $settings->first_bc_widget_id?>" name="first_bc_widget_id" placeholder="Widget ID" />143 <input type="text" value="<?php echo !empty($settings->first_bc_widget_id) ? htmlspecialchars($settings->first_bc_widget_id) : '' ?>" name="first_bc_widget_id" placeholder="Widget ID" /> 144 144 </td> 145 145 <td class='tooltip'> … … 153 153 154 154 <div class='checkbox'> 155 <input id="second_bc_enabled" type="checkbox" <?php echo $settings->second_bc_enabled? "checked='checked'" : "" ?> name="second_bc_enabled"/>155 <input id="second_bc_enabled" type="checkbox" <?php echo !empty($settings->second_bc_enabled) ? "checked='checked'" : "" ?> name="second_bc_enabled"/> 156 156 Below Article 2nd 157 157 </div> … … 161 161 <td>Widget ID</td> 162 162 <td> 163 <input type="text" value="<?php echo htmlspecialchars($settings->second_bc_widget_id)?>" name="second_bc_widget_id" placeholder="Widget ID" />163 <input type="text" value="<?php echo !empty($settings->second_bc_widget_id) ? htmlspecialchars($settings->second_bc_widget_id) : '' ?>" name="second_bc_widget_id" placeholder="Widget ID" /> 164 164 </td> 165 165 <td class='tooltip'> … … 172 172 <hr style='border-bottom: 1px solid #fafafa;'> 173 173 174 <?php $location_defined = (htmlspecialchars($settings->location_string) != ""); ?>174 <?php $location_defined = !empty($settings->location_string); ?> 175 175 176 176 … … 190 190 <?php endif; ?> 191 191 192 193 192 <tr> 194 193 <td>Location</td> 195 194 <td> 196 <input type="text" value="<?php echo htmlspecialchars($settings->location_string)?>" name="location_string" placeholder="" />195 <input type="text" value="<?php echo !empty($settings->location_string) ? htmlspecialchars($settings->location_string) : '' ?>" name="location_string" placeholder="" /> 197 196 </td> 198 197 <td class='tooltip'> … … 203 202 <tr> 204 203 <td colspan="2"> <div class='checkbox'> 205 <input id="out_of_content_enabled" type="checkbox" <?php echo $settings->out_of_content_enabled? "checked='checked'" : "" ?> name="out_of_content_enabled"/>204 <input id="out_of_content_enabled" type="checkbox" <?php echo !empty($settings->out_of_content_enabled) ? "checked='checked'" : "" ?> name="out_of_content_enabled"/> 206 205 Place widget after main content DOM element 207 206 </div></td> … … 212 211 213 212 </tr> 214 215 213 216 214 </table> … … 221 219 222 220 <?php 223 $logPublisher = ($settings->publisher_id == "") ? "wordpressplugin" : $settings->publisher_id;221 $logPublisher = empty($settings->publisher_id) ? "wordpressplugin" : $settings->publisher_id; 224 222 $userDetails = wp_get_current_user(); 225 223 $detailsString = $userDetails->first_name." ".$userDetails->last_name; -
taboola/trunk/simple_html_dom.php
r2795095 r2795104 1034 1034 if ($str) 1035 1035 { 1036 if (preg_match("/^http s:\/\//i",$str) || is_file($str))1036 if (preg_match("/^http:\/\//i",$str) || is_file($str)) 1037 1037 { 1038 1038 $this->load_file($str); … … 1222 1222 if (empty($charset)) 1223 1223 { 1224 $el = $this->root->find('meta[http s-equiv=Content-Type]',0, true);1224 $el = $this->root->find('meta[http-equiv=Content-Type]',0, true); 1225 1225 if (!empty($el)) 1226 1226 { -
taboola/trunk/taboola_widget.php
r2795095 r2795104 4 4 * Plugin URI: https://developers.taboola.com/web-integrations/discuss 5 5 * Description: Taboola 6 * Version: 1.0.1 26 * Version: 1.0.13 7 7 * Author: Taboola 8 8 */ … … 14 14 define ("TABOOLA_CONTENT_FORMAT_SCRIPT",'script'); 15 15 define ("TABOOLA_CONTENT_FORMAT_HTML",'html'); 16 define ("TABOOLA_PLUGIN_VERSION","1.0.1 2");16 define ("TABOOLA_PLUGIN_VERSION","1.0.13"); 17 17 18 18 … … 59 59 } 60 60 61 $this->should_place_tag_outside_of_content = $this->settings->out_of_content_enabled;61 //$this->should_place_tag_outside_of_content = $this->settings->out_of_content_enabled; 62 62 63 63 if (is_admin()) { … … 255 255 256 256 // tag is placed outside of content in order to allow "read more" functionality. 257 }elseif ($this->s hould_place_tag_outside_of_content){257 }elseif ($this->settings->out_of_content_enabled){ 258 258 259 259 $scriptWrapper = new JavaScriptWrapper("js_inject.min.js",array(
Note: See TracChangeset
for help on using the changeset viewer.