Skip to content

Commit

Permalink
Merge branch 'staging' into modstats
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 authored Apr 7, 2017
2 parents aa81956 + e7ba4f7 commit 9883fad
Show file tree
Hide file tree
Showing 34 changed files with 214 additions and 112 deletions.
11 changes: 10 additions & 1 deletion administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -1791,11 +1791,20 @@ public function deleteUnexistingFiles()
'/administrator/components/com_modules/layouts/joomla/searchtools/default.php',
'/administrator/components/com_templates/layouts/joomla/searchtools/default/bar.php',
'/administrator/components/com_templates/layouts/joomla/searchtools/default.php',
// Joomla 3.7.0
'/administrator/modules/mod_menu/tmpl/default_enabled.php',
'/administrator/modules/mod_menu/tmpl/default_disabled.php',
'/administrator/templates/hathor/html/mod_menu/default_enabled.php',
'/administrator/components/com_users/models/fields/components.php',
'/administrator/components/com_installer/controllers/languages.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_doc.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_folder.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_img.php',
'/administrator/components/com_media/views/medialist/tmpl/thumbs_video.php',
'/media/editors/none/none.js',
'/media/editors/none/none.min.js',
'/media/editors/tinymce/plugins/media/moxieplayer.swf',
'/media/system/js/tiny-close.js',
'/media/system/js/tiny-close.min.js',
'/administrator/components/com_messages/layouts/toolbar/mysettings.php',
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CREATE TABLE IF NOT EXISTS `#__fields` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`asset_id` int(10) NOT NULL DEFAULT 0,
`asset_id` int(10) unsigned NOT NULL DEFAULT 0,
`context` varchar(255) NOT NULL DEFAULT '',
`group_id` int(10) NOT NULL DEFAULT 0,
`group_id` int(10) unsigned NOT NULL DEFAULT 0,
`title` varchar(255) NOT NULL DEFAULT '',
`name` varchar(255) NOT NULL DEFAULT '',
`label` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -28,7 +28,7 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
KEY `idx_state` (`state`),
KEY `idx_created_user_id` (`created_user_id`),
KEY `idx_access` (`access`),
KEY `idx_context` (`context`),
KEY `idx_context` (`context`(191)),
KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

