daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Aug 28th, 2018 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function myOwnFooter() {
  2.     frontAPI.getDefaults(function(defaults) {
  3.         var version = defaults.shop_version;        // Current shop version
  4.         var company_name = defaults.company_name;       // Company name
  5.         var date = new Date();
  6.         date = date.getFullYear();              // Current year
  7.  
  8.         $('#myOwnFooter').before('<div style="font-weight: bold;">'+ company_name +' © '+ date +' Wszelkie prawa zastrzeżone</div>')
  9.         .after('<span> w wersji: <strong>' + version + '</strong></span>');
  10.     });
  11. }
  12. function APIloader () {
  13.     if (!window.frontAPI) {
  14.       setTimeout(APIloader, 0);
  15.     } else {
  16.         myOwnFooter();
  17.         return true;
  18.     }
  19. }
  20. APIloader();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top