PluginProbe
Taboola / 1.0.2
Taboola v1.0.2
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 | settings.php +4 -86 1.0.111.0.2 View file →
@@ -85,26 +85,8 @@
85 85 margin-top: 10px;
86 86 color: red;
87 87 }
88 88
89 - .toggle_icon{
90 - background: url(<?php echo $this->plugin_url.'img/arrow_right_32.png' ?>) no-repeat;
91 - background-size:contain;
92 - width:24px;
93 - height:24px;
94 - display:inline-block;
95 - vertical-align: middle;
96 - }
97 -
98 - .toggle_icon_on{
99 - -ms-transform: rotate(90deg); /* IE 9 */
100 - -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
101 - transform: rotate(90deg);
102 - }
103 - .apply_button{
104 - margin-top: 20px !important;
105 - }
106 -
107 89 </style>
108 90
109 91 <div class="taboola-container">
110 92 <img src='<?php echo $this->plugin_url.'img/taboola.png' ?>' style='width:200px;'/>
@@ -170,66 +152,16 @@
170 152
171 153 </table>
172 154 <hr style='border-bottom: 1px solid #fafafa;'>
173 155
174 - <?php $location_defined = (htmlspecialchars($settings->location_string) != ""); ?>
175 -
176 -
177 - <div class='toggle_intercept checkbox'>
178 - <?php if ($location_defined): ?>
179 - <div class='toggle_icon toggle_icon_on'></div>
180 - Advanced Settings
181 - </div>
182 - <table class='location_section'>
183 -
184 - <?php else: ?>
185 - <div class='toggle_icon'></div>
186 - Advanced Settings
187 - </div>
188 - <table class='location_section' style='display:none'>
189 -
190 - <?php endif; ?>
191 -
192 -
193 - <tr>
194 - <td>Location</td>
195 - <td>
196 - <input type="text" value="<?php echo htmlspecialchars($settings->location_string) ?>" name="location_string" placeholder="" />
197 - </td>
198 - <td class='tooltip'>
199 - <img src='<?php echo $this->plugin_url.'img/question-mark.png' ?>'/>
200 - <div>This field controls the location of these widgets on the page. If you would like to move your widget from its default location directly below the article a Taboola representative will provide you with the necessary information.</div>
201 - </td>
202 - </tr>
203 - <tr>
204 - <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"/>
206 - Place widget after main content DOM element
207 - </div></td>
208 - <td class='tooltip'>
209 - <img src='<?php echo $this->plugin_url.'img/question-mark.png' ?>'/>
210 - <div>This may be disabled if your website doesn't use Taboola's "Read more" feature, or if the widget is not placed correctly. DO NOT disable it if your widget includes "Read More"</div>
211 - </td>
212 -
213 - </tr>
214 -
215 -
216 - </table>
217 - <input class='button-secondary apply_button' type="submit" value="Apply Changes ✔"/>
156 + <input class='button-secondary' type="submit" value="Apply Changes ✔"/>
218 157 <!-- <a class='request_link' href=' http://taboola.com/contact' target='_blank'>Request Widget</a> -->
219 158 </form>
220 159 <div style='clear:both'></div>
221 -
222 - <form name="install_log" style="display:none;" method="post" action="http://trc.taboola.com/wordpressplugin/log/2/debug">
223 - <input name="tim" type="hidden" value="<?=date("H:i:s.000")?>">
224 - <input name="data" type="hideen" value="WORDPRESS_PLUGIN_INSTALL_URL|<?="//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"?>">
225 - </form>
226 -
227 160 <?php
228 161 if($_SERVER['REQUEST_METHOD'] == 'POST' && count($taboola_errors) == 0){
229 162 echo "<span class='label-success'>Your changes have been made! You can now see them on your site</span>";
230 163 }
231 -
232 164 if(count($taboola_errors) > 0){
233 165 for($i = 0; $i < count($taboola_errors); $i++){
234 166 echo "<span class='label-error'>".$taboola_errors[$i]."</span>";
235 167 }
@@ -238,12 +170,12 @@
238 170 </div>
239 171 <script>
240 172 function sync_checkboxes(){
241 173 if(jQuery('#first_bc_enabled').attr("checked")){
242 - jQuery('#second_bc_enabled').attr('disabled',false)
174 + jQuery('#second_bc_enabled').prop('disabled',false)
243 175 } else {
244 - jQuery('#second_bc_enabled').attr('checked', false);
245 - jQuery('#second_bc_enabled').attr('disabled',true)
176 + jQuery('#second_bc_enabled').prop('checked', false);
177 + jQuery('#second_bc_enabled').prop('disabled',true)
246 178 }
247 179 }
248 180 jQuery('#first_bc_enabled').change(sync_checkboxes);
249 181 setTimeout(function(){jQuery('.label-success').fadeOut()}, 6000);
@@ -248,19 +180,5 @@
248 180 jQuery('#first_bc_enabled').change(sync_checkboxes);
249 181 setTimeout(function(){jQuery('.label-success').fadeOut()}, 6000);
250 182 setTimeout(function(){jQuery('.label-error').fadeOut()}, 6000);
251 183 sync_checkboxes()
252 -
253 - jQuery('.toggle_intercept').click(function(){
254 - if (jQuery('.location_section').fadeToggle != undefined){
255 - jQuery('.location_section').fadeToggle('fast');
256 - }else{
257 - jQuery('.location_section').toggle();
258 - }
259 - jQuery('.toggle_icon').toggleClass('toggle_icon_on');
260 - });
261 -
262 - window.onload = function(){
263 - document.forms['install_log'].submit()
264 -
265 - }
266 184 </script>