replace path modules to apps

This commit is contained in:
cuneytsenturk
2017-11-01 22:15:25 +03:00
parent cfbd5eba59
commit d7f53b52c1
22 changed files with 82 additions and 89 deletions

View File

@@ -4,14 +4,14 @@
<div class="pull-left">
{!! Form::select('category', $categories, request('category'), ['class' => 'form-control input-sm', 'style' => 'display:inline;width:inherit;']) !!}
<a href="{{ url('modules/paid') }}" class="btn btn-sm btn-default btn-flat margin" style="margin-left: 20px;">Top Paid</a>
<a href="{{ url('modules/new') }}" class="btn btn-sm btn-default btn-flat margin">New</a>
<a href="{{ url('modules/free') }}" class="btn btn-sm btn-default btn-flat margin">Top Free</a>
<a href="{{ url('apps/paid') }}" class="btn btn-sm btn-default btn-flat margin" style="margin-left: 20px;">Top Paid</a>
<a href="{{ url('apps/new') }}" class="btn btn-sm btn-default btn-flat margin">New</a>
<a href="{{ url('apps/free') }}" class="btn btn-sm btn-default btn-flat margin">Top Free</a>
</div>
<div class="pull-right">
<div class="has-feedback">
{!! Form::open(['url' => 'modules/search', 'role' => 'form']) !!}
{!! Form::open(['url' => 'apps/search', 'role' => 'form']) !!}
<input type="text" class="form-control input-sm" style="margin-top: 10px;" placeholder="Search Apps">
<span class="glyphicon glyphicon-search form-control-feedback"></span>
{!! Form::close() !!}

View File

@@ -64,14 +64,14 @@
<script type="text/javascript">
$(document).ready(function() {
$('select[name=\'category\']').on('change', function() {
url = '{{ url('modules/category') }}';
url = '{{ url('apps/categories') }}';
var value = $(this).val();
if (value) {
url += '/' + encodeURIComponent(value);
} else {
url = '{{ url('modules/home') }}';
url = '{{ url('apps/home') }}';
}
location = url;

View File

@@ -1,13 +1,13 @@
<div class="col-md-3 no-padding-left">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title"><a href="{{ url('modules/' . $module->slug) }}">{{ $module->name }}</a></h3>
<h3 class="box-title"><a href="{{ url('apps/' . $module->slug) }}">{{ $module->name }}</a></h3>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body text-center">
<a href="{{ url('modules/' . $module->slug) }}">
<a href="{{ url('apps/' . $module->slug) }}">
<img src="{{ $module->files[0]->path_string }}" alt="{{ $module->name }}" class="item-image">
</a>
</div>