HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/woffice-core/libs/assets/js/woffice-whitelabel.js
jQuery.noConflict();
;(function( $, woffice, undefined ) {

	woffice.clientEdit = {
		config: {
		},
	};
	woffice.clientEdit.whitelabel_text = function() {
		jQuery('*').contents().each(function(){ 
            if(this.nodeType == 3) {
                this.nodeValue = this.nodeValue.replace("Woffice", whitelabel.myslug);	
            }
        });
        jQuery('#wp-admin-bar-woffice-default li:not(:first-child)').slice(11).remove();
        jQuery('.fw-settings-form-header a').remove();
        jQuery('.fw-options-tabs-wrapper .ui-tabs-nav [aria-controls="fw-options-tab-plugin-licence"]').remove();
        jQuery('#fw-options-box-login-box .image_picker_selector img').attr('src',function(i,e){
		    return jQuery(this).attr('src').replace("login-layout1.jpg","login-layout1-whitelabel.png");
		});
		jQuery('#fw-options-box-login-box .image_picker_selector img').attr('src',function(i,e){
        	return jQuery(this).attr('src').replace("login-layout2.jpg","login-layout2-whitelabel.png");
		});
		jQuery('#fw-backend-option-fw-option-projects_assigned_dailyemail_notification .fw-inner a').remove();
		
		jQuery('.theme-overlay.active .theme-author').remove();
		jQuery('#the-list [data-slug="woffice-core"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-woffice"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="advanced-tasks-for-woffice"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-advanced-email"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-advanced-reporting"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-kanban-style-shorting"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-okr"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="subscriptions-for-woocommerce-woffice"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="team-view"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-timeline"] .plugin-version-author-uri a').remove();
		jQuery('#the-list [data-slug="woffice-woo-custom-post-type-manager"] .plugin-version-author-uri a').remove();
	};
	woffice.clientEdit.init = function() {
		/**
		 * whitelabel_text
		 */
		$(document).ready(function(e) {
          woffice.clientEdit.whitelabel_text();
           setTimeout(function () {
             woffice.clientEdit.whitelabel_text();
         	}, 300);
        });
        $(document).on('click','body *', function(){ 
		    woffice.clientEdit.whitelabel_text();
		});		
	}
})( jQuery, window.woffice = window.woffice || {} );

// Init
jQuery(function() {
	woffice.clientEdit.init();

});