PluginProbe
Taboola / 2.0.1
Taboola v2.0.1
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 +12 -65 2.1.02.0.1 View file →
@@ -6,14 +6,8 @@
6 6 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
7 7
8 8 <style>
9 9
10 - a {
11 - color: rgb(68,114,196);
12 - text-decoration: none;
13 - font-weight: bold;
14 - }
15 -
16 10 .taboola-container {
17 11 padding: 20px;
18 12 padding-left: 0;
19 13 font-size: 14px;
@@ -392,27 +386,8 @@
392 386 input.highlight {
393 387 border: 1px solid orange !important;
394 388 }
395 389
396 - #rightrail-banner{
397 - border: 1px solid #d4d9df;
398 - border-radius: 10px;
399 - background: rgba(51, 125, 247, 0.1);
400 - padding: 10px;
401 -
402 - width: 95%;
403 - margin: auto;
404 - /* color: #0f4c81; */
405 - }
406 -
407 - #right-rail{
408 - padding-top: 10px;
409 - }
410 -
411 - hr {
412 - border-top: 1px solid lightgray;
413 - }
414 -
415 390 </style>
416 391
417 392 <?php
418 393
@@ -547,16 +522,8 @@
547 522
548 523 <!-- Welcome Massage-->
549 524
550 525 <form method="POST">
551 -
552 - <?php
553 - // Generate a nonce and pass it via a hidden field
554 - $my_nonce = wp_create_nonce( 'my_plugin_update_field_action' );
555 - ?>
556 -
557 - <input type="hidden" name="my_plugin_nonce" value="<?php echo esc_attr( $my_nonce ); ?>"/>
558 -
559 526 <h2 class="general_h2">General Settings</h2>
560 527
561 528 <div class="settings_block">
562 529 <div class="style_box1"><label id="pub_id">Publisher ID :</label>
@@ -571,14 +538,14 @@
571 538 <div>Your Publisher ID, as provided by Taboola.</div>
572 539 </div>
573 540 </div>
574 541 <div class="pub_id">
575 - <input id="publisher-id" type="text" name="publisher_id" placeholder="publisher" value="<?php echo !empty($settings->publisher_id) ? strip_tags($settings->publisher_id) : '' ?>"/>
542 + <input id="publisher-id" type="text" name="publisher_id" placeholder="publisher" value="<?php echo !empty($settings->publisher_id) ? htmlspecialchars($settings->publisher_id) : '' ?>"/>
576 543 </div>
577 544 <div class="statement">
578 - <label style="color: #000000; padding-">
579 - Don't have an account with taboola? <a href='http://taboola.com/contact' target='_blank'>Contact us</a> to get started.
580 - </label>
545 + <label style="color: #000000;">Don't have an account with taboola?</label>
546 + <a style='float: inherit;' class='request_link' href='http://taboola.com/contact' target='_blank'>Contact us</a>
547 + <label style="margin-left: -9px; color: #000000;">to get started.</label>
581 548 </div>
582 549 </div>
583 550
584 551
@@ -622,12 +589,12 @@
622 589 </div>
623 590 </div>
624 591 <div class="input_below">
625 592 <div class="widget_below">
626 - <input id="first_bc_widget_id" type="text" value="<?php echo !empty($settings->first_bc_widget_id) ? strip_tags($settings->first_bc_widget_id) : "" ?>" name="first_bc_widget_id" placeholder="Widget ID" />
593 + <input id="first_bc_widget_id" 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" />
627 594 </div>
628 595 <div class="placement_below">
629 - <input type="text" id="first_bc_placement" value="<?php echo !empty($settings->first_bc_placement) ? strip_tags($settings->first_bc_placement) : "" ?>" name="first_bc_placement" placeholder="Placement Name" />
596 + <input type="text" id="first_bc_placement" value="<?php echo !empty($settings->first_bc_placement) ? htmlspecialchars($settings->first_bc_placement) : "" ?>" name="first_bc_placement" placeholder="Placement Name" />
630 597 </div>
631 598 </div>
632 599
633 600 <!-- Below Article Widget -->
@@ -687,12 +654,12 @@
687 654 </div>
688 655 </div>
689 656 <div>
690 657 <div class="widget_below_mid">
691 - <input id="mid_widget_id" type="text" value="<?php echo !empty($settings->mid_widget_id) ? strip_tags($settings->mid_widget_id) : "" ?>" name="mid_widget_id" placeholder="Widget ID" />
658 + <input id="mid_widget_id" type="text" value="<?php echo !empty($settings->mid_widget_id) ? htmlspecialchars($settings->mid_widget_id) : "" ?>" name="mid_widget_id" placeholder="Widget ID" />
692 659 </div>
693 660 <div class="placement_below_mid">
694 - <input id = "mid_placement" type="text" value="<?php echo !empty($settings->mid_placement) ? strip_tags($settings->mid_placement) : "" ?>" name="mid_placement" placeholder="Placement Name" />
661 + <input id = "mid_placement" type="text" value="<?php echo !empty($settings->mid_placement) ? htmlspecialchars($settings->mid_placement) : "" ?>" name="mid_placement" placeholder="Placement Name" />
695 662 </div>
696 663 </div>
697 664
698 665 <div id="mid_occurrence_div">
@@ -737,34 +704,14 @@
737 704 </div>
738 705 </div>
739 706 </div>
740 707 <div class="widget_below_mid_selector">
741 - <input id = "mid_location_string" type="text" value="<?php echo !empty($settings->mid_location_string) ? strip_tags($settings->mid_location_string) : "p" ?>" name="mid_location_string" placeholder="E.g. p for paragraph" />
708 + <input id = "mid_location_string" type="text" value="<?php echo !empty($settings->mid_location_string) ? htmlspecialchars($settings->mid_location_string) : "p" ?>" name="mid_location_string" placeholder="E.g. p for paragraph" />
742 709 </div>
743 710 </div>
744 711 </div>
745 712 <!-- Mid Article Widget -->
746 713
747 -<!-- Right Rail Article Widget -->
748 -
749 -<div id="right-rail" class="settings_block widget_settings_block">
750 - <label id="right-rail-label"><b style="font-size:15px;margin-left: 10px;">Right-rail (sidebar)</b> </label>
751 - <div style="font-size:14px;margin: 5px 10px 10px 10px;">You can insert a <b>Taboola</b> unit in your website <b>sidebar</b> (if your <b>WordPress</b> theme provides one):</div>
752 -
753 - <div id="rightrail-banner">
754 - 1. In the <b>sidebar menu</b> (<i>left</i>) select <b>Appearance</b> > <b>Widgets</b>, or click <a href="widgets.php" target="_blank">here</a> to open the <b>Widgets</b> panel. </br>
755 - 2. Click on the <span style="font-size: 18px; font-weight:bold">+</span> icon (<i>top, left</i>) and type in <b>"Taboola".</b></br>
756 - 3. Drag the <b>Taboola</b> widget to the desired position in the sidebar (<i>right</i>).</br>
757 - 4. Enter the <b>Widget ID (Mode)</b>, as provided by <b>Taboola</b>.</br>
758 - 5. Click on <b>Update</b> (<i>top, right</i>) to save your changes.</br>
759 - 6. Browse to your website and verify that the newly added unit displays correctly.</br>
760 - <hr>
761 - To <b>watch a demo</b> of the above steps, see our <a href="https://developers.taboola.com/web-integrations/docs/sidebar-widget" target="_blank">online docs</a>.
762 - </div>
763 -</div>
764 -
765 -<!-- Right Rail Article Widget -->
766 -
767 714 <!-- Homepage mid widget -->
768 715
769 716
770 717 <div id="homepage" class="settings_block widget_settings_block">
@@ -809,12 +756,12 @@
809 756 </div>
810 757 </div>
811 758 <div>
812 759 <div class="widget_below_home">
813 - <input id="home_widget_id" type="text" value="<?php echo !empty($settings->home_widget_id) ? strip_tags($settings->home_widget_id) : "" ?>" name="home_widget_id" placeholder="Widget ID" />
760 + <input id="home_widget_id" type="text" value="<?php echo !empty($settings->home_widget_id) ? htmlspecialchars($settings->home_widget_id) : "" ?>" name="home_widget_id" placeholder="Widget ID" />
814 761 </div>
815 762 <div class="placement_below_home">
816 - <input id = "home_placement" type="text" value="<?php echo !empty($settings->home_placement) ? strip_tags($settings->home_placement) : "" ?>" name="home_placement" placeholder="Placement Name" />
763 + <input id = "home_placement" type="text" value="<?php echo !empty($settings->home_placement) ? htmlspecialchars($settings->home_placement) : "" ?>" name="home_placement" placeholder="Placement Name" />
817 764 </div>
818 765 </div>
819 766
820 767 <div class='heading_mid_home'><label style="float:left;">Position the widget immediately below the element:</label>
@@ -864,9 +811,9 @@
864 811 </div>
865 812 </div>
866 813 <div class="home_placement">
867 814 <div class="widget_below_home_selector">
868 - <input id = "home_location_string" type="text" value="<?php echo !empty($settings->home_location_string) ? strip_tags($settings->home_location_string) : "" ?>" name="home_location_string" placeholder="E.g. p for paragraph" /></td>
815 + <input id = "home_location_string" type="text" value="<?php echo !empty($settings->home_location_string) ? htmlspecialchars($settings->home_location_string) : "" ?>" name="home_location_string" placeholder="E.g. p for paragraph" /></td>
869 816 </div>
870 817 <div class="placement_below_home_Occurrence">
871 818 <input type="number" id="home_occurrence" value="<?php echo !empty($settings->home_location_string_occurrence) ? $settings->home_location_string_occurrence : "1" ?>" name="home_location_string_occurrence" placeholder="" style="width:65px;">
872 819 </div>