HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/gallery-images/templates/admin/inline-popup-content-html.php
<script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery('#hugeitgalleryinsert').on('click', function() {
            var id = jQuery('#huge_it_gallery-select option:selected').val();
            window.send_to_editor('[huge_it_gallery id="' + id + '"]');
            tb_remove();
        })
    });
</script>
<div id="huge_it_gallery" style="display:none;">
    <h3><?php echo __('Select Huge IT Gallery to insert into post', 'gallery-images'); ?></h3>
    <?php
    global $wpdb;
    $query="SELECT * FROM ".$wpdb->prefix."huge_itgallery_gallerys order by id ASC";
    $shortcodegallerys=$wpdb->get_results($query);
    ?>
    <?php  if (count($shortcodegallerys)) {
        echo "<select id='huge_it_gallery-select'>";
        foreach ($shortcodegallerys as $shortcodegallery) {
            echo "<option value='".$shortcodegallery->id."'>".$shortcodegallery->name."</option>";
        }
        echo "</select>";
        echo "<button class='button primary' id='hugeitgalleryinsert'>Insert gallery</button>";
    } else {
        echo "No slideshows found", "huge_it_gallery";
    }
    ?>
</div>