Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
1d913faf
Commit
1d913faf
authored
Feb 10, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the demo.
parent
72854898
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
36 deletions
+77
-36
styles.less
demo/less/styles.less
+50
-9
main.php
demo/protected/views/layouts/main.php
+24
-0
index.php
demo/protected/views/site/index.php
+2
-26
BootActiveForm.php
widgets/BootActiveForm.php
+1
-1
No files found.
demo/less/styles.less
View file @
1d913faf
...
...
@@ -8,7 +8,7 @@
@imageUrl: "../../../demo/images/";
body {
padding-top:
6
0px;
padding-top:
10
0px;
padding-bottom: 40px;
}
...
...
@@ -16,6 +16,54 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: 0.6em;
}
.subnav {
border: 1px solid #E5E5E5;
.border-radius(4px);
.size(36px, 100%);
#gradient > .vertical(#F5F5F5, #EEE);
&.subnav-fixed {
border-color: #D5D5D5;
border-width: 0 0 1px;
left: 0;
position: fixed;
right: 0;
top: 40px;
z-index: 1030;
.border-radius(0);
.box-shadow(inset 0 1px 0 #FFF, 0 1px 5px rgba(0, 0, 0, .1));
}
.nav {
margin: 0 auto;
width: 1170px;
& > li > a {
margin: 0;
padding-top: 11px;
padding-bottom: 11px;
border-left: 1px solid whiteSmoke;
border-right: 1px solid #E5E5E5;
.border-radius(0);
}
& > li:first-child > a {
border-left: 0;
}
& > li:last-child > a {
border-right: 0;
}
& > .active >a, & .action > a:hover {
background-color: #E9E9E9;
border-right-color: #DDD;
color: #777;
.box-shadow(inset 0 3px 5px rgba(0, 0, 0, .05));
}
}
}
footer {
.powered {
color: #888;
...
...
@@ -49,7 +97,7 @@ span.required {
}
section {
padding-top:
5
0px;
padding-top:
8
0px;
a.top {
display: block;
...
...
@@ -77,13 +125,6 @@ section {
font-weight: bold;
}
#subnav {
left: 20px;
position: fixed;
top: 60px;
width: 270px;
}
// POST-IMPORTS
// Responsive style must be included after the body padding has been set.
...
...
demo/protected/views/layouts/main.php
View file @
1d913faf
...
...
@@ -42,6 +42,30 @@
),
));
?>
<div
class=
"subnav subnav-fixed"
>
<?php
$this
->
widget
(
'bootstrap.widgets.BootMenu'
,
array
(
'type'
=>
'pills'
,
//'scrollspy'=>array('offset'=>50),
'items'
=>
array
(
array
(
'label'
=>
'BootAlert'
,
'url'
=>
'#bootAlert'
),
array
(
'label'
=>
'BootCrumb'
,
'url'
=>
'#bootCrumb'
),
array
(
'label'
=>
'BootNavbar'
,
'url'
=>
'#bootNavbar'
),
array
(
'label'
=>
'BootMenu'
,
'url'
=>
'#bootMenu'
),
array
(
'label'
=>
'BootTabbed'
,
'url'
=>
'#bootTabbed'
),
array
(
'label'
=>
'BootDetailView'
,
'url'
=>
'#bootDetailView'
),
array
(
'label'
=>
'BootGridView'
,
'url'
=>
'#bootGridView'
),
array
(
'label'
=>
'BootThumbs'
,
'url'
=>
'#bootThumbs'
),
array
(
'label'
=>
'BootTooltip'
,
'url'
=>
'#bootTooltip'
),
array
(
'label'
=>
'BootPopover'
,
'url'
=>
'#bootPopover'
),
array
(
'label'
=>
'BootModal'
,
'url'
=>
'#bootModal'
),
array
(
'label'
=>
'BootActiveForm'
,
'url'
=>
'#bootActiveForm'
),
),
));
?>
</div>
<div
class=
"container"
>
<div
class=
"hero-unit"
>
...
...
demo/protected/views/site/index.php
View file @
1d913faf
...
...
@@ -786,28 +786,4 @@ Yii::app()->user->setFlash('error', '<strong>Oh snap!</strong> Change a few thin
</section>
</div>
<aside
id=
"subnav"
class=
"well"
style=
"padding: 8px 0;"
>
<?php
$this
->
widget
(
'bootstrap.widgets.BootMenu'
,
array
(
'type'
=>
'list'
,
//'scrollspy'=>array('offset'=>50),
'items'
=>
array
(
array
(
'label'
=>
'WIDGETS'
,
'itemOptions'
=>
array
(
'class'
=>
'nav-header'
)),
array
(
'label'
=>
'BootAlert'
,
'url'
=>
'#bootAlert'
),
array
(
'label'
=>
'BootCrumb'
,
'url'
=>
'#bootCrumb'
),
array
(
'label'
=>
'BootNavbar'
,
'url'
=>
'#bootNavbar'
),
array
(
'label'
=>
'BootMenu'
,
'url'
=>
'#bootMenu'
),
array
(
'label'
=>
'BootTabbed'
,
'url'
=>
'#bootTabbed'
),
array
(
'label'
=>
'BootDetailView'
,
'url'
=>
'#bootDetailView'
),
array
(
'label'
=>
'BootGridView'
,
'url'
=>
'#bootGridView'
),
array
(
'label'
=>
'BootThumbs'
,
'url'
=>
'#bootThumbs'
),
array
(
'label'
=>
'BootTooltip'
,
'url'
=>
'#bootTooltip'
),
array
(
'label'
=>
'BootPopover'
,
'url'
=>
'#bootPopover'
),
array
(
'label'
=>
'BootModal'
,
'url'
=>
'#bootModal'
),
array
(
'label'
=>
'BootActiveForm'
,
'url'
=>
'#bootActiveForm'
),
),
));
?>
</aside>
\ No newline at end of file
</div>
\ No newline at end of file
widgets/BootActiveForm.php
View file @
1d913faf
...
...
@@ -54,7 +54,7 @@ class BootActiveForm extends CActiveForm
parent
::
init
();
}
/**
/**
* Renders a checkbox input row.
* @param CModel $model the data model
* @param string $attribute the attribute
...
...
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