source: extensions/vkbutton/vkbutton.tpl @ 30611

Last change on this file since 30611 was 21069, checked in by EvilKant, 12 years ago
File size: 979 bytes
Line 
1{combine_script id="vk_share" load='footer' path="http://vk.com/js/api/share.js" charset="windows-1251"}
2{footer_script}
3        {if isset($show_main_button) and $show_main_button}
4                $('<li><div id="header_vkBut" class="vkBut"></div></li>').appendTo($('.categoryActions'));
5        {/if}
6       
7        $('.vkBut').html(VK.Share.button({ldelim}
8                url: document.location.href,
9                title: '{$record_title}',
10                description: '{$record_text}',
11                image: '{$record_img}',
12                },{ldelim}
13                type: "{$main_button_type}",
14                text: "{$main_button_type_text}"
15                }));
16               
17        {if isset($show_pic_button) and $show_pic_button}       
18                $('<div id="image_vkpBut" class="vkpBut"></div>').appendTo($('#imageToolBar'));
19        {/if}
20       
21        $('.vkpBut').html(VK.Share.button({ldelim}
22                url: document.location.href,
23                title: '{$pic_button_title}',
24                description: '{$pic_button_comment}',
25                image: '/{$pic_button_thumb}',
26                },{ldelim}
27                type: "{$pic_button_type}",
28                text: "{$pic_button_type_text}"
29                }));
30{/footer_script}
Note: See TracBrowser for help on using the repository browser.