Skip to content

Commit

Permalink
v.1.0.2
Browse files Browse the repository at this point in the history
- Turkish language added
- Unused classes removed
- Removed <p> tag from default.php in schema.org <div>
  • Loading branch information
sergeytolkachyov authored Mar 30, 2022
1 parent 068e250 commit cce8e80
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 20 deletions.
2 changes: 1 addition & 1 deletion language/en-GB/en-GB.plg_content_wt_content_like.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PLG_WT_CONTENT_LIKE_AFTER_INSTALL = "Thank you for intalling extension"
PLG_WT_CONTENT_LIKE_AFTER_DISCOVER_INSTALL = "Thank you for intalling extension"
PLG_WT_CONTENT_LIKE_AFTER_UPDATE = "Thank you for updating extension"
PLG_WT_CONTENT_LIKE_MAYBE_INTERESTING="<h4>It might be interesting</h4><ul class=\"nav nav-tabs nav-stacked list-group\"><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/wt-digitally-signed-pdf.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">WT Digitally signed PDF - Plugin for displaying digital signature data from PDF files signed with attached signature (the signature is inside the PDF file).</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JLSitemap - Phoca Gallery plugin for XML sitemap</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JLSitemap - Phoca Gallery plugin for XML sitemap</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JLSitemap - Phoca Gallery plugin for XML sitemap</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-on-fly-image-handler.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">WT On fly image handler for JoomShopping.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/action-log-joomshopping.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">Action log - JoomShopping. Free plugin for Joomla core action logs.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/shablon-joomshopping-na-bootstrap-4-6.html\" target=\"_blank\" title=\"Go to https://web-tolk.ru\">JoomShopping Bootstrap 4.6 free template.</a></li></ul>"
PLG_WT_CONTENT_LIKE_WHATS_NEW="<h3>v.1.0.0 What's new?</h3><p>First extension version.</p>"
PLG_WT_CONTENT_LIKE_WHATS_NEW="<h3>v.1.0.2 What's new?</h3><p>Turkish language added.</p>"
2 changes: 1 addition & 1 deletion language/ru-RU/ru-RU.plg_content_wt_content_like.sys.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PLG_WT_CONTENT_LIKE_AFTER_INSTALL = "Спасибо за установку ра
PLG_WT_CONTENT_LIKE_AFTER_DISCOVER_INSTALL = "Спасибо за установку расширения"
PLG_WT_CONTENT_LIKE_AFTER_UPDATE = "Спасибо за обновление расширения"
PLG_WT_CONTENT_LIKE_MAYBE_INTERESTING="<h4>Может быть интересно</h4><ul class=\"nav nav-tabs nav-stacked list-group\"><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-digitally-signed-pdf.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">WT Digitally signed PDF - Плагин для отображения данных электронной подписи из файлов PDF в Joomla 3 и Joomla 4</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomshopping/wt-sm-otpravka-pochta-ru.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">Интеграция JoomShopping с Почтой России для Бизнеса</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomshopping/wt-joomshopping-favorite.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">WT JoomShopping Favorites, альтернативный список пожеланий (wishlist) для JoomShopping.</a></li><li class=\"list-group-item\"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-joomshopping-bitrix24-pro.html\" target=\"_blank\" title=\"Перейти на https://web-tolk.ru\">WT JoomShopping Bitrix24 PRO, плагин двухсторонней интеграции интернет-магазина JoomShopping и CRM Битрикс24.</a></li></ul>"
PLG_WT_CONTENT_LIKE_WHATS_NEW="<h3>v.1.0.0 Что нового?</h3><p>Первая версия расширения.</p>"
PLG_WT_CONTENT_LIKE_WHATS_NEW="<h3>v.1.0.2 Что нового?</h3><p>Добавлен турецкий язык.</p>"
8 changes: 8 additions & 0 deletions language/tr-TR/tr-TR.plg_content_wt_content_like.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PLG_WT_CONTENT_LIKE="Content - WT Content Like"
PLG_WT_CONTENT_LIKE_DESC="<p>Eklenti standart içerik derecelendirmesini beğen düğmesiyle değiştirir. Özel çıktı düzenlerini destekler.</p>"
PLG_WT_CONTENT_LIKE_LAYOUT="Çıkış düzeni. <code>plugins/content/wt_content_like/tmpl</code> içinde kendi düzeninizi oluşturabilirsiniz."
PLG_WT_CONTENT_LIKE_CSS_BTN_CLASS="<code>button</code> etiket CSS sınıfı"
PLG_WT_CONTENT_LIKE_CSS_ICON_CLASS="Simge CSS sınıfı"
PLG_WT_CONTENT_LIKE_CSS_BADGE_CLASS="CSS sınıfı beğeni sayısı"
PLG_WT_CONTENT_LIKE_SHOW_MICRODATA="Schema.org sayfasına mikro işaretleme yerleştirilsin mi ?"
PLG_WT_CONTENT_LIKE_CATEGORY_EXCLUDE="Kategorilerdeki makaleleri hariç tut"
7 changes: 7 additions & 0 deletions language/tr-TR/tr-TR.plg_content_wt_content_like.sys.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PLG_WT_CONTENT_LIKE="Content - WT Content Like"
PLG_WT_CONTENT_LIKE_DESC="<p>Eklenti standart içerik derecelendirmesini beğen düğmesiyle değiştirir. Özel çıktı düzenlerini destekler.</p>"
PLG_WT_CONTENT_LIKE_AFTER_INSTALL = "Eklentiyi yüklediğiniz için teşekkür ederiz"
PLG_WT_CONTENT_LIKE_AFTER_DISCOVER_INSTALL = "Eklentiyi yüklediğiniz için teşekkür ederiz"
PLG_WT_CONTENT_LIKE_AFTER_UPDATE = "Eklentiyi güncellediğiniz için teşekkür ederiz"
PLG_WT_CONTENT_LIKE_MAYBE_INTERESTING="<h4>İlginizi çekebilir</h4><ul class=\"nav nav-tabs nav-stacked list-group\"><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/wt-digitally-signed-pdf.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">WT Digitally signed PDF - Ekli imza ile imzalanmış PDF dosyalarından dijital imza verilerini görüntülemek için uyumlu ek (imza PDF dosyasının içindedir).</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">JLSitemap - XML site haritası için Phoca Gallery uyumlu ek</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">JLSitemap - XML site haritası için Phoca Gallery uyumlu ek</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomla-plugins/jlsitemap-phoca-gallery.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">JLSitemap - XML site haritası için Phoca Gallery uyumlu ek</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/dev/joomla-plugins/wt-on-fly-image-handler.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">JoomShopping için WT On fly görüntü işleyici.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/action-log-joomshopping.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">Action log - JoomShopping. Joomla çekirdek eylem günlükleri için ücretsiz uyumlu ek.</a></li><li class="list-group-item"><a href=\"https://web-tolk.ru/en/dev/joomshopping/shablon-joomshopping-na-bootstrap-4-6.html\" target=\"_blank\" title=\"Ziyaret et https://web-tolk.ru\">JoomShopping Bootstrap 4.6 ücretsiz şablon.</a></li></ul>"
PLG_WT_CONTENT_LIKE_WHATS_NEW="<h3>v.1.0.2 Yeni ne var?</h3><p>Türkçe eklendi</p>"
2 changes: 1 addition & 1 deletion media/joomla.asset.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "plg_content_wt_content_like",
"version": "1.0.0",
"version": "1.0.2",
"description": "Joomla CMS",
"license": "GPL-2.0-or-later",
"assets": [
Expand Down
4 changes: 2 additions & 2 deletions media/js/wt_content_like.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ function wt_content_like() {

let rating_message_span = document.getElementById('wt_content_like_meesage_' + articleId);
rating_message_span.innerHTML = json.message;
rating_message_span.setAttribute('style','color:green;');
rating_message_span.setAttribute('style','color:#008000;');

} else {
let rating_message_span = document.getElementById('wt_content_like_meesage_' + articleId);
rating_message_span.innerHTML = json.message;
rating_message_span.setAttribute('style','color:red;');
rating_message_span.setAttribute('style','color:#FF0000;');
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion script.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Sergey Tolkachyov info@web-tolk.ru https://web-tolk.ru
* @copyright Copyright (C) 2022 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License version 3 or later
* @version 1.0.0
* @version 1.0.1
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
Expand Down
7 changes: 2 additions & 5 deletions tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Sergey Tolkachyov info@web-tolk.ru https://web-tolk.ru
* @copyright Copyright (C) 2022 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License version 3 or later
* @version 1.0.0
* @version 1.0.2
*/
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
Expand All @@ -25,14 +25,11 @@
?>

<?php if ($displayData['show_microdata'] == 1 && $displayData['rating_count'] > 0): ?>
<div class="content_rating" style="display:none;" itemprop="aggregateRating" itemscope
itemtype="http://schema.org/AggregateRating">
<p class="unseen element-invisible">
<div class="content_rating" style="display:none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<span itemprop="ratingValue"><?php echo $displayData['rating']; ?></span>
<span itemprop="bestRating">5</span>
<meta itemprop="ratingCount" content="<?php echo $displayData['rating_count']; ?>"/>
<meta itemprop="worstRating" content="0"/>
</p>
</div>
<?php endif; ?>
<button type="button" name="submit_vote" data-article-id="<?php echo $displayData['article_id']; ?>" class="wt_content_like_btn <?php echo $displayData['css_btn_class']; ?>">
Expand Down
6 changes: 1 addition & 5 deletions wt_content_like.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
* @author Sergey Tolkachyov info@web-tolk.ru https://web-tolk.ru
* @copyright Copyright (C) 2022 Sergey Tolkachyov. All rights reserved.
* @license GNU General Public License version 3 or later
* @version 1.0.0
* @version 1.0.2
*/
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Uri\Uri;
use Joomla\CMS\Session\Session;

defined('_JEXEC') or die;

Expand Down Expand Up @@ -56,7 +53,6 @@ public function onContentBeforeDisplay($context, &$row, &$params, $page = 0)
$jversion = new JVersion();
// only for Joomla 3.x
if (version_compare($jversion->getShortVersion(), '4.0', '<')) {
HTMLHelper::_('behavior.core');
HTMLHelper::script('plg_content_wt_content_like/wt_content_like.js',[
'version' => 'auto',
'relative' => true]);
Expand Down
13 changes: 9 additions & 4 deletions wt_content_like.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<extension version="4.0" type="plugin" group="content" method="upgrade">
<name>PLG_WT_CONTENT_LIKE</name>
<author>Sergey Tolkachyov</author>
<creationDate>24.03.2022</creationDate>
<creationDate>30.03.2022</creationDate>
<copyright>Copyright (C) Sergey Tolkachyov. All rights reserved.</copyright>
<license>GNU General Public License version 3</license>
<authorEmail>info@web-tolk.ru</authorEmail>
<authorUrl>https://web-tolk.ru</authorUrl>
<version>1.0.0</version>
<version>1.0.2</version>
<description>PLG_WT_CONTENT_LIKE_DESC</description>
<scriptfile>script.php</scriptfile>
<files>
Expand All @@ -17,11 +17,16 @@
<folder>media</folder>
<filename plugin="wt_content_like">wt_content_like.php</filename>
</files>
<media folder="media" destination="plg_content_wt_content_like">
<folder>js</folder>
</media>
<languages folder="language" client="administrator">
<language tag="en-GB">en-GB/en-GB.plg_content_wt_content_like.ini</language>
<language tag="ru-RU">ru-RU/ru-RU.plg_content_wt_content_like.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_content_wt_content_like.sys.ini</language>
<language tag="ru-RU">ru-RU/ru-RU.plg_content_wt_content_like.sys.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_content_wt_content_like.ini</language>
<language tag="en-GB">en-GB/en-GB.plg_content_wt_content_like.sys.ini</language>
<language tag="tr-TR">tr-TR/tr-TR.plg_content_wt_content_like.ini</language>
<language tag="tr-TR">tr-TR/tr-TR.plg_content_wt_content_like.sys.ini</language>
</languages>
<config>
<fields name="params">
Expand Down

0 comments on commit cce8e80

Please sign in to comment.