-
Notifications
You must be signed in to change notification settings - Fork 5
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
f29566e
commit 732c601
Showing
22 changed files
with
1,708 additions
and
1,588 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
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
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,11 +2,11 @@ | |
/** | ||
* JUNewsUltra Pro | ||
* | ||
* @version 6.x | ||
* @package UNewsUltra Pro | ||
* @author Denys D. Nosov ([email protected]) | ||
* @copyright (C) 2007-2017 by Denys D. Nosov (http://joomla-ua.org) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
* @version 6.x | ||
* @package UNewsUltra Pro | ||
* @author Denys D. Nosov ([email protected]) | ||
* @copyright (C) 2007-2017 by Denys D. Nosov (http://joomla-ua.org) | ||
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html | ||
* | ||
**/ | ||
|
||
|
@@ -28,44 +28,45 @@ protected function getInput() | |
|
||
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"'; | ||
|
||
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>'; | ||
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>'; | ||
|
||
$options = $this->getOptions(); | ||
|
||
foreach ($options as $i => $option) | ||
{ | ||
$checked = ((string) $option->value == (string) $this->value) ? ' checked="checked"' : ''; | ||
$class = !empty($option->class) ? ' class="' . $option->class . '"' : ''; | ||
|
||
$commets_system = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); | ||
$comments = JPATH_SITE . '/components/com_'. $commets_system .'/'. $commets_system .'.php'; | ||
|
||
if (!file_exists($comments)) | ||
{ | ||
$disabled = ' disabled="disabled"'; | ||
$color = 'color: #999;'; | ||
$tips = ' <sup class="label label-inverse">'. JText::_('MOD_JUNEWS_NOTINSTALL') .'</sup>'; | ||
$check = ''; | ||
} | ||
else { | ||
$disabled = ''; | ||
$color = ''; | ||
$tips = ''; | ||
$check = $checked; | ||
} | ||
$checked = ((string) $option->value == (string) $this->value) ? ' checked="checked"' : ''; | ||
$class = !empty($option->class) ? ' class="' . $option->class . '"' : ''; | ||
|
||
$commets_system = htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8'); | ||
$comments = JPATH_SITE . '/components/com_' . $commets_system . '/' . $commets_system . '.php'; | ||
|
||
if (!file_exists($comments)) | ||
{ | ||
$disabled = ' disabled="disabled"'; | ||
$color = 'color: #999;'; | ||
$tips = ' <sup class="label label-inverse">' . JText::_('MOD_JUNEWS_NOTINSTALL') . '</sup>'; | ||
$check = ''; | ||
} | ||
else | ||
{ | ||
$disabled = ''; | ||
$color = ''; | ||
$tips = ''; | ||
$check = $checked; | ||
} | ||
|
||
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : ''; | ||
|
||
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="' | ||
. htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $check . $class . $onclick . $disabled . '/>'; | ||
|
||
$html[] = '<label for="' . $this->id . $i . '" id="' . $this->id . $i . '" style="'. $color .'">' | ||
$html[] = '<label for="' . $this->id . $i . '" id="' . $this->id . $i . '" style="' . $color . '">' | ||
. JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)) . $tips . '</label>'; | ||
|
||
$html[] = '<div style="clear: both;"></div>'; | ||
$html[] = '<div style="clear: both;"></div>'; | ||
} | ||
|
||
$html[] = '</fieldset>'; | ||
$html[] = '</fieldset>'; | ||
|
||
return implode($html); | ||
} | ||
|
@@ -89,7 +90,7 @@ protected function getOptions() | |
((string) $option['disabled'] == 'true') | ||
); | ||
|
||
$tmp->class = (string) $option['class']; | ||
$tmp->class = (string) $option['class']; | ||
$tmp->onclick = (string) $option['onclick']; | ||
|
||
$options[] = $tmp; | ||
|
Oops, something went wrong.