Permalink
Browse files

Adding bootstrap configuration

  • Loading branch information...
1 parent d06d526 commit 8202a7682d106d124c3fe82fe6f40d525a50eb9d @jsebasct jsebasct committed May 1, 2013
Showing with 24,056 additions and 6 deletions.
  1. +2 −1 index.php
  2. +15 −5 protected/config/main.php
  3. +24 −0 protected/extensions/bootstrap/LICENSE.txt
  4. +1,109 −0 protected/extensions/bootstrap/assets/css/bootstrap-responsive.css
  5. +9 −0 protected/extensions/bootstrap/assets/css/bootstrap-responsive.min.css
  6. +6,158 −0 protected/extensions/bootstrap/assets/css/bootstrap.css
  7. +9 −0 protected/extensions/bootstrap/assets/css/bootstrap.min.css
  8. +79 −0 protected/extensions/bootstrap/assets/css/yii.css
  9. BIN protected/extensions/bootstrap/assets/img/glyphicons-halflings-white.png
  10. BIN protected/extensions/bootstrap/assets/img/glyphicons-halflings.png
  11. BIN protected/extensions/bootstrap/assets/img/loading.gif
  12. +117 −0 protected/extensions/bootstrap/assets/js/bootstrap-affix.js
  13. +99 −0 protected/extensions/bootstrap/assets/js/bootstrap-alert.js
  14. +105 −0 protected/extensions/bootstrap/assets/js/bootstrap-button.js
  15. +207 −0 protected/extensions/bootstrap/assets/js/bootstrap-carousel.js
  16. +167 −0 protected/extensions/bootstrap/assets/js/bootstrap-collapse.js
  17. +165 −0 protected/extensions/bootstrap/assets/js/bootstrap-dropdown.js
  18. +247 −0 protected/extensions/bootstrap/assets/js/bootstrap-modal.js
  19. +114 −0 protected/extensions/bootstrap/assets/js/bootstrap-popover.js
  20. +162 −0 protected/extensions/bootstrap/assets/js/bootstrap-scrollspy.js
  21. +144 −0 protected/extensions/bootstrap/assets/js/bootstrap-tab.js
  22. +361 −0 protected/extensions/bootstrap/assets/js/bootstrap-tooltip.js
  23. +60 −0 protected/extensions/bootstrap/assets/js/bootstrap-transition.js
  24. +335 −0 protected/extensions/bootstrap/assets/js/bootstrap-typeahead.js
  25. +2,276 −0 protected/extensions/bootstrap/assets/js/bootstrap.js
  26. +6 −0 protected/extensions/bootstrap/assets/js/bootstrap.min.js
  27. +34 −0 protected/extensions/bootstrap/assets/less/accordion.less
  28. +79 −0 protected/extensions/bootstrap/assets/less/alerts.less
  29. +63 −0 protected/extensions/bootstrap/assets/less/bootstrap.less
  30. +24 −0 protected/extensions/bootstrap/assets/less/breadcrumbs.less
  31. +229 −0 protected/extensions/bootstrap/assets/less/button-groups.less
  32. +228 −0 protected/extensions/bootstrap/assets/less/buttons.less
  33. +158 −0 protected/extensions/bootstrap/assets/less/carousel.less
  34. +32 −0 protected/extensions/bootstrap/assets/less/close.less
  35. +61 −0 protected/extensions/bootstrap/assets/less/code.less
  36. +22 −0 protected/extensions/bootstrap/assets/less/component-animations.less
  37. +237 −0 protected/extensions/bootstrap/assets/less/dropdowns.less
  38. +690 −0 protected/extensions/bootstrap/assets/less/forms.less
  39. +21 −0 protected/extensions/bootstrap/assets/less/grid.less
  40. +25 −0 protected/extensions/bootstrap/assets/less/hero-unit.less
  41. +84 −0 protected/extensions/bootstrap/assets/less/labels-badges.less
  42. +16 −0 protected/extensions/bootstrap/assets/less/layouts.less
  43. +55 −0 protected/extensions/bootstrap/assets/less/media.less
  44. +702 −0 protected/extensions/bootstrap/assets/less/mixins.less
  45. +95 −0 protected/extensions/bootstrap/assets/less/modals.less
  46. +497 −0 protected/extensions/bootstrap/assets/less/navbar.less
  47. +409 −0 protected/extensions/bootstrap/assets/less/navs.less
  48. +43 −0 protected/extensions/bootstrap/assets/less/pager.less
  49. +123 −0 protected/extensions/bootstrap/assets/less/pagination.less
  50. +133 −0 protected/extensions/bootstrap/assets/less/popovers.less
  51. +122 −0 protected/extensions/bootstrap/assets/less/progress-bars.less
  52. +216 −0 protected/extensions/bootstrap/assets/less/reset.less
  53. +28 −0 protected/extensions/bootstrap/assets/less/responsive-1200px-min.less
  54. +193 −0 protected/extensions/bootstrap/assets/less/responsive-767px-max.less
  55. +19 −0 protected/extensions/bootstrap/assets/less/responsive-768px-979px.less
  56. +189 −0 protected/extensions/bootstrap/assets/less/responsive-navbar.less
  57. +59 −0 protected/extensions/bootstrap/assets/less/responsive-utilities.less
  58. +48 −0 protected/extensions/bootstrap/assets/less/responsive.less
  59. +53 −0 protected/extensions/bootstrap/assets/less/scaffolding.less
  60. +197 −0 protected/extensions/bootstrap/assets/less/sprites.less
  61. +244 −0 protected/extensions/bootstrap/assets/less/tables.less
  62. +53 −0 protected/extensions/bootstrap/assets/less/thumbnails.less
  63. +70 −0 protected/extensions/bootstrap/assets/less/tooltip.less
  64. +247 −0 protected/extensions/bootstrap/assets/less/type.less
  65. +30 −0 protected/extensions/bootstrap/assets/less/utilities.less
  66. +301 −0 protected/extensions/bootstrap/assets/less/variables.less
  67. +29 −0 protected/extensions/bootstrap/assets/less/wells.less
  68. +177 −0 protected/extensions/bootstrap/assets/less/yii.less
  69. +319 −0 protected/extensions/bootstrap/components/Bootstrap.php
  70. +68 −0 protected/extensions/bootstrap/form/TbForm.php
  71. +114 −0 protected/extensions/bootstrap/form/TbFormButtonElement.php
  72. +33 −0 protected/extensions/bootstrap/form/TbFormInputElement.php
  73. +32 −0 protected/extensions/bootstrap/gii/bootstrap/BootstrapCode.php
  74. +14 −0 protected/extensions/bootstrap/gii/bootstrap/BootstrapGenerator.php
  75. +35 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/_form.php
  76. +29 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/_search.php
  77. +26 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/_view.php
  78. +70 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/admin.php
  79. +183 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/controller.php
  80. +24 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/create.php
  81. +26 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/index.php
  82. +28 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/update.php
  83. +36 −0 protected/extensions/bootstrap/gii/bootstrap/templates/default/view.php
  84. +64 −0 protected/extensions/bootstrap/gii/bootstrap/views/index.php
  85. +3 −0 protected/extensions/bootstrap/theme/css/styles.css
  86. +1 −0 protected/extensions/bootstrap/theme/views/.htaccess
  87. +24 −0 protected/extensions/bootstrap/theme/views/layouts/column2.php
  88. +53 −0 protected/extensions/bootstrap/theme/views/layouts/main.php
  89. +67 −0 protected/extensions/bootstrap/theme/views/site/contact.php
  90. +25 −0 protected/extensions/bootstrap/theme/views/site/index.php
  91. +47 −0 protected/extensions/bootstrap/theme/views/site/login.php
  92. +532 −0 protected/extensions/bootstrap/widgets/TbActiveForm.php
  93. +66 −0 protected/extensions/bootstrap/widgets/TbAffix.php
  94. +144 −0 protected/extensions/bootstrap/widgets/TbAlert.php
  95. +73 −0 protected/extensions/bootstrap/widgets/TbBadge.php
  96. +195 −0 protected/extensions/bootstrap/widgets/TbBaseMenu.php
  97. +84 −0 protected/extensions/bootstrap/widgets/TbBreadcrumbs.php
  98. +272 −0 protected/extensions/bootstrap/widgets/TbButton.php
  99. +81 −0 protected/extensions/bootstrap/widgets/TbButtonColumn.php
  100. +120 −0 protected/extensions/bootstrap/widgets/TbButtonGroup.php
  101. +173 −0 protected/extensions/bootstrap/widgets/TbCarousel.php
  102. +94 −0 protected/extensions/bootstrap/widgets/TbCollapse.php
  103. +56 −0 protected/extensions/bootstrap/widgets/TbDataColumn.php
  104. +68 −0 protected/extensions/bootstrap/widgets/TbDetailView.php
  105. +90 −0 protected/extensions/bootstrap/widgets/TbDropdown.php
  106. +116 −0 protected/extensions/bootstrap/widgets/TbGridView.php
  107. +62 −0 protected/extensions/bootstrap/widgets/TbHeroUnit.php
  108. +73 −0 protected/extensions/bootstrap/widgets/TbLabel.php
  109. +31 −0 protected/extensions/bootstrap/widgets/TbListView.php
  110. +103 −0 protected/extensions/bootstrap/widgets/TbMenu.php
  111. +87 −0 protected/extensions/bootstrap/widgets/TbModal.php
  112. +174 −0 protected/extensions/bootstrap/widgets/TbNavbar.php
  113. +128 −0 protected/extensions/bootstrap/widgets/TbPager.php
  114. +86 −0 protected/extensions/bootstrap/widgets/TbProgress.php
  115. +58 −0 protected/extensions/bootstrap/widgets/TbScrollSpy.php
  116. +183 −0 protected/extensions/bootstrap/widgets/TbTabs.php
  117. +50 −0 protected/extensions/bootstrap/widgets/TbThumbnails.php
  118. +54 −0 protected/extensions/bootstrap/widgets/TbTypeahead.php
  119. +478 −0 protected/extensions/bootstrap/widgets/input/TbInput.php
  120. +213 −0 protected/extensions/bootstrap/widgets/input/TbInputHorizontal.php
  121. +61 −0 protected/extensions/bootstrap/widgets/input/TbInputInline.php
  122. +35 −0 protected/extensions/bootstrap/widgets/input/TbInputSearch.php
  123. +170 −0 protected/extensions/bootstrap/widgets/input/TbInputVertical.php
  124. +3 −0 themes/bootstrap/css/styles.css
  125. +1 −0 themes/bootstrap/views/.htaccess
  126. +24 −0 themes/bootstrap/views/layouts/column2.php
  127. +53 −0 themes/bootstrap/views/layouts/main.php
  128. +67 −0 themes/bootstrap/views/site/contact.php
  129. +25 −0 themes/bootstrap/views/site/index.php
  130. +47 −0 themes/bootstrap/views/site/login.php
