"use strict";
(function ($) {
    $.view_list_order = function (element, options) {
        let defaults = {
            title:''
        };
        let plugin = this;
        plugin.settings = {};
        let $element = $(element);
        plugin.init = function () {
            plugin.settings = $.extend({}, defaults, options);
            let title = plugin.settings.title;
            if(title.trim() === '') {
                $('body').find('.entry-title').html('List order')
            } else {
                $('body').find('.entry-title').html(title)
            }
        };
        plugin.example_function = function () {
        };
        plugin.init();
    };
    $.fn.view_list_order = function (options) {
        return this.each(function () {
            if (undefined === $(this).data('view_list_order')) {
                let plugin = new $.view_list_order(this, options);
                $(this).data('view_list_order', plugin);
            }
        });
    }
})(jQuery);
