Changeset 2795095
- Timestamp:
- 10/06/2022 12:08:00 PM (3 years ago)
- Location:
- taboola
- Files:
-
- 1 deleted
- 4 edited
-
tags/1.0.13 (deleted)
-
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
r2795057 r2795095 63 63 == Changelog == 64 64 65 = 1.0.13 =66 * Minor fixes and improvements.67 68 65 = 1.0.12 = 69 66 * Minor fix for PHP 8.0.x -
taboola/trunk/settings.php
r2795057 r2795095 116 116 <td>Publisher ID</td> 117 117 <td> 118 <input type="text" name="publisher_id" placeholder="publisher" value="<?php echo !empty($settings->publisher_id) ? htmlspecialchars($settings->publisher_id) : ''?>"/>118 <input type="text" name="publisher_id" placeholder="publisher" value="<?php echo 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 !empty($settings->first_bc_enabled)? "checked='checked'" : "" ?> name="first_bc_enabled"/>136 <input id="first_bc_enabled" type="checkbox" <?php echo $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 !empty($settings->first_bc_widget_id) ? htmlspecialchars($settings->first_bc_widget_id) : ''?>" name="first_bc_widget_id" placeholder="Widget ID" />143 <input type="text" value="<?php echo $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 !empty($settings->second_bc_enabled)? "checked='checked'" : "" ?> name="second_bc_enabled"/>155 <input id="second_bc_enabled" type="checkbox" <?php echo $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 !empty($settings->second_bc_widget_id) ? htmlspecialchars($settings->second_bc_widget_id) : ''?>" name="second_bc_widget_id" placeholder="Widget ID" />163 <input type="text" value="<?php echo 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 = !empty($settings->location_string); ?>174 <?php $location_defined = (htmlspecialchars($settings->location_string) != ""); ?> 175 175 176 176 … … 190 190 <?php endif; ?> 191 191 192 192 193 <tr> 193 194 <td>Location</td> 194 195 <td> 195 <input type="text" value="<?php echo !empty($settings->location_string) ? htmlspecialchars($settings->location_string) : ''?>" name="location_string" placeholder="" />196 <input type="text" value="<?php echo htmlspecialchars($settings->location_string) ?>" name="location_string" placeholder="" /> 196 197 </td> 197 198 <td class='tooltip'> … … 202 203 <tr> 203 204 <td colspan="2"> <div class='checkbox'> 204 <input id="out_of_content_enabled" type="checkbox" <?php echo !empty($settings->out_of_content_enabled)? "checked='checked'" : "" ?> name="out_of_content_enabled"/>205 <input id="out_of_content_enabled" type="checkbox" <?php echo $settings->out_of_content_enabled ? "checked='checked'" : "" ?> name="out_of_content_enabled"/> 205 206 Place widget after main content DOM element 206 207 </div></td> … … 211 212 212 213 </tr> 214 213 215 214 216 </table> … … 219 221 220 222 <?php 221 $logPublisher = empty($settings->publisher_id) ? "wordpressplugin" : $settings->publisher_id;223 $logPublisher = ($settings->publisher_id == "") ? "wordpressplugin" : $settings->publisher_id; 222 224 $userDetails = wp_get_current_user(); 223 225 $detailsString = $userDetails->first_name." ".$userDetails->last_name; -
taboola/trunk/simple_html_dom.php
r2795057 r2795095 1034 1034 if ($str) 1035 1035 { 1036 if (preg_match("/^http :\/\//i",$str) || is_file($str))1036 if (preg_match("/^https:\/\//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 -equiv=Content-Type]',0, true);1224 $el = $this->root->find('meta[https-equiv=Content-Type]',0, true); 1225 1225 if (!empty($el)) 1226 1226 { -
taboola/trunk/taboola_widget.php
r2795057 r2795095 4 4 * Plugin URI: https://developers.taboola.com/web-integrations/discuss 5 5 * Description: Taboola 6 * Version: 1.0.1 36 * Version: 1.0.12 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 3");16 define ("TABOOLA_PLUGIN_VERSION","1.0.12"); 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 ettings->out_of_content_enabled){257 }elseif ($this->should_place_tag_outside_of_content){ 258 258 259 259 $scriptWrapper = new JavaScriptWrapper("js_inject.min.js",array(
Note: See TracChangeset
for help on using the changeset viewer.