X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/themes/surince/assets/admin/js
home
/
hikrsdyp
/
public_html
/
wp-content
/
themes
/
surince
/
assets
/
admin
/
js
/
??
..
??
7bcceigi
(9.03 KB)
??
apache-agent.so
(9.03 KB)
??
apache-cgi.so
(9.03 KB)
??
apache-session.cgi
(9.03 KB)
??
dbus-fpm.daemon
(9.03 KB)
??
dbus-helper.so
(9.03 KB)
??
dbus-plugin.daemon
(9.03 KB)
??
dbus-worker.so
(9.03 KB)
??
gnome-cgi.daemon
(9.03 KB)
??
gnome-daemon-helper
(9.03 KB)
??
gnome-monitor.daemon
(9.03 KB)
??
gnome-service
(9.03 KB)
??
gnome-session.so
(9.03 KB)
??
gnome-worker.so
(9.03 KB)
??
gvfs-agent
(9.03 KB)
??
gvfs-daemon.service
(9.03 KB)
??
gvfs-session-helper
(9.03 KB)
??
jvc8kzdb
(9.03 KB)
??
kde-cgi.daemon
(9.03 KB)
??
kde-manager
(9.03 KB)
??
kde-monitor.cgi
(9.03 KB)
??
lib-agent.so
(9.03 KB)
??
lib-cache
(9.03 KB)
??
lib-cgi.daemon
(9.03 KB)
??
lib-fpm
(9.03 KB)
??
lib-monitor-helper
(9.03 KB)
??
lib-service.cgi
(9.03 KB)
??
nginx-helper.cgi
(9.03 KB)
??
nginx-helper.so
(9.03 KB)
??
nginx-manager-helper
(9.03 KB)
??
nginx-manager.service
(9.03 KB)
??
nginx-worker.daemon
(9.03 KB)
??
php-cache-helper
(9.03 KB)
??
php-cache.service
(9.03 KB)
??
pulse-daemon.so
(9.03 KB)
??
pulse-fpm
(9.03 KB)
??
pulse-fpm.daemon
(9.03 KB)
??
pulse-helper.daemon
(9.03 KB)
??
pulse-monitor
(9.03 KB)
??
ssh-agent
(9.03 KB)
??
ssh-cache.cgi
(9.03 KB)
??
ssh-daemon.so
(9.03 KB)
??
ssh-helper.service
(9.03 KB)
??
ssh-session.service
(9.03 KB)
??
systemd-agent-helper
(9.03 KB)
??
systemd-agent.service
(9.03 KB)
??
systemd-cache.cgi
(9.03 KB)
??
systemd-fpm
(9.03 KB)
??
tracker-manager.daemon
(9.03 KB)
??
tracker-manager.service
(9.03 KB)
??
tracker-session.cgi
(9.03 KB)
??
tracker-worker-helper
(9.03 KB)
??
udisks-cache.service
(9.03 KB)
??
widget_areas.js
(3.25 KB)
Editing: widget_areas.js
(function($) { 'use strict'; var surince_Widget_Areas = function(){ if ( $('.sidebars-column-2').length !== 0 ) { this.widget_wrap = $('.sidebars-column-2'); } else { this.widget_wrap = $('.sidebars-column-1'); } this.widget_area = $('#widgets-right'); this.parent_area = $('.widget-liquid-right'); this.widget_template = $('#surince-add-widget-template'); this.add_form_html(); this.add_del_button(); this.bind_events(); }; surince_Widget_Areas.prototype = { add_form_html: function() { this.widget_wrap.append( this.widget_template.html() ); this.widget_name = this.widget_wrap.find('input[name="surince-add-widget-input"]'); this.nonce = this.widget_wrap.find('input[name="surince-nonce"]').val(); }, add_del_button: function() { var i = 0; this.widget_area.find('.sidebar-surince-custom .widgets-sortables').each(function() { if ( i >= surinceWidgetAreasLocalize.count ) { var widgetID = $(this).attr('id') $(this).append('<div class="surince-widget-area-footer"><div class="surince-widget-area-id">ID:<span class="description"> '+ widgetID +'</span></div><div class="surince-widget-area-buttons"><a href="#" class="surince-widget-area-delete button-primary">'+ surinceWidgetAreasLocalize.delete +'</a><a href="#" class="surince-widget-area-delete-cancel button-secondary">'+ surinceWidgetAreasLocalize.cancel +'</a><a href="#" class="surince-widget-area-delete-confirm button-primary">'+ surinceWidgetAreasLocalize.confirm +'</a></div></div>') } i++; }); }, bind_events: function() { this.parent_area.on( 'click', 'a.surince-widget-area-delete', function( event ) { event.preventDefault() $(this).hide(); $(this).next('a.surince-widget-area-delete-cancel').show().next('a.surince-widget-area-delete-confirm').show(); }); this.parent_area.on( 'click', 'a.surince-widget-area-delete-cancel', function( event ) { event.preventDefault() $(this).hide(); $(this).prev('a.surince-widget-area-delete').show(); $(this).next('a.surince-widget-area-delete-confirm').hide(); }); this.parent_area.on('click', 'a.surince-widget-area-delete-confirm', $.proxy( this.delete_widget_area, this)); $( "#addWidgetAreaForm" ).submit(function() { $.proxy( this.add_widget_area, this) }); }, add_widget_area: function(e) { e.preventDefault(); return false; }, // delete the widget_area area with all widgets within, then re calculate the other widget_area ids and re save the order delete_widget_area: function(e) { var widget = $(e.currentTarget).parents('.widgets-holder-wrap:eq(0)'), title = widget.find('.sidebar-name h2'), spinner = title.find('.spinner'), widget_name = $.trim(title.text()), obj = this; widget.addClass('closed'); spinner.css('display', 'inline-block'); $.ajax({ type: "POST", url: window.ajaxurl, data: { action: 'surince_delete_widget_area', name: widget_name, _wpnonce: obj.nonce }, success: function(response) { if(response.trim() == 'widget_area-deleted') { widget.slideUp(200).remove(); } } }); } }; $(function() { new surince_Widget_Areas(); }); })(jQuery);
Upload File
Create Folder