File "view-debug-box.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/shortpixel-image-optimiser/build/shortpixel/log/src/view-debug-box.php
File size: 947 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php
// Debug Box to load Log File
namespace ShortPixel\ShortPixelLogger;
wp_enqueue_script( 'jquery-ui-draggable' );

?>

<style>
  .sp_debug_wrap
  {
    position: relative;
    clear: both;
  }
  .sp_debug_box
  {
    position: absolute;
    right: 0px;
    top: 50px;
    background-color: #fff;
    width: 150px;
    z-index: 1000000;
    border: 1px solid #000;

  }
  .sp_debug_box .header
  {
    min-height: 10px;
    background: #000;
    color: #fff;
    padding: 8px
  }
  .sp_debug_box .content_box
  {
    background: #ccc;
  }
  .content_box
  {
    padding: 8px;
  }
</style>

<script language='javascript'>
  jQuery(document).ready(function($)
  {
     $( ".sp_debug_box" ).draggable();

  });
</script>


<div class='sp_debug_box'>
     <div class='header'><?php echo $view->namespace ?> Debug Box </div>
     <a target="_blank" href='<?php echo $view->logLink ?>'>Logfile</a>
     <div class='content_box'>

     </div>
</div>