View
@@ -1,7 +1,8 @@
<?php
// change the following paths if necessary
-$yii=dirname(__FILE__).'/../../../../usr/local/yii/framework/yii.php';
+#$yii=dirname(__FILE__).'../yii/framework/yii.php';
+$yii='/usr/local/yii/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
View
@@ -3,9 +3,13 @@
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
+Yii::setPathOfAlias('bootstrap', dirname(__FILE__).'/../extensions/bootstrap');
+
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
+ 'theme'=>'bootstrap',
+
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Web Application',
@@ -20,14 +24,15 @@
'modules'=>array(
// uncomment the following to enable the Gii tool
- /*
+
'gii'=>array(
'class'=>'system.gii.GiiModule',
- 'password'=>'Enter Your Password Here',
+ 'password'=>'hydra',
// If removed, Gii defaults to localhost only. Edit carefully to taste.
'ipFilters'=>array('127.0.0.1','::1'),
+ 'generatorPaths'=>array('bootstrap.gii',),
),
- */
+
),
// application components
@@ -37,7 +42,7 @@
'allowAutoLogin'=>true,
),
// uncomment the following to enable URLs in path-format
- /*
+
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
@@ -46,10 +51,15 @@
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
- */
+
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
),
+
+ 'bootstrap'=>array(
+ 'class'=>'bootstrap.components.Bootstrap',
+ ),
+
// uncomment the following to use a MySQL database
/*
'db'=>array(
@@ -0,0 +1,24 @@
+Copyright (c) 2010, Christoffer Niska
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ * Neither the name of the Christoffer Niska nor the
+ names of its contributors may be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Oops, something went wrong.

0 comments on commit 8202a76

Please sign in to comment.