Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
fashion_group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
章建武
fashion_group
Commits
ef3b4768
Commit
ef3b4768
authored
Jun 07, 2020
by
章建武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dep
parent
ddbe6dac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
AboutController.php
app/Http/Controllers/Index/AboutController.php
+6
-0
sub.blade.php
resources/views/Layouts/sub.blade.php
+6
-1
No files found.
app/Http/Controllers/Index/AboutController.php
View file @
ef3b4768
...
...
@@ -16,7 +16,13 @@ class AboutController extends Controller
{
public
function
index
()
{
// dd(strstr(url()->full(),'?'));
// dd(substr($_SERVER['REQUEST_URI'],0,strrpos($_SERVER['REQUEST_URI'],'/')));
// dd(!strstr(url()->current(),'?'));
// dd(substr_count($_SERVER['REQUEST_URI'],'/'));
// dd($_SERVER['REQUEST_URI']);
$url
=
url
()
->
full
();
$pathinfo
=
parse_url
(
$url
);
$path
=
$pathinfo
[
'path'
];
$en
=
substr
(
$path
,
1
,
2
);
...
...
resources/views/Layouts/sub.blade.php
View file @
ef3b4768
...
...
@@ -86,7 +86,12 @@
@endif
</li>
@foreach($IndexNav as $topNav)
<li
class=
"@if (strstr(URL::full(),'?') && substr($_SERVER['REQUEST_URI'],0,strrpos($_SERVER['REQUEST_URI'],'/')) == $topNav['url']) current @endif @if(!strstr(url()->current(),'?') && substr($_SERVER['REQUEST_URI'],0,strrpos($_SERVER['REQUEST_URI'],'/'))== $topNav['url']) current @endif @if(substr_count($_SERVER['REQUEST_URI'],'/')==1 && $_SERVER['REQUEST_URI']== $topNav['url'])current @endif "
>
<li
class=
"
@if (strstr(URL::full(),'?') && substr($_SERVER['REQUEST_URI'],0,strrpos($_SERVER['REQUEST_URI'],'/')) == $topNav['url']) current @endif
@if(!strstr(url()->current(),'?') && substr($_SERVER['REQUEST_URI'],0,strrpos($_SERVER['REQUEST_URI'],'/'))== $topNav['url']) current @endif
@if(substr_count($_SERVER['REQUEST_URI'],'/')==1 && $_SERVER['REQUEST_URI']== $topNav['url'])current @endif
@if(substr_count($_SERVER['REQUEST_URI'],'/')==2 && $_SERVER['REQUEST_URI']== $topNav['url'])current @endif
"
>
@if(isset($topNav['children'])
&&
$topNav['children'])
<a
href=
"{{$topNav['url']}}"
>
{{$topNav['name']}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment