File size: 902B
<?
defined('WBCAT') or die('Restricted access');
$Widget= new Widget(SKRIPT_DIR);
$Wtest_set=$Widget->get_widget_settings('socialbookmarks'); //Узнаем настройки виджета
$Wtest_set['style']=intval($Wtest_set['style']);
//---------------------------------------------------------------------//
$code='<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script> <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="{TYPE}" data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,lj,friendfeed,moikrug,gplus,surfingbird"></div>';
if($Wtest_set['style']==0){ $set_type="button"; }
elseif($Wtest_set['style']==1){ $set_type="link"; }
elseif($Wtest_set['style']==2){ $set_type="icon";}
elseif($Wtest_set['style']==3){ $set_type="none"; }
$code=str_replace('{TYPE}',$set_type,$code);
echo $code;
?>