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
98e9f307
Commit
98e9f307
authored
Jan 11, 2014
by
Nikola Trifunovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added futter. Fixes #1822
parent
11fb738c
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 @
98e9f307
...
@@ -22,34 +22,36 @@ AppAsset::register($this);
...
@@ -22,34 +22,36 @@ AppAsset::register($this);
</head>
</head>
<body>
<body>
<?php
$this
->
beginBody
()
?>
<?php
$this
->
beginBody
()
?>
<?php
<div
class=
"wrap"
>
NavBar
::
begin
([
<?php
'brandLabel'
=>
'My Company'
,
NavBar
::
begin
([
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'brandLabel'
=>
'My Company'
,
'options'
=>
[
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'class'
=>
'navbar-inverse navbar-fixed-top'
,
'options'
=>
[
],
'class'
=>
'navbar-inverse navbar-fixed-top'
,
]);
],
$menuItems
=
[
]);
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
$menuItems
=
[
];
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
if
(
Yii
::
$app
->
user
->
isGuest
)
{
];
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
}
else
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
else
{
}
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
echo
Nav
::
widget
([
}
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
echo
Nav
::
widget
([
'items'
=>
$menuItems
,
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
]);
'items'
=>
$menuItems
,
NavBar
::
end
();
]);
?>
NavBar
::
end
();
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
])
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
</div>
<footer
class=
"footer"
>
<footer
class=
"footer"
>
...
...
apps/advanced/backend/web/css/site.css
View file @
98e9f307
html
,
body
{
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
{
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
20px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
}
.jumbotron
{
.jumbotron
{
...
...
apps/advanced/frontend/views/layouts/main.php
View file @
98e9f307
...
@@ -23,40 +23,42 @@ AppAsset::register($this);
...
@@ -23,40 +23,42 @@ AppAsset::register($this);
</head>
</head>
<body>
<body>
<?php
$this
->
beginBody
()
?>
<?php
$this
->
beginBody
()
?>
<?php
<div
class=
"wrap"
>
NavBar
::
begin
([
<?php
'brandLabel'
=>
'My Company'
,
NavBar
::
begin
([
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'brandLabel'
=>
'My Company'
,
'options'
=>
[
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'class'
=>
'navbar-inverse navbar-fixed-top'
,
'options'
=>
[
],
'class'
=>
'navbar-inverse navbar-fixed-top'
,
]);
],
$menuItems
=
[
]);
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
$menuItems
=
[
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
];
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
if
(
Yii
::
$app
->
user
->
isGuest
)
{
];
$menuItems
[]
=
[
'label'
=>
'Signup'
,
'url'
=>
[
'/site/signup'
]];
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
$menuItems
[]
=
[
'label'
=>
'Signup'
,
'url'
=>
[
'/site/signup'
]];
}
else
{
$menuItems
[]
=
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]];
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
}
else
{
}
$menuItems
[]
=
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
[
'/site/logout'
]];
echo
Nav
::
widget
([
}
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
echo
Nav
::
widget
([
'items'
=>
$menuItems
,
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
]);
'items'
=>
$menuItems
,
NavBar
::
end
();
]);
?>
NavBar
::
end
();
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
])
?>
<?=
Alert
::
widget
()
?>
<?=
Alert
::
widget
()
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
</div>
<footer
class=
"footer"
>
<footer
class=
"footer"
>
<div
class=
"container"
>
<div
class=
"container"
>
<p
class=
"pull-left"
>
©
My Company
<?=
date
(
'Y'
)
?>
</p>
<p
class=
"pull-left"
>
©
My Company
<?=
date
(
'Y'
)
?>
</p>
...
...
apps/advanced/frontend/web/css/site.css
View file @
98e9f307
html
,
body
{
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
{
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
20px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
}
.jumbotron
{
.jumbotron
{
...
...
apps/basic/views/layouts/main.php
View file @
98e9f307
...
@@ -21,36 +21,39 @@ AppAsset::register($this);
...
@@ -21,36 +21,39 @@ AppAsset::register($this);
<?php
$this
->
head
()
?>
<?php
$this
->
head
()
?>
</head>
</head>
<body>
<body>
<?php
$this
->
beginBody
()
?>
<?php
$this
->
beginBody
()
?>
<?php
<div
class=
"wrap"
>
NavBar
::
begin
([
<?php
'brandLabel'
=>
'My Company'
,
NavBar
::
begin
([
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'brandLabel'
=>
'My Company'
,
'options'
=>
[
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'class'
=>
'navbar-inverse navbar-fixed-top'
,
'options'
=>
[
],
'class'
=>
'navbar-inverse navbar-fixed-top'
,
]);
],
echo
Nav
::
widget
([
]);
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
echo
Nav
::
widget
([
'items'
=>
[
'options'
=>
[
'class'
=>
'navbar-nav navbar-right'
],
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
'items'
=>
[
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
[
'label'
=>
'Home'
,
'url'
=>
[
'/site/index'
]],
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
[
'label'
=>
'About'
,
'url'
=>
[
'/site/about'
]],
Yii
::
$app
->
user
->
isGuest
?
[
'label'
=>
'Contact'
,
'url'
=>
[
'/site/contact'
]],
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
Yii
::
$app
->
user
->
isGuest
?
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
[
'label'
=>
'Login'
,
'url'
=>
[
'/site/login'
]]
:
'url'
=>
[
'/site/logout'
],
[
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
'url'
=>
[
'/site/logout'
],
],
'linkOptions'
=>
[
'data-method'
=>
'post'
]],
]);
],
NavBar
::
end
();
]);
?>
NavBar
::
end
();
?>
<div
class=
"container"
>
<div
class=
"container"
>
<?=
Breadcrumbs
::
widget
([
<?=
Breadcrumbs
::
widget
([
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
[],
])
?>
])
?>
<?=
$content
?>
<?=
$content
?>
</div>
</div>
</div>
<footer
class=
"footer"
>
<footer
class=
"footer"
>
...
...
apps/basic/web/css/site.css
View file @
98e9f307
html
,
body
{
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
{
.footer
{
height
:
60px
;
background-color
:
#f5f5f5
;
border-top
:
1px
solid
#ddd
;
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
20px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
}
.jumbotron
{
.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