Skip to content
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

[4.0] Install from Web #19319

Merged
merged 26 commits into from
Jan 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7c0d224
changes
brianteeman Jan 7, 2018
5e9633c
new files
brianteeman Jan 7, 2018
db8797f
gitignore
brianteeman Jan 7, 2018
81c1eb2
start namespace
brianteeman Jan 7, 2018
b2fd73b
enabled by default and in last position
brianteeman Jan 7, 2018
8ca7d9e
remove message
brianteeman Jan 7, 2018
5e51e86
strings
brianteeman Jan 7, 2018
f92dcea
xml
brianteeman Jan 7, 2018
12841de
paths
brianteeman Jan 17, 2018
97608e9
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 17, 2018
ec441a5
A round of updates on the plugin
mbabker Jan 18, 2018
56ce708
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 18, 2018
f74f954
IFW Branch Updates (#69)
mbabker Jan 18, 2018
61cb9a1
html5 doesnt need closing tags for br
brianteeman Jan 18, 2018
0548988
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 18, 2018
dc410c8
Check if list button present
mbabker Jan 18, 2018
fc9aebf
And now minified!
mbabker Jan 18, 2018
9bace10
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 19, 2018
9041e18
IFW Plugin Updates (#70)
mbabker Jan 19, 2018
6b305e4
Remove logic for checking the plugin is up-to-date
mbabker Jan 19, 2018
6457b2f
Take logic out of the JS for update notifications
mbabker Jan 19, 2018
26b3731
Minify
mbabker Jan 19, 2018
5fa86eb
language string cleanup
brianteeman Jan 19, 2018
8b2b1d7
css tweak
brianteeman Jan 19, 2018
2871224
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 20, 2018
056b49c
Merge branch '4.0-dev' into install_from_web_40
brianteeman Jan 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
3 changes: 0 additions & 3 deletions administrator/language/en-GB/en-GB.com_installer.ini
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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."
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
257 changes: 257 additions & 0 deletions media/plg_installer_webinstaller/css/client.css
Original file line number Diff line number Diff line change
@@ -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;
}
}
1 change: 1 addition & 0 deletions media/plg_installer_webinstaller/css/client.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading