-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0][WIP] More external scripts handled correctly #18912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,28 +9,24 @@ | |
|
|
||
| defined('_JEXEC') or die; | ||
|
|
||
| /** @var \Joomla\Component\Joomlaupdate\Administrator\View\Joomlaupdate\Html $this */ | ||
| use Joomla\CMS\Language\Text; | ||
|
|
||
| /** @var \Joomla\Component\Joomlaupdate\Administrator\View\Joomlaupdate\HtmlView $this */ | ||
| ?> | ||
|
|
||
| <h2> | ||
| <?php echo JText::sprintf('COM_JOOMLAUPDATE_VIEW_DEFAULT_COMPATIBILITY_CHECK', $this->updateInfo['latest']); ?> | ||
| </h2> | ||
| <h2><?php echo Text::sprintf('COM_JOOMLAUPDATE_VIEW_DEFAULT_COMPATIBILITY_CHECK', $this->updateInfo['latest']); ?></h2> | ||
|
|
||
| <div class="row-fluid"> | ||
| <fieldset class="span6"> | ||
| <legend> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_PREUPDATE_CHECK'); ?> | ||
| </legend> | ||
| <legend><?php echo Text::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_PREUPDATE_CHECK'); ?></legend> | ||
| <table class="table"> | ||
| <tbody> | ||
| <?php foreach ($this->phpOptions as $option) : ?> | ||
| <tr> | ||
| <td> | ||
| <?php echo $option->label; ?> | ||
| </td> | ||
| <td><?php echo $option->label; ?></td> | ||
| <td> | ||
| <span class="label label-<?php echo $option->state ? 'success' : 'important'; ?>"> | ||
| <?php echo JText::_($option->state ? 'JYES' : 'JNO'); ?> | ||
| <?php echo Text::_($option->state ? 'JYES' : 'JNO'); ?> | ||
| <?php if ($option->notice) : ?> | ||
| <span class="icon-info icon-white hasTooltip" title="<?php echo $option->notice; ?>"></span> | ||
| <?php endif; ?> | ||
|
|
@@ -43,36 +39,22 @@ | |
| </fieldset> | ||
|
|
||
| <fieldset class="span6"> | ||
| <legend> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED_SETTINGS'); ?> | ||
| </legend> | ||
| <p> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED_SETTINGS_DESC'); ?> | ||
| </p> | ||
| <legend><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED_SETTINGS'); ?></legend> | ||
| <p><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED_SETTINGS_DESC'); ?></p> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
|
|
||
| <table class="table"> | ||
| <thead> | ||
| <tr> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_DIRECTIVE'); ?> | ||
| </td> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED'); ?> | ||
| </td> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_ACTUAL'); ?> | ||
| </td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_DIRECTIVE'); ?></td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_RECOMMENDED'); ?></td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_ACTUAL'); ?></td> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <?php foreach ($this->phpSettings as $setting) : ?> | ||
| <tr> | ||
| <td> | ||
| <?php echo $setting->label; ?> | ||
| </td> | ||
| <td> | ||
| <?php echo JText::_($setting->recommended ? 'JON' : 'JOFF'); ?> | ||
| </td> | ||
| <td><?php echo $setting->label; ?></td> | ||
| <td><?php echo JText::_($setting->recommended ? 'JON' : 'JOFF'); ?></td> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
| <td> | ||
| <span class="label label-<?php echo ($setting->state === $setting->recommended) ? 'success' : 'warning'; ?>"> | ||
| <?php echo JText::_($setting->state ? 'JON' : 'JOFF'); ?> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
|
|
@@ -87,38 +69,26 @@ | |
|
|
||
| <div class="row-fluid"> | ||
| <fieldset class="span6"> | ||
| <legend> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSIONS'); ?> | ||
| </legend> | ||
| <legend><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSIONS'); ?></legend> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
|
|
||
| <table class="table"> | ||
| <thead> | ||
| <tr> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_NAME'); ?> | ||
| </td> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_COMPATIBLE'); ?> | ||
| </td> | ||
| <td> | ||
| <?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_INSTALLED_VERSION'); ?> | ||
| </td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_NAME'); ?></td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_COMPATIBLE'); ?></td> | ||
| <td><?php echo JText::_('COM_JOOMLAUPDATE_VIEW_DEFAULT_EXTENSION_INSTALLED_VERSION'); ?></td> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <?php foreach ($this->nonCoreExtensions as $extension) : ?> | ||
| <tr> | ||
| <td> | ||
| <?php echo JText::_($extension->name); ?> | ||
| </td> | ||
| <td><?php echo JText::_($extension->name); ?></td> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use Text instead of JText |
||
| <td class="extension-check" | ||
| data-extension-id="<?php echo $extension->extension_id; ?>" | ||
| data-extension-current-version="<?php echo $extension->version; ?>"> | ||
| <img src="../media/system/images/mootree_loader.gif" /> | ||
| </td> | ||
| <td> | ||
| <?php echo $extension->version; ?> | ||
| </td> | ||
| <td><?php echo $extension->version; ?></td> | ||
| </tr> | ||
| <?php endforeach; ?> | ||
| </tbody> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using namespaced classes in layout views?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sure it's fine, I just didn't think we were doing that and sticking with
\JHtml, etc, in the layouts.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, basically that part needs to go out of core, it' only used in couple places, not needed to be part of the core, core should be just the API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its fine to use the namespaced classes.