Krajee

VKontakte Community

Thankful to Krajee! BUY A COFFEEor to get more out of us.
The Share widget enables you to embed a VK button under your articles or blog to share links to your materials with their friends. Every time when a VK user clicks this button on your site, a note with the link to your site is automatically created on their VK page. After this, user's friends will be able to learn about the article immediately from My News page and from the personal page of the user who posted it. Refer VKontakte share widget documentation for details on passing the settings for this plugin.

Tip

Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)

use kartik\social\VKPlugin;

/**
 * Pass additional widget settings within `settings`
 * and widget options within `options`.
 */
echo VKPlugin::widget([
    'type' => VKPlugin::SHARE, 
    'options' => [
        'type' => 'round',
        'text' => 'Share',
        'eng' => 1
    ]
]);

Note

You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.

 
visitors to Krajee Yii2 Demos since 22-May-2017