[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.141.46.238: ~ $
/*
* SiteSEO
* https://siteseo.io/
* (c) SiteSEO Team <support@siteseo.io>
*/

/*
Copyright 2016 - 2024 - Benjamin Denis  (email : contact@seopress.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

//Video Sitemap
jQuery(document).ready(function ($) {
    function siteseo_call_media_uploader() {
        var mediaUploader;
        var thumb;
        $(".siteseo_video_thumbnail_upload").click(function (e) {
            e.preventDefault();
            $btn = $(this);
            // If the uploader object has already been created, reopen the dialog
            if (mediaUploader) {
                mediaUploader.open();
                return;
            }
            thumb = $(this).prev();
            // Extend the wp.media object
            mediaUploader = wp.media.frames.file_frame = wp.media({
                multiple: false,
            });

            // When a file is selected, grab the URL and set it as the text field's value
            mediaUploader.on("select", function () {
                var attachment = mediaUploader
                    .state()
                    .get("selection")
                    .first()
                    .toJSON();
                $btn.prev().val(attachment.url);
            });
            // Open the uploader dialog
            mediaUploader.open();
        });
    }
    siteseo_call_media_uploader();

    var template = $("#wrap-videos .video:last").clone();

    //accordion
    var stop = false;
    $("#wrap-videos .video h3").click(function (event) {
        if (stop) {
            event.stopImmediatePropagation();
            event.preventDefault();
            stop = false;
        }
    });
    function siteseo_call_video_accordion() {
        $("#wrap-videos .video").accordion({
            animate: false,
            collapsible: true,
            active: false,
            heightStyle: "panel",
        });
    }
    siteseo_call_video_accordion();

    //define counter
    var sectionsCount = $("#wrap-videos").attr("data-count");

    //add new section
    $("#add-video").click(function () {
        //increment
        sectionsCount++;

        //loop through each input
        var section = template
            .clone()
            .find(":input")
            .each(function () {
                //Stock input id
                var input_id = this.id;

                //Stock input name
                var input_name = this.name;

                //set id to store the updated section number
                var newId = this.id.replace(
                    /^(\w+)\[.*?\]/,
                    "$1[" + sectionsCount + "]"
                );

                //Update input name
                $(this).attr(
                    "name",
                    input_name.replace(
                        /^(\w+)\[.*?\]/,
                        "$1[" + sectionsCount + "]"
                    )
                );

                //Clear input value
                if (!$(this).hasClass("siteseo_video_thumbnail_upload")) {
                    $(this).attr("value", "");
                }

                //update for label
                if ($(this).is(":checkbox")) {
                    $(this)
                        .parent()
                        .attr(
                            "for",
                            input_id.replace(
                                /^(\w+)\[.*?\]/,
                                "$1[" + sectionsCount + "]"
                            )
                        );
                    $(this)
                        .parent()
                        .attr(
                            "id",
                            input_name.replace(
                                /^(\w+)\[.*?\]/,
                                "$1[" + sectionsCount + "]"
                            )
                        );
                } else if (
                    $(this).hasClass("siteseo_video_thumbnail_upload")
                ) {
                    //do nothing
                } else {
                    $(this)
                        .prev()
                        .attr(
                            "for",
                            input_id.replace(
                                /^(\w+)\[.*?\]/,
                                "$1[" + sectionsCount + "]"
                            )
                        );
                    $(this)
                        .prev()
                        .attr(
                            "id",
                            input_name.replace(
                                /^(\w+)\[.*?\]/,
                                "$1[" + sectionsCount + "]"
                            )
                        );
                }

                //update id
                this.id = newId;
            })
            .end()

            //inject new section
            .appendTo("#wrap-videos");
        siteseo_call_video_accordion();
        $("#wrap-videos .video").accordion("destroy");
        siteseo_call_video_accordion();
        $("[id^=__wp-uploader-id-]").each(function () {
            $(this).remove();
        });
        siteseo_call_media_uploader();
        return false;
    });

    //remove section
    $("#wrap-videos").on("click", ".remove-video", function () {
        //fade out section
        $(this).fadeOut(300, function () {
            $(this).parent().parent().parent().remove();
            return false;
        });
        return false;
    });
});

Filemanager

Name Type Size Permission Actions
admin.js File 18.36 KB 0644
siteseo-analytics.js File 1.3 KB 0644
siteseo-analytics.min.js File 1.11 KB 0644
siteseo-block-editor.js File 10.35 KB 0644
siteseo-block-editor.min.js File 6.79 KB 0644
siteseo-classic-editor.js File 3.64 KB 0644
siteseo-classic-editor.min.js File 3.64 KB 0644
siteseo-cookies-ajax.js File 2.96 KB 0644
siteseo-cookies-ajax.min.js File 2.45 KB 0644
siteseo-cookies.js File 3.86 KB 0644
siteseo-cookies.min.js File 2.41 KB 0644
siteseo-counters.js File 16.44 KB 0644
siteseo-counters.min.js File 9.94 KB 0644
siteseo-dashboard.js File 15.57 KB 0644
siteseo-dashboard.min.js File 8.92 KB 0644
siteseo-media-uploader.js File 5.03 KB 0644
siteseo-media-uploader.min.js File 2.75 KB 0644
siteseo-metabox.js File 13.82 KB 0644
siteseo-metabox.min.js File 9.24 KB 0644
siteseo-migrate.js File 13.38 KB 0644
siteseo-migrate.min.js File 7.41 KB 0644
siteseo-network-tabs.js File 4.01 KB 0644
siteseo-network-tabs.min.js File 3.13 KB 0644
siteseo-quick-edit.js File 4.04 KB 0644
siteseo-quick-edit.min.js File 3.01 KB 0644
siteseo-sitemap-ajax.js File 1.38 KB 0644
siteseo-sitemap-ajax.min.js File 1.28 KB 0644
siteseo-sitemap-video.js File 5.91 KB 0644
siteseo-sitemap-video.min.js File 2.83 KB 0644
siteseo-tabs.js File 16.85 KB 0644
siteseo-tabs.min.js File 9.53 KB 0644
tagify.min.js File 46.94 KB 0644
wp-color-picker-alpha.min.js File 6.93 KB 0644