Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/flattr/script.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mike  >  PHP Socializer  >  templates/flattr/script.js  >  Download  
File: templates/flattr/script.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Socializer
Embed social buttons and widgets in Web pages
Author: By
Last change:
Date: 1 year ago
Size: 742 bytes
 

Contents

Class file image Download
_socialQueue.push({
    url: 'http://api.flattr.com/js/0.6/load.js?mode=auto&uid=gargamel&language=sv_SE&category=text',
    id: '<?php echo $this->name; ?>',
    onload: function(f) {
        if ('<?php echo $this->fadeIn; ?>') {
            f.awaitRender({
                buttons: document.getElementsByClassName('coi-social-button-<?php echo $this->name; ?>'),
                duration: '<?php echo $this->fadeIn; ?>',
                isRendered: function(element) {
                    return element.getElementsByTagName('IFRAME')[0];
                },
                renderedMethod: function(b, d) {
                    f.iframeOnload(b.getElementsByTagName('IFRAME')[0], b, d);
                }
            });
        }
    }
});