| Server IP : 172.67.201.108 / Your IP : 216.73.216.37 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/mommybites/wp-content/plugins/pubexchange/ |
Upload File : |
<style>
.pubexchange-container {
padding:20px 0 0;
padding-left:0;
font-size:18px;
}
table td img {
position:relative;
top:3px;
margin-left:5px;
}
table tr td:first-child {
width:190px;
}
table input {
width:100%;
}
hr {
margin:15px 0;
border-bottom:none;
}
.request_link {
float:right;
margin-right:10px;
line-height:26px;
}
.tooltip div { /* hide and position tooltip */
background-color:black;
color:white;
border-radius:5px;
opacity:0;
position:absolute;
font-size:14px;
-webkit-transition:opacity 0.5s;
-moz-transition:opacity 0.5s;
-ms-transition:opacity 0.5s;
-o-transition:opacity 0.5s;
transition:opacity 0.5s;
width:200px;
padding:10px;
margin-left:30px;
margin-top:-45px;
}
table .tooltip:hover div { /* display tooltip on hover */
opacity:1;
}
.support-text {
line-height:26px;
font-size:13px;
}
.label-success {
font-size:17px;
display:block;
margin-top:10px;
color:green;
}
.label-error {
font-size:17px;
display:block;
margin-top:10px;
color:red;
}
.apply_button{
margin-top:20px !important;
}
</style>
<div class="pubexchange-container">
<img src='<?php echo $this->plugin_url.'img/pubexchange.png' ?>'/>
<hr>
<form method="POST">
<table>
<tr>
<td>Publication ID</td>
<td>
<input type="text" name="pubexchange_publication_id" placeholder="publication" value="<?php echo htmlspecialchars($settings["pubexchange_publication_id"]) ?>"/>
</td>
<td class='tooltip'>
<img src='<?php echo $this->plugin_url.'img/qmark.png' ?>'/>
<div>Please contact your PubExchange representative to receive the Publication ID </div>
</td>
</tr>
<tr>
<td colspan='2' class="support-text">
Don't have a Publication ID?
<a style='float:inherit; margin-left:5px;' class='request_link' href=' https://www.pubexchange.com/#sign-up' target='_blank'>Sign-up for an account</a>
</td>
</tr>
</table>
<hr style='margin-bottom:25px; margin-top:5px;'>
<table>
<tr>
<td>Widget ID</td>
<td>
<input type="text" value="<?php echo $settings["pubexchange_widget_id"] ?>" name="pubexchange_widget_id" placeholder="Widget ID" />
</td>
<td class='tooltip'>
<img src='<?php echo $this->plugin_url.'img/qmark.png' ?>'/>
<div>Please contact your PubExchange representative to receive the Widget ID</div>
</td>
</tr>
<tr>
<td colspan='2' class="support-text">
Leave blank if only using a sidebar widget
</td>
</tr>
</table>
<hr style='margin-bottom:25px; margin-top:5px;'>
<table>
<tr>
<td>Widget Number</td>
<td>
<input type="text" value="<?php echo $settings["pubexchange_widget_number"] ?>" name="pubexchange_widget_number" placeholder="Widget Number" />
</td>
<td class='tooltip'>
<img src='<?php echo $this->plugin_url.'img/qmark.png' ?>'/>
<div>Please contact your PubExchange representative to receive the Widget Number</div>
</td>
</tr>
<tr>
<td colspan='2' class="support-text">
Leave blank if only using a sidebar widget
</td>
</tr>
</table>
<hr style='margin-bottom:25px; margin-top:5px;'>
<table>
<tr>
<td>Enable Lazy Load?</td>
<td>
<input type="hidden" name="pubexchange_lazy_load" value="0" id="pubexchange_lazy_load_false">
<input type="checkbox" name="pubexchange_lazy_load" value="1" <?php if ($settings["pubexchange_lazy_load"] !== "0") { echo 'checked="checked"'; } ?>> <span class="support-text">Load widget only when reader scrolls near where the widget will appear?</span>
</td>
</tr>
</table>
<table>
<tr>
<td>Enable Link Discovery?</td>
<td>
<input type="hidden" name="pubexchange_link_discovery" value="0" id="pubexchange_link_discovery_false">
<input type="checkbox" name="pubexchange_link_discovery" value="1" <?php if ($settings["pubexchange_link_discovery"]) { echo 'checked="checked"'; } ?>> <span class="support-text">Let PubExchange track the click of partner links in your articles?</span>
</td>
</tr>
</table>
<input class='button-secondary apply_button' type="submit" value="Apply Changes"/>
</form>
<div style='clear:both'></div>
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST' && count($pubexchange_errors) == 0){
echo "<span class='label-success'>Your changes have been made! Contact a PubExchange representative to activate your account.</span>";
}
if(count($pubexchange_errors) > 0){
for($i = 0; $i < count($pubexchange_errors); $i++){
echo "<span class='label-error'>".$pubexchange_errors[$i]."</span>";
}
}
?>
</div>
<script>
setTimeout(function(){jQuery('.label-success').fadeOut()}, 10000);
setTimeout(function(){jQuery('.label-error').fadeOut()}, 10000);
</script>