Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/4.0-dev' into 4.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Jan 21, 2018
2 parents db0375a + 7686c22 commit 7ccc93e
Show file tree
Hide file tree
Showing 23 changed files with 859 additions and 108 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Expand Up @@ -54,9 +54,6 @@ phpdoc-*
/components/com_patchtester
/media/com_patchtester

# Install from Web plugin #
/plugins/installer/webinstaller

# Languages #
administrator/language/*
!administrator/language/en-GB
Expand Down
Expand Up @@ -245,7 +245,7 @@ public function getItems()
*
* @since 3.2
*/
public function getTable($type = 'Contenthistory', $prefix = 'Joomla\\CMS\\Table\\', $config = array())
public function getTable($type = 'ContentHistory', $prefix = 'Joomla\\CMS\\Table\\', $config = array())
{
return Table::getInstance($type, $prefix, $config);
}
Expand Down Expand Up @@ -419,7 +419,7 @@ protected function getSha1Hash()
$helper = new CMSHelper;

$dataObject = $helper->getDataObject($contentTable);
$result = $this->getTable('Contenthistory')->getSha1(json_encode($dataObject), $typeTable);
$result = $this->getTable('ContentHistory')->getSha1(json_encode($dataObject), $typeTable);
}

return $result;
Expand Down
Expand Up @@ -38,12 +38,8 @@ public function display($tpl = null)

$this->paths = &$paths;

$this->showJedAndWebInstaller = ComponentHelper::getParams('com_installer')->get('show_jed_info', 1);

PluginHelper::importPlugin('installer');

\JFactory::getApplication()->triggerEvent('onInstallerBeforeDisplay', array(&$this->showJedAndWebInstaller, $this));

parent::display($tpl);
}

Expand Down
15 changes: 0 additions & 15 deletions administrator/components/com_installer/tmpl/install/default.php
Expand Up @@ -34,21 +34,6 @@
<?php // Render messages set by extension install scripts here ?>
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
<?php elseif ($this->showJedAndWebInstaller) : ?>
<joomla-alert type="info">
<?php echo JHtml::_(
'link',
JRoute::_('index.php?option=com_config&view=component&component=com_installer&path=&return=' . urlencode(base64_encode(JUri::getInstance()))),
'',
'class="alert-options float-right hasTooltip icon-options" title="' . str_replace('"', '&quot;', JText::_('COM_INSTALLER_SHOW_JED_INFORMATION_TOOLTIP')) . '"'
);
?>
<p><?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_INFO'); ?>
<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_TOS'); ?></p>
<button class="btn btn-primary" type="button" onclick="Joomla.submitbuttonInstallWebInstaller()">
<?php echo JText::_('COM_INSTALLER_INSTALL_FROM_WEB_ADD_TAB'); ?>
</button>
</joomla-alert>
<?php endif; ?>
<?php // Show installation tabs at the start ?>
<?php $firstTab = $app->triggerEvent('onInstallerViewBeforeFirstTab', array()); ?>
Expand Down
Expand Up @@ -311,7 +311,7 @@ public function save($data)
}

// Load the recipient user configuration.
$model = new Config(array('ignore_request' => true));
$model = new ConfigModel(array('ignore_request' => true));
$model->setState('user.id', $table->user_id_to);
$config = $model->getItem();

Expand Down
3 changes: 0 additions & 3 deletions administrator/language/en-GB/en-GB.com_installer.ini
Expand Up @@ -68,9 +68,6 @@ COM_INSTALLER_INSTALL_ERROR="Error installing %s"
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=\"alert-link\" href=\"https://extensions.joomla.org\" target=\"_blank\">Joomla! Extensions Directory&trade; (JED)</a> now available with <a class=\"alert-link\" href=\"https://docs.joomla.org/Special:MyLanguage/Install_from_Web\" target=\"_blank\">Install from Web</a> on this page."
COM_INSTALLER_INSTALL_FROM_WEB_TOS="By selecting \"Add Install from Web tab\" below, you agree to the JED <a class=\"alert-link\" href=\"https://extensions.joomla.org/tos\" target=\"_blank\">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
Expand Up @@ -4,9 +4,4 @@
; Note : All ini files need to be saved as UTF-8

PLG_INSTALLER_WEBINSTALLER="Installer - Install from Web"
PLG_INSTALLER_WEBINSTALLER_LOAD_APPS="Display the extensions"
PLG_INSTALLER_WEBINSTALLER_TAB_POSITION_DESC="Place the Install from Web tab first or last."
PLG_INSTALLER_WEBINSTALLER_TAB_POSITION_LABEL="Tab Position"
PLG_INSTALLER_WEBINSTALLER_TAB_POSITION_FIRST="First"
PLG_INSTALLER_WEBINSTALLER_TAB_POSITION_LAST="Last"
PLG_INSTALLER_WEBINSTALLER_XML_DESCRIPTION="This plugin offers functionality for the 'Install from Web' tab."
PLG_INSTALLER_WEBINSTALLER_XML_DESCRIPTION="This plugin allows you to install directly from the Joomla! Extension Directory."
Expand Up @@ -4,4 +4,4 @@
; Note : All ini files need to be saved as UTF-8

