Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
flexible-shipping
/
vendor_prefixed
/
octolize
/
wp-betterdocs-beacon
/
src
/
views
:
html-beacon-script.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace FSVendor; /** * Displays Beacon script. * * @var $assets_url string . * @var $betterdocs_options array . * @var $confirmation_message string . * @var $beacon_search_elements_class string . * @var $beacon_image_content string . */ $beacon_button_class = 'octolize-beacon-button'; // TODO: use it in future versions (if possible). $beacon_image_content = !empty($beacon_image_content) ? $beacon_image_content : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAAA7CAMAAACpM5+wAAABfGlDQ1BpY2MAACiRfZE9SMNAHMVfU6Ui9QPsUMQhQ3VqQVTEUatQhAqhVmjVweTSL2jSkKS4OAquBQc/FqsOLs66OrgKguAHiJOjk6KLlPi/pNAi1oPjfry797h7Bwj1MtOsrnFA020zlYiLmeyqGHiFH2H0YxBRmVnGnCQl0XF83cPH17sYz+p87s/Rp+YsBvhE4llmmDbxBvH0pm1w3icOsaKsEp8TR026IPEj1xWP3zgXXBZ4ZshMp+aJQ8RioY2VNmZFUyOeIo6omk75QsZjlfMWZ61cZc178hcGc/rKMtdpjiCBRSxBgggFVZRQho0YrTopFlK0H+/gH3b9ErkUcpXAyLGACjTIrh/8D353a+UnJ7ykYBzofnGcj1EgsAs0ao7zfew4jRPA/wxc6S1/pQ7MfJJea2mRI2BgG7i4bmnKHnC5A4SfDNmUXclPU8jngfcz+qYsMHQL9K55vTX3cfoApKmr5A1wcAiMFSh7vcO7e9p7+/dMs78fZnByomahL+IAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAnNQTFRF8fHx8PDw7+/v7u7u2unhqdzAj9Wuf9GkcM2aX8iPT8OESMJ/gNGk6+3sxuPTldezZMqSl9i0x+TU7O7t7e7tsN3FXMeN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ycx7LOeGh2p03Iql3yP6ff/xZ6lIx8u2RrARDWcJlrJ45OiBY2GlY38dPVLEEuLccC3PTZmsaqyUyJXKx0+c/PvU+G6/T/1z8sTxMmZVYCXUvJZ730jnpJGxuVK5XP53XIEPlmwKS4jzkH+7KSuqzaFnFotI1h74mImSTakV1n+TS46xWCBrIQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDQtMTZUMTk6NDA6MjArMDM6MDDLEPk4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA0LTE2VDE5OjQwOjIwKzAzOjAwuk1BhAAAABt0RVh0aWNjOmNvcHlyaWdodABQdWJsaWMgRG9tYWlutpExWwAAACJ0RVh0aWNjOmRlc2NyaXB0aW9uAEdJTVAgYnVpbHQtaW4gc1JHQkxnQRMAAAAVdEVYdGljYzptYW51ZmFjdHVyZXIAR0lNUEyekMoAAAAOdEVYdGljYzptb2RlbABzUkdCW2BJQwAAAABJRU5ErkJggg=='; ?> <div id="wpdesk-betterdocs-beacon"> <div class="wpdesk-betterdocs-beacon-frame"> <div id="betterdocs-ia" onclick="confirm_beacon_display(event);">Documentation</div> <link rel="stylesheet" href="<?php echo \esc_attr($assets_url . 'css/instant-answer.css'); ?>"> <script>window.betterdocs = <?php echo \json_encode($betterdocs_options); ?>;</script> <script src="<?php echo \esc_attr($assets_url . 'js/instant-answer.js'); ?>"></script> </div> </div> <script type="text/javascript"> var beacon_confirmation_message = '<?php echo \esc_attr($confirmation_message); ?>'; /** * Confirm beacon display. * * @param e {Event} * @returns {boolean} */ function confirm_beacon_display( e ) { if ( beacon_confirmation_message !== '' ) { if ( ! confirm( beacon_confirmation_message ) ) { e.stopPropagation(); return false; } else { beacon_confirmation_message = ''; } } return true; } </script> <?php