Skip to content

Commit

Permalink
Merge remote-tracking branch 'joomla/staging' into shop
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Aug 31, 2016
2 parents e1693f1 + 6e1be22 commit 702ffb0
Show file tree
Hide file tree
Showing 10 changed files with 331 additions and 214 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ matrix:
allow_failures:
- php: 7.1
- php: hhvm
- node_js: 6.1

services:
- memcache
Expand Down
411 changes: 262 additions & 149 deletions installation/sql/sqlazure/sample_data.sql

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions libraries/cms/application/cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,6 @@ public function getUserStateFromRequest($key, $request, $default = null, $type =
*/
protected function initialiseApp($options = array())
{
// Set the configuration in the API.
$this->config = JFactory::getConfig();

// Check that we were given a language in the array (since by default may be blank).
if (isset($options['language']))
{
Expand Down
9 changes: 4 additions & 5 deletions libraries/joomla/application/cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function in()
* for your specific application.
*
* @param string $file The path and filename of the configuration file. If not provided, configuration.php
* in JPATH_BASE will be used.
* in JPATH_CONFIGURATION will be used.
* @param string $class The class name to instantiate.
*
* @return mixed Either an array or object to be loaded into the configuration object.
Expand All @@ -255,12 +255,11 @@ protected function fetchConfigurationData($file = '', $class = 'JConfig')
// Instantiate variables.
$config = array();

if (empty($file) && defined('JPATH_BASE'))
if (empty($file))
{
$file = JPATH_BASE . '/configuration.php';
$file = JPATH_CONFIGURATION . '/configuration.php';

// Applications can choose not to have any configuration data
// by not implementing this method and not having a config file.
// Applications can choose not to have any configuration data by not implementing this method and not having a config file.
if (!file_exists($file))
{
$file = '';
Expand Down
6 changes: 3 additions & 3 deletions libraries/joomla/application/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ protected function detectRequestUri()
* for your specific application.
*
* @param string $file The path and filename of the configuration file. If not provided, configuration.php
* in JPATH_BASE will be used.
* in JPATH_CONFIGURATION will be used.
* @param string $class The class name to instantiate.
*
* @return mixed Either an array or object to be loaded into the configuration object.
Expand All @@ -883,9 +883,9 @@ protected function fetchConfigurationData($file = '', $class = 'JConfig')
// Instantiate variables.
$config = array();

if (empty($file) && defined('JPATH_ROOT'))
if (empty($file))
{
$file = JPATH_ROOT . '/configuration.php';
$file = JPATH_CONFIGURATION . '/configuration.php';

// Applications can choose not to have any configuration data
// by not implementing this method and not having a config file.
Expand Down
101 changes: 51 additions & 50 deletions templates/protostar/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ body {
background-color: #fff;
}
a {
color: #08c;
color: #005e8d;
text-decoration: none;
}
a:hover,
a:focus {
color: #005580;
color: #002b41;
text-decoration: underline;
}
.img-rounded {
Expand Down Expand Up @@ -2017,29 +2017,29 @@ table th[class*="span"],
.dropdown-submenu:focus > a {
text-decoration: none;
color: #fff;
background-color: #0081c2;
background-image: -moz-linear-gradient(top,#08c,#0077b3);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));
background-image: -webkit-linear-gradient(top,#08c,#0077b3);
background-image: -o-linear-gradient(top,#08c,#0077b3);
background-image: linear-gradient(to bottom,#08c,#0077b3);
background-color: #005783;
background-image: -moz-linear-gradient(top,#005e8d,#004d74);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#005e8d),to(#004d74));
background-image: -webkit-linear-gradient(top,#005e8d,#004d74);
background-image: -o-linear-gradient(top,#005e8d,#004d74);
background-image: linear-gradient(to bottom,#005e8d,#004d74);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0076b2', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005e8d', endColorstr='#ff004c73', GradientType=0);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #333;
text-decoration: none;
outline: 0;
background-color: #0081c2;
background-image: -moz-linear-gradient(top,#08c,#0077b3);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));
background-image: -webkit-linear-gradient(top,#08c,#0077b3);
background-image: -o-linear-gradient(top,#08c,#0077b3);
background-image: linear-gradient(to bottom,#08c,#0077b3);
background-color: #005783;
background-image: -moz-linear-gradient(top,#005e8d,#004d74);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#005e8d),to(#004d74));
background-image: -webkit-linear-gradient(top,#005e8d,#004d74);
background-image: -o-linear-gradient(top,#005e8d,#004d74);
background-image: linear-gradient(to bottom,#005e8d,#004d74);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0076b2', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005e8d', endColorstr='#ff004c73', GradientType=0);
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
Expand Down Expand Up @@ -2383,16 +2383,16 @@ input[type="button"].btn-block {
.btn-primary {
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
background-color: #006dcc;
background-image: -moz-linear-gradient(top,#08c,#0044cc);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0044cc));
background-image: -webkit-linear-gradient(top,#08c,#0044cc);
background-image: -o-linear-gradient(top,#08c,#0044cc);
background-image: linear-gradient(to bottom,#08c,#0044cc);
background-color: #004b8d;
background-image: -moz-linear-gradient(top,#005e8d,#002f8d);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#005e8d),to(#002f8d));
background-image: -webkit-linear-gradient(top,#005e8d,#002f8d);
background-image: -o-linear-gradient(top,#005e8d,#002f8d);
background-image: linear-gradient(to bottom,#005e8d,#002f8d);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0043cc', GradientType=0);
border-color: #0044cc #0044cc #002a80;
*background-color: #0044cc;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005e8d', endColorstr='#ff002e8d', GradientType=0);
border-color: #002f8d #002f8d #001641;
*background-color: #002f8d;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}
.btn-primary:hover,
Expand All @@ -2402,12 +2402,12 @@ input[type="button"].btn-block {
.btn-primary.disabled,
.btn-primary[disabled] {
color: #fff;
background-color: #0044cc;
*background-color: #003bb3;
background-color: #002f8d;
*background-color: #002674;
}
.btn-primary:active,
.btn-primary.active {
background-color: #003399 \9;
background-color: #001e5a \9;
}
.btn-warning {
color: #fff;
Expand Down Expand Up @@ -2591,14 +2591,14 @@ input[type="submit"].btn.btn-mini {
.btn-link {
border-color: transparent;
cursor: pointer;
color: #08c;
color: #005e8d;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.btn-link:hover,
.btn-link:focus {
color: #005580;
color: #002b41;
text-decoration: underline;
background-color: transparent;
}
Expand Down Expand Up @@ -2737,7 +2737,7 @@ input[type="submit"].btn.btn-mini {
background-color: #e6e6e6;
}
.btn-group.open .btn-primary.dropdown-toggle {
background-color: #0044cc;
background-color: #002f8d;
}
.btn-group.open .btn-warning.dropdown-toggle {
background-color: #f89406;
Expand Down Expand Up @@ -2930,7 +2930,7 @@ input[type="submit"].btn.btn-mini {
.nav-list > .active > a:focus {
color: #fff;
text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
background-color: #08c;
background-color: #005e8d;
}
.nav-list [class^="icon-"],
.nav-list [class*=" icon-"] {
Expand Down Expand Up @@ -3013,7 +3013,7 @@ input[type="submit"].btn.btn-mini {
.nav-pills > .active > a:hover,
.nav-pills > .active > a:focus {
color: #fff;
background-color: #08c;
background-color: #005e8d;
}
.nav-stacked > li {
float: none;
Expand Down Expand Up @@ -3068,14 +3068,14 @@ input[type="submit"].btn.btn-mini {
border-radius: 6px;
}
.nav .dropdown-toggle .caret {
border-top-color: #08c;
border-bottom-color: #08c;
border-top-color: #005e8d;
border-bottom-color: #005e8d;
margin-top: 6px;
}
.nav .dropdown-toggle:hover .caret,
.nav .dropdown-toggle:focus .caret {
border-top-color: #005580;
border-bottom-color: #005580;
border-top-color: #002b41;
border-bottom-color: #002b41;
}
.nav-tabs .dropdown-toggle .caret {
margin-top: 8px;
Expand Down Expand Up @@ -4243,7 +4243,7 @@ input[type="submit"].btn.btn-mini {
}
a.thumbnail:hover,
a.thumbnail:focus {
border-color: #08c;
border-color: #005e8d;
-webkit-box-shadow: 0 1px 4px rgba(0,105,214,0.25);
-moz-box-shadow: 0 1px 4px rgba(0,105,214,0.25);
box-shadow: 0 1px 4px rgba(0,105,214,0.25);
Expand Down Expand Up @@ -7135,14 +7135,14 @@ body.site.fluid {
font-weight: bold;
}
.brand {
color: #004466;
color: #001a27;
-webkit-transition: color .5s linear;
-moz-transition: color .5s linear;
-o-transition: color .5s linear;
transition: color .5s linear;
}
.brand:hover {
color: #08c;
color: #005e8d;
text-decoration: none;
}
.header {
Expand Down Expand Up @@ -7268,8 +7268,9 @@ p {
.breadcrumb {
margin: 10px 0;
}
.breadcrumb > li {
color: #999;
.breadcrumb > li,
.breadcrumb > .active {
color: #515151;
}
.img_caption .left {
float: left;
Expand Down Expand Up @@ -7418,15 +7419,15 @@ figcaption {
.navigation .nav-child:hover > a {
text-decoration: none;
color: #fff;
background-color: #08c;
background-color: #0081c2;
background-image: -moz-linear-gradient(top,#08c,#0077b3);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));
background-image: -webkit-linear-gradient(top,#08c,#0077b3);
background-image: -o-linear-gradient(top,#08c,#0077b3);
background-image: linear-gradient(to bottom,#08c,#0077b3);
background-color: #005e8d;
background-color: #005783;
background-image: -moz-linear-gradient(top,#005e8d,#004d74);
background-image: -webkit-gradient(linear,0 0,0 100%,from(#005e8d),to(#004d74));
background-image: -webkit-linear-gradient(top,#005e8d,#004d74);
background-image: -o-linear-gradient(top,#005e8d,#004d74);
background-image: linear-gradient(to bottom,#005e8d,#004d74);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0076b2', GradientType=0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005e8d', endColorstr='#ff004c73', GradientType=0);
}
.categories-list .collapse {
margin-left: 20px;
Expand Down
2 changes: 1 addition & 1 deletion templates/protostar/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
<hr />
<jdoc:include type="modules" name="footer" style="none" />
<p class="pull-right">
<a href="#top" id="back-top">
<a href="#" id="back-top">
<?php echo JText::_('TPL_PROTOSTAR_BACKTOTOP'); ?>
</a>
</p>
Expand Down
5 changes: 5 additions & 0 deletions templates/protostar/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@
$("label[for=" + $(this).attr('id') + "]").addClass('active btn-success');
}
});

$('#back-top').on('click', function(e) {
e.preventDefault();
$("html, body").animate({scrollTop: 0}, 1000);
});
})
})(jQuery);
5 changes: 3 additions & 2 deletions templates/protostar/less/template.less
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ p {
.breadcrumb {
margin: 10px 0;
}
.breadcrumb > li {
color: #999;
.breadcrumb > li,
.breadcrumb > .active {
color: #515151;
}
/* Caption fixes */
.img_caption .left {
Expand Down
2 changes: 1 addition & 1 deletion templates/protostar/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

// Links
// -------------------------
@linkColor: #08c;
@linkColor: #005e8d;
@linkColorHover: darken(@linkColor, 15%);


Expand Down

0 comments on commit 702ffb0

Please sign in to comment.