Skip to content

Commit

Permalink
Update to 6.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdesign committed Mar 12, 2018
1 parent cf5c87a commit 49274e0
Show file tree
Hide file tree
Showing 22 changed files with 361 additions and 346 deletions.
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project name="junewsultra" default="dist" basedir=".">

<property name="VERSION" value="6.5.7"/>
<property name="VERSION" value="6.5.8"/>

<tstamp>
<format property="DATE" pattern="%d.%m.%Y" />
Expand Down
4 changes: 2 additions & 2 deletions language/ru-RU/ru-RU.mod_junewsultra.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down Expand Up @@ -95,7 +95,7 @@ MOD_JUNEWS_VALUE_RECENT_MODIFIED="Последние измененные пер
MOD_JUNEWS_VALUE_RECENT_PUBLISHED="Недавно опубликовано первые"
MOD_JUNEWS_VALUE_RECENT_TOUCHED="Недавно измененные первыми"
MOD_JUNEWS_WORDS_LIMIT="Ограничение по словам"
MOD_JUNEWS_XML_DESCRIPTION="<div style="_QQ_"float: left; text-align: left!important; background: #fff; border: 1px #ccc solid; padding: 15px;"_QQ_"><h2 style="_QQ_"padding: 0 0 8px 0; margin: 0;"_QQ_">JUNewsUltra Pro — лучший модуль для отображения новостей и статей для порталов и сайтов с большим выбором опций</h2>Обновленный модуль для Joomla! 3.x максимально оптимизирован и может работать с десятками тысяч записей.<br/><br/>Демо: <a href="_QQ_"http://wz.lviv.ua.ua"_QQ_" target="_QQ_"_blank"_QQ_">Новостной сайт 1</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Новостной сайт 2</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Сайт мерии</a>, <a href="_QQ_"http://denysdesign.com"_QQ_" target="_QQ_"_blank"_QQ_">Портфолио</a><br/>Поддержка: <a href="_QQ_"http://joomlaforum.ru/index.php/board,131.0.html"_QQ_" target="_QQ_"_blank"_QQ_">Форум Joomlaforum.Ru</a>, <a href="_QQ_"https://github.com/Joomla-Ukraine/JUMultiThumb/issues"_QQ_" target="_QQ_"_blank"_QQ_">GitHub</a><br/>Разработка: <a href="_QQ_"http://joomla-ua.org/"_QQ_" target="_QQ_"_blank"_QQ_">Денис Носов, Joomla! Украина</a><br /><br /><span style="_QQ_"font-size: 85%;"_QQ_">2008-2017 © Joomla! Украина. Все права защищены.</span></div>"
MOD_JUNEWS_XML_DESCRIPTION="<div style="_QQ_"float: left; text-align: left!important; background: #fff; border: 1px #ccc solid; padding: 15px;"_QQ_"><h2 style="_QQ_"padding: 0 0 8px 0; margin: 0;"_QQ_">JUNewsUltra Pro — лучший модуль для отображения новостей и статей для порталов и сайтов с большим выбором опций</h2>Обновленный модуль для Joomla! 3.x максимально оптимизирован и может работать с десятками тысяч записей.<br/><br/>Демо: <a href="_QQ_"http://wz.lviv.ua.ua"_QQ_" target="_QQ_"_blank"_QQ_">Новостной сайт 1</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Новостной сайт 2</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Сайт мерии</a>, <a href="_QQ_"http://denysdesign.com"_QQ_" target="_QQ_"_blank"_QQ_">Портфолио</a><br/>Поддержка: <a href="_QQ_"http://joomlaforum.ru/index.php/board,131.0.html"_QQ_" target="_QQ_"_blank"_QQ_">Форум Joomlaforum.Ru</a>, <a href="_QQ_"https://github.com/Joomla-Ukraine/JUMultiThumb/issues"_QQ_" target="_QQ_"_blank"_QQ_">GitHub</a><br/>Разработка: <a href="_QQ_"http://joomla-ua.org/"_QQ_" target="_QQ_"_blank"_QQ_">Денис Носов, Joomla! Украина</a><br /><br /><span style="_QQ_"font-size: 85%;"_QQ_">2008-2018 © Joomla! Украина. Все права защищены.</span></div>"
MOD_JUNEWS_DESCRIPTION="JUNewsUltra Pro — лучший модуль для отображения новостей и статей для порталов и сайтов с большим выбором опций"
MOD_JUNEWS="JUNewsUltra Pro"
MOD_JUNEWSULTRA="JUNewsUltra Pro"
Expand Down
2 changes: 1 addition & 1 deletion language/ru-RU/ru-RU.mod_junewsultra.sys.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion language/ru-RU/ru-RU.pkg_junewsultra.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion language/ru-RU/ru-RU.pkg_junewsultra.sys.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
4 changes: 2 additions & 2 deletions language/uk-UA/uk-UA.mod_junewsultra.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down Expand Up @@ -94,7 +94,7 @@ MOD_JUNEWS_VALUE_RECENT_MODIFIED="Останні змінені першими"
MOD_JUNEWS_VALUE_RECENT_PUBLISHED="Нещодавно опубліковано перші"
MOD_JUNEWS_VALUE_RECENT_TOUCHED="Нещодавно змінені першими"
MOD_JUNEWS_WORDS_LIMIT="Обмеження за словами"
MOD_JUNEWS_XML_DESCRIPTION="<div style="_QQ_"float: left; text-align: left!important; background: #fff; border: 1px #ccc solid; padding: 15px;"_QQ_"><h2 style="_QQ_"padding: 0 0 8px 0; margin: 0;"_QQ_">JUNewsUltra Pro — найкращий модуль для відображення новин та статей для порталів та сайтів з великим вибором опцій</h2> Оновлений модуль для Joomla! 3.x максимально оптимізований та може працювати з десятками тисяч записів.<br/><br/>Демо: <a href="_QQ_"http://wz.lviv.ua.ua"_QQ_" target="_QQ_"_blank"_QQ_">Новинний сайт 1</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Новинний сайт 2</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Сайт міської ради</a>, <a href="_QQ_"http://denysdesign.com"_QQ_" target="_QQ_"_blank"_QQ_">Портфоліо</a><br/>Підтримка: <a href="_QQ_"http://joomla-ua.org/forum/viewforum.php?f=164"_QQ_" target="_QQ_"_blank"_QQ_">Форум Joomla! Україна</a>, <a href="_QQ_"https://github.com/Joomla-Ukraine/JUMultiThumb/issues"_QQ_" target="_QQ_"_blank"_QQ_">GitHub</a><br/>Розробник: <a href="_QQ_"http://joomla-ua.org/"_QQ_" target="_QQ_"_blank"_QQ_">Денис Носов, Joomla! Україна</a><br /><br /><span style="_QQ_"font-size: 85%;"_QQ_">2008-2017 &copy; Joomla! Україна. Всі права захищені.</span></div>"
MOD_JUNEWS_XML_DESCRIPTION="<div style="_QQ_"float: left; text-align: left!important; background: #fff; border: 1px #ccc solid; padding: 15px;"_QQ_"><h2 style="_QQ_"padding: 0 0 8px 0; margin: 0;"_QQ_">JUNewsUltra Pro — найкращий модуль для відображення новин та статей для порталів та сайтів з великим вибором опцій</h2> Оновлений модуль для Joomla! 3.x максимально оптимізований та може працювати з десятками тисяч записів.<br/><br/>Демо: <a href="_QQ_"http://wz.lviv.ua.ua"_QQ_" target="_QQ_"_blank"_QQ_">Новинний сайт 1</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Новинний сайт 2</a>, <a href="_QQ_"http://time-ua.com"_QQ_" target="_QQ_"_blank"_QQ_">Сайт міської ради</a>, <a href="_QQ_"http://denysdesign.com"_QQ_" target="_QQ_"_blank"_QQ_">Портфоліо</a><br/>Підтримка: <a href="_QQ_"http://joomla-ua.org/forum/viewforum.php?f=164"_QQ_" target="_QQ_"_blank"_QQ_">Форум Joomla! Україна</a>, <a href="_QQ_"https://github.com/Joomla-Ukraine/JUMultiThumb/issues"_QQ_" target="_QQ_"_blank"_QQ_">GitHub</a><br/>Розробник: <a href="_QQ_"http://joomla-ua.org/"_QQ_" target="_QQ_"_blank"_QQ_">Денис Носов, Joomla! Україна</a><br /><br /><span style="_QQ_"font-size: 85%;"_QQ_">2008-2018 &copy; Joomla! Україна. Всі права захищені.</span></div>"
MOD_JUNEWS_DESCRIPTION="JUNewsUltra Pro — найкращий модуль для відображення новин та статей для порталів та сайтів з великим вибором опцій"
MOD_JUNEWS="JUNewsUltra Pro"
MOD_JUNEWSULTRA="JUNewsUltra Pro"
Expand Down
2 changes: 1 addition & 1 deletion language/uk-UA/uk-UA.mod_junewsultra.sys.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion language/uk-UA/uk-UA.pkg_junewsultra.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion language/uk-UA/uk-UA.pkg_junewsultra.sys.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; JUNewsUltra Pro for Joomla! 3.x
; Copyright (C) 2008-2017 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Copyright (C) 2008-2018 Denys Nosov (Joomla! Ukraine - http://www.joomla-ua.org). All rights reserved.
; Note : All ini files need to be saved as UTF-8 - No BOM
; Double quotes in the values have to be formatted as "_QQ_"

Expand Down
2 changes: 1 addition & 1 deletion packages/mod_junewsultra/fields/commentsradio.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function getOptions()

foreach ($this->element->children() as $option)
{
if ($option->getName() !== 'option')
if ($option->getName() != 'option')
{
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/mod_junewsultra/fields/edittemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@

function alert($text, $error)
{
if ($error === 'message')
if ($error == 'message')
{
$error = 'alert-info';
}
if ($error === 'notice')
if ($error == 'notice')
{
$error = 'alert-error';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/mod_junewsultra/fields/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getOptions()

foreach ($this->element->children() as $option)
{
if ($option->getName() !== 'option')
if ($option->getName() != 'option')
{
continue;
}
Expand Down
7 changes: 5 additions & 2 deletions packages/mod_junewsultra/fields/newsfilelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ protected function getOptions()
{
foreach ($files as $file)
{
if ($exclude && preg_match(chr(1) . $exclude . chr(1), $file))
if ($exclude)
{
continue;
if (preg_match(chr(1) . $exclude . chr(1), $file))
{
continue;
}
}

if ($stripExt)
Expand Down
11 changes: 10 additions & 1 deletion packages/mod_junewsultra/fields/toggler30.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,19 @@ class nnFieldToggler
{
public $_version = 'ju_201211';

/**
* @param $params
*
* @return string
*
* @since 6.0
*/
public function getInput($params)
{
$this->params = $params;

$option = JFactory::getApplication()->input->get('option');

$param = $this->def('param');
$value = $this->def('value');
$nofx = $this->def('nofx');
Expand Down Expand Up @@ -97,7 +106,7 @@ public function getInput($params)
$html[] = ' nntoggler_nofx';
}

if ($method === 'and')
if ($method == 'and')
{
$html[] = ' nntoggler_and';
}
Expand Down
19 changes: 10 additions & 9 deletions packages/mod_junewsultra/fields/uploadimg.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
*/

define('_JEXEC', 1);
define('JPATH_BASE', __DIR__ . '/../../..');
define('DS', DIRECTORY_SEPARATOR);
define('JPATH_BASE', __DIR__ . DS . '..' . DS . '..' . DS . '..');
define('MAX_SIZE', '500');

require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'defines.php';
require_once JPATH_BASE . DS . 'includes' . DS . 'framework.php';

$mainframe = JFactory::getApplication('administrator');
$joomlaUser = JFactory::getUser();
Expand All @@ -29,9 +30,9 @@
<link href="../../../../../administrator/templates/isis/css/template.css" rel="stylesheet" type="text/css" />
<link href="../../../../../media/jui/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="../../../../../media/jui/js/jquery.min.js"></script>
<script src="../../../../../modules/mod_junewsultra/assets/js/jquery.custom-input-file.js"></script>
<script>
<script src="../../../../../media/jui/js/jquery.min.js" type="text/javascript"></script>
<script src="../../../../../modules/mod_junewsultra/assets/js/jquery.custom-input-file.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery.noConflict();
(function($) {
$(function() {
Expand Down Expand Up @@ -82,7 +83,7 @@ function alert($text, $error)
return;
endif;

$path = str_replace('modules/mod_junewsultra/fields/../../..', 'media/mod_junewsultra', JPATH_BASE);
$path = str_replace('modules' . DS . 'mod_junewsultra' . DS . 'fields' . DS . '..' . DS . '..' . DS . '..', 'media/mod_junewsultra', JPATH_BASE);
$max_image_width = 800;
$max_image_height = 800;
$max_image_size = 1024 * 1024;
Expand Down Expand Up @@ -124,13 +125,13 @@ function alert($text, $error)
{
echo alert(JText::_('MOD_JUNEWS_ERROR1') . $max_image_size . ' KB', 'notice');
}
elseif (!in_array($ext, $valid_types, true))
elseif (!in_array($ext, $valid_types))
{
echo alert(JText::_('MOD_JUNEWS_ERROR2'), 'notice');
}
else
{
$size = getimagesize($filename);
$size = GetImageSize($filename);
if ($size && ($size[ 0] < $max_image_width) && ($size[ 1] < $max_image_height))
{
if (@move_uploaded_file($filename, $path . '/jn_' . $_FILES['userfile']['name']))
Expand Down
4 changes: 3 additions & 1 deletion packages/mod_junewsultra/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ abstract class modJUNewsUltraHelper
*/
public static function getList($params, $junews)
{
return 'ROOT';
$items = 'ROOT';

return $items;
}
}
Loading

0 comments on commit 49274e0

Please sign in to comment.