Browse Source

moved bootstrap to extension

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
83a937990c
  1. 3
      apps/advanced/composer.json
  2. 1
      apps/basic/composer.json
  3. 0
      extensions/bootstrap/Alert.php
  4. 0
      extensions/bootstrap/BootstrapAsset.php
  5. 0
      extensions/bootstrap/BootstrapPluginAsset.php
  6. 0
      extensions/bootstrap/BootstrapThemeAsset.php
  7. 0
      extensions/bootstrap/Button.php
  8. 0
      extensions/bootstrap/ButtonDropdown.php
  9. 0
      extensions/bootstrap/ButtonGroup.php
  10. 0
      extensions/bootstrap/Carousel.php
  11. 0
      extensions/bootstrap/Collapse.php
  12. 0
      extensions/bootstrap/Dropdown.php
  13. 0
      extensions/bootstrap/Modal.php
  14. 0
      extensions/bootstrap/Nav.php
  15. 0
      extensions/bootstrap/NavBar.php
  16. 0
      extensions/bootstrap/Progress.php
  17. 32
      extensions/bootstrap/README.md
  18. 0
      extensions/bootstrap/Tabs.php
  19. 0
      extensions/bootstrap/Widget.php
  20. 0
      extensions/bootstrap/assets/css/bootstrap-theme.css
  21. 0
      extensions/bootstrap/assets/css/bootstrap.css
  22. 0
      extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.eot
  23. 0
      extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.svg
  24. 0
      extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.ttf
  25. 0
      extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.woff
  26. 0
      extensions/bootstrap/assets/js/bootstrap.js
  27. 22
      extensions/bootstrap/composer.json
  28. 3
      extensions/gii/composer.json
  29. 3
      extensions/jui/composer.json

3
apps/advanced/composer.json

@ -16,8 +16,9 @@
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-bootstrap": "dev-master",
"yiisoft/yii2-debug": "dev-master",
"yiisoft/yii2-gii": "dev-master"
"yiisoft/yii2-gii": "dev-master",
},
"scripts": {
"post-create-project-cmd": [

1
apps/basic/composer.json

@ -16,6 +16,7 @@
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "dev-master",
"yiisoft/yii2-bootstrap": "dev-master",
"yiisoft/yii2-debug": "dev-master",
"yiisoft/yii2-gii": "dev-master"
},

0
framework/yii/bootstrap/Alert.php → extensions/bootstrap/Alert.php

0
framework/yii/bootstrap/BootstrapAsset.php → extensions/bootstrap/BootstrapAsset.php

0
framework/yii/bootstrap/BootstrapPluginAsset.php → extensions/bootstrap/BootstrapPluginAsset.php

0
framework/yii/bootstrap/BootstrapThemeAsset.php → extensions/bootstrap/BootstrapThemeAsset.php

0
framework/yii/bootstrap/Button.php → extensions/bootstrap/Button.php

0
framework/yii/bootstrap/ButtonDropdown.php → extensions/bootstrap/ButtonDropdown.php

0
framework/yii/bootstrap/ButtonGroup.php → extensions/bootstrap/ButtonGroup.php

0
framework/yii/bootstrap/Carousel.php → extensions/bootstrap/Carousel.php

0
framework/yii/bootstrap/Collapse.php → extensions/bootstrap/Collapse.php

0
framework/yii/bootstrap/Dropdown.php → extensions/bootstrap/Dropdown.php

0
framework/yii/bootstrap/Modal.php → extensions/bootstrap/Modal.php

0
framework/yii/bootstrap/Nav.php → extensions/bootstrap/Nav.php

0
framework/yii/bootstrap/NavBar.php → extensions/bootstrap/NavBar.php

0
framework/yii/bootstrap/Progress.php → extensions/bootstrap/Progress.php

32
extensions/bootstrap/README.md

@ -0,0 +1,32 @@
Twitter Bootstrap Extension for Yii 2
=====================================
This is the Twitter Bootstrap extension for Yii 2. It encapsulates Bootstrap components
and plugins in terms of Yii widgets, and thus makes using Bootstrap components/plugins
in Yii applications extremely easy. For example, the following
single line of code in a view file would render a Bootstrap Progress plugin:
```php
<?= yii\bootstrap\Progress::widget(['percent' => 60, 'label' => 'test']) ?>
```
Installation
------------
The preferred way to install this extension is [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require yiisoft/yii2-bootstrap "*"
```
or add
```
"yiisoft/yii2-bootstrap": "*"
```
to the require section of your `composer.json` file.

0
framework/yii/bootstrap/Tabs.php → extensions/bootstrap/Tabs.php

0
framework/yii/bootstrap/Widget.php → extensions/bootstrap/Widget.php

0
framework/yii/bootstrap/assets/css/bootstrap-theme.css → extensions/bootstrap/assets/css/bootstrap-theme.css vendored

0
framework/yii/bootstrap/assets/css/bootstrap.css → extensions/bootstrap/assets/css/bootstrap.css vendored

0
framework/yii/bootstrap/assets/fonts/glyphicons-halflings-regular.eot → extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.eot

0
framework/yii/bootstrap/assets/fonts/glyphicons-halflings-regular.svg → extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.svg

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

0
framework/yii/bootstrap/assets/fonts/glyphicons-halflings-regular.ttf → extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.ttf

0
framework/yii/bootstrap/assets/fonts/glyphicons-halflings-regular.woff → extensions/bootstrap/assets/fonts/glyphicons-halflings-regular.woff

0
framework/yii/bootstrap/assets/js/bootstrap.js → extensions/bootstrap/assets/js/bootstrap.js vendored

22
extensions/bootstrap/composer.json

@ -0,0 +1,22 @@
{
"name": "yiisoft/yii2-bootstrap",
"description": "The Twitter Bootstrap extension for the Yii framework",
"keywords": ["yii", "bootstrap"],
"type": "yii2-extension",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-0": { "yii\\bootstrap\\": "" }
},
"target-dir": "yii/bootstrap"
}

3
extensions/gii/composer.json

@ -13,7 +13,8 @@
},
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*"
},
"autoload": {
"psr-0": { "yii\\gii\\": "" }

3
extensions/jui/composer.json

@ -13,7 +13,8 @@
},
"minimum-stability": "dev",
"require": {
"yiisoft/yii2": "*"
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*"
},
"autoload": {
"psr-0": { "yii\\jui\\": "" }

Loading…
Cancel
Save