Skip to content

Commit

Permalink
обновление кнопок
Browse files Browse the repository at this point in the history
  • Loading branch information
zikkuratvk committed Apr 24, 2020
1 parent 0685571 commit beaf9db
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 51 deletions.
17 changes: 8 additions & 9 deletions jlyasharepro/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ public function ShowIn()
$scriptPage = <<<HTML
<div class="jlYaSharesContayner">
<div
class="yashare-auto-init"
data-yashareLink="{$this->link}"
data-yashareTitle="{$this->title}"
data-yashareDescription="{$this->desc}"
data-yashareImage="{$this->image}"
data-yashareQuickServices="{$this->quickServices}"
data-yashareTheme="{$this->theme}"
data-yashareType="{$this->type}"
data-yashareL10n="{$this->lang}"
class="ya-share2"
data-url="{$this->link}"
data-title="{$this->title}"
data-description="{$this->desc}"
data-image="{$this->image}"
data-services="{$this->quickServices}"
data-size="{$this->type}"
data-lang="{$this->lang}"
></div>
</div>
HTML;
Expand Down
2 changes: 1 addition & 1 deletion jlyasharepro/jlyasharepro.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function onContentPrepare($context, &$article, &$params, $page = 0)
$article->catid = '';
}

JFactory::getDocument()->addScript('//yandex.st/share/share.js');
JFactory::getDocument()->addScript('//yastatic.net/share2/share.js');

$url = 'http://' . $this->params->get('pathbase', '') . str_replace('www.', '', $_SERVER['HTTP_HOST']);

Expand Down
59 changes: 19 additions & 40 deletions jlyasharepro/jlyasharepro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,55 +40,43 @@
>
<option value="blogger">Blogger</option>
<option value="delicious">Delicious</option>
<option value="diary">Дневники</option>
<option value="digg">Digg</option>
<option value="evernote">Evernote</option>
<option value="facebook">Facebook</option>
<option value="friendfeed">FriendFeed</option>
<option value="gplus">Google+</option>
<option value="juick">Juick</option>
<option value="liveinternet">LiveInternet</option>
<option value="lj">LiveInternet</option>
<option value="linkedin">LinkedIn</option>
<option value="lj">Живой Журнал</option>
<option value="moikrug">Мой Круг</option>
<option value="moimir">Мой Мир</option>
<option value="myspace">MySpace</option>
<option value="moimir">Мой Мир</option>
<option value="odnoklassniki">Одноклассники.ru</option>
<option value="pinterest">Pinterest</option>
<option value="pocket">Pocket</option>
<option value="qzone">Qzone</option>
<option value="reddit">Reddit</option>
<option value="renren">Renren</option>
<option value="sinaWeibo">Sina Weibo</option>
<option value="skype">Skype</option>
<option value="surfingbird">Surfingbird</option>
<option value="tutby">Я тут!</option>
<option value="telegram">Telegram</option>
<option value="tencentWeibo">Tencent Weibo</option>
<option value="tumblr">Tumblr</option>
<option value="twitter">Twitter</option>
<option value="viber">Viber</option>
<option value="vkontakte">ВКонтакте</option>
<option value="yaru">Я.Ру</option>
<option value="yazakladki">Яндекс.Закладки</option>
<option value="whatsapp">WhatsApp</option>
<option value="collections">Яндекс.Коллекции</option>
</field>


<field
name="theme"
type="list"
default="default"
label="PLG_JLYASHAREPRO_THEME"
description="PLG_JLYASHAREPRO_THEME_DESC"
>
<option value="default">PLG_JLYASHAREPRO_THEME_DEFAULT</option>
<option value="dark">PLG_JLYASHAREPRO_THEME_DARK</option>
<option value="counter">PLG_JLYASHAREPRO_THEME_COUNTER</option>
</field>

<field
name="type"
type="list"
default="button"
default="m"
label="PLG_JLYASHAREPRO_TYPE"
description="PLG_JLYASHAREPRO_TYPE_DESC"
>
<option value="button">PLG_JLYASHAREPRO_TYPE_BUTTON</option>
<option value="link">PLG_JLYASHAREPRO_TYPE_LINK</option>
<option value="icon">PLG_JLYASHAREPRO_TYPE_ICON</option>
<option value="small">PLG_JLYASHAREPRO_TYPE_SMALL</option>
<option value="big">PLG_JLYASHAREPRO_TYPE_BIG</option>
<option value="none">PLG_JLYASHAREPRO_TYPE_NONE</option>
>
<option value="s">PLG_JLYASHAREPRO_TYPE_SMALL</option>
<option value="m">PLG_JLYASHAREPRO_TYPE_BIG</option>
</field>

</fieldset>
Expand All @@ -104,16 +92,7 @@
<option value="0">PLG_JLYASHAREPRO_NO</option>
<option value="1">PLG_JLYASHAREPRO_YES</option>
</field>
<field
name="position_content"
type="radio"
default="0"
label="PLG_JLYASHAREPRO_POSITION_LABEL"
description="PLG_JLYASHAREPRO_POSITION_DESC"
>
<option value="0">PLG_JLYASHAREPRO_LEFT</option>
<option value="1">PLG_JLYASHAREPRO_RIGHT</option>
</field>

<field
name="shares_position"
type="list"
Expand Down
2 changes: 1 addition & 1 deletion pkg_jlyasharepro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<version>1.3.0</version>
<url>https://joomline.ru</url>
<packager>JoomLine.ru</packager>
<description><![CDATA[Plugin allow integrate social buttons Yandex Share into your joomla site.<iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.org/donatenewen.html' width='100%' height='700'>]]></description>
<description><![CDATA[Plugin allow integrate social buttons Yandex Share into your joomla site.<iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.org/donatenewen.html?solution=JLYandexSharePRO' width='100%' height='700'>]]></description>
<files>
<folder type="plugin" id="jlyasharepro" group="content" client="site">jlyasharepro</folder>
<folder type="plugin" id="yashareproads" group="adsmanagercontent" client="site">yashareproads</folder>
Expand Down

0 comments on commit beaf9db

Please sign in to comment.