Skip to content

Commit

Permalink
Merge branch '3.7.x' into admin-menu-manager
Browse files Browse the repository at this point in the history
Ref #2
  • Loading branch information
izharaazmi committed Nov 11, 2016
2 parents 34dcfb0 + 4d44c25 commit 8e54a46
Show file tree
Hide file tree
Showing 499 changed files with 2,471 additions and 2,298 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ What is this?
---------------------
* This is a Joomla! 3.x installation/upgrade package.
* Joomla's [Official website](https://www.joomla.org).
* Joomla! 3.6 [version history](https://docs.joomla.org/Joomla_3.6_version_history).
* Joomla! 3.7 [version history](https://docs.joomla.org/Joomla_3.7_version_history).
* Detailed changes are in the [changelog](https://github.com/joomla/joomla-cms/commits/master).

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.
* 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 Open Source software** distributed under the GNU General Public License version 2 or later.

Is Joomla! for you?
---------------------
Expand Down Expand Up @@ -65,7 +65,7 @@ Where can you get support and help?
* [Frequently Asked Questions](https://docs.joomla.org/Category:FAQ) (FAQ);
* Find the [information you need](https://docs.joomla.org/Start_here);
* Find [help and other users](https://www.joomla.org/about-joomla/create-and-share.html);
* Post questions at [our forums](http://forum.joomla.org);
* Post questions at [our forums](https://forum.joomla.org);
* [Joomla Resources Directory](http://resources.joomla.org/) (JRD).

Do you already have a Joomla! site that isn't built with Joomla! 3.x?
Expand Down
10 changes: 5 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
1- What is this?
* This is a Joomla! installation/upgrade package to version 3.x
* Joomla! Official site: https://www.joomla.org
* Joomla! 3.6 version history - https://docs.joomla.org/Joomla_3.6_version_history
* Joomla! 3.7 version history - https://docs.joomla.org/Joomla_3.7_version_history
* 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.
* 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.
* It's a free and Open Source 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?
Expand Down Expand Up @@ -36,7 +36,7 @@

8- Ready to install Joomla?
* Check the minimum requirements here: https://www.joomla.org/about-joomla/technical-requirements.html
* How do you install Joomla - hhttps://docs.joomla.org/J3.x:Installing_Joomla
* How do you install Joomla - https://docs.joomla.org/J3.x:Installing_Joomla
* You could start your Joomla! experience building your site on a local test server.
When ready it can be moved to an online hosting account of your choice.
See the tutorial: https://docs.joomla.org/Installing_Joomla_locally
Expand All @@ -49,7 +49,7 @@
* FAQ Frequently Asked Questions: https://docs.joomla.org/Category:FAQ
* Find the information you need: https://docs.joomla.org/Start_here
* Find help and other users: https://www.joomla.org/about-joomla/create-and-share.html
* Post questions at our forums: http://forum.joomla.org
* Post questions at our forums: https://forum.joomla.org
* Joomla! Resources Directory (JRD): http://resources.joomla.org/

11- Do you already have a Joomla! site that's not built with Joomla! 3.x ?
Expand Down
67 changes: 67 additions & 0 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -1287,9 +1287,25 @@ public function deleteUnexistingFiles()
'/media/editors/codemirror/js/php.js',
'/media/editors/codemirror/js/xml-fold.js',
'/media/editors/codemirror/js/xml.js',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.svg',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.ttf',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.woff',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.eot',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.svg',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.ttf',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon-small.woff',
'/media/editors/tinymce/skins/lightgray/fonts/readme.md',
'/media/editors/tinymce/skins/lightgray/fonts/tinymce.dev.svg',
'/media/editors/tinymce/skins/lightgray/fonts/tinymce-small.dev.svg',
'/media/editors/tinymce/skins/lightgray/img/wline.gif',
'/plugins/editors/codemirror/styles.css',
'/plugins/editors/codemirror/styles.min.css',
// Joomla! 3.4.1
'/libraries/joomla/environment/request.php',
'/media/editors/tinymce/templates/template_list.js',
'/media/editors/codemirror/lib/addons-uncompressed.js',
'/media/editors/codemirror/lib/codemirror-uncompressed.css',
'/media/editors/codemirror/lib/codemirror-uncompressed.js',
'/administrator/help/en-GB/Components_Banners_Banners.html',
'/administrator/help/en-GB/Components_Banners_Banners_Edit.html',
'/administrator/help/en-GB/Components_Banners_Categories.html',
Expand Down Expand Up @@ -1391,6 +1407,29 @@ public function deleteUnexistingFiles()
'/administrator/components/com_config/models/forms/index.html',
// Joomla 3.4.2
'/libraries/composer_autoload.php',
'/administrator/templates/hathor/html/com_categories/categories/default_batch.php',
'/administrator/templates/hathor/html/com_tags/tags/default_batch.php',
'/media/editors/codemirror/mode/clike/scala.html',
'/media/editors/codemirror/mode/css/less.html',
'/media/editors/codemirror/mode/css/less_test.js',
'/media/editors/codemirror/mode/css/scss.html',
'/media/editors/codemirror/mode/css/scss_test.js',
'/media/editors/codemirror/mode/css/test.js',
'/media/editors/codemirror/mode/gfm/test.js',
'/media/editors/codemirror/mode/haml/test.js',
'/media/editors/codemirror/mode/javascript/json-ld.html',
'/media/editors/codemirror/mode/javascript/test.js',
'/media/editors/codemirror/mode/javascript/typescript.html',
'/media/editors/codemirror/mode/markdown/test.js',
'/media/editors/codemirror/mode/php/test.js',
'/media/editors/codemirror/mode/ruby/test.js',
'/media/editors/codemirror/mode/shell/test.js',
'/media/editors/codemirror/mode/slim/test.js',
'/media/editors/codemirror/mode/stex/test.js',
'/media/editors/codemirror/mode/textile/test.js',
'/media/editors/codemirror/mode/verilog/test.js',
'/media/editors/codemirror/mode/xml/test.js',
'/media/editors/codemirror/mode/xquery/test.js',
// Joomla 3.4.3
'/libraries/classloader.php',
'/libraries/ClassLoader.php',
Expand All @@ -1401,6 +1440,17 @@ public function deleteUnexistingFiles()
'/media/com_joomlaupdate/encryption.js',
'/media/com_joomlaupdate/json2.js',
'/media/com_joomlaupdate/update.js',
'/media/com_finder/css/finder-rtl.css',
'/media/com_finder/css/selectfilter.css',
'/media/com_finder/css/sliderfilter.css',
'/media/com_finder/js/sliderfilter.js',
'/media/editors/codemirror/mode/kotlin/kotlin.js',
'/media/editors/codemirror/mode/kotlin/kotlin.min.js',
'/media/editors/tinymce/plugins/compat3x/editable_selects.js',
'/media/editors/tinymce/plugins/compat3x/form_utils.js',
'/media/editors/tinymce/plugins/compat3x/mctabs.js',
'/media/editors/tinymce/plugins/compat3x/tiny_mce_popup.js',
'/media/editors/tinymce/plugins/compat3x/validate.js',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Dumper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Escaper.php',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Inline.php',
Expand All @@ -1421,8 +1471,13 @@ public function deleteUnexistingFiles()
'/libraries/joomla/document/opensearch/opensearch.php',
'/libraries/joomla/document/raw/raw.php',
'/libraries/joomla/document/xml/xml.php',
'/plugins/editors/tinymce/fields/skins.php',
'/plugins/user/profile/fields/dob.php',
'/plugins/user/profile/fields/tos.php',
'/administrator/components/com_installer/views/languages/tmpl/default_filter.php',
'/administrator/components/com_joomlaupdate/helpers/download.php',
'/administrator/components/com_config/controller/application/refreshhelp.php',
'/administrator/components/com_media/models/forms/index.html',
// Joomla 3.6.0
'/libraries/simplepie/README.txt',
'/libraries/simplepie/simplepie.php',
Expand All @@ -1437,6 +1492,10 @@ public function deleteUnexistingFiles()
'/media/system/js/permissions.min.js',
'/libraries/platform.php',
'/plugins/user/profile/fields/tos.php',
'/libraries/joomla/application/web/client.php',
// Joomla! 3.6.1
'/libraries/joomla/database/iterator/azure.php',
'/media/editors/tinymce/skins/lightgray/fonts/icomoon.eot',
// Joomla! 3.6.3
'/media/editors/codemirror/mode/jade/jade.js',
'/media/editors/codemirror/mode/jade/jade.min.js',
Expand Down Expand Up @@ -1538,10 +1597,13 @@ public function deleteUnexistingFiles()
'/libraries/phpmailer',
'/media/editors/codemirror/css',
'/media/editors/codemirror/js',
'/media/com_banners',
// Joomla! 3.4.1
'/administrator/components/com_config/views',
'/administrator/components/com_config/models/fields',
'/administrator/components/com_config/models/forms',
// Joomla! 3.4.2
'/media/editors/codemirror/mode/smartymixed',
// Joomla! 3.5
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Exception',
'/libraries/vendor/symfony/yaml/Symfony/Component/Yaml',
Expand All @@ -1553,6 +1615,11 @@ public function deleteUnexistingFiles()
'/libraries/joomla/document/opensearch',
'/libraries/joomla/document/raw',
'/libraries/joomla/document/xml',
'/administrator/components/com_media/models/forms',
'/media/editors/codemirror/mode/kotlin',
'/media/editors/tinymce/plugins/compat3x',
'/plugins/editors/tinymce/fields',
'/plugins/user/profile/fields',
// Joomla 3.6
'/libraries/simplepie/idn',
'/libraries/simplepie',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');

JHtml::_('jquery.framework');
JHtml::_('behavior.formvalidator');
JHtml::_('formbehavior.chosen', 'select', null, array('disable_search_threshold' => 0 ));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public function display($tpl = null)
}

$this->addToolbar();
JHtml::_('jquery.framework');

return parent::display($tpl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,8 @@
<?php echo $item->clicks; ?> -
<?php echo sprintf('%.2f%%', $item->impmade ? 100 * $item->clicks / $item->impmade : 0); ?>
</td>

<td class="small nowrap hidden-phone">
<?php if ($item->language == '*'): ?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else: ?>
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.content.language', $item); ?>
</td>
<td class="hidden-phone">
<?php echo $item->id; ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public static function addSubmenu($extension)

if (file_exists($file))
{
require_once $file;

$prefix = ucfirst(str_replace('com_', '', $component));
$cName = $prefix . 'Helper';

JLoader::register($cName, $file);

if (class_exists($cName))
{
if (is_callable(array($cName, 'addSubmenu')))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static function association($catid, $extension = 'com_content')
$query = $db->getQuery(true)
->select('c.id, c.title')
->select('l.sef as lang_sef')
->select('l.lang_code')
->from('#__categories as c')
->where('c.id IN (' . implode(',', array_values($associations)) . ')')
->join('LEFT', '#__languages as l ON c.language=l.lang_code')
Expand All @@ -66,32 +67,18 @@ public static function association($catid, $extension = 'com_content')
{
foreach ($items as &$item)
{
$text = strtoupper($item->lang_sef);
$url = JRoute::_('index.php?option=com_categories&task=category.edit&id=' . (int) $item->id . '&extension=' . $extension);
$tooltipParts = array(
JHtml::_(
'image',
'mod_languages/' . $item->image . '.gif',
$item->language_title,
array('title' => $item->language_title),
true
),
$item->title
);
$text = $item->lang_sef ? strtoupper($item->lang_sef) : 'XX';
$url = JRoute::_('index.php?option=com_categories&task=category.edit&id=' . (int) $item->id . '&extension=' . $extension);
$classes = 'hasPopover label label-association label-' . $item->lang_sef;

$item->link = JHtml::_(
'tooltip',
implode(' ', $tooltipParts),
null,
null,
$text,
$url,
null,
'hasTooltip label label-association label-' . $item->lang_sef
);
$item->link = '<a href="' . $url . '" title="' . $item->language_title . '" class="' . $classes
. '" data-content="' . $item->title . '" data-placement="top">'
. $text . '</a>';
}
}

JHtml::_('bootstrap.popover');

$html = JLayoutHelper::render('joomla.content.associations', $items);
}

Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_categories/models/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ public function countItems(&$items, $extension)

if (file_exists($file))
{
require_once $file;

$prefix = ucfirst($eName);
$cName = $prefix . 'Helper';

JLoader::register($cName, $file);

if (class_exists($cName) && is_callable(array($cName, 'countItems')))
{
$cName::countItems($items, $section);
Expand Down
3 changes: 2 additions & 1 deletion administrator/components/com_categories/models/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,10 @@ protected function preprocessForm(JForm $form, $data, $group = 'content')

if (file_exists($path))
{
require_once $path;
$cName = ucfirst($eName) . ucfirst($section) . 'HelperCategory';

JLoader::register($cName, $path);

if (class_exists($cName) && is_callable(array($cName, 'onPrepareForm')))
{
$lang->load($component, JPATH_BASE, null, false, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,7 @@
</td>
<?php endif; ?>
<td class="small nowrap hidden-phone">
<?php if ($item->language == '*') : ?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else: ?>
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.content.language', $item); ?>
</td>
<td class="hidden-phone">
<span title="<?php echo sprintf('%d-%d', $item->lft, $item->rgt); ?>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@
<?php echo $this->escape($item->access_level); ?>
</td>
<td class="small hidden-phone">
<?php if ($item->language == '*') : ?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else: ?>
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.content.language', $item); ?>
</td>
<td class="hidden-phone">
<?php echo (int) $item->id; ?>
Expand Down
33 changes: 10 additions & 23 deletions administrator/components/com_contact/helpers/html/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function association($contactid)
$db = JFactory::getDbo();
$query = $db->getQuery(true)
->select('c.id, c.name as title')
->select('l.sef as lang_sef')
->select('l.sef as lang_sef, lang_code')
->from('#__contact_details as c')
->select('cat.title as category_title')
->join('LEFT', '#__categories as cat ON cat.id=c.catid')
Expand All @@ -71,31 +71,18 @@ public static function association($contactid)
{
$text = strtoupper($item->lang_sef);
$url = JRoute::_('index.php?option=com_contact&task=contact.edit&id=' . (int) $item->id);
$tooltipParts = array(
JHtml::_(
'image',
'mod_languages/' . $item->image . '.gif',
$item->language_title,
array('title' => $item->language_title),
true
),
$item->title,
'(' . $item->category_title . ')'
);

$item->link = JHtml::_(
'tooltip',
implode(' ', $tooltipParts),
null,
null,
$text,
$url,
null,
'hasTooltip label label-association label-' . $item->lang_sef
);

$tooltip = $item->title . '<br />' . JText::sprintf('JCATEGORY_SPRINTF', $item->category_title);
$classes = 'hasPopover label label-association label-' . $item->lang_sef;

$item->link = '<a href="' . $url . '" title="' . $item->language_title . '" class="' . $classes
. '" data-content="' . $tooltip . '" data-placement="top">'
. $text . '</a>';
}
}

JHtml::_('bootstrap.popover');

$html = JLayoutHelper::render('joomla.content.associations', $items);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,7 @@
</td>
<?php endif;?>
<td class="small hidden-phone">
<?php if ($item->language == '*') : ?>
<?php echo JText::alt('JALL', 'language'); ?>
<?php else : ?>
<?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>
<?php endif; ?>
<?php echo JLayoutHelper::render('joomla.content.language', $item); ?>
</td>
<td class="hidden-phone">
<?php echo $item->id; ?>
Expand Down
Loading

0 comments on commit 8e54a46

Please sign in to comment.