"use strict";
(function ($) {
    $.view_list_account = 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('User account')
            } else {
                $('body').find('.entry-title').html(title)
            }
        };
        plugin.example_function = function () {
        };
        plugin.init();
    };
    $.fn.view_list_account = function (options) {
        return this.each(function () {
            if (undefined === $(this).data('view_list_account')) {
                let plugin = new $.view_list_account(this, options);
                $(this).data('view_list_account', plugin);
            }
        });
    }
})(jQuery);
