2017 © Pedro Peláez
 

yii2-extension yii2pinit

Yii2 pinit Integration

image

philippfrenzel/yii2pinit

Yii2 pinit Integration

  • Thursday, March 6, 2014
  • by philippfrenzel
  • Repository
  • 0 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2pinit

Pin It Button for Yii2, (*1)

Setup

Pls add the image you want to show as overlay to your pictures within the folder, (*2)

web/img/pinterest.png, (*3)

Should be interlaced and not to big;), (*4)

Sample CKEDITOR

$pinterest = <<< SCRIPT
{instanceReady: function() {
  this.dataProcessor.htmlFilter.addRules({
      elements: {
          img: function( el ) {
              if ( !el.attributes.alt )
                  el.attributes.alt = 'pinterest-image';
              var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<div class="pinterest-image">'+el.getOuterHtml()+'</div>' );
              el.replaceWith(fragment);
          }
      }
  });          
}}
SCRIPT;

The Versions

06/03 2014

dev-master

9999999-dev http://www.frenzel.net/

Yii2 pinit Integration

  Sources   Download

MIT

The Requires

 

yii yii2pinit.js