PLG_INSTALLER_WEBINSTALLER="Installer - Install from Web"
PLG_INSTALLER_WEBINSTALLER_XML_DESCRIPTION="This plugin offers functionality for the 'Install from Web' tab."
PLG_INSTALLER_WEBINSTALLER_XML_DESCRIPTION="This plugin allows you to install directly from the Joomla! Extension Directory."
1 change: 1 addition & 0 deletions installation/sql/mysql/joomla.sql
Expand Up @@ -642,6 +642,7 @@ INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `elem
(483, 0, 'plg_media-action_crop', 'plugin', 'crop', 'media-action', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(484, 0, 'plg_media-action_resize', 'plugin', 'resize', 'media-action', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(485, 0, 'plg_media-action_rotate', 'plugin', 'rotate', 'media-action', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(486, 0, 'plg_installer_webinstaller', 'plugin', 'webinstaller', 'installer', 0, 1, 1, 0, '', '{"tab_position":"1"}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(509, 0, 'atum', 'template', 'atum', '', 1, 1, 1, 0, '', '', 0, '0000-00-00 00:00:00', 0, 0, ''),
(510, 0, 'cassiopeia', 'template', 'cassiopeia', '', 0, 1, 1, 0, '', '{"logoFile":"","fluidContainer":"0","sidebarLeftWidth":"3","sidebarRightWidth":"3"}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(600, 802, 'English (en-GB)', 'language', 'en-GB', '', 0, 1, 1, 1, '', '', 0, '0000-00-00 00:00:00', 0, 0, ''),
Expand Down
1 change: 1 addition & 0 deletions installation/sql/postgresql/joomla.sql
Expand Up @@ -654,6 +654,7 @@ INSERT INTO "#__extensions" ("extension_id", "package_id", "name", "type", "elem
(483, 0, 'plg_media-action_crop', 'plugin', 'crop', 'media-action', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0, ''),
(484, 0, 'plg_media-action_resize', 'plugin', 'resize', 'media-action', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0, ''),
(485, 0, 'plg_media-action_rotate', 'plugin', 'rotate', 'media-action', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0, ''),
(486, 0, 'plg_installer_webinstaller', 'plugin', 'webinstaller', 'installer', 0, 1, 1, 0, '', '{"tab_position":"1"}', 0, '0000-00-00 00:00:00', 0, 0, ''),
(600, 802, 'English (en-GB)', 'language', 'en-GB', '', 0, 1, 1, 1, '', '', 0, '1970-01-01 00:00:00', 0, 0, ''),
(601, 802, 'English (en-GB)', 'language', 'en-GB', '', 1, 1, 1, 1, '', '', 0, '1970-01-01 00:00:00', 0, 0, ''),
(700, 0, 'files_joomla', 'file', 'joomla', '', 0, 1, 1, 1, '', '', 0, '1970-01-01 00:00:00', 0, 0, ''),
Expand Down
3 changes: 2 additions & 1 deletion layouts/joomla/form/field/radio.php
Expand Up @@ -58,7 +58,8 @@
<?php if (strpos(trim($class), 'switcher') !== false) : ?>
<?php HTMLHelper::_('webcomponent',
['joomla-field-switcher' => 'system/webcomponents/joomla-field-switcher.min.js'],
['relative' => true, 'version' => 'auto']); ?>
['relative' => true, 'version' => 'auto']
); ?>

<?php
// Set the type of switcher
Expand Down
257 changes: 257 additions & 0 deletions media/plg_installer_webinstaller/css/client.css
@@ -0,0 +1,257 @@
/* Extension type badges */
.com-apps-container .badge{color: #fff}
.com-apps-container .label-jcommercial, .com-apps-container .badge-jcommercial{background-color:#f6c801; color: black;}
.com-apps-container .label-jmodule, .com-apps-container .badge-jmodule{background-color:#e20a0a}
.com-apps-container .label-jplugin, .com-apps-container .badge-jplugin{background-color:#57278e}
.com-apps-container .label-jcomponent, .com-apps-container .badge-jcomponent{background-color: #1e9e33}
.com-apps-container .label-jspecific, .com-apps-container .badge-jspecific{background-color:#d69b34}
.com-apps-container .label-jtool, .com-apps-container .badge-jtool{background-color:#333333}
.com-apps-container .label-jlanguage, .com-apps-container .badge-jlanguage{background-color:golden}
.com-apps-container .icon-star, .com-apps-container .icon-star-2{color:#f6c801}
.com-apps-container .icon-star-empty{color:#dcdcdc}
.com-apps-container ul.item-type {margin:0;padding:0}
.com-apps-container .jbadge{vertical-align:middle}

/* Bootstrap form controls override */
.com-apps-container .full-item-container .control-group {
margin: 0px;
}
.com-apps-container .full-item-container .control-label {
padding: 0px;
margin: 0px;
}
.com-apps-container .full-item-container .controls {
margin-left: 100px;
}

.com-apps-container .full-item-container .form-actions {
padding-left: 20px;
}

/* Full view */
.com-apps-container .item-info-container {margin-left: 25px; line-height: 25px}

/* Grid */
.com-apps-container .item-image{height:120px}
.com-apps-container .item-description{height:100px; overflow: hidden}
.com-apps-container .thumbnail{
padding: 16px 12px 16px 12px;
cursor: pointer;
}
.com-apps-container .grid-container .thumbnail:hover {
background-color: #F2F2F2;
}

/* List */
.list-container .thumbnails .item {
display: block;
width: 100%;
margin-left:0;
border-bottom:1px solid #ccc;
margin-bottom:2px;
display:inline-block;
height: 60px;
overflow: hidden;
}
.list-container{
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing: border-box;
}
.list-container .thumbnails .item:hover{
border-color:#185186;
}
.list-container .thumbnails .item:hover h4 a,
.list-container .thumbnails .item:hover .item-description{
color:#33608f;
text-decoration:none;
}
.list-container .thumbnails .item h4{
margin: 0px;
}
.list-container .thumbnails .item .item-header{
text-align:left;
margin:0px;
margin-right:10px;
min-height:34px;
border-right:1px solid #ccc;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing: border-box;
}
.list-container .thumbnails .item .item-description{
float:left;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing: border-box;
}
.list-container .thumbnails .item .item-header{
width:22%;
}
.list-container .thumbnails .item .item-icons{
width:22%;
float: right;
border-left: 1px solid #ccc;
padding: 0px;
}
.list-container .thumbnails .item .item-description {
width:50%;
overflow: hidden;
}
.list-container .thumbnails .thumbnail {
padding: 0px;
height: 100%;
overflow: hidden;
}
.com-apps-container .fader {
position: absolute;
background: -moz-linear-gradient(top, rgba(255,255,255,0) 70%, rgba(255,255,255,1) 95%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(70%,rgba(255,255,255,0)), color-stop(95%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 70%,rgba(255,255,255,1) 95%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,0) 70%,rgba(255,255,255,1) 95%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,0) 70%,rgba(255,255,255,1) 95%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,0) 70%,rgba(255,255,255,1) 95%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
text-align: center;
float: left;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
margin-top: 5px;
}
.com-apps-container .list-container .fader {
position: absolute;
background: -moz-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 25%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(25%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 25%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 25%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 25%); /* IE10+ */
background: linear-gradient(to bottom, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 25%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
text-align: center;
float: left;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
margin-top: 5px;
}
div.item-description {
position: relative;
}
.list-container .thumbnails .thumbnail div {
float: left;
padding: 5px;
height: 100%;
}
.list-container .thumbnails .thumbnail div.item-icons div {
padding: 0px;
}
.list-container .thumbnails .item .item-icons div {
float: left;
width: 100%;
text-align: center;
height: auto;
}
/* Added to fix responsive issues */

.com-apps-container .filter-search.btn-group.pull-left {
width: 31%;
}
.com-apps-container input {
width:90%;
}

.com-apps-container .btn-group.pull-right.select {
width:31%;
}

.com-apps-container .thumbnail {
min-height: 350px;
}

.com-apps-container .item-description {
min-height: 150px;
}

.com-apps-container .grid-container .row-fluid [class*="span"] {
margin-left: 2%;
}

.com-apps-container .row-fluid [class*="span"]:first-child {
margin-left: 0;
}

/* disallow scrolling when overlay is active */
body.ifw-busy {
overflow: hidden;
-ms-overflow-style: none;
}

#appsloading {
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 1000;
opacity: .95;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 95);
filter: alpha(opacity = 95);
background: url(../../system/images/ajax-loader.gif) rgba(255,255,255,0.7) 50% 10px no-repeat;
}
/* Put breakpoints in when the design breaks, not at generic widths */
@media (max-width: 869px) {
.com-apps-sidebar .nav-header {
padding-left: 0;
}
}

@media (max-width: 800px) {
.com-apps-container .item-image {
min-height: 90px;
}

}

/* Fixes images which are too big */
.com-apps-container .thumbnail .item-image img {
max-width: 100%;
max-height: 90%;
}

/* This is where the single column view starts */
@media (max-width: 768px) {
.com-apps-container select {
font-size:10px;
}
.com-apps-container .thumbnail {
min-height: 300px;
}
.com-apps-container .item-description {
min-height: 100px;
}
.com-apps-container .row-fluid [class*="span"] {
margin-left: 0;
}

}

@media (max-width: 580px) {
.nav-tabs > li {

width: 100%;
}
#myTabTabs {
border-top: 1px solid lightgrey;
padding-top: 2px;
}
}

@media (max-width: 495px) {
/* need to add .search class to the button group */
.com-apps-container .btn-group.pull-left.search {
display: none;
visibility: hidden;
}
}

0 comments on commit 7ccc93e

Please sign in to comment.