PluginProbe
Taboola / 2.1.1
Taboola v2.1.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 +65 -12 2.0.12.1.1 View file →
@@ -6,8 +6,14 @@
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 +
10 16 .taboola-container {
11 17 padding: 20px;
12 18 padding-left: 0;
13 19 font-size: 14px;
@@ -386,8 +392,27 @@
386 392 input.highlight {
387 393 border: 1px solid orange !important;
388 394 }
389 395
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 +
390 415 </style>
391 416
392 417 <?php
393 418
@@ -522,8 +547,16 @@
522 547
523 548 <!-- Welcome Massage-->
524 549
525 550 <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 +
526 559 <h2 class="general_h2">General Settings</h2>
527 560
528 561 <div class="settings_block">
529 562 <div class="style_box1"><label id="pub_id">Publisher ID :</label>
@@ -538,14 +571,14 @@
538 571 <div>Your Publisher ID, as provided by Taboola.</div>
539 572 </div>
540 573 </div>
541 574 <div class="pub_id">
542 - <input id="publisher-id" type="text" name="publisher_id" placeholder="publisher" value="<?php echo !empty($settings->publisher_id) ? htmlspecialchars($settings->publisher_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) : '' ?>"/>
543 576 </div>
544 577 <div class="statement">
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>
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>
548 581 </div>
549 582 </div>
550 583
551 584
@@ -589,12 +622,12 @@
589 622 </div>
590 623 </div>
591 624 <div class="input_below">
592 625 <div class="widget_below">
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" />
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" />
594 627 </div>
595 628 <div class="placement_below">
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" />
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" />
597 630 </div>
598 631 </div>
599 632
600 633 <!-- Below Article Widget -->
@@ -654,12 +687,12 @@
654 687 </div>
655 688 </div>
656 689 <div>
657 690 <div class="widget_below_mid">
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" />
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" />
659 692 </div>
660 693 <div class="placement_below_mid">
661 - <input id = "mid_placement" type="text" value="<?php echo !empty($settings->mid_placement) ? htmlspecialchars($settings->mid_placement) : "" ?>" name="mid_placement" placeholder="Placement Name" />
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" />
662 695 </div>
663 696 </div>
664 697
665 698 <div id="mid_occurrence_div">
@@ -704,14 +737,34 @@
704 737 </div>
705 738 </div>
706 739 </div>
707 740 <div class="widget_below_mid_selector">
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" />
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" />
709 742 </div>
710 743 </div>
711 744 </div>
712 745 <!-- Mid Article Widget -->
713 746
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 +
714 767 <!-- Homepage mid widget -->
715 768
716 769
717 770 <div id="homepage" class="settings_block widget_settings_block">
@@ -756,12 +809,12 @@
756 809 </div>
757 810 </div>
758 811 <div>
759 812 <div class="widget_below_home">
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" />
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" />
761 814 </div>
762 815 <div class="placement_below_home">
763 - <input id = "home_placement" type="text" value="<?php echo !empty($settings->home_placement) ? htmlspecialchars($settings->home_placement) : "" ?>" name="home_placement" placeholder="Placement Name" />
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" />
764 817 </div>
765 818 </div>
766 819
767 820 <div class='heading_mid_home'><label style="float:left;">Position the widget immediately below the element:</label>
@@ -811,9 +864,9 @@
811 864 </div>
812 865 </div>
813 866 <div class="home_placement">
814 867 <div class="widget_below_home_selector">
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>
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>
816 869 </div>
817 870 <div class="placement_below_home_Occurrence">
818 871 <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;">
819 872 </div>