Skip to content

Commit

Permalink
jlvkcomments v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zikkuratvk committed Jun 14, 2022
1 parent 4004861 commit 7d4ed7a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
9 changes: 5 additions & 4 deletions jlvkcomments/jlvkcomments.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* Jlvkcomments
*
* @version 1.9.1
* @version 2.0.0
* @author Vadim Kunicin([email protected]), Anton Voynov ([email protected])
* @copyright (C) 2010 by Anton Voynov(http://www.joomline.ru)
* @copyright (C) 2010-2022 by Anton Voynov(http://www.joomline.ru)
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
**/

Expand All @@ -13,6 +13,7 @@

jimport('joomla.plugin.plugin');


class plgContentJlvkcomments extends JPlugin
{

Expand All @@ -34,7 +35,7 @@ public function onContentPrepare($context, &$article, &$params, $page = 0){

$exceptcat = is_array($this->params->def('categories')) ? $this->params->def('categories') : array($this->params->def('categories'));
if (!in_array($article->catid,$exceptcat)) {
$view = JRequest::getCmd('view');
$view = JFactory::getApplication()->input->get('view');
if ($view == 'article') {

$doc = &JFactory::getDocument();
Expand All @@ -46,7 +47,7 @@ public function onContentPrepare($context, &$article, &$params, $page = 0){
$autoPublish = $this->params->def('autoPublish');
$norealtime = $this->params->def('norealtime');
$script = "VK.init({apiId: $apiId, onlyWidgets: true});";
$doc->addScript('//vk.com/js/api/openapi.js?131');
$doc->addScript('//vk.com/js/api/openapi.js?169');
$doc->addScriptDeclaration($script);

$pagehash = $article->id;
Expand Down
12 changes: 6 additions & 6 deletions jlvkcomments/jlvkcomments.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="content" method="upgrade">
<extension version="3.10" type="plugin" group="content" method="upgrade">
<name>JoomLine VK comments</name>
<author>JoomLine</author>
<creationDate>05.12.2018</creationDate>
<copyright>(C) 2010-2018 by Anton Voynov(http://www.joomline.ru)</copyright>
<creationDate>14.06.2022</creationDate>
<copyright>(C) 2010-2022 by Anton Voynov(https://www.joomline.ru)</copyright>
<license>GNU/GPL: http://www.gnu.org/copyleft/gpl.html</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>http://joomline.ru</authorUrl>
<version>1.9.1</version>
<authorUrl>https://joomline.ru</authorUrl>
<version>2.0.0</version>
<description>PLG_JLVKCOMMENTS_XML_DESCRIPTION</description>
<files>
<filename plugin="jlvkcomments">jlvkcomments.php</filename>
Expand Down Expand Up @@ -52,5 +52,5 @@
</fieldset>
</fields>
</config>
<updateservers><server type="extension" priority="1" name="Joomline">http://joomline.net/index.php?option=com_ars&amp;view=update&amp;task=stream&amp;format=xml&amp;id=13&amp;dummy=extension.xml</server></updateservers>
<updateservers><server type="extension" priority="1" name="Joomline">https://joomline.net/update.html?extension_id=14.xml</server></updateservers>
</extension>
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ PLG_JLVKCOMMENTS_CAT_DESC = "Укажите категории в которых
PLG_JLVKCOMMENTS_LINK_LABEL = "Скрыть ссылку"
PLG_JLVKCOMMENTS_LINK_DESCRIPTION = "Опция не удаляет ссылку из плагина, она лишь скрывает ссылку с помощью стилей."
PLG_JLVKCOMMENTS="Комментарии Вконтакте"
PLG_JLVKCOMMENTS_XML_DESCRIPTION="<p>Комментарии Вконтакте Joomla - JL VKcomments разработка Joomline. Плагин реализует все настройки предоставляемые виджетом Комментариев Вконтакте. О настройке плагина вы можете узнать на <a href="https://joomline.ru/rasshirenija/plugin/plugin-jl-vkcomments.html">официальном сайте</a>.</p> <p>В окне ниже вы можете пожертвовать на развитие плагина JL VKcomments, жертвуя на развитие расширения вы помогаете развиваться десяткам бесплатных расширений:</p><div><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.ru/donate.html' width='100%' height='700'></iframe></div>"
PLG_JLVKCOMMENTS_XML_DESCRIPTION="<p>Комментарии Вконтакте Joomla - JL VKcomments разработка Joomline. Плагин реализует все настройки предоставляемые виджетом Комментариев Вконтакте. О настройке плагина вы можете узнать на <a href="https://joomline.ru/rasshirenija/plugin/plugin-jl-vkcomments.html">официальном сайте</a>.</p> <p>В окне ниже вы можете пожертвовать на развитие плагина JL VKcomments, жертвуя на развитие расширения вы помогаете развиваться десяткам бесплатных расширений:</p><div><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.ru/donatenew.html?solution=JLVKcomments' width='100%' height='800'></iframe></div>"
PLG_JLVKCOMMENTS_LAYOUT_DEFAULT="По умолчанию"
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PLG_JLVKCOMMENTS="Комментарии Вконтакте"
PLG_JLVKCOMMENTS_XML_DESCRIPTION="<p>Комментарии Вконтакте Joomla - JL VKcomments разработка Joomline. Плагин реализует все настройки предоставляемые виджетом Комментариев Вконтакте. О настройке плагина вы можете узнать на <a href="https://joomline.ru/rasshirenija/plugin/plugin-jl-vkcomments.html">официальном сайте</a>.</p> <p>В окне ниже вы можете пожертвовать на развитие плагина JL VKcomments, жертвуя на развитие расширения вы помогаете развиваться десяткам бесплатных расширений:</p><div><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.ru/donate.html' width='100%' height='700'></iframe></div>"
PLG_JLVKCOMMENTS_XML_DESCRIPTION="<p>Комментарии Вконтакте Joomla - JL VKcomments разработка Joomline. Плагин реализует все настройки предоставляемые виджетом Комментариев Вконтакте. О настройке плагина вы можете узнать на <a href="https://joomline.ru/rasshirenija/plugin/plugin-jl-vkcomments.html">официальном сайте</a>.</p> <p>В окне ниже вы можете пожертвовать на развитие плагина JL VKcomments, жертвуя на развитие расширения вы помогаете развиваться десяткам бесплатных расширений:</p><div><iframe frameborder='0' allowtransparency='true' scrolling='no' src='https://joomline.ru/donatenew.html?solution=JLVKcomments' width='100%' height='800'></iframe></div>"
PLG_JLVKCOMMENTS_LAYOUT_DEFAULT="По умолчанию"

0 comments on commit 7d4ed7a

Please sign in to comment.