Skip to content

Commit

Permalink
Merge branch 'staging' into uneeded-data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Oct 2, 2016
2 parents dcb0912 + 90a091d commit 96cbe22
Show file tree
Hide file tree
Showing 155 changed files with 1,709 additions and 1,401 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -15,13 +15,13 @@ What is this?

What is Joomla?
---------------------
* [Joomla](https://www.joomla.org/about-joomla.html) is a **Content Management System** (CMS) which enables you to build websites and powerful online applications.
* [Joomla!](https://www.joomla.org/about-joomla.html) is a **Content Management System** (CMS) which enables you to build websites and powerful online applications.
* It is a simple and powerful web server application which requires a server with PHP and either MySQL, PostgreSQL or SQL Server to run. You can find [full technical requirements here](https://www.joomla.org/about-joomla/technical-requirements.html).
* Joomla is **free and OpenSource software** distributed under the GNU General Public License version 2 or later.
* Joomla! is **free and OpenSource software** distributed under the GNU General Public License version 2 or later.

Is Joomla! for you?
---------------------
* Joomla is [the right solution for most content web projects](https://docs.joomla.org/Portal:Learn_More).
* Joomla! is [the right solution for most content web projects](https://docs.joomla.org/Portal:Learn_More).
* View Joomla's [core features here](https://www.joomla.org/core-features.html).
* Try it out for yourself in our [online demo](https://demo.joomla.org).

Expand All @@ -38,9 +38,9 @@ Learn Joomla!

What are the benefits of Joomla?
---------------------
* The functionality of a Joomla website can be extended by installing extensions that you can create (or download) to suit your needs.
* The functionality of a Joomla! website can be extended by installing extensions that you can create (or download) to suit your needs.
* There are many ready-made extensions that you can download and install.
* Check out the [Joomla! Extensions Directory (JED)](http://extensions.joomla.org).
* Check out the [Joomla! Extensions Directory (JED)](https://extensions.joomla.org).

Is it easy to change the layout display?
---------------------
Expand Down
8 changes: 4 additions & 4 deletions README.txt
Expand Up @@ -5,13 +5,13 @@
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/master

2- What is Joomla?
* Joomla is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
* Joomla! is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
* It's a free and OpenSource software, distributed under the GNU General Public License version 2 or later.
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, PostgreSQL, or SQL Server to run.
You can find full technical requirements here: https://www.joomla.org/about-joomla/technical-requirements.html.

3- Is Joomla! for you?
* Joomla is the right solution for most content web projects: https://docs.joomla.org/Portal:Learn_More
* Joomla! is the right solution for most content web projects: https://docs.joomla.org/Portal:Learn_More
* See Joomla's core features - https://www.joomla.org/core-features.html
* Try out our online demo: https://demo.joomla.org/

Expand All @@ -25,9 +25,9 @@
* Before installing, read the beginners guide: https://docs.joomla.org/Portal:Beginners

6- What are the benefits of Joomla?
* The functionality of a Joomla website can be extended by installing extensions that you can create (or download) to suit your needs.
* The functionality of a Joomla! website can be extended by installing extensions that you can create (or download) to suit your needs.
* There are many ready-made extensions that you can download and install.
* Check out the Joomla! Extensions Directory (JED): http://extensions.joomla.org
* Check out the Joomla! Extensions Directory (JED): https://extensions.joomla.org

7- Is it easy to change the layout display?
* The layout is controlled by templates that you can edit.
Expand Down
Expand Up @@ -15,6 +15,14 @@
JHtml::_('behavior.multiselect');
JHtml::_('formbehavior.chosen', 'select');

$purchaseTypes = array(
'1' => 'UNLIMITED',
'2' => 'YEARLY',
'3' => 'MONTHLY',
'4' => 'WEEKLY',
'5' => 'DAILY',
);

$user = JFactory::getUser();
$userId = $user->get('id');
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down Expand Up @@ -136,9 +144,9 @@
</td>
<td class="small hidden-phone">
<?php if ($item->purchase_type < 0): ?>
<?php echo JText::sprintf('COM_BANNERS_DEFAULT', JText::_('COM_BANNERS_FIELD_VALUE_' . $params->get('purchase_type'))); ?>
<?php echo JText::sprintf('COM_BANNERS_DEFAULT', JText::_('COM_BANNERS_FIELD_VALUE_' . $purchaseTypes[$params->get('purchase_type')])); ?>
<?php else: ?>
<?php echo JText::_('COM_BANNERS_FIELD_VALUE_' . $item->purchase_type); ?>
<?php echo JText::_('COM_BANNERS_FIELD_VALUE_' . $purchaseTypes[$item->purchase_type]); ?>
<?php endif; ?>
</td>
<td class="hidden-phone">
Expand Down
23 changes: 22 additions & 1 deletion administrator/components/com_contenthistory/models/compare.php
Expand Up @@ -74,7 +74,28 @@ public function getItems()
$object = new stdClass;
$object->data = ContenthistoryHelper::prepareData($table);
$object->version_note = $table->version_note;
$object->save_date = $table->save_date;

// Let's use custom calendars when present
$object->save_date = JHtml::_('date', $table->save_date, 'Y-m-d H:i:s');

$dateProperties = array (
'modified_time',
'created_time',
'modified',
'created',
'checked_out_time',
'publish_up',
'publish_down',
);

foreach ($dateProperties as $dateProperty)
{
if (array_key_exists($dateProperty, $object->data) && $object->data->$dateProperty->value != '0000-00-00 00:00:00')
{
$object->data->$dateProperty->value = JHtml::_('date', $object->data->$dateProperty->value, 'Y-m-d H:i:s');
}
}

$result[] = $object;
}

Expand Down
22 changes: 21 additions & 1 deletion administrator/components/com_contenthistory/models/preview.php
Expand Up @@ -64,10 +64,30 @@ public function getItem()
if ($return == true)
{
$result = new stdClass;
$result->save_date = $table->save_date;
$result->version_note = $table->version_note;
$result->data = ContenthistoryHelper::prepareData($table);

// Let's use custom calendars when present
$result->save_date = JHtml::_('date', $table->save_date, 'Y-m-d H:i:s');

$dateProperties = array (
'modified_time',
'created_time',
'modified',
'created',
'checked_out_time',
'publish_up',
'publish_down',
);

foreach ($dateProperties as $dateProperty)
{
if (array_key_exists($dateProperty, $result->data) && $result->data->$dateProperty->value != '0000-00-00 00:00:00')
{
$result->data->$dateProperty->value = JHtml::_('date', $result->data->$dateProperty->value, 'Y-m-d H:i:s');
}
}

return $result;
}
}
Expand Down
Expand Up @@ -375,7 +375,7 @@ protected function _applyCredentials()
*
* @return array
*
* @since __DEPLOY_VERSION__
* @since 3.6.3
*/
public function finaliseconfirm()
{
Expand Down
Expand Up @@ -229,7 +229,7 @@ public function getData()
continue;
}

$row = new StdClass;
$row = new stdClass;

$row->language = $lang->element;
$row->client_id = (int) $lang->client_id;
Expand Down
Expand Up @@ -229,7 +229,7 @@ public function save($key = null, $urlVar = null)
*
* @return string The data for the Ajax request.
*
* @since __DEPLOY_VERSION__
* @since 3.6.3
*/
public function orderPosition()
{
Expand Down
3 changes: 2 additions & 1 deletion administrator/components/com_redirect/models/link.php
Expand Up @@ -199,7 +199,7 @@ public function activate(&$pks, $url, $comment = null)
}

/**
* Method to duplicate URL links.
* Method to batch update URLs to have new redirect urls and comments. Note will publish any unpublished URLs.
*
* @param array &$pks An array of link ids.
* @param string $url The new URL to set for the redirect.
Expand Down Expand Up @@ -236,6 +236,7 @@ public function duplicateUrls(&$pks, $url, $comment = null)
->update($db->quoteName('#__redirect_links'))
->set($db->quoteName('new_url') . ' = ' . $db->quote($url))
->set($db->quoteName('modified_date') . ' = ' . $db->quote($date))
->set($db->quoteName('published') . ' = ' . 1)
->where($db->quoteName('id') . ' IN (' . implode(',', $pks) . ')');

if (!empty($comment))
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_users/models/groups.php
Expand Up @@ -176,7 +176,7 @@ protected function getListQuery()
*
* @return array
*
* @since __DEPLOY_VERSION__
* @since 3.6.3
*/
private function populateExtraData(array $items)
{
Expand Down
65 changes: 0 additions & 65 deletions administrator/components/com_users/views/level/tmpl/edit.php
Expand Up @@ -23,71 +23,6 @@
}
};
");
/*
window.addEvent('domready', function(){
document.id('user-groups').getElements('input').each(function(i){
// Event to check all child groups.
i.addEvent('check', function(e){
// Check the child groups.
document.id('user-groups').getElements('input').each(function(c){
if (this.getProperty('rel') == c.id)
{
c.setProperty('checked', true);
c.setProperty('disabled', true);
c.fireEvent('check');
}
}.bind(this));
}.bind(i));
// Event to uncheck all the parent groups.
i.addEvent('uncheck', function(e){
// Uncheck the parent groups.
document.id('user-groups').getElements('input').each(function(c){
if (c.getProperty('rel') == this.id)
{
c.setProperty('checked', false);
c.setProperty('disabled', false);
c.fireEvent('uncheck');
}
}.bind(this));
}.bind(i));
// Bind to the click event to check/uncheck child/parent groups.
i.addEvent('click', function(e){
// Check the child groups.
document.id('user-groups').getElements('input').each(function(c){
if (this.getProperty('rel') == c.id)
{
c.setProperty('checked', true);
if (this.getProperty('checked'))
{
c.setProperty('disabled', true);
} else {
c.setProperty('disabled', false);
}
c.fireEvent('check');
}
}.bind(this));
// Uncheck the parent groups.
document.id('user-groups').getElements('input').each(function(c){
if (c.getProperty('rel') == this.id)
{
c.setProperty('checked', false);
c.setProperty('disabled', false);
c.fireEvent('uncheck');
}
}.bind(this));
}.bind(i));
// Initialise the widget.
if (i.getProperty('checked'))
{
i.fireEvent('click');
}
});
});
*/
?>

<form action="<?php echo JRoute::_('index.php?option=com_users&id=' . (int) $this->item->id); ?>" method="post" name="adminForm" id="level-form" class="form-validate form-horizontal">
Expand Down
Expand Up @@ -91,7 +91,7 @@
<?php if ($item->checked_out) : ?>
<?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'notes.', $canCheckin); ?>
<?php endif; ?>
<?php $subject = $item->subject ? $this->escape($item->subject) : JText::_('COM_USERS_EMPTY_SUBJECT'); ?>
<?php $subject = $item->subject ? $item->subject : JText::_('COM_USERS_EMPTY_SUBJECT'); ?>
<?php if ($canEdit) : ?>
<a href="<?php echo JRoute::_('index.php?option=com_users&task=note.edit&id=' . $item->id); ?>"><?php echo $this->escape($subject); ?></a>
<?php else : ?>
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/en-GB.com_installer.ini
Expand Up @@ -67,8 +67,8 @@ COM_INSTALLER_INSTALL_FROM_DIRECTORY="Install from Folder"
COM_INSTALLER_INSTALL_FROM_URL="Install from URL"
COM_INSTALLER_INSTALL_FROM_WEB="Install from Web"
COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB="Add &quot;Install from Web&quot; tab"
COM_INSTALLER_INSTALL_FROM_WEB_INFO="<a class="_QQ_"alert-link"_QQ_" href="_QQ_"http://extensions.joomla.org"_QQ_" target="_QQ_"_blank"_QQ_">Joomla! Extensions Directory&trade; (JED)</a> now available with <a class="_QQ_"alert-link"_QQ_" href="_QQ_"https://docs.joomla.org/Install_from_Web"_QQ_" target="_QQ_"_blank"_QQ_">Install from Web</a> on this page."
COM_INSTALLER_INSTALL_FROM_WEB_TOS="By selecting "_QQ_"Add Install from Web tab"_QQ_" below, you agree to the JED <a class="_QQ_"alert-link"_QQ_" href="_QQ_"http://extensions.joomla.org/tos"_QQ_" target="_QQ_"_blank"_QQ_">Terms of Service</a> and all applicable third party license terms."
COM_INSTALLER_INSTALL_FROM_WEB_INFO="<a class="_QQ_"alert-link"_QQ_" href="_QQ_"https://extensions.joomla.org"_QQ_" target="_QQ_"_blank"_QQ_">Joomla! Extensions Directory&trade; (JED)</a> now available with <a class="_QQ_"alert-link"_QQ_" href="_QQ_"https://docs.joomla.org/Install_from_Web"_QQ_" target="_QQ_"_blank"_QQ_">Install from Web</a> on this page."
COM_INSTALLER_INSTALL_FROM_WEB_TOS="By selecting "_QQ_"Add Install from Web tab"_QQ_" below, you agree to the JED <a class="_QQ_"alert-link"_QQ_" href="_QQ_"https://extensions.joomla.org/tos"_QQ_" target="_QQ_"_blank"_QQ_">Terms of Service</a> and all applicable third party license terms."
COM_INSTALLER_INSTALL_LANGUAGE_SUCCESS="Installation of the <strong>%s</strong> language was successful."
COM_INSTALLER_INSTALL_SUCCESS="Installation of the %s was successful."
COM_INSTALLER_INSTALL_URL="Install URL"
Expand Down
4 changes: 2 additions & 2 deletions administrator/language/en-GB/en-GB.com_users.ini
Expand Up @@ -32,8 +32,8 @@ COM_USERS_CONFIG_FIELD_ALLOWREGISTRATION_DESC="If set to Yes, new Users are allo
COM_USERS_CONFIG_FIELD_ALLOWREGISTRATION_LABEL="Allow User Registration"
COM_USERS_CONFIG_FIELD_CAPTCHA_DESC="Select the captcha plugin that will be used in the registration, password and username reminder forms. You may need to enter required information for your captcha plugin in the Plugin Manager.<br />If 'Use Default' is selected, make sure a captcha plugin is selected in Global Configuration."
COM_USERS_CONFIG_FIELD_CAPTCHA_LABEL="Captcha"
COM_USERS_CONFIG_FIELD_CHANGEUSERNAME_DESC="Allow users to change their Login name when editing their profile."
COM_USERS_CONFIG_FIELD_CHANGEUSERNAME_LABEL="Change Login Name"
COM_USERS_CONFIG_FIELD_CHANGEUSERNAME_DESC="Allow users to change their Username when editing their profile."
COM_USERS_CONFIG_FIELD_CHANGEUSERNAME_LABEL="Change Username"
COM_USERS_CONFIG_FIELD_FRONTEND_LANG_DESC="If 'Frontend User Parameters' is set to 'Show', users will be able to select their Frontend language preference when registering."
COM_USERS_CONFIG_FIELD_FRONTEND_LANG_LABEL="Frontend Language"
COM_USERS_CONFIG_FIELD_FRONTEND_RESET_COUNT_DESC="The maximum number of password resets allowed within the time period. Zero indicates no limit."
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/en-GB.xml
Expand Up @@ -2,7 +2,7 @@
<metafile version="3.6" client="administrator">
<name>English (en-GB)</name>
<version>3.6.3</version>
<creationDate>August 2016</creationDate>
<creationDate>September 2016</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
Expand Up @@ -3,7 +3,7 @@
<name>English (United Kingdom)</name>
<tag>en-GB</tag>
<version>3.6.3</version>
<creationDate>August 2016</creationDate>
<creationDate>September 2016</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
Expand Up @@ -6,8 +6,8 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2005 - 2016 Open Source Matters. All rights reserved</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>3.6.3-dev</version>
<creationDate>August 2016</creationDate>
<version>3.6.3-rc1</version>
<creationDate>September 2016</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
Expand Up @@ -3,7 +3,7 @@
<name>English (en-GB) Language Pack</name>
<packagename>en-GB</packagename>
<version>3.6.3.1</version>
<creationDate>August 2016</creationDate>
<creationDate>September 2016</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
4 changes: 2 additions & 2 deletions administrator/modules/mod_menu/tmpl/default.php
Expand Up @@ -9,8 +9,8 @@

defined('_JEXEC') or die;

$document = JFactory::getDocument();
$direction = $document->direction == 'rtl' ? 'pull-right' : '';
$direction = JFactory::getDocument()->direction == 'rtl' ? 'pull-right' : '';

require JModuleHelper::getLayoutPath('mod_menu', $enabled ? 'default_enabled' : 'default_disabled');

$menu->renderMenu('menu', $enabled ? 'nav ' . $direction : 'nav disabled ' . $direction);

0 comments on commit 96cbe22

Please sign in to comment.