Expand All @@ -40,7 +40,7 @@ CREATE TABLE `#__fields_categories` (

CREATE TABLE IF NOT EXISTS `#__fields_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`asset_id` int(10) NOT NULL DEFAULT 0,
`asset_id` int(10) unsigned NOT NULL DEFAULT 0,
`context` varchar(255) NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL DEFAULT '',
Expand All @@ -60,16 +60,16 @@ CREATE TABLE IF NOT EXISTS `#__fields_groups` (
KEY `idx_state` (`state`),
KEY `idx_created_by` (`created_by`),
KEY `idx_access` (`access`),
KEY `idx_context` (`context`),
KEY `idx_context` (`context`(191)),
KEY `idx_language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

CREATE TABLE IF NOT EXISTS `#__fields_values` (
`field_id` int(10) unsigned NOT NULL,
`item_id` varchar(255) NOT NULL COMMENT 'Allow references to items which have strings as ids, eg. none db systems.',
`value` text NOT NULL DEFAULT '',
KEY (`field_id`),
KEY (`item_id`)
KEY `idx_field_id` (`field_id`),
KEY `idx_item_id` (`item_id`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;

INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected function getInput()

return '<input type="text" name="' . $this->name . '" id="' . $this->id . '" size="9" value="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8')
. '" ' . $class . $onchange . ' />'
. '<fieldset class="checkboxes impunlimited"><input id="' . $this->id . '_unlimited" type="checkbox"' . $checked . $onclick . ' />'
. '<fieldset class="checkbox impunlimited"><input id="' . $this->id . '_unlimited" type="checkbox"' . $checked . $onclick . ' />'
. '<label for="' . $this->id . '_unlimited" id="jform-imp" type="text">' . JText::_('COM_BANNERS_UNLIMITED') . '</label></fieldset>';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
/**
* HTML utility class for creating text diffs using jQuery, diff_patch_match.js and jquery.pretty-text-diff.js JavaScript libraries.
*
* @since 3.2
* @since 3.2
*
* @deprecated 4.0 No replacement
*/
abstract class JHtmlTextdiff
{
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_fields/models/field.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function save($data)
*
* @return true|string true if valid, a string containing the exception message when not.
*
* @since __DEPLOY_VERSION__
* @since 3.7.0
*/
private function checkDefaultValue($data)
{
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_tags/models/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TagsModelTag extends JModelAdmin
* Allowed batch commands
*
* @var array
* @since __DEPLOY_VERSION__
* @since 3.7.0
*/
protected $batch_commands = array(
'assetgroup_id' => 'batchAccess',
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/en-GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<metafile version="3.7" client="administrator">
<name>English (en-GB)</name>
<version>3.7.0</version>
<creationDate>March 2017</creationDate>
<creationDate>April 2017</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB)</name>
<tag>en-GB</tag>
<version>3.7.0</version>
<creationDate>March 2017</creationDate>
<creationDate>April 2017</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/manifests/files/joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2005 - 2017 Open Source Matters. All rights reserved</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>3.7.0-beta4</version>
<creationDate>March 2017</creationDate>
<version>3.7.0-rc1</version>
<creationDate>April 2017</creationDate>
<description>FILES_JOOMLA_XML_DESCRIPTION</description>

<scriptfile>administrator/components/com_admin/script.php</scriptfile>
Expand Down
2 changes: 1 addition & 1 deletion administrator/manifests/packages/pkg_en-GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB) Language Pack</name>
<packagename>en-GB</packagename>
<version>3.7.0.1</version>
<creationDate>March 2017</creationDate>
<creationDate>April 2017</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
}
else
{
JoomlaInstaller.showLoading();
form.installtype.value = 'folder';
form.submit();
}
Expand Down Expand Up @@ -67,53 +68,94 @@
Joomla.submitbutton4();
};
// Add spindle-wheel for installations:
jQuery(document).ready(function($) {
var outerDiv = $(\"#installer-install\");
JoomlaInstaller.getLoadingOverlay()
.css(\"top\", outerDiv.position().top - $(window).scrollTop())
.css(\"left\", \"0\")
.css(\"width\", \"100%\")
.css(\"height\", \"100%\")
.css(\"display\", \"none\")
.css(\"margin-top\", \"-10px\");
});
var JoomlaInstaller = {
getLoadingOverlay: function () {
return jQuery(\"#loading\");
},
showLoading: function () {
this.getLoadingOverlay().css(\"display\", \"block\");
},
hideLoading: function () {
this.getLoadingOverlay().css(\"display\", \"none\");
}
};
");

JFactory::getDocument()->addStyleDeclaration(
'
#loading {
background: rgba(255, 255, 255, .8) url(\'' . JHtml::_('image', 'jui/ajax-loader.gif', '', null, true, true) . '\') 50% 15% no-repeat;
position: fixed;
opacity: 0.8;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 80);
filter: alpha(opacity = 80);
overflow: hidden;
}
'
);
?>
<form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_installer&view=install');?>" method="post" name="adminForm" id="adminForm">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>

<?php if ($this->showJedAndWebInstaller && !$this->showMessage) : ?>
<div class="alert j-jed-message" style="margin-bottom: 20px; line-height: 2em; color:#333333; clear:both;">
<a href="index.php?option=com_config&view=component&component=com_installer&path=&return=<?php echo urlencode(base64_encode(JUri::getInstance())); ?>" class="close hasTooltip icon-options" data-dismiss="alert" title="<?php echo str_replace('"', '&quot;', JText::_('COM_INSTALLER_SHOW_JED_INFORMATION_TOOLTIP')); ?>"></a>
<p><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_INFO'); ?>&nbsp;<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_TOS'); ?></p>
<input class="btn" type="button" value="<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB'); ?>" onclick="Joomla.submitbuttonInstallWebInstaller()" />
</div>
<?php endif; ?>

<?php if ($this->ftp) : ?>
<?php echo $this->loadTemplate('ftp'); ?>
<?php endif; ?>
<div class="width-70 fltlft">

<?php $firstTab = JEventDispatcher::getInstance()->trigger('onInstallerViewBeforeFirstTab', array()); ?>

<?php // Show installation fieldsets ?>
<?php $tabs = JEventDispatcher::getInstance()->trigger('onInstallerAddInstallationTab', array()); ?>
<?php foreach ($tabs as $tab) : ?>
<fieldset class="uploadform">
<?php echo $tab['content']; ?>
</fieldset>
<?php endforeach; ?>

<?php $lastTab = JEventDispatcher::getInstance()->trigger('onInstallerViewAfterLastTab', array()); ?>

<?php $tabs = array_merge($firstTab, $tabs, $lastTab); ?>
<?php if (!$tabs) : ?>
<?php JFactory::getApplication()->enqueueMessage(JText::_('COM_INSTALLER_NO_INSTALLATION_PLUGINS_FOUND'), 'warning'); ?>
<?php endif; ?>


<input type="hidden" name="type" value="" />
<input type="hidden" name="installtype" value="upload" />
<input type="hidden" name="task" value="install.install" />
<?php echo JHtml::_('form.token'); ?>
</div>
<div id="installer-install" class="clearfix">
<form enctype="multipart/form-data" action="<?php echo JRoute::_('index.php?option=com_installer&view=install');?>" method="post" name="adminForm" id="adminForm">
<?php if (!empty( $this->sidebar)) : ?>
<div id="j-sidebar-container" class="span2">
<?php echo $this->sidebar; ?>
</div>
<div id="j-main-container" class="span10">
<?php else : ?>
<div id="j-main-container">
<?php endif;?>

<?php if ($this->showJedAndWebInstaller && !$this->showMessage) : ?>
<div class="alert j-jed-message" style="margin-bottom: 20px; line-height: 2em; color:#333333; clear:both;">
<a href="index.php?option=com_config&view=component&component=com_installer&path=&return=<?php echo urlencode(base64_encode(JUri::getInstance())); ?>" class="close hasTooltip icon-options" data-dismiss="alert" title="<?php echo str_replace('"', '&quot;', JText::_('COM_INSTALLER_SHOW_JED_INFORMATION_TOOLTIP')); ?>"></a>
<p><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_INFO'); ?>&nbsp;<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_TOS'); ?></p>
<input class="btn" type="button" value="<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB'); ?>" onclick="Joomla.submitbuttonInstallWebInstaller()" />
</div>
<?php endif; ?>

<?php if ($this->ftp) : ?>
<?php echo $this->loadTemplate('ftp'); ?>
<?php endif; ?>
<div class="width-70 fltlft">

<?php $firstTab = JEventDispatcher::getInstance()->trigger('onInstallerViewBeforeFirstTab', array()); ?>

<?php // Show installation fieldsets ?>
<?php $tabs = JEventDispatcher::getInstance()->trigger('onInstallerAddInstallationTab', array()); ?>
<?php foreach ($tabs as $tab) : ?>
<fieldset class="uploadform">
<?php echo $tab['content']; ?>
</fieldset>
<?php endforeach; ?>

<?php $lastTab = JEventDispatcher::getInstance()->trigger('onInstallerViewAfterLastTab', array()); ?>

<?php $tabs = array_merge($firstTab, $tabs, $lastTab); ?>
<?php if (!$tabs) : ?>
<?php JFactory::getApplication()->enqueueMessage(JText::_('COM_INSTALLER_NO_INSTALLATION_PLUGINS_FOUND'), 'warning'); ?>
<?php endif; ?>


<input type="hidden" name="type" value="" />
<input type="hidden" name="installtype" value="upload" />
<input type="hidden" name="task" value="install.install" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</form>
</div>
</form>
<div id="loading"></div>
13 changes: 11 additions & 2 deletions administrator/templates/hathor/html/com_menus/item/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,17 @@
// Add the script to the document head.
JFactory::getDocument()->addScriptDeclaration($script);

// In case of modal
$input = JFactory::getApplication()->input;
$isModal = $input->get('layout') == 'modal' ? true : false;
$layout = $isModal ? 'modal' : 'edit';
$tmpl = $isModal || $input->get('tmpl', '', 'cmd') === 'component' ? '&tmpl=component' : '';
$clientId = $this->state->get('item.client_id', 0);
?>

<div class="menuitem-edit">

<form action="<?php echo JRoute::_('index.php?option=com_menus&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" class="form-validate">
<form action="<?php echo JRoute::_('index.php?option=com_menus&view=item&client_id=' . $clientId . '&layout=' . $layout . $tmpl . '&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="item-form" class="form-validate">

<div class="col main-section">
<fieldset class="adminform">
Expand Down Expand Up @@ -143,7 +149,10 @@

<li><?php echo $this->form->getLabel('id'); ?>
<?php echo $this->form->getInput('id'); ?></li>
</ul>

<li><?php echo $this->form->getLabel('client_id'); ?>
<?php echo $this->form->getInput('client_id'); ?></li>
</ul>

</fieldset>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</fieldset>
<?php endforeach;?>

<?php if ($assoc) : ?>
<?php if ($assoc && $this->state->get('item.client_id') != 1) : ?>
<?php echo JHtml::_('sliders.panel', JText::_('JGLOBAL_FIELDSET_ASSOCIATIONS'), '-options');?>
<?php echo $this->loadTemplate('associations'); ?>
<?php endif; ?>
12 changes: 6 additions & 6 deletions administrator/templates/hathor/html/com_menus/items/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$canOrder = $user->authorise('core.edit.state', 'com_menus');
$saveOrder = ($listOrder == 'a.lft' && $listDirn == 'asc');
$menutypeid = (int) $this->state->get('menutypeid');
$assoc = JLanguageAssociations::isEnabled();
$assoc = JLanguageAssociations::isEnabled() && $this->state->get('filter.client_id') == 0;;
?>

<?php // Set up the filter bar. ?>
Expand Down Expand Up @@ -63,23 +63,23 @@
<label class="selectlabel" for="filter_published">
<?php echo JText::_('JOPTION_SELECT_PUBLISHED'); ?>
</label>
<select name="filter_published" id="filter_published">
<select name="filter[published]" id="filter_published">
<option value=""><?php echo JText::_('JOPTION_SELECT_PUBLISHED');?></option>
<?php echo JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false)), 'value', 'text', $this->state->get('filter.published'), true);?>
</select>

<label class="selectlabel" for="filter_access">
<?php echo JText::_('JOPTION_SELECT_ACCESS'); ?>
</label>
<select name="filter_access" id="filter_access">
<select name="filter[access]" id="filter_access">
<option value=""><?php echo JText::_('JOPTION_SELECT_ACCESS');?></option>
<?php echo JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'));?>
</select>

<label class="selectlabel" for="filter_language">
<?php echo JText::_('JOPTION_SELECT_LANGUAGE'); ?>
</label>
<select name="filter_language" id="filter_language">
<select name="filter[language]" id="filter_language">
<option value=""><?php echo JText::_('JOPTION_SELECT_LANGUAGE');?></option>
<?php echo JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'));?>
</select>
Expand Down Expand Up @@ -151,7 +151,7 @@
<?php if ($item->checked_out) : ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'items.', $canCheckin); ?>
<?php endif; ?>
<?php if ($canEdit) : ?>
<?php if ($canEdit && !$item->protected) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_menus&task=item.edit&id='.(int) $item->id);?>">
<?php echo $this->escape($item->title); ?></a>
<?php else : ?>
Expand Down Expand Up @@ -195,7 +195,7 @@
<td class="center">
<?php if ($item->type == 'component') : ?>
<?php if ($item->language == '*' || $item->home == '0'):?>
<?php echo JHtml::_('jgrid.isdefault', $item->home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange);?>
<?php echo JHtml::_('jgrid.isdefault', $item->home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange && !$item->protected);?>
<?php elseif ($canChange):?>
<a href="<?php echo JRoute::_('index.php?option=com_menus&task=items.unsetDefault&cid[]='.$item->id.'&'.JSession::getFormToken().'=1'); ?>">
<?php if ($item->language_image) : ?>
Expand Down
2 changes: 1 addition & 1 deletion installation/language/en-GB/en-GB.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
client="installation">
<name>English (United Kingdom)</name>
<version>3.7.0</version>
<creationDate>March 2017</creationDate>
<creationDate>April 2017</creationDate>
<author>Joomla! Project</author>
<copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down
Loading

0 comments on commit 9883fad

Please sign in to comment.