From cce8e80a7b6cba1942708eb9d5cf9d490ed4a1a0 Mon Sep 17 00:00:00 2001 From: Sergey Tolkachyov Date: Wed, 30 Mar 2022 13:24:04 +0400 Subject: [PATCH] v.1.0.2 - Turkish language added - Unused classes removed - Removed

tag from default.php in schema.org

--- .../en-GB/en-GB.plg_content_wt_content_like.sys.ini | 2 +- .../ru-RU/ru-RU.plg_content_wt_content_like.sys.ini | 2 +- .../tr-TR/tr-TR.plg_content_wt_content_like.ini | 8 ++++++++ .../tr-TR/tr-TR.plg_content_wt_content_like.sys.ini | 7 +++++++ media/joomla.asset.json | 2 +- media/js/wt_content_like.js | 4 ++-- script.php | 2 +- tmpl/default.php | 7 ++----- wt_content_like.php | 6 +----- wt_content_like.xml | 13 +++++++++---- 10 files changed, 33 insertions(+), 20 deletions(-) create mode 100644 language/tr-TR/tr-TR.plg_content_wt_content_like.ini create mode 100644 language/tr-TR/tr-TR.plg_content_wt_content_like.sys.ini diff --git a/language/en-GB/en-GB.plg_content_wt_content_like.sys.ini b/language/en-GB/en-GB.plg_content_wt_content_like.sys.ini index b6b58ef..42982b9 100644 --- a/language/en-GB/en-GB.plg_content_wt_content_like.sys.ini +++ b/language/en-GB/en-GB.plg_content_wt_content_like.sys.ini @@ -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="

It might be interesting

" -PLG_WT_CONTENT_LIKE_WHATS_NEW="

v.1.0.0 What's new?

First extension version.

" \ No newline at end of file +PLG_WT_CONTENT_LIKE_WHATS_NEW="

v.1.0.2 What's new?

Turkish language added.

" \ No newline at end of file diff --git a/language/ru-RU/ru-RU.plg_content_wt_content_like.sys.ini b/language/ru-RU/ru-RU.plg_content_wt_content_like.sys.ini index f73ebee..9470253 100644 --- a/language/ru-RU/ru-RU.plg_content_wt_content_like.sys.ini +++ b/language/ru-RU/ru-RU.plg_content_wt_content_like.sys.ini @@ -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="

Может быть интересно

" -PLG_WT_CONTENT_LIKE_WHATS_NEW="

v.1.0.0 Что нового?

Первая версия расширения.

" +PLG_WT_CONTENT_LIKE_WHATS_NEW="

v.1.0.2 Что нового?

Добавлен турецкий язык.

" diff --git a/language/tr-TR/tr-TR.plg_content_wt_content_like.ini b/language/tr-TR/tr-TR.plg_content_wt_content_like.ini new file mode 100644 index 0000000..4bc1a37 --- /dev/null +++ b/language/tr-TR/tr-TR.plg_content_wt_content_like.ini @@ -0,0 +1,8 @@ +PLG_WT_CONTENT_LIKE="Content - WT Content Like" +PLG_WT_CONTENT_LIKE_DESC="

Eklenti standart içerik derecelendirmesini beğen düğmesiyle değiştirir. Özel çıktı düzenlerini destekler.

" +PLG_WT_CONTENT_LIKE_LAYOUT="Çıkış düzeni. plugins/content/wt_content_like/tmpl içinde kendi düzeninizi oluşturabilirsiniz." +PLG_WT_CONTENT_LIKE_CSS_BTN_CLASS="button 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" \ No newline at end of file diff --git a/language/tr-TR/tr-TR.plg_content_wt_content_like.sys.ini b/language/tr-TR/tr-TR.plg_content_wt_content_like.sys.ini new file mode 100644 index 0000000..37b0e6d --- /dev/null +++ b/language/tr-TR/tr-TR.plg_content_wt_content_like.sys.ini @@ -0,0 +1,7 @@ +PLG_WT_CONTENT_LIKE="Content - WT Content Like" +PLG_WT_CONTENT_LIKE_DESC="

Eklenti standart içerik derecelendirmesini beğen düğmesiyle değiştirir. Özel çıktı düzenlerini destekler.

" +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="

İlginizi çekebilir

" +PLG_WT_CONTENT_LIKE_WHATS_NEW="

v.1.0.2 Yeni ne var?

Türkçe eklendi

" \ No newline at end of file diff --git a/media/joomla.asset.json b/media/joomla.asset.json index 39ca3b3..a566158 100644 --- a/media/joomla.asset.json +++ b/media/joomla.asset.json @@ -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": [ diff --git a/media/js/wt_content_like.js b/media/js/wt_content_like.js index 330ae6a..a651aee 100644 --- a/media/js/wt_content_like.js +++ b/media/js/wt_content_like.js @@ -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;'); } } } diff --git a/script.php b/script.php index 3f4193a..c689b33 100644 --- a/script.php +++ b/script.php @@ -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'); diff --git a/tmpl/default.php b/tmpl/default.php index ff20c82..4eb643a 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -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; @@ -25,14 +25,11 @@ ?> 0): ?> -