Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
PSDI Army
yii2
Commits
8496b217
Commit
8496b217
authored
Jan 11, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1912 from johonunu/1822-sticky-futter
Added sticky futter. Fixes #1822
parents
442393da
98e9f307
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
142 additions
and
99 deletions
+142
-99
main.php
apps/advanced/backend/views/layouts/main.php
+29
-27
site.css
apps/advanced/backend/web/css/site.css
+16
-4
main.php
apps/advanced/frontend/views/layouts/main.php
+34
-32
site.css
apps/advanced/frontend/web/css/site.css
+16
-4
main.php
apps/basic/views/layouts/main.php
+31
-28
site.css
apps/basic/web/css/site.css
+16
-4
No files found.
apps/advanced/backend/views/layouts/main.php
View file @
8496b217
...
...
@@ -22,34 +22,36 @@ AppAsset::register($this);
</head>
<body>
<?php
$this
->
beginBody
()
?>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
$menuItems
=
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
}
else
{
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
$menuItems
,
]);
NavBar
::
end
();
?>
<div
class=
"wrap"
>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
$menuItems
=
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
}
else
{
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
$menuItems
,
]);
NavBar
::
end
();
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
$content
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
$content
?>
</div>
</div>
<footer
class=
"footer"
>
...
...
apps/advanced/backend/web/css/site.css
View file @
8496b217
html
,
body
{
padding-top
:
70px
;
height
:
100%
;
}
.wrap
{
min-height
:
100%
;
height
:
auto
;
margin
:
0
auto
-60px
;
padding
:
0
0
60px
;
}
.wrap
>
.container
{
padding
:
70px
15px
20px
;
}
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
padding-top
:
20px
;
}
.jumbotron
{
...
...
apps/advanced/frontend/views/layouts/main.php
View file @
8496b217
...
...
@@ -23,40 +23,42 @@ AppAsset::register($this);
</head>
<body>
<?php
$this
->
beginBody
()
?>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
$menuItems
=
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Signup'
,
'url'
=>
[
'/site/signup'
]];
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
}
else
{
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
$menuItems
,
]);
NavBar
::
end
();
?>
<div
class=
"wrap"
>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
$menuItems
=
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Signup'
,
'url'
=>
[
'/site/signup'
]];
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
}
else
{
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
$menuItems
,
]);
NavBar
::
end
();
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
Alert
::
widget
()
?>
<?=
$content
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
Alert
::
widget
()
?>
<?=
$content
?>
</div>
</div>
<footer
class=
"footer"
>
<div
class=
"container"
>
<p
class=
"pull-left"
>
©
My Company
<?=
date
(
'Y'
)
?>
</p>
...
...
apps/advanced/frontend/web/css/site.css
View file @
8496b217
html
,
body
{
padding-top
:
70px
;
height
:
100%
;
}
.wrap
{
min-height
:
100%
;
height
:
auto
;
margin
:
0
auto
-60px
;
padding
:
0
0
60px
;
}
.wrap
>
.container
{
padding
:
70px
15px
20px
;
}
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
padding-top
:
20px
;
}
.jumbotron
{
...
...
apps/basic/views/layouts/main.php
View file @
8496b217
...
...
@@ -21,36 +21,39 @@ AppAsset::register($this);
<?php
$this
->
head
()
?>
</head>
<body>
<?php
$this
->
beginBody
()
?>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
Yii
::
$app
->
user
->
isGuest
?
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
],
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
],
]);
NavBar
::
end
();
?>
<div
class=
"wrap"
>
<?php
NavBar
::
begin
([
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
[
'class'
=>
'navbar-inverse navbar-fixed-top'
,
],
]);
echo
Nav
::
widget
([
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
'items'
=>
[
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
Yii
::
$app
->
user
->
isGuest
?
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
],
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
],
]);
NavBar
::
end
();
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
$content
?>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
<?=
$content
?>
</div>
</div>
<footer
class=
"footer"
>
...
...
apps/basic/web/css/site.css
View file @
8496b217
html
,
body
{
padding-top
:
70px
;
height
:
100%
;
}
.wrap
{
min-height
:
100%
;
height
:
auto
;
margin
:
0
auto
-60px
;
padding
:
0
0
60px
;
}
.wrap
>
.container
{
padding
:
70px
15px
20px
;
}
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
padding-top
:
20px
;
}
.jumbotron
{
...
...
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