composer for installer
This commit is contained in:
parent
afce42bf0c
commit
a269dc614f
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"/js/shop.js": "/js/shop.js?id=dc2ea56a854d779e7089",
|
"/js/shop.js": "/js/shop.js",
|
||||||
"/css/shop.css": "/css/shop.css?id=7a0ee09c1b127c0490e0"
|
"/css/shop.css": "/css/shop.css"
|
||||||
}
|
}
|
||||||
|
|
@ -3257,6 +3257,49 @@ section.review {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.right-content {
|
||||||
|
.currency-account li {
|
||||||
|
display: inline;
|
||||||
|
border-right: 2px solid #C7C7C7;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.account-icon {
|
||||||
|
position: relative;
|
||||||
|
top: 8px;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cart-icon {
|
||||||
|
position: relative;
|
||||||
|
top: 7px;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow-down-icon {
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.dropdown-list {
|
||||||
|
display: block;
|
||||||
|
margin-top: 14px;
|
||||||
|
width: 100px;
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
border-right: none;
|
||||||
|
padding: 5px 10px 5px 10px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// rtl css start here
|
/// rtl css start here
|
||||||
.rtl {
|
.rtl {
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,40 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="right-content">
|
||||||
|
<ul class="currency-account">
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span>
|
||||||
|
{{ core()->getCurrentCurrencyCode() }}
|
||||||
|
<i class="icon arrow-down-icon active"></i>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<ul class="dropdown-list currency">
|
||||||
|
@foreach (core()->getCurrentChannel()->currencies as $currency)
|
||||||
|
<li>
|
||||||
|
<a href="?currency={{ $currency->code }}">{{ $currency->code }}</a>
|
||||||
|
</li>
|
||||||
|
@endforeach
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<i class="icon account-icon"></i>
|
||||||
|
<i class="icon arrow-down-icon active"></i>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
@inject ('productImageHelper', 'Webkul\Product\Helpers\ProductImage')
|
||||||
|
|
||||||
|
<span class="icon cart-icon"></span>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="right-content">
|
<div class="right-content">
|
||||||
@if (core()->getCurrentChannel()->currencies->count() > 1)
|
@if (core()->getCurrentChannel()->currencies->count() > 1)
|
||||||
<ul class="currency-switcher">
|
<ul class="currency-switcher">
|
||||||
|
|
@ -193,6 +227,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
|
||||||
|
|
@ -123,8 +123,7 @@ class Requirement {
|
||||||
*/
|
*/
|
||||||
private static function composerInstall()
|
private static function composerInstall()
|
||||||
{
|
{
|
||||||
putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer');
|
$command = 'cd ../.. ; export HOME=/root && export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update; composer --version';
|
||||||
$command = 'composer --version 2>&1';
|
|
||||||
exec($command, $data['composer'], $data['composer_install']);
|
exec($command, $data['composer'], $data['composer_install']);
|
||||||
|
|
||||||
return $data['composer_install'];
|
return $data['composer_install'];
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,9 @@ $data = array(); // array to pass back data
|
||||||
|
|
||||||
// run command on terminal ===========================================================
|
// run command on terminal ===========================================================
|
||||||
|
|
||||||
// composer home for run
|
$command = 'cd ../.. ; export HOME=/root && export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update; composer install 2>&1';
|
||||||
putenv('COMPOSER_HOME=' . __DIR__ . '/vendor/bin/composer');
|
|
||||||
|
|
||||||
$command = 'cd ../.. && composer install 2>&1';
|
$last_line = exec($command, $data['composer'], $data['install']);
|
||||||
|
|
||||||
$last_line = exec($command, $data['composer'], $data['install']);
|
|
||||||
|
|
||||||
// return a response ===========================================================
|
// return a response ===========================================================
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue