0

Yii2-Pinterest-Widgets

Yii2 extension for pinterest widgets, making it easy to add Pinterest content onto your website.

Resources

Installation

Composer

Add extension to your composer.json and update your dependencies as usual, e.g. by running composer update

yii2-pinterest

The full list of available widgets are:

  • Pin It Button
  • Pinterest Follow Button
  • Pinterest Pin Widget
  • Pinterest Profile Widget
  • Pinterest Board Widget

Pin It Button

The Pin It button is the best way for your business to get content on Pinterest. With just one click, visitors can save content they like on your site to Pinterest, which helps even more Pinners discover you.

proptypedefaultnotes
typestring‘any’enum of [‘any’, ‘one’]
largebooleannot set (false)is large sized button
roundbooleannot set (false)is circular button

The following props are specific for type=”one”. Each prop refers to the Pin to be pinned on click. A new Pin will be created using media, url and description.

proptypenotes
mediastringthe image url of the Pin to create
urlstringthe link back of the Pin to create
descriptionstringthe description of the Pin to create

Note: there are more settings available than this widget currently supports. For the full description of the settings, defaults and their effect, refer to documentation.

Use:

Pinterest Follow Button

The follow button lets Pinners easily follow your business’s Pinterest page.

proptypenotes
boardstringthe board slug of the board to follow (<username>/<board_name>)
userstringthe username of the user to follow
textstringthe text to be displayed on the follow button

Choose either a board or user to follow. If both are specified, board will be used.

Use:

Pinterest Pin Widget

Pin widget lets you show a Pin and is perfect for when you find a Pin that fits your look and feel.

proptypedefaultnotes
pinstringrequiredthe id of the Pin to display
sizestringnot set (‘small’)enum of [‘small’, ‘medium’, ‘large’]
tersebooleannot set (false)whether to hide description

Use:

Pinterest Board Widget

Board widget displays an entire board (up to 50 Pins), providing your visitors a quick taste of what your Pinterest profile’s all about.

proptypedefaultnotes
boardstringrequiredthe board slug of the board (<username>/<board_name>)
boardWidthnumbernot setthe width of the board widget
boardHeightnumbernot setthe height of the board widget
imageWidthnumbernot setthe width of the Pin thumbnails within the widget

Use:

Pinterest Profile Widget

Profile widget shows the most recent Pins you’ve saved.

proptypedefaultnotes
userstringrequiredthe username of the profile
boardWidthnumbernot setthe width of the board widget
boardHeightnumbernot setthe height of the board widget
imageWidthnumbernot setthe width of the Pin thumbnails within the widget

Use:

 


 

Prakash S

Prakash S

I would like to introduce myself as a Software professional opting for the career in software industry. I'm Prakash S, a MCA graduate and trained as industry level practice for Software technology. Basically I am a PHP Developer but now days exploring more in HTML5, CSS, AngularJS and jQuery libraries.