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
1b479edd
Commit
1b479edd
authored
Mar 27, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added viewport meta tag for responsive layouts (fixes #38)
parent
c2503598
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
Project_Default.xml
.idea/inspectionProfiles/Project_Default.xml
+8
-0
profiles_settings.xml
.idea/inspectionProfiles/profiles_settings.xml
+8
-0
bootstrap-yii.css
assets/css/bootstrap-yii.css
+0
-0
Bootstrap.php
components/Bootstrap.php
+7
-5
No files found.
.idea/inspectionProfiles/Project_Default.xml
0 → 100644
View file @
1b479edd
<component
name=
"InspectionProjectProfileManager"
>
<profile
version=
"1.0"
is_locked=
"false"
>
<option
name=
"myName"
value=
"Project Default"
/>
<option
name=
"myLocal"
value=
"false"
/>
<inspection_tool
class=
"PhpDocMissingReturnTagInspection"
enabled=
"false"
level=
"WEAK WARNING"
enabled_by_default=
"false"
/>
</profile>
</component>
\ No newline at end of file
.idea/inspectionProfiles/profiles_settings.xml
0 → 100644
View file @
1b479edd
<component
name=
"InspectionProjectProfileManager"
>
<settings>
<option
name=
"PROJECT_PROFILE"
value=
"Project Default"
/>
<option
name=
"USE_PROJECT_PROFILE"
value=
"true"
/>
<version
value=
"1.0"
/>
</settings>
</component>
\ No newline at end of file
assets/css/
yii-bootstrap
.css
→
assets/css/
bootstrap-yii
.css
View file @
1b479edd
File moved
components/Bootstrap.php
View file @
1b479edd
...
@@ -74,11 +74,8 @@ class Bootstrap extends CApplicationComponent
...
@@ -74,11 +74,8 @@ class Bootstrap extends CApplicationComponent
$this
->
registerYiiCss
();
$this
->
registerYiiCss
();
if
(
$this
->
enableJS
)
if
(
$this
->
enableJS
)
{
Yii
::
app
()
->
clientScript
->
registerCoreScript
(
'jquery'
);
$this
->
registerCorePlugins
();
$this
->
registerCorePlugins
();
}
}
}
/**
/**
* Registers the Bootstrap CSS.
* Registers the Bootstrap CSS.
...
@@ -94,7 +91,10 @@ class Bootstrap extends CApplicationComponent
...
@@ -94,7 +91,10 @@ class Bootstrap extends CApplicationComponent
*/
*/
public
function
registerResponsiveCss
()
public
function
registerResponsiveCss
()
{
{
Yii
::
app
()
->
clientScript
->
registerCssFile
(
$this
->
getAssetsUrl
()
.
'/css/bootstrap-responsive.min.css'
);
/** @var CClientScript $cs */
$cs
=
Yii
::
app
()
->
getClientScript
();
$cs
->
registerMetaTag
(
'width=device-width, initial-scale=1.0'
,
'viewport'
);
$cs
->
registerCssFile
(
$this
->
getAssetsUrl
()
.
'/css/bootstrap-responsive.min.css'
);
}
}
/**
/**
...
@@ -103,7 +103,7 @@ class Bootstrap extends CApplicationComponent
...
@@ -103,7 +103,7 @@ class Bootstrap extends CApplicationComponent
*/
*/
public
function
registerYiiCss
()
public
function
registerYiiCss
()
{
{
Yii
::
app
()
->
clientScript
->
registerCssFile
(
$this
->
getAssetsUrl
()
.
'/css/
yii-bootstrap
.css'
);
Yii
::
app
()
->
clientScript
->
registerCssFile
(
$this
->
getAssetsUrl
()
.
'/css/
bootstrap-yii
.css'
);
}
}
/**
/**
...
@@ -112,6 +112,8 @@ class Bootstrap extends CApplicationComponent
...
@@ -112,6 +112,8 @@ class Bootstrap extends CApplicationComponent
*/
*/
public
function
registerCorePlugins
()
public
function
registerCorePlugins
()
{
{
Yii
::
app
()
->
clientScript
->
registerCoreScript
(
'jquery'
);
if
(
!
$this
->
isPluginDisabled
(
self
::
PLUGIN_TRANSITION
))
if
(
!
$this
->
isPluginDisabled
(
self
::
PLUGIN_TRANSITION
))
$this
->
enableTransitions
();
$this
->
enableTransitions
();
...
...
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