mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
36 lines
No EOL
1.1 KiB
PHP
36 lines
No EOL
1.1 KiB
PHP
<?php
|
|
$obj = AVideoPlugin::getObjectDataIfEnabled('AD_Overlay');
|
|
|
|
$ad = new AD_Overlay_Code(0);
|
|
$ad->loadFromUser(User::getId());
|
|
?>
|
|
<div id="adOverlay" class="tab-pane fade" style="padding: 10px 0;">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
AD Code
|
|
</div>
|
|
<div class="panel-body">
|
|
<textarea class="form-control" rows="10" id="addOverlayCode"><?php echo htmlentities($ad->getCode()); ?></textarea>
|
|
<button class="btn btn-success btn-block" type="button" onclick="saveCode()"><?php echo __("Save Ad Code") ?></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
function saveCode() {
|
|
modal.showPleaseWait();
|
|
$.ajax({
|
|
url: webSiteRootURL + 'plugin/AD_Overlay/saveCode.json.php',
|
|
data: {
|
|
"addOverlayCode": $('#addOverlayCode').val()
|
|
},
|
|
type: 'post',
|
|
success: function(response) {
|
|
avideoResponse(response);
|
|
modal.hidePleaseWait();
|
|
}
|
|
});
|
|
}
|
|
$(document).ready(function() {
|
|
|
|
});
|
|
</script>
|