-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4004861
commit 7d4ed7a
Showing
4 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
**/ | ||
|
||
|
@@ -13,6 +13,7 @@ | |
|
||
jimport('joomla.plugin.plugin'); | ||
|
||
|
||
class plgContentJlvkcomments extends JPlugin | ||
{ | ||
|
||
|
@@ -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(); | ||
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
@@ -52,5 +52,5 @@ | |
</fieldset> | ||
</fields> | ||
</config> | ||
<updateservers><server type="extension" priority="1" name="Joomline">http://joomline.net/index.php?option=com_ars&view=update&task=stream&format=xml&id=13&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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
jlvkcomments/language/ru-RU/ru-RU.plg_content_jlvkcomments.sys.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="По умолчанию" |