Repository: patricktalmadge/bootstrapper Branch: master Commit: 8e325e6bdfdc Files: 475 Total size: 8.5 MB Directory structure: gitextract_hs6xjmpb/ ├── .gitattributes ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── README.md ├── composer.json ├── docs/ │ ├── classes/ │ │ ├── Bootstrapper.Accordion.html │ │ ├── Bootstrapper.Alert.html │ │ ├── Bootstrapper.Attributes.html │ │ ├── Bootstrapper.Badge.html │ │ ├── Bootstrapper.BootstrapperServiceProvider.html │ │ ├── Bootstrapper.Breadcrumb.html │ │ ├── Bootstrapper.Button.html │ │ ├── Bootstrapper.ButtonGroup.html │ │ ├── Bootstrapper.Carousel.html │ │ ├── Bootstrapper.ControlGroup.html │ │ ├── Bootstrapper.DropdownButton.html │ │ ├── Bootstrapper.Exceptions.AccordionException.html │ │ ├── Bootstrapper.Exceptions.CarouselException.html │ │ ├── Bootstrapper.Exceptions.ControlGroupException.html │ │ ├── Bootstrapper.Exceptions.ImageException.html │ │ ├── Bootstrapper.Exceptions.MediaObjectException.html │ │ ├── Bootstrapper.Exceptions.ModalException.html │ │ ├── Bootstrapper.Exceptions.ThumbnailException.html │ │ ├── Bootstrapper.Facades.Accordion.html │ │ ├── Bootstrapper.Facades.Alert.html │ │ ├── Bootstrapper.Facades.Badge.html │ │ ├── Bootstrapper.Facades.BootstrapperFacade.html │ │ ├── Bootstrapper.Facades.Breadcrumb.html │ │ ├── Bootstrapper.Facades.Button.html │ │ ├── Bootstrapper.Facades.ButtonGroup.html │ │ ├── Bootstrapper.Facades.Carousel.html │ │ ├── Bootstrapper.Facades.ControlGroup.html │ │ ├── Bootstrapper.Facades.DropdownButton.html │ │ ├── Bootstrapper.Facades.Form.html │ │ ├── Bootstrapper.Facades.Helpers.html │ │ ├── Bootstrapper.Facades.Icon.html │ │ ├── Bootstrapper.Facades.Image.html │ │ ├── Bootstrapper.Facades.InputGroup.html │ │ ├── Bootstrapper.Facades.Label.html │ │ ├── Bootstrapper.Facades.MediaObject.html │ │ ├── Bootstrapper.Facades.Modal.html │ │ ├── Bootstrapper.Facades.Navbar.html │ │ ├── Bootstrapper.Facades.Navigation.html │ │ ├── Bootstrapper.Facades.Panel.html │ │ ├── Bootstrapper.Facades.ProgressBar.html │ │ ├── Bootstrapper.Facades.Tabbable.html │ │ ├── Bootstrapper.Facades.Table.html │ │ ├── Bootstrapper.Facades.Thumbnail.html │ │ ├── Bootstrapper.Form.html │ │ ├── Bootstrapper.Helpers.html │ │ ├── Bootstrapper.Icon.html │ │ ├── Bootstrapper.Image.html │ │ ├── Bootstrapper.InputGroup.html │ │ ├── Bootstrapper.Label.html │ │ ├── Bootstrapper.MediaObject.html │ │ ├── Bootstrapper.Modal.html │ │ ├── Bootstrapper.Navbar.html │ │ ├── Bootstrapper.Navigation.html │ │ ├── Bootstrapper.Panel.html │ │ ├── Bootstrapper.ProgressBar.html │ │ ├── Bootstrapper.RenderedObject.html │ │ ├── Bootstrapper.Tabbable.html │ │ ├── Bootstrapper.Table.html │ │ └── Bootstrapper.Thumbnail.html │ ├── css/ │ │ ├── bootstrap-responsive.css │ │ ├── bootstrap.css │ │ ├── jquery.iviewer.css │ │ ├── phpdocumentor-clean-icons/ │ │ │ ├── Read Me.txt │ │ │ ├── lte-ie7.js │ │ │ └── style.css │ │ ├── prettify.css │ │ ├── prism.css │ │ └── template.css │ ├── deprecated.html │ ├── errors.html │ ├── files/ │ │ ├── Accordion.html │ │ ├── Accordion.php.txt │ │ ├── Alert.html │ │ ├── Alert.php.txt │ │ ├── Attributes.html │ │ ├── Attributes.php.txt │ │ ├── Badge.html │ │ ├── Badge.php.txt │ │ ├── Bootstrapper%2FAccordion.php.txt │ │ ├── Bootstrapper%2FAlert.php.txt │ │ ├── Bootstrapper%2FAttributes.php.txt │ │ ├── Bootstrapper%2FBadge.php.txt │ │ ├── Bootstrapper%2FBootstrapperServiceProvider.php.txt │ │ ├── Bootstrapper%2FBreadcrumb.php.txt │ │ ├── Bootstrapper%2FButton.php.txt │ │ ├── Bootstrapper%2FButtonGroup.php.txt │ │ ├── Bootstrapper%2FCarousel.php.txt │ │ ├── Bootstrapper%2FControlGroup.php.txt │ │ ├── Bootstrapper%2FDropdownButton.php.txt │ │ ├── Bootstrapper%2FExceptions%2FAccordionException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FCarouselException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FControlGroupException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FImageException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FMediaObjectException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FModalException.php.txt │ │ ├── Bootstrapper%2FExceptions%2FThumbnailException.php.txt │ │ ├── Bootstrapper%2FFacades%2FAccordion.php.txt │ │ ├── Bootstrapper%2FFacades%2FAlert.php.txt │ │ ├── Bootstrapper%2FFacades%2FBadge.php.txt │ │ ├── Bootstrapper%2FFacades%2FBootstrapperFacade.php.txt │ │ ├── Bootstrapper%2FFacades%2FBreadcrumb.php.txt │ │ ├── Bootstrapper%2FFacades%2FButton.php.txt │ │ ├── Bootstrapper%2FFacades%2FButtonGroup.php.txt │ │ ├── Bootstrapper%2FFacades%2FCarousel.php.txt │ │ ├── Bootstrapper%2FFacades%2FControlGroup.php.txt │ │ ├── Bootstrapper%2FFacades%2FDropdownButton.php.txt │ │ ├── Bootstrapper%2FFacades%2FForm.php.txt │ │ ├── Bootstrapper%2FFacades%2FHelpers.php.txt │ │ ├── Bootstrapper%2FFacades%2FIcon.php.txt │ │ ├── Bootstrapper%2FFacades%2FImage.php.txt │ │ ├── Bootstrapper%2FFacades%2FInputGroup.php.txt │ │ ├── Bootstrapper%2FFacades%2FLabel.php.txt │ │ ├── Bootstrapper%2FFacades%2FMediaObject.php.txt │ │ ├── Bootstrapper%2FFacades%2FModal.php.txt │ │ ├── Bootstrapper%2FFacades%2FNavbar.php.txt │ │ ├── Bootstrapper%2FFacades%2FNavigation.php.txt │ │ ├── Bootstrapper%2FFacades%2FPanel.php.txt │ │ ├── Bootstrapper%2FFacades%2FProgressBar.php.txt │ │ ├── Bootstrapper%2FFacades%2FTabbable.php.txt │ │ ├── Bootstrapper%2FFacades%2FTable.php.txt │ │ ├── Bootstrapper%2FFacades%2FThumbnail.php.txt │ │ ├── Bootstrapper%2FForm.php.txt │ │ ├── Bootstrapper%2FHelpers.php.txt │ │ ├── Bootstrapper%2FIcon.php.txt │ │ ├── Bootstrapper%2FImage.php.txt │ │ ├── Bootstrapper%2FInputGroup.php.txt │ │ ├── Bootstrapper%2FLabel.php.txt │ │ ├── Bootstrapper%2FMediaObject.php.txt │ │ ├── Bootstrapper%2FModal.php.txt │ │ ├── Bootstrapper%2FNavbar.php.txt │ │ ├── Bootstrapper%2FNavigation.php.txt │ │ ├── Bootstrapper%2FPanel.php.txt │ │ ├── Bootstrapper%2FProgressBar.php.txt │ │ ├── Bootstrapper%2FRenderedObject.php.txt │ │ ├── Bootstrapper%2FTabbable.php.txt │ │ ├── Bootstrapper%2FTable.php.txt │ │ ├── Bootstrapper%2FThumbnail.php.txt │ │ ├── Bootstrapper.Accordion.html │ │ ├── Bootstrapper.Alert.html │ │ ├── Bootstrapper.Attributes.html │ │ ├── Bootstrapper.Badge.html │ │ ├── Bootstrapper.BootstrapperServiceProvider.html │ │ ├── Bootstrapper.Breadcrumb.html │ │ ├── Bootstrapper.Button.html │ │ ├── Bootstrapper.ButtonGroup.html │ │ ├── Bootstrapper.Carousel.html │ │ ├── Bootstrapper.ControlGroup.html │ │ ├── Bootstrapper.DropdownButton.html │ │ ├── Bootstrapper.Exceptions.AccordionException.html │ │ ├── Bootstrapper.Exceptions.CarouselException.html │ │ ├── Bootstrapper.Exceptions.ControlGroupException.html │ │ ├── Bootstrapper.Exceptions.ImageException.html │ │ ├── Bootstrapper.Exceptions.MediaObjectException.html │ │ ├── Bootstrapper.Exceptions.ModalException.html │ │ ├── Bootstrapper.Exceptions.ThumbnailException.html │ │ ├── Bootstrapper.Facades.Accordion.html │ │ ├── Bootstrapper.Facades.Alert.html │ │ ├── Bootstrapper.Facades.Badge.html │ │ ├── Bootstrapper.Facades.BootstrapperFacade.html │ │ ├── Bootstrapper.Facades.Breadcrumb.html │ │ ├── Bootstrapper.Facades.Button.html │ │ ├── Bootstrapper.Facades.ButtonGroup.html │ │ ├── Bootstrapper.Facades.Carousel.html │ │ ├── Bootstrapper.Facades.ControlGroup.html │ │ ├── Bootstrapper.Facades.DropdownButton.html │ │ ├── Bootstrapper.Facades.Form.html │ │ ├── Bootstrapper.Facades.Helpers.html │ │ ├── Bootstrapper.Facades.Icon.html │ │ ├── Bootstrapper.Facades.Image.html │ │ ├── Bootstrapper.Facades.InputGroup.html │ │ ├── Bootstrapper.Facades.Label.html │ │ ├── Bootstrapper.Facades.MediaObject.html │ │ ├── Bootstrapper.Facades.Modal.html │ │ ├── Bootstrapper.Facades.Navbar.html │ │ ├── Bootstrapper.Facades.Navigation.html │ │ ├── Bootstrapper.Facades.Panel.html │ │ ├── Bootstrapper.Facades.ProgressBar.html │ │ ├── Bootstrapper.Facades.Tabbable.html │ │ ├── Bootstrapper.Facades.Table.html │ │ ├── Bootstrapper.Facades.Thumbnail.html │ │ ├── Bootstrapper.Form.html │ │ ├── Bootstrapper.Helpers.html │ │ ├── Bootstrapper.Icon.html │ │ ├── Bootstrapper.Image.html │ │ ├── Bootstrapper.InputGroup.html │ │ ├── Bootstrapper.Label.html │ │ ├── Bootstrapper.MediaObject.html │ │ ├── Bootstrapper.Modal.html │ │ ├── Bootstrapper.Navbar.html │ │ ├── Bootstrapper.Navigation.html │ │ ├── Bootstrapper.Panel.html │ │ ├── Bootstrapper.ProgressBar.html │ │ ├── Bootstrapper.RenderedObject.html │ │ ├── Bootstrapper.Tabbable.html │ │ ├── Bootstrapper.Table.html │ │ ├── Bootstrapper.Thumbnail.html │ │ ├── BootstrapperServiceProvider.html │ │ ├── BootstrapperServiceProvider.php.txt │ │ ├── Breadcrumb.html │ │ ├── Breadcrumb.php.txt │ │ ├── Button.html │ │ ├── Button.php.txt │ │ ├── ButtonGroup.html │ │ ├── ButtonGroup.php.txt │ │ ├── Carousel.html │ │ ├── Carousel.php.txt │ │ ├── ControlGroup.html │ │ ├── ControlGroup.php.txt │ │ ├── DropdownButton.html │ │ ├── DropdownButton.php.txt │ │ ├── Exceptions%2FAccordionException.php.txt │ │ ├── Exceptions%2FCarouselException.php.txt │ │ ├── Exceptions%2FControlGroupException.php.txt │ │ ├── Exceptions%2FImageException.php.txt │ │ ├── Exceptions%2FMediaObjectException.php.txt │ │ ├── Exceptions%2FModalException.php.txt │ │ ├── Exceptions%2FThumbnailException.php.txt │ │ ├── Exceptions.AccordionException.html │ │ ├── Exceptions.CarouselException.html │ │ ├── Exceptions.ControlGroupException.html │ │ ├── Exceptions.ImageException.html │ │ ├── Exceptions.MediaObjectException.html │ │ ├── Exceptions.ModalException.html │ │ ├── Exceptions.ThumbnailException.html │ │ ├── Facades%2FAccordion.php.txt │ │ ├── Facades%2FAlert.php.txt │ │ ├── Facades%2FBadge.php.txt │ │ ├── Facades%2FBootstrapperFacade.php.txt │ │ ├── Facades%2FBreadcrumb.php.txt │ │ ├── Facades%2FButton.php.txt │ │ ├── Facades%2FButtonGroup.php.txt │ │ ├── Facades%2FCarousel.php.txt │ │ ├── Facades%2FControlGroup.php.txt │ │ ├── Facades%2FDropdownButton.php.txt │ │ ├── Facades%2FForm.php.txt │ │ ├── Facades%2FHelpers.php.txt │ │ ├── Facades%2FIcon.php.txt │ │ ├── Facades%2FImage.php.txt │ │ ├── Facades%2FInputGroup.php.txt │ │ ├── Facades%2FLabel.php.txt │ │ ├── Facades%2FMediaObject.php.txt │ │ ├── Facades%2FModal.php.txt │ │ ├── Facades%2FNavbar.php.txt │ │ ├── Facades%2FNavigation.php.txt │ │ ├── Facades%2FPanel.php.txt │ │ ├── Facades%2FProgressBar.php.txt │ │ ├── Facades%2FTabbable.php.txt │ │ ├── Facades%2FTable.php.txt │ │ ├── Facades%2FThumbnail.php.txt │ │ ├── Facades.Accordion.html │ │ ├── Facades.Alert.html │ │ ├── Facades.Badge.html │ │ ├── Facades.BootstrapperFacade.html │ │ ├── Facades.Breadcrumb.html │ │ ├── Facades.Button.html │ │ ├── Facades.ButtonGroup.html │ │ ├── Facades.Carousel.html │ │ ├── Facades.ControlGroup.html │ │ ├── Facades.DropdownButton.html │ │ ├── Facades.Form.html │ │ ├── Facades.Helpers.html │ │ ├── Facades.Icon.html │ │ ├── Facades.Image.html │ │ ├── Facades.InputGroup.html │ │ ├── Facades.Label.html │ │ ├── Facades.MediaObject.html │ │ ├── Facades.Modal.html │ │ ├── Facades.Navbar.html │ │ ├── Facades.Navigation.html │ │ ├── Facades.Panel.html │ │ ├── Facades.ProgressBar.html │ │ ├── Facades.Tabbable.html │ │ ├── Facades.Table.html │ │ ├── Facades.Thumbnail.html │ │ ├── Form.html │ │ ├── Form.php.txt │ │ ├── Helpers.html │ │ ├── Helpers.php.txt │ │ ├── Icon.html │ │ ├── Icon.php.txt │ │ ├── Image.html │ │ ├── Image.php.txt │ │ ├── InputGroup.html │ │ ├── InputGroup.php.txt │ │ ├── Label.html │ │ ├── Label.php.txt │ │ ├── MediaObject.html │ │ ├── MediaObject.php.txt │ │ ├── Modal.html │ │ ├── Modal.php.txt │ │ ├── Navbar.html │ │ ├── Navbar.php.txt │ │ ├── Navigation.html │ │ ├── Navigation.php.txt │ │ ├── Panel.html │ │ ├── Panel.php.txt │ │ ├── ProgressBar.html │ │ ├── ProgressBar.php.txt │ │ ├── RenderedObject.html │ │ ├── RenderedObject.php.txt │ │ ├── Tabbable.html │ │ ├── Tabbable.php.txt │ │ ├── Table.html │ │ ├── Table.php.txt │ │ ├── Thumbnail.html │ │ ├── Thumbnail.php.txt │ │ ├── config%2Fconfig.php.txt │ │ └── config.config.html │ ├── font/ │ │ └── FontAwesome.otf │ ├── graph_class.html │ ├── graphs/ │ │ └── class.html │ ├── images/ │ │ └── iviewer/ │ │ ├── grab.cur │ │ └── hand.cur │ ├── img/ │ │ └── iviewer/ │ │ ├── grab.cur │ │ └── hand.cur │ ├── index.html │ ├── js/ │ │ ├── SVGPan.js │ │ ├── bootstrap.js │ │ ├── html5.js │ │ ├── jqplot/ │ │ │ ├── MIT-LICENSE.txt │ │ │ ├── README.txt │ │ │ ├── changes.txt │ │ │ ├── copyright.txt │ │ │ └── gpl-2.0.txt │ │ ├── jquery.cookie.js │ │ ├── jquery.dotdotdot-1.5.9.js │ │ ├── jquery.iviewer.js │ │ ├── jquery.mousewheel.js │ │ ├── jquery.panzoom.js │ │ ├── jquery.smooth-scroll.js │ │ ├── jquery.splitter.js │ │ ├── jquery.treeview.js │ │ ├── jquery.xml2json.js │ │ ├── menu.js │ │ ├── prettify/ │ │ │ ├── lang-apollo.js │ │ │ ├── lang-clj.js │ │ │ ├── lang-css.js │ │ │ ├── lang-go.js │ │ │ ├── lang-hs.js │ │ │ ├── lang-lisp.js │ │ │ ├── lang-lua.js │ │ │ ├── lang-ml.js │ │ │ ├── lang-n.js │ │ │ ├── lang-proto.js │ │ │ ├── lang-scala.js │ │ │ ├── lang-sql.js │ │ │ ├── lang-tex.js │ │ │ ├── lang-vb.js │ │ │ ├── lang-vhdl.js │ │ │ ├── lang-wiki.js │ │ │ ├── lang-xq.js │ │ │ └── lang-yaml.js │ │ ├── sidebar.js │ │ └── template.js │ ├── markers.html │ ├── namespaces/ │ │ ├── Bootstrapper.Exceptions.html │ │ ├── Bootstrapper.Facades.html │ │ ├── Bootstrapper.html │ │ └── default.html │ ├── packages/ │ │ ├── Bootstrapper.Exceptions.html │ │ ├── Bootstrapper.Facades.html │ │ ├── Bootstrapper.html │ │ ├── Default.html │ │ └── global.html │ ├── reports/ │ │ ├── deprecated.html │ │ ├── errors.html │ │ └── markers.html │ └── structure.xml ├── phpspec.yml ├── src/ │ ├── Bootstrapper/ │ │ ├── Accordion.php │ │ ├── Alert.php │ │ ├── Attributes.php │ │ ├── Badge.php │ │ ├── BootstrapperL5ServiceProvider.php │ │ ├── Breadcrumb.php │ │ ├── Bridges/ │ │ │ └── Config/ │ │ │ ├── ConfigInterface.php │ │ │ ├── Laravel4Config.php │ │ │ └── Laravel5Config.php │ │ ├── Button.php │ │ ├── ButtonGroup.php │ │ ├── Carousel.php │ │ ├── ControlGroup.php │ │ ├── DropdownButton.php │ │ ├── Exceptions/ │ │ │ ├── AccordionException.php │ │ │ ├── ButtonGroupException.php │ │ │ ├── CarouselException.php │ │ │ ├── ControlGroupException.php │ │ │ ├── IconException.php │ │ │ ├── ImageException.php │ │ │ ├── MediaObjectException.php │ │ │ ├── ModalException.php │ │ │ └── ThumbnailException.php │ │ ├── Facades/ │ │ │ ├── Accordion.php │ │ │ ├── Alert.php │ │ │ ├── Badge.php │ │ │ ├── BootstrapperFacade.php │ │ │ ├── Breadcrumb.php │ │ │ ├── Button.php │ │ │ ├── ButtonGroup.php │ │ │ ├── Carousel.php │ │ │ ├── ControlGroup.php │ │ │ ├── DropdownButton.php │ │ │ ├── Form.php │ │ │ ├── Helpers.php │ │ │ ├── Icon.php │ │ │ ├── Image.php │ │ │ ├── InputGroup.php │ │ │ ├── Label.php │ │ │ ├── MediaObject.php │ │ │ ├── Modal.php │ │ │ ├── Navbar.php │ │ │ ├── Navigation.php │ │ │ ├── Panel.php │ │ │ ├── ProgressBar.php │ │ │ ├── Tabbable.php │ │ │ ├── Table.php │ │ │ └── Thumbnail.php │ │ ├── Form.php │ │ ├── Helpers.php │ │ ├── Icon.php │ │ ├── Image.php │ │ ├── InputGroup.php │ │ ├── Interfaces/ │ │ │ └── TableInterface.php │ │ ├── Label.php │ │ ├── MediaObject.php │ │ ├── Modal.php │ │ ├── Navbar.php │ │ ├── Navigation.php │ │ ├── Panel.php │ │ ├── ProgressBar.php │ │ ├── RenderedObject.php │ │ ├── Tabbable.php │ │ ├── Table.php │ │ └── Thumbnail.php │ └── config/ │ ├── bootstrapper.php │ └── config.php └── tests/ ├── DummyClasses/ │ ├── Bridges/ │ │ └── Config/ │ │ └── ConfigInterface.php │ └── RenderedObject.php └── spec/ ├── Bootstrapper/ │ ├── AccordionSpec.php │ ├── AlertSpec.php │ ├── AttributesSpec.php │ ├── BadgeSpec.php │ ├── BootstrapperL5ServiceProviderSpec.php │ ├── BreadcrumbSpec.php │ ├── Bridges/ │ │ └── Config/ │ │ ├── Laravel4ConfigSpec.php │ │ └── Laravel5ConfigSpec.php │ ├── ButtonGroupSpec.php │ ├── ButtonSpec.php │ ├── CarouselSpec.php │ ├── ControlGroupSpec.php │ ├── DropdownButtonSpec.php │ ├── FormSpec.php │ ├── HelpersSpec.php │ ├── IconSpec.php │ ├── ImageSpec.php │ ├── InputGroupSpec.php │ ├── LabelSpec.php │ ├── MediaObjectSpec.php │ ├── ModalSpec.php │ ├── NavbarSpec.php │ ├── NavigationSpec.php │ ├── PanelSpec.php │ ├── ProgressBarSpec.php │ ├── TabbableSpec.php │ ├── TableSpec.php │ └── ThumbnailSpec.php └── DummyClasses/ ├── Bridges/ │ └── Config/ │ └── ConfigInterfaceSpec.php └── RenderedObjectSpec.php ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ /tests export-ignore /.gitattributes export-ignore /.gitignore export-ignore /.travis.yml export-ignore /phpspec.xml export-ignore /CONTRIBUTING.md export-ignore /docs export-ignore ================================================ FILE: .gitignore ================================================ vendor/ .idea/ ================================================ FILE: .travis.yml ================================================ language: php php: - 7.2 - 7.3 - 7.4 - 8.0 before_install: - travis_retry composer self-update - travis_retry composer update --no-interaction --prefer-dist script: - vendor/bin/phpspec run - vendor/bin/phpcs --standard=PSR2 src ================================================ FILE: CHANGELOG.md ================================================ Bootstrapper ------------ 5.3.0 ===== * Add `Table::withFooter()` * `Table::setType()` is now fluid 5.2.0 ===== * Add docblocks * `withAttributes` is now a method on the `RenderedObject` class * `Helpers::generateId()` created, to generate unique ids per object 5.0.0 ===== * Rewrite application to use facades * Require Laravel 4.2 (and thus PHP 5.4) * Change test suite to use PHPSpec * Update to use PSR-4 * Remove Form::append* etc in favour of an InputGroup class * Remove Form::control_group in favour of a ControlGroup class * Rename Progress to ProgressBar 4.0.0 ===== - Compatibility with Laravel 4 - _more_ ================================================ FILE: CONTRIBUTING.md ================================================ Contributor's Guide =================== If you're reading this you're probably interested in contributing to ``bootstrapper``. First, I'd like to say: thank you! Projects like this one live-and-die based on the support they receive from others, and the fact that you're even *considering* supporting ``bootstrapper`` is incredibly generous of you. This document lays out guidelines and advice for contributing to ``bootstrapper``. If you're thinking of contributing, start by reading this thoroughly and getting a feel for how contributing to the project works. If you've still got questions after reading this, you should go ahead and contact Patrick (on [Twitter](http://twitter.com/DrugCrazed), or via [email](mailto:pjr0911025+github@googlemail.com)) The guide is split into sections based on the type of contribution you're thinking of making, with a section that covers general guidelines for all contributors. All Contributions ----------------- ### Be Cordial Or Be On Your Way ### ``bootstrapper`` has one very important guideline governing all forms of contribution, including things like reporting bugs or requesting features. The guideline is [be cordial or be on your way](http://kennethreitz.org/be-cordial-or-be-on-your-way/). **All contributions are welcome**, but they come with an implicit social contract: everyone must be treated with respect. This can be a difficult area to judge, so the maintainer will enforce the following policy. If any contributor acts rudely or aggressively towards any other contributor, **regardless of whether they perceive themselves to be acting in retaliation for an earlier breach of this guideline**, they will be subject to the following steps: 1. They must apologise. This apology must be genuine in nature: "I'm sorry you were offended" is not sufficient. The judgement of 'genuine' is at the discretion of the maintainer. 2. If the apology is not offered, any outstanding and future contributions from the violating contributor will be rejected immediately. Everyone involved in the ``bootstrapper`` project, the maintainer included, is bound by this policy. Failing to abide by it leads to the offender being kicked off the project. #### Get Early Feedback #### If you are contributing, do not feel the need to sit on your contribution until it is perfectly polished and complete. It helps everyone involved for you to seek feedback as early as you possibly can. Submitting an early, unfinished version of your contribution for feedback in no way prejudices your chances of getting that contribution accepted, and can save you from putting a lot of work into a contribution that is not suitable for the project. ### Contribution Suitability ### The project maintainer has the last word on whether or not a contribution is suitable for ``bootstrapper``. All contributions will be considered, but from time to time contributions will be rejected because they do not suit the project. If your contribution is rejected, don't despair! So long as you followed these guidelines, you'll have a much better chance of getting your next contribution accepted. Code Contributions ------------------ ### Steps ### When contributing code, you'll want to follow this checklist: 1. Fork the repository on GitHub 2. Create yourself a new feature branch for your new feature, branching from the `develop` branch. There's no naming convention that you need to follow, but the name should be descriptive (if you're adding dropups to the Button class, a branch name like "dropup-buttons" would be appropriate). Then run `composer install`. 3. Run the tests to confirm they all pass on your system. If they don't, you'll need to investigate why they fail. If you're unable to diagnose this yourself, contact Patrick. 4. Write tests that demonstrate your bug or feature. Ensure that they fail. 5. Make your change. 6. Run the entire test suite again, confirming that all tests pass *including the ones you just added*. 7. Send a GitHub Pull Request to the main repository's ``develop`` branch. GitHub Pull Requests are the expected method of code collaboration on this project. If you object to the GitHub workflow, you may mail a patch to the maintainer. The following sub-sections go into more detail on some of the points above. ### Tests & Code Coverage ### ``bootstrapper`` has a substantial suite of tests. Whenever you contribute, you must write tests that exercise your contributed code, and you must not regress the code coverage. We use ``phpspec`` for our tests, which is installed with Bootstrapper. If you've done this but want to get contributing right away, you can take advantage of the fact that ``bootstrapper`` uses a continuous integration system. This will automatically run the tests against any pull request raised against the main ``bootstrapper`` repository. Before a contribution is merged it must have a green run through the CI system. *Contributions that do not follow this may still be merged, but will invariably take much longer to do so* ### Code Review ### Contributions will not be merged until they've been code reviewed. You should implement any code review feedback unless you strongly object to it. In the event that you object to the code review feedback, you should make your case clearly and calmly. If, after doing so, the feedback is judged to still apply, you must either apply the feedback or withdraw your contribution. The following aren't all necessarily hard and fast rules, but following these guidelines will certainly be helpful. * Follow PSR-2 for your code. The quick rundown - use `camelCase` for your method names, `UpperCamelCase` for your class names, indent with 4 spaces. Most editors have some way of reformatting your code to follow these rules. * Most public methods should be chainable (ie, return `$this`) * New public method names should be chosen to be, for want of a better phrase, "human speakable". Most people will be using Bootstrapper just in their views, and should be able to read off a chained method call to someone with them knowing exactly what the result will be. * Methods should try to be no longer than 30 lines. This is usually enough to fit into the most people's editor window, and means that anyone can skim read the method and know what it does. Documentation Contributions --------------------------- Documentation improvements are always welcome! The documentation files live in the [Bootstrapper Docs repository](https://github.com/PatrickRose/bootstrapper-docs) and are written using Laravel. Bug Reports ----------- Bug reports are hugely important! Before you raise one, though, please check through the [GitHub issues](https://github.com/patricktalmadge/bootstrapper/issues), **both open and closed**, to confirm that the bug hasn't been reported before. Duplicate bug reports are a huge drain on the time of other contributors, and should be avoided as much as possible. Feature Requests ---------------- Feature requests are always welcome, but please note that all the general guidelines for contribution apply. Also note that the importance of a feature request *without* an associated Pull Request is always lower than the importance of one *with* an associated Pull Request: code is more valuable than ideas. ================================================ FILE: README.md ================================================ # Bootstrapper Latest stable version: [![Latest Stable Version](https://poser.pugx.org/patricktalmadge/bootstrapper/v/stable.svg)](https://packagist.org/packages/patricktalmadge/bootstrapper) Travis status : [![Build Status](https://travis-ci.org/patricktalmadge/bootstrapper.svg?branch=develop)](https://travis-ci.org/patricktalmadge/bootstrapper) Current supported Bootstrap version: 3.2.0 Bootstrapper is a set of classes that allow you to quickly create Twitter Bootstrap 3 style markup. ## Installation Add the following to your `composer.json` file : ```json "require": { "patricktalmadge/bootstrapper": "~5", }, ``` or execute ```bash composer require patricktalmadge/bootstrapper ``` Then register Bootstrapper's service provider with Laravel: ```php 'Bootstrapper\BootstrapperServiceProvider', ``` If you are using Laravel 5, then you should instead use the Laravel 5 service provider. ```php 'Bootstrapper\BootstrapperL5ServiceProvider', ``` You can then (if you want to) add the following aliases to your `aliases` array in your `config/app.php` file. ```php 'Accordion' => 'Bootstrapper\Facades\Accordion', 'Alert' => 'Bootstrapper\Facades\Alert', 'Badge' => 'Bootstrapper\Facades\Badge', 'Breadcrumb' => 'Bootstrapper\Facades\Breadcrumb', 'Button' => 'Bootstrapper\Facades\Button', 'ButtonGroup' => 'Bootstrapper\Facades\ButtonGroup', 'Carousel' => 'Bootstrapper\Facades\Carousel', 'ControlGroup' => 'Bootstrapper\Facades\ControlGroup', 'DropdownButton' => 'Bootstrapper\Facades\DropdownButton', 'Form' => 'Bootstrapper\Facades\Form', 'Helpers' => 'Bootstrapper\Facades\Helpers', 'Icon' => 'Bootstrapper\Facades\Icon', 'InputGroup' => 'Bootstrapper\Facades\InputGroup', 'Image' => 'Bootstrapper\Facades\Image', 'Label' => 'Bootstrapper\Facades\Label', 'MediaObject' => 'Bootstrapper\Facades\MediaObject', 'Modal' => 'Bootstrapper\Facades\Modal', 'Navbar' => 'Bootstrapper\Facades\Navbar', 'Navigation' => 'Bootstrapper\Facades\Navigation', 'Panel' => 'Bootstrapper\Facades\Panel', 'ProgressBar' => 'Bootstrapper\Facades\ProgressBar', 'Tabbable' => 'Bootstrapper\Facades\Tabbable', 'Table' => 'Bootstrapper\Facades\Table', 'Thumbnail' => 'Bootstrapper\Facades\Thumbnail', ``` ## Including Bootstrap Include the Bootstrap files just like any other css and js files! Download Bootstrap and JQuery from the [Bootstrap site](http://getbootstrap.com), place them in your public folder and then include them like so: ```php {{ HTML::style('path/to/bootstrap.css') }} {{ HTML::script('path/to/jquery.js') }} {{ HTML::script('path/to/bootstrap.js') }} ``` Feel free to use a CDN, but bear in mind that you may get unexpected functionality if the version you use isn't the version Bootstrapper currently supports (but open an issue to let us know!). ```html ``` If you want to get the latest Bootstrap that Bootstrapper supports, then use the helper function: ```php Helpers::css() Helpers::js() ``` If you want to stick at a certain version then use ``` artisan config:publish patricktalmadge/bootstrapper ``` And update your config file in app/config/packages. We also have Twitter Bootstrap as a dependency, so you can grab the files from your vendor directory. ## Documentation - [Bootstrapper documentation](http://bootstrapper.patrickrosemusic.co.uk/) - [Twitter Bootstrap documentation](http://getbootstrap.com/) - [Twitter Bootstrap on Github](https://github.com/twitter/bootstrap) ## Contributing Contributing is easy! Just fork the repo, make your changes then send a pull request on GitHub. If your PR is languishing in the queue and nothing seems to be happening, then send Patrick an [email](mailto:pjr0911025@googlemail.com) or a [tweet](http://twitter.com/DrugCrazed). ================================================ FILE: composer.json ================================================ { "name": "patricktalmadge/bootstrapper", "description": "Twitter Bootstrap markup generator", "license": "MIT", "keywords": [ "bootstrap", "laravel" ], "authors": [ { "name": "Patrick Talmadge", "email": "ptalmadge@gmail.com" }, { "name": "Maxime Fabre", "email": "ehtnam6@gmail.com" }, { "name": "Patrick Rose", "email": "pjr0911025@gmail.com" } ], "require": { "php": ">=7.2.0", "laravelcollective/html": "^6.2.0", "illuminate/support": "^6.0||^7.0||^8.0", "illuminate/config": "^6.0||^7.0||^8.0", "illuminate/routing": "^6.0||^7.0||^8.0", "twbs/bootstrap": "~3" }, "require-dev": { "mockery/mockery": "~1.3.3||^1.4.2", "phpspec/phpspec": "^6.3|^7.0", "graham-campbell/phpspec-skip-example-extension": "^5.1", "squizlabs/php_codesniffer": "^3.5" }, "autoload": { "psr-4": { "Bootstrapper\\": "src\\Bootstrapper", "DummyClasses\\": "tests\\DummyClasses" } }, "extra": { "laravel": { "providers": [ "Bootstrapper\\BootstrapperL5ServiceProvider" ] } }, "minimum-stability": "stable" } ================================================ FILE: docs/classes/Bootstrapper.Accordion.html ================================================ API Documentation

\BootstrapperAccordion

Creates Bootstrap 3 compliant accordions

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
named()
withContents()
open()
No public properties found
No constants found
No protected methods found
$attributes
$name
$contents
$opened
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$name

$name : String

Type

String — name of the object (used when creating the links)

$contents

$contents : array

Type

array — The contents of the accordion

$opened

$opened : integer

Type

integer — Which panel (if any) should be opened

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the accordion

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

named()

named(  $name) : $this

Name the accordion

Parameters

$name

The name of the accordion

Returns

$this

withContents()

withContents(array  $contents) : $this

Add the contents for the accordion. Should be an array of arrays <strong>Expected Keys</strong>: <ul> <li>title</li> <li>contents</li> <li>attributes (optional)</li> </ul>

Parameters

array $contents

Returns

$this

open()

open(  $integer) : $this

Sets which panel should be opened. Numbering begins from 0.

Parameters

$integer

int

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.Alert.html ================================================ API Documentation

\BootstrapperAlert

Creates Bootstrap 3 compliant alert boxes

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
setType()
info()
success()
warning()
danger()
withContents()
close()
No public properties found
INFO
SUCCESS
WARNING
DANGER
No protected methods found
$attributes
$type
$contents
$closer
N/A
No private methods found
No private properties found
N/A

Constants

INFO

INFO

Constant for info alerts

SUCCESS

SUCCESS

Constant for success alerts

WARNING

WARNING

Constant for warning alerts

DANGER

DANGER

Constant for danger alerts

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type of the alert

$contents

$contents : string

Type

string — The contents of the alert

$closer

$closer : string

Type

string — What should we use to generate a close tag

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the alert

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

setType()

setType(  $type) : $this

Sets the type of the alert. The alert prefix is not assumed.

Parameters

$type

string

Returns

$this

info()

info(string  $contents = '') : $this

Creates an info alert box

Parameters

string $contents

Returns

$this

success()

success(string  $contents = '') : $this

Creates a success alert box

Parameters

string $contents

Returns

$this

warning()

warning(string  $contents = '') : $this

Creates a warning alert box

Parameters

string $contents

Returns

$this

danger()

danger(string  $contents = '') : $this

Creates a danger alert box

Parameters

string $contents

Returns

$this

withContents()

withContents(  $contents) : $this

Sets the contents of the alert box

Parameters

$contents

Returns

$this

close()

close(string  $closer = '&times;') : $this

Adds a close button with the given text

Parameters

string $closer

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.Attributes.html ================================================ API Documentation

\BootstrapperAttributes

Simple attributes bag

Summary

Methods
Properties
Constants
__construct()
__toString()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
addClass()
No public properties found
No constants found
No protected methods found
$attributes
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

The attributes

Type

array

Methods

__construct()

__construct(array  $attributes, array  $defaults = array()) 

Creates a new instance of the attributes

Parameters

array $attributes
array $defaults

__toString()

__toString() : string

Renders the HTML attributes

Returns

string

offsetExists()

offsetExists(mixed  $offset) : boolean

(PHP 5 &gt;= 5.0.0)<br/> Whether a offset exists

Parameters

mixed $offset

An offset to check for.

Returns

boolean —

true on success or false on failure.

                 </p>
                 <p>
                 The return value will be casted to boolean if
                 non-boolean was returned.

offsetGet()

offsetGet(mixed  $offset) : mixed

(PHP 5 &gt;= 5.0.0)<br/> Offset to retrieve

Parameters

mixed $offset

The offset to retrieve.

Returns

mixed —

Can return all value types.

offsetSet()

offsetSet(mixed  $offset, mixed  $value) : void

(PHP 5 &gt;= 5.0.0)<br/> Offset to set

Parameters

mixed $offset

The offset to assign the value to.

mixed $value

The value to set.

offsetUnset()

offsetUnset(mixed  $offset) : void

(PHP 5 &gt;= 5.0.0)<br/> Offset to unset

Parameters

mixed $offset

The offset to unset.

addClass()

addClass(  $class) : $this

Adds to to the class attributes

Parameters

$class

string The class to add

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.Badge.html ================================================ API Documentation

\BootstrapperBadge

Creates Bootstrap 3 compliant Badges

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withContents()
No public properties found
No constants found
No protected methods found
$attributes
$contents
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$contents

$contents : string

Type

string — The contents of the badge

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the badge

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withContents()

withContents(  $contents) : $this

Adds contents to the badge

Parameters

$contents

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.BootstrapperServiceProvider.html ================================================ API Documentation

Methods

register()

register() 

{@inheritdoc}

registerAccordion()

registerAccordion() 

Registers the Accordion class in the IoC

registerAlert()

registerAlert() 

Registers the Alert class in the IoC

registerBadge()

registerBadge() 

Registers the Badge class into the IoC

registerBreadcrumb()

registerBreadcrumb() 

Registers the Breadcrumb class into the IoC

registerButtonGroup()

registerButtonGroup() 

Registers the ButtonGroup class into the IoC

registerButton()

registerButton() 

Registers the Button class into the IoC

registerCarousel()

registerCarousel() 

Registers the Carousel class into the IoC

registerControlGroup()

registerControlGroup() 

Registers the ControlGroup class into the IoC

registerDropdownButton()

registerDropdownButton() 

Registers the DropdownButton class into the IoC

registerFormBuilder()

registerFormBuilder() 

Registers the FormBuilder class into the IoC

registerIcon()

registerIcon() 

Registers the Icon class into the IoC

registerImage()

registerImage() 

Registers the Image class into the IoC

registerInputGroup()

registerInputGroup() 

Registers the InputGroup class into the IoC

registerLabel()

registerLabel() 

Registers the Label class into the IoC

registerHelpers()

registerHelpers() 

Registers the Helpers class into the IoC

registerMediaObject()

registerMediaObject() 

Registers the MediaObject class into the IoC

registerModal()

registerModal() 

Registers the Modal class into the IoC

registerNavbar()

registerNavbar() 

Registers the Navbar class into the IoC

registerNavigation()

registerNavigation() 

Registers the Navigation class into the IoC

registerPanel()

registerPanel() 

Registers the Panel class into the IoC

registerProgressBar()

registerProgressBar() 

Registers the ProgressBar class into the IoC

registerTabbable()

registerTabbable() 

Registers the Tabbable class into the IoC

registerTable()

registerTable() 

Registers the Table class into the IoC

registerThumbnail()

registerThumbnail() 

Registers the Thumbnail class into the IoC

================================================ FILE: docs/classes/Bootstrapper.Breadcrumb.html ================================================ API Documentation

\BootstrapperBreadcrumb

Creates Bootstrap 3 compliant Breadcrumbs

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withLinks()
No public properties found
No constants found
renderLink()
$attributes
$links
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$links

$links : array

Type

array — The links of the breadcrumb

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the breadcrumb

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withLinks()

withLinks(  $links) : $this

Set the links for the breadcrumbs. Expects an array of the following: <ul> <li>An array, with keys <code>link</code> and <code>text</code></li> <li>A string for the active link </ul>

Parameters

$links

array

Returns

$this

renderLink()

renderLink(  $text,   $link) : string

Renders the link

Parameters

$text
$link

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Button.html ================================================ API Documentation

Constants

NORMAL

NORMAL

Constant for default buttons

PRIMARY

PRIMARY

Constant for primary buttons

SUCCESS

SUCCESS

Constant for success buttons

INFO

INFO

Constant for info buttons

WARNING

WARNING

Constant for warning buttons

DANGER

DANGER

Constant for danger buttons

LARGE

LARGE

Constant for large buttons

SMALL

SMALL

Constant for small buttons

EXTRA_SMALL

EXTRA_SMALL

Constant for extra small buttons

BLOCK

BLOCK

Constant for block buttons

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type of the button

$block

$block : boolean

Type

boolean — Whether the button is a block button or not

$value

$value : string

Type

string — The contents of the button

$icon

$icon : string

Type

string — The icon, if one should be used

$size

$size : string

Type

string — The size of the button

$disabled

$disabled : boolean

Type

boolean — Whether the button should be disabled

$appendIcon

$appendIcon : boolean

Type

boolean — True if the icon should be after the text

$url

$url : string

Type

string — The url to link to if this is link button

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the button

Returns

string —

as a string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

setType()

setType(  $type) 

Sets the type of the button

Parameters

$type

string The new type of the button. Assumes that the btn-

         prefix is there

setSize()

setSize(  $size) 

Sets the size of the button

Parameters

$size

string The new size of the button. Assumes that the btn-

         prefix is there

normal()

normal(string  $contents = '') : \Bootstrapper\Button

Creates a button with class .btn-default and the given contents

Parameters

string $contents

The contents of the button The contents of the

                    button

Returns

\Bootstrapper\Button

primary()

primary(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-primary and the given contents

Parameters

string $contents

The contents of the button The contents of the

                    button

Returns

\Bootstrapper\Button

success()

success(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-success and the given contents

Parameters

string $contents

The contents of the button The contents of the

                    button

Returns

\Bootstrapper\Button

info()

info(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-info and the given contents

Parameters

string $contents

The contents of the button

Returns

\Bootstrapper\Button

warning()

warning(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-warning and the given contents

Parameters

string $contents

The contents of the button

Returns

\Bootstrapper\Button

danger()

danger(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-danger and the given contents

Parameters

string $contents

The contents of the button

Returns

\Bootstrapper\Button

link()

link(string  $contents = '') : \Bootstrapper\Button

Creates an button with class .btn-link and the given contents

Parameters

string $contents

The contents of the button

Returns

\Bootstrapper\Button

block()

block() : $this

Sets the button to be a block button

Returns

$this

submit()

submit() : $this

Makes the button a submit button

Returns

$this

reset()

reset() : $this

Makes the button a reset button

Returns

$this

withValue()

withValue(  $value = '') : $this

Sets the value of the button

Parameters

$value

string The new value of the button

Returns

$this

large()

large() : $this

Sets the button to be a large button

Returns

$this

small()

small() : $this

Sets the button to be a small button

Returns

$this

extraSmall()

extraSmall() : $this

Sets the button to be an extra small button

Returns

$this

addAttributes()

addAttributes(array  $attributes) : $this

More descriptive version of withAttributes

Parameters

array $attributes

The attributes to add

Returns

$this

disable()

disable() : $this

Disables the button

Returns

$this

withIcon()

withIcon(  $icon, boolean  $append = true) : $this

Adds an icon to the button

Parameters

$icon

string The icon to add

boolean $append

Whether the icon should be added after the text or

                before

Returns

$this

appendIcon()

appendIcon(  $icon) : $this

Descriptive version of withIcon(). Adds the icon after the text

Parameters

$icon

string The icon to add

Returns

$this

prependIcon()

prependIcon(  $icon) : $this

Descriptive version of withIcon(). Adds the icon before the text

Parameters

$icon

string The icon to add

Returns

$this

asLinkTo()

asLinkTo(  $url) : $this

Adds a url to the button, making it a link. This will generate an <a> tag

Parameters

$url

string The url to link to

Returns

$this

getType()

getType() : string

Get the type of the button

Returns

string

getValue()

getValue() : string

Get the value of the button. Does not return the value with the icon

Returns

string

getAttributes()

getAttributes() : array

Gets the attributes of the button

Returns

array

getValueWithIcon()

getValueWithIcon() : string

Gets the value with the icon

Returns

string —

The new value

================================================ FILE: docs/classes/Bootstrapper.ButtonGroup.html ================================================ API Documentation

\BootstrapperButtonGroup

Creates Bootstrap 3 compliant Button Groups

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
setSize()
large()
small()
extraSmall()
radio()
checkbox()
withContents()
vertical()
asType()
renderContents()
No public properties found
LARGE
SMALL
EXTRA_SMALL
NORMAL
PRIMARY
SUCCESS
INFO
WARNING
DANGER
RADIO
CHECKBOX
No protected methods found
$attributes
$contents
$type
$vertical
$size
N/A
No private methods found
No private properties found
N/A

Constants

LARGE

LARGE

Constant for large button groups

SMALL

SMALL

Constant for small button groups

EXTRA_SMALL

EXTRA_SMALL

Constant for extra small button groups

NORMAL

NORMAL

Constant for normal buttons

PRIMARY

PRIMARY

Constant for primary buttons

SUCCESS

SUCCESS

Constant for success buttons

INFO

INFO

Constant for info buttons

WARNING

WARNING

Constant for warning buttons

DANGER

DANGER

Constant for danger buttons

RADIO

RADIO

Constant for radio buttons

CHECKBOX

CHECKBOX

Constant for checkbox buttons

Properties

$attributes

$attributes : array

Type

array

$contents

$contents : array

Type

array — The contents of the button group

$type

$type : string

Type

string — The type of the button

$vertical

$vertical : boolean

Type

boolean — Whether the dropdown should be vertical or not

$size

$size : \Bootstrapper\The

Type

\Bootstrapper\The — size of the button

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the button group

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

setSize()

setSize(  $size) 

Sets the size of the button group

Parameters

$size

large()

large() : $this

Sets the button group to be large

Returns

$this

small()

small() : $this

Sets the button group to be small

Returns

$this

extraSmall()

extraSmall() : $this

Sets the button group to be extra small

Returns

$this

radio()

radio(array  $contents) : $this

Sets the button group to be radio

Parameters

array $contents

Returns

$this

checkbox()

checkbox(array  $contents) : $this

Sets the button group to be a checkbox

Parameters

array $contents

Returns

$this

withContents()

withContents(array  $contents) : $this

Sets the contents of the button group

Parameters

array $contents

Returns

$this

vertical()

vertical() : $this

Sets the button group to be vertical

Returns

$this

asType()

asType(  $type) : $this

Sets the type of the button group

Parameters

$type

Returns

$this

renderContents()

renderContents() : string

Renders the contents of the button group

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Carousel.html ================================================ API Documentation

\BootstrapperCarousel

Creates Bootstrap 3 compliant carousels

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
named()
withContents()
No public properties found
No constants found
renderIndicators()
renderItems()
renderControls()
$attributes
$name
$contents
$active
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$name

$name : string

Type

string — The name of the carousel

$contents

$contents : array

Type

array — The contents of the carousel. Should be an array of arrays, with the inner arrays having the following keys: <dl><dt>image</dt><dd>A path to the image</dd> <dt>alt</dt><dd>The alt text for the image</dd> <dt>caption (optional)</dt><dd>The caption for that slide</dd></dl>

$active

$active : integer

Type

integer — Which slide should be active at the beginning

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the carousel

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

named()

named(string  $name) : $this

Names the carousel

Parameters

string $name

The name of the carousel

Returns

$this

withContents()

withContents(array  $contents) : $this

Sets the contents of the carousel

Parameters

array $contents

The new contents. Should be an array of arrays,

                   with the inner keys being "image", "alt" and
                   (optionally) "caption"

Returns

$this

renderIndicators()

renderIndicators() : string

Renders the indicators

Returns

string

renderItems()

renderItems() : string

Renders the items of the carousel

Returns

string

renderControls()

renderControls() : string

Renders the controls of the carousel

Returns

string
================================================ FILE: docs/classes/Bootstrapper.ControlGroup.html ================================================ API Documentation

\BootstrapperControlGroup

Creates Bootstrap 3 compliant control groups (for forms)

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
__construct()
withContents()
withLabel()
withHelp()
generate()
renderLabel()
createControlDiv()
No public properties found
No constants found
renderArrayContents()
sizesAreInvalid()
sizeIsInvalid()
$attributes
$contents
$controlSize
$label
$labelSize
$help
$formBuilder
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$contents

$contents : array

Type

array — The contents of the control groups

$controlSize

$controlSize : string

Type

string — The size of the control group

$label

$label : string

Type

string — The label of control group

$labelSize

$labelSize : string

Type

string — The size of the label

$help

$help : string

Type

string — The help text for the input

$formBuilder

$formBuilder : \Bootstrapper\Form

Type

\Bootstrapper\Form — Laravel's form builder

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the control group

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the control group

Parameters

array $attributes

The attributes array

Returns

$this

__construct()

__construct(\Bootstrapper\Form  $formBuilder) 

Creates a new instance of the ControlGroup

Parameters

\Bootstrapper\Form $formBuilder

An instance of the Bootstrapper form builder

withContents()

withContents(string  $contents, null  $controlSize = null) : $this

Adds the contents to the control group

Parameters

string $contents

The contents of the control group

null $controlSize

|int The size of the form control

Throws

\Bootstrapper\Exceptions\ControlGroupException

If is $controlSize set and not between 1

                       and 12

Returns

$this

withLabel()

withLabel(string  $label, null  $labelSize = null) : $this

Sets the label of the control group

Parameters

string $label

The label

null $labelSize

|int The size of the label

Throws

\Bootstrapper\Exceptions\ControlGroupException

If is $labelSize set and not between 1

                     and 12

Returns

$this

withHelp()

withHelp(string  $help) : $this

Adds a help block

Parameters

string $help

The help information

Returns

$this

generate()

generate(string  $label, string  $control, string  $help = null, integer  $labelSize = null, integer  $controlSize = null) : $this

Generates a full control group with a label, control and help block

Parameters

string $label

The label

string $control

The form control

string $help

The help text

integer $labelSize

The size of the label

integer $controlSize

The size of the form control

Throws

\Bootstrapper\Exceptions\ControlGroupException

if the sizes are invalid

Returns

$this

renderLabel()

renderLabel() : string

Renders the label

Returns

string

createControlDiv()

createControlDiv() : string

Creates the div to surround the form control

Returns

string

renderArrayContents()

renderArrayContents() : string

Renders the contents if given as an array

Returns

string

sizesAreInvalid()

sizesAreInvalid(integer  $labelSize = null, integer  $controlSize = null) : boolean

Checks if both the label size and control size are invalid

Parameters

integer $labelSize

The size of the label

integer $controlSize

The size of the control group

Returns

boolean

sizeIsInvalid()

sizeIsInvalid(integer  $size) : boolean

Checks if the size is invalid

Parameters

integer $size

The size

Returns

boolean —

True if the size is below 1 or greater than 11,

             false otherwise
================================================ FILE: docs/classes/Bootstrapper.DropdownButton.html ================================================ API Documentation

Constants

DIVIDER

DIVIDER

Divider constant

PRIMARY

PRIMARY

Constant for primary buttons

DANGER

DANGER

Constant for danger buttons

WARNING

WARNING

Constant for warning buttons

SUCCESS

SUCCESS

Constant for success buttons

NORMAL

NORMAL

Constant for default buttons

INFO

INFO

Constant for info buttons

LARGE

LARGE

Constant for large buttons

SMALL

SMALL

Constant for small buttons

EXTRA_SMALL

EXTRA_SMALL

Constant for extra small buttons

Properties

$attributes

$attributes : array

Type

array

$label

$label : string

Type

string — The label for this button

$contents

$contents : array

Type

array — The contents of the dropdown button

$type

$type : string

Type

string — The type of the button

$size

$size : string

Type

string — The size of the button

$split

$split : boolean

Type

boolean — Whether the drop icon should be a seperate button

$dropup

$dropup : boolean

Type

boolean — Whether the button should drop up

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the dropdown button

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

labelled()

labelled(  $label) : $this

Set the label of the button

Parameters

$label

Returns

$this

withContents()

withContents(array  $contents) : $this

Set the contents of the button

Parameters

array $contents

The contents of the dropdown button

Returns

$this

setType()

setType(string  $type) : $this

Sets the type of the button

Parameters

string $type

The type of the button

Returns

$this

setSize()

setSize(string  $size) : $this

Sets the size of the button

Parameters

string $size

The size of the button

Returns

$this

split()

split() : $this

Splits the button

Returns

$this

dropup()

dropup() : $this

Sets the button to drop up

Returns

$this

normal()

normal(string  $label = '') : $this

Creates a normal dropdown button

Parameters

string $label

The label

Returns

$this

primary()

primary(string  $label = '') : $this

Creates a primary dropdown button

Parameters

string $label

The label

Returns

$this

danger()

danger(string  $label = '') : $this

Creates a danger dropdown button

Parameters

string $label

The label

Returns

$this

warning()

warning(string  $label = '') : $this

Creates a warning dropdown button

Parameters

string $label

The label

Returns

$this

success()

success(string  $label = '') : $this

Creates a success dropdown button

Parameters

string $label

The label

Returns

$this

info()

info(string  $label = '') : $this

Creates a info dropdown button

Parameters

string $label

The label

Returns

$this

large()

large() : $this

Sets the size to large

Returns

$this

small()

small() : $this

Sets the size to small

Returns

$this

extraSmall()

extraSmall() : $this

Sets the size to extra small

Returns

$this

renderItems()

renderItems() : string

Render the inner items

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Exceptions.AccordionException.html ================================================ API Documentation

\Bootstrapper\ExceptionsAccordionException

Exceptions for Accordion class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.CarouselException.html ================================================ API Documentation

\Bootstrapper\ExceptionsCarouselException

Exceptions thrown by the Carousel Class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.ControlGroupException.html ================================================ API Documentation

\Bootstrapper\ExceptionsControlGroupException

Exception for use in the ControlGroup Class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.ImageException.html ================================================ API Documentation

\Bootstrapper\ExceptionsImageException

Exceptions for the Image class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.MediaObjectException.html ================================================ API Documentation

\Bootstrapper\ExceptionsMediaObjectException

Exceptions for the MediaObject class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.ModalException.html ================================================ API Documentation

\Bootstrapper\ExceptionsModalException

ModalException for use in Modals

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
================================================ FILE: docs/classes/Bootstrapper.Exceptions.ThumbnailException.html ================================================ API Documentation

\Bootstrapper\ExceptionsThumbnailException

Exception used by the Thumbnail class

Summary

Methods
Properties
Constants
imageNotSpecified()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

================================================ FILE: docs/classes/Bootstrapper.Facades.Accordion.html ================================================ API Documentation

\Bootstrapper\FacadesAccordion

Facade for Accordions

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Alert.html ================================================ API Documentation

\Bootstrapper\FacadesAlert

Facade for Bootstrapper Alerts

Summary

Methods
Properties
Constants
__callStatic()
$instances
INFO
SUCCESS
WARNING
DANGER
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

INFO

INFO

SUCCESS

SUCCESS

WARNING

WARNING

DANGER

DANGER

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Badge.html ================================================ API Documentation

\Bootstrapper\FacadesBadge

Facade for Bootstrapper Badges

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.BootstrapperFacade.html ================================================ API Documentation

\Bootstrapper\FacadesBootstrapperFacade

Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
No protected methods found
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Breadcrumb.html ================================================ API Documentation

\Bootstrapper\FacadesBreadcrumb

Facade for the Breadcrumb class

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Button.html ================================================ API Documentation

\Bootstrapper\FacadesButton

Facade for Button class

Summary

Methods
Properties
Constants
__callStatic()
$instances
PRIMARY
SUCCESS
INFO
WARNING
DANGER
LINK
LARGE
SMALL
EXTRA_SMALL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

PRIMARY

PRIMARY

SUCCESS

SUCCESS

INFO

INFO

WARNING

WARNING

DANGER

DANGER

LARGE

LARGE

SMALL

SMALL

EXTRA_SMALL

EXTRA_SMALL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.ButtonGroup.html ================================================ API Documentation

\Bootstrapper\FacadesButtonGroup

Facade for ButtonGroup

Summary

Methods
Properties
Constants
__callStatic()
$instances
LARGE
SMALL
EXTRA_SMALL
NORMAL
PRIMARY
SUCCESS
INFO
WARNING
DANGER
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

LARGE

LARGE

SMALL

SMALL

EXTRA_SMALL

EXTRA_SMALL

NORMAL

NORMAL

PRIMARY

PRIMARY

SUCCESS

SUCCESS

INFO

INFO

WARNING

WARNING

DANGER

DANGER

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Carousel.html ================================================ API Documentation

\Bootstrapper\FacadesCarousel

Facade for Bootstrapper Carousel

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.ControlGroup.html ================================================ API Documentation

\Bootstrapper\FacadesControlGroup

Facade for Control Groups

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.DropdownButton.html ================================================ API Documentation

\Bootstrapper\FacadesDropdownButton

Facade for DropdownButton class

Summary

Methods
Properties
Constants
__callStatic()
$instances
DIVIDER
PRIMARY
DANGER
WARNING
SUCCESS
INFO
LARGE
SMALL
EXTRA_SMALL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

DIVIDER

DIVIDER

PRIMARY

PRIMARY

DANGER

DANGER

WARNING

WARNING

SUCCESS

SUCCESS

INFO

INFO

LARGE

LARGE

SMALL

SMALL

EXTRA_SMALL

EXTRA_SMALL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Form.html ================================================ API Documentation

\Bootstrapper\FacadesForm

Facade for Form

Summary

Methods
Properties
Constants
No public methods found
No public properties found
FORM_HORIZONTAL
FORM_INLINE
FORM_SUCCESS
FORM_WARNING
FORM_ERROR
INPUT_LARGE
getFacadeAccessor()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

FORM_HORIZONTAL

FORM_HORIZONTAL

FORM_INLINE

FORM_INLINE

FORM_SUCCESS

FORM_SUCCESS

FORM_WARNING

FORM_WARNING

FORM_ERROR

FORM_ERROR

INPUT_LARGE

INPUT_LARGE

Methods

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Facades.Helpers.html ================================================ API Documentation

\Bootstrapper\FacadesHelpers

Facade for the helpers class

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Icon.html ================================================ API Documentation

\Bootstrapper\FacadesIcon

Facade for Icon class

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
getFacadeAccessor()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Facades.Image.html ================================================ API Documentation

\Bootstrapper\FacadesImage

Facade for Image class

Summary

Methods
Properties
Constants
__callStatic()
$instances
IMAGE_RESPONSIVE
IMAGE_ROUNDED
IMAGE_CIRCLE
IMAGE_THUMBNAIL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

IMAGE_RESPONSIVE

IMAGE_RESPONSIVE

IMAGE_ROUNDED

IMAGE_ROUNDED

IMAGE_CIRCLE

IMAGE_CIRCLE

IMAGE_THUMBNAIL

IMAGE_THUMBNAIL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.InputGroup.html ================================================ API Documentation

\Bootstrapper\FacadesInputGroup

Facade for InputGroup class

Summary

Methods
Properties
Constants
__callStatic()
$instances
LARGE
SMALL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

LARGE

LARGE

SMALL

SMALL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Label.html ================================================ API Documentation

\Bootstrapper\FacadesLabel

Facade for the Label class

Summary

Methods
Properties
Constants
__callStatic()
$instances
LABEL_PRIMARY
LABEL_SUCCESS
LABEL_INFO
LABEL_WARNING
LABEL_DANGER
LABEL_DEFAULT
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

LABEL_PRIMARY

LABEL_PRIMARY

LABEL_SUCCESS

LABEL_SUCCESS

LABEL_INFO

LABEL_INFO

LABEL_WARNING

LABEL_WARNING

LABEL_DANGER

LABEL_DANGER

LABEL_DEFAULT

LABEL_DEFAULT

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.MediaObject.html ================================================ API Documentation

\Bootstrapper\FacadesMediaObject

Facade for MediaObject class

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Modal.html ================================================ API Documentation

\Bootstrapper\FacadesModal

Facade for the Modal class

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Navbar.html ================================================ API Documentation

\Bootstrapper\FacadesNavbar

Facade for Navbar class

Summary

Methods
Properties
Constants
__callStatic()
$instances
NAVBAR_INVERSE
NAVBAR_STATIC
NAVBAR_TOP
NAVBAR_BOTTOM
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

NAVBAR_INVERSE

NAVBAR_INVERSE

NAVBAR_STATIC

NAVBAR_STATIC

NAVBAR_TOP

NAVBAR_TOP

NAVBAR_BOTTOM

NAVBAR_BOTTOM

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Navigation.html ================================================ API Documentation

\Bootstrapper\FacadesNavigation

Facade for the Navigation class

Summary

Methods
Properties
Constants
__callStatic()
$instances
NAVIGATION_PILLS
NAVIGATION_TABS
NAVIGATION_NAVBAR
NAVIGATION_DIVIDER
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

NAVIGATION_PILLS

NAVIGATION_PILLS

NAVIGATION_TABS

NAVIGATION_TABS

NAVIGATION_NAVBAR

NAVIGATION_NAVBAR

NAVIGATION_DIVIDER

NAVIGATION_DIVIDER

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Panel.html ================================================ API Documentation

\Bootstrapper\FacadesPanel

Facade for the Panel class

Summary

Methods
Properties
Constants
__callStatic()
$instances
PRIMARY
SUCCESS
INFO
WARNING
DANGER
NORMAL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

PRIMARY

PRIMARY

SUCCESS

SUCCESS

INFO

INFO

WARNING

WARNING

DANGER

DANGER

NORMAL

NORMAL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.ProgressBar.html ================================================ API Documentation

\Bootstrapper\FacadesProgressBar

Facade for ProgressBar

Summary

Methods
Properties
Constants
__callStatic()
$instances
PROGRESS_BAR_SUCCESS
PROGRESS_BAR_INFO
PROGRESS_BAR_WARNING
PROGRESS_BAR_DANGER
PROGRESS_BAR_NORMAL
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

PROGRESS_BAR_SUCCESS

PROGRESS_BAR_SUCCESS

PROGRESS_BAR_INFO

PROGRESS_BAR_INFO

PROGRESS_BAR_WARNING

PROGRESS_BAR_WARNING

PROGRESS_BAR_DANGER

PROGRESS_BAR_DANGER

PROGRESS_BAR_NORMAL

PROGRESS_BAR_NORMAL

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Tabbable.html ================================================ API Documentation

\Bootstrapper\FacadesTabbable

Facade for Tabbable class

Summary

Methods
Properties
Constants
__callStatic()
$instances
PILL
TAB
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

PILL

PILL

TAB

TAB

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Table.html ================================================ API Documentation

\Bootstrapper\FacadesTable

Facade for the Table class

Summary

Methods
Properties
Constants
__callStatic()
$instances
TABLE_STRIPED
TABLE_BORDERED
TABLE_HOVER
TABLE_CONDENSED
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Constants

TABLE_STRIPED

TABLE_STRIPED

TABLE_BORDERED

TABLE_BORDERED

TABLE_HOVER

TABLE_HOVER

TABLE_CONDENSED

TABLE_CONDENSED

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Facades.Thumbnail.html ================================================ API Documentation

\Bootstrapper\FacadesThumbnail

Facade for Thumbnails

Summary

Methods
Properties
Constants
__callStatic()
$instances
No constants found
getFacadeAccessor()
No protected properties found
N/A
getInstance()
No private properties found
N/A

Properties

$instances

$instances : array

Type

array — A cache of the various instances

Methods

__callStatic()

__callStatic(string  $method, array  $args) : mixed

Calls a static method

Parameters

string $method

The method

array $args

The arguments

Returns

mixed —

A Bootstrapper object

getFacadeAccessor()

getFacadeAccessor() : string

{@inheritdoc}

Returns

string

getInstance()

getInstance(string  $facade) : mixed

Get an instance out of the IoC, or the cached instance

Parameters

string $facade

The facade accessor

Returns

mixed —

The Bootstrapper object

================================================ FILE: docs/classes/Bootstrapper.Form.html ================================================ API Documentation

\BootstrapperForm

Creates Bootstrap 3 compliant forms

Summary

Methods
Properties
Constants
submit()
label()
inline()
horizontal()
validation()
success()
warning()
error()
feedback()
help()
horizontalModel()
inlineModel()
select()
textarea()
password()
text()
email()
datetime()
datetimelocal()
date()
month()
week()
time()
number()
url()
search()
tel()
color()
No public properties found
FORM_HORIZONTAL
FORM_INLINE
FORM_SUCCESS
FORM_WARNING
FORM_ERROR
INPUT_LARGE
FORM_CONTROL
LABEL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

FORM_HORIZONTAL

FORM_HORIZONTAL

Constant for horizontal forms

FORM_INLINE

FORM_INLINE

Constant for inline forms

FORM_SUCCESS

FORM_SUCCESS

Constant for success

FORM_WARNING

FORM_WARNING

Constant for warnings

FORM_ERROR

FORM_ERROR

Constant for errors

INPUT_LARGE

INPUT_LARGE

Constant for large inputs

FORM_CONTROL

FORM_CONTROL

Constant for form controllers

LABEL

LABEL

Constant for labels

Methods

submit()

submit(string|null  $value = null, array  $options = array()) : string

{@inheritdoc}

Parameters

string|null $value

The value of the submit button

array $options

The options

Returns

string

label()

label(string  $name, string|null  $value = null, array  $options = array()) : string

{@inheritdoc}

Parameters

string $name

The name of the object this label will be

                        attached to
string|null $value

The text of the label

array $options

The options of the label

Returns

string

inline()

inline(array  $attributes = array()) : string

Opens an inline form

Parameters

array $attributes

The attributes of the array

Returns

string

horizontal()

horizontal(array  $attributes = array()) : string

Opens a horizontal form

Parameters

array $attributes

Returns

string

validation()

validation(string  $type, string  $label, string  $input, array  $attributes = array()) : string

Creates a validation block

Parameters

string $type

The type of validation

string $label

The label

string $input

The input

array $attributes

The attributes of the validation block

Returns

string

success()

success(string  $label, string  $input, array  $attributes = array()) : string

Creates a success validation block

Parameters

string $label

The label

string $input

The input

array $attributes

The attributes of the validation block

Returns

string

warning()

warning(string  $label, string  $input, array  $attributes = array()) : string

Creates a warning validation block

Parameters

string $label

The label

string $input

The input

array $attributes

The attributes of the validation block

Returns

string

error()

error(string  $label, string  $input, array  $attributes = array()) : string

Creates an error validation block

Parameters

string $label

The label

string $input

The input

array $attributes

The attributes of the validation block

Returns

string

feedback()

feedback(string  $label, string  $input, string  $icon, array  $attributes = array()) : string

Creates a feedback block with an icon

Parameters

string $label

The label

string $input

The input

string $icon

The icon

array $attributes

The attributes of the block

Returns

string

help()

help(string  $helpText, array  $attributes = array()) : string

Creates a help block

Parameters

string $helpText

The help text

array $attributes

Returns

string

horizontalModel()

horizontalModel(mixed  $model, array  $attributes = array()) : string

Opens a horizontal form with a given model

Parameters

mixed $model
array $attributes

Returns

string

inlineModel()

inlineModel(mixed  $model, array  $attributes = array()) : string

Opens a inline form with a given model

Parameters

mixed $model
array $attributes

Returns

string

select()

select(string  $name, array  $list = array(), null  $selected = null, array  $attributes = array()) : string

{@inheritdoc}

Parameters

string $name
array $list
null $selected
array $attributes

Returns

string

textarea()

textarea(string  $name, string|null  $value = null, array  $attributes = array()) : string

{@inheritdoc}

Parameters

string $name

The name of the text area

string|null $value

The default value

array $attributes

The attributes of the text area

Returns

string

password()

password(string  $name, array  $attributes = array()) : string

{@inheritdoc}

Parameters

string $name

The name of the password input

array $attributes

The attributes of the input

Returns

string

text()

text(string  $name, string|null  $value = null, array  $attributes = array()) : string

{@inheritdoc}

Parameters

string $name

The name of the text input

string|null $value

The default value

array $attributes

The attributes of the input

Returns

string

email()

email(string  $name, string|null  $value = null, array  $attributes = array()) : string

{@inheritdoc}

Parameters

string $name

The name of the email input

string|null $value

The default value of the input

array $attributes

The attributes of the email input

Returns

string

datetime()

datetime(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a datetime form element

Parameters

string $name

The name of the element

null $value

The value

array $attributes

The attributes

Returns

string

datetimelocal()

datetimelocal(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a datetime local element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

date()

date(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a date input

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

month()

month(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a month input

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

week()

week(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a week form element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

time()

time(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a time form element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

number()

number(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a number form element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

url()

url(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a url form element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

search()

search(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a search element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

tel()

tel(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a tel element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string

color()

color(string  $name, null  $value = null, array  $attributes = array()) : string

Creates a color element

Parameters

string $name

The name of the element

null $value
array $attributes

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Helpers.html ================================================ API Documentation

\BootstrapperHelpers

Helper class

Summary

Methods
Properties
Constants
__construct()
slug()
css()
js()
generateId()
No public properties found
No constants found
No protected methods found
$config
N/A
No private methods found
$counts
N/A

Properties

$config

$config : \Illuminate\Config\Repository

The config repository

Type

\Illuminate\Config\Repository

$counts

$counts : array

Type

array — The number of times each class has been called

Methods

__construct()

__construct(\Illuminate\Config\Repository  $config) 

Creates a new instance of the helpers class

Parameters

\Illuminate\Config\Repository $config

slug()

slug(string  $string) : mixed

Slugifies a string

Parameters

string $string

Returns

mixed

css()

css(boolean  $withTheme = true) : string

Outputs a link to the Bootstrap CDN

Parameters

boolean $withTheme

Gets the bootstrap theme as well

Returns

string

js()

js() : string

Outputs a link to the Jquery and Bootstrap CDN

Returns

string

generateId()

generateId(\Bootstrapper\RenderedObject  $caller) : string

Generate an id of the form "x-class-name-x". These should always be unique.

Parameters

\Bootstrapper\RenderedObject $caller

The object that called this

Returns

string —

A unique id

================================================ FILE: docs/classes/Bootstrapper.Icon.html ================================================ API Documentation

\BootstrapperIcon

Creates Bootstrap 3 compliant Icons

Summary

Methods
Properties
Constants
__construct()
create()
__call()
No public properties found
No constants found
No protected methods found
$config
N/A
normaliseIconString()
No private properties found
N/A

Properties

$config

$config : \Illuminate\Config\Repository

Type

\Illuminate\Config\Repository — The config repository

Methods

__construct()

__construct(\Illuminate\Config\Repository  $config) 

Creates a new instance of Icon

Parameters

\Illuminate\Config\Repository $config

The config repository

create()

create(string  $icon) : string

Creates a span link with the correct icon link

Parameters

string $icon

The icon name

Returns

string

__call()

__call(  $method,   $parameters) : string

Magic method to create icons. Meaning the $icon->test is the same as $icon->create('test')

Parameters

$method

The icon name

$parameters

The parameters. Not used

Returns

string

normaliseIconString()

normaliseIconString(string  $icon) : string

Replaces underscores with a minus sign, and convert camelCase to dash separated

Parameters

string $icon

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Image.html ================================================ API Documentation

\BootstrapperImage

Creates Bootstrap 3 compliant images

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withSource()
withAlt()
responsive()
rounded()
circle()
thumbnail()
No public properties found
IMAGE_RESPONSIVE
IMAGE_ROUNDED
IMAGE_CIRCLE
IMAGE_THUMBNAIL
No protected methods found
$attributes
$src
$alt
N/A
No private methods found
No private properties found
N/A

Constants

IMAGE_RESPONSIVE

IMAGE_RESPONSIVE

Constant for responsive image

IMAGE_ROUNDED

IMAGE_ROUNDED

Constant for rounded images

IMAGE_CIRCLE

IMAGE_CIRCLE

Constant for circle image

IMAGE_THUMBNAIL

IMAGE_THUMBNAIL

Constant for thumbnail image

Properties

$attributes

$attributes : array

Type

array

$src

$src : string

Type

string — The image source

$alt

$alt : string

Type

string — The alt text for the image

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the image

Throws

\Bootstrapper\Exceptions\ImageException

If the image source is not set

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withSource()

withSource(string  $source) : $this

Sets the source of the image

Parameters

string $source

The source of the image

Returns

$this

withAlt()

withAlt(string  $alt) : $this

Sets the alt text of the image

Parameters

string $alt

The alt text of the image

Returns

$this

responsive()

responsive() : $this

Sets the image to be responsive

Returns

$this

rounded()

rounded(null|string  $src = null, null|string  $alt = null) : $this

Creates a rounded image

Parameters

null|string $src

The source of the image. Pass null to use the

                    previous value of the source
null|string $alt

The alt text of the image. Pass null to use

                    the previous value

Returns

$this

circle()

circle(null|string  $src = null, null|string  $alt = null) : $this

Creates a circle image

Parameters

null|string $src

The source of the image. Pass null to use the

                    previous value of the source
null|string $alt

The alt text of the image. Pass null to use

                    the previous value

Returns

$this

thumbnail()

thumbnail(null|string  $src = null, null|string  $alt = null) : $this

Creates a thumbnail image

Parameters

null|string $src

The source of the image. Pass null to use the

                    previous value of the source
null|string $alt

The alt text of the image. Pass null to use

                    the previous value

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.InputGroup.html ================================================ API Documentation

\BootstrapperInputGroup

Creates Bootstrap 3 compliant input groups (for forms)

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withContents()
setSize()
prepend()
prependButton()
append()
appendButton()
large()
small()
No public properties found
LARGE
SMALL
renderAddon()
$attributes
$size
$append
$prepend
$contents
N/A
No private methods found
No private properties found
N/A

Constants

LARGE

LARGE

Constant for large input groups

SMALL

SMALL

Constant for small input groups

Properties

$attributes

$attributes : array

Type

array

$size

$size : string

Type

string — The size of the input group

$append

$append : array

Type

array — What we should append

$prepend

$prepend : array

Type

array — What we should prepend

$contents

$contents : string

Type

string — The contents of the input group

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the input group

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withContents()

withContents(string  $contents) : $this

Sets the contents of the input group

Parameters

string $contents

The new contents

Returns

$this

setSize()

setSize(string  $size) : $this

Sets the size of the input group

Parameters

string $size

The new size

Returns

$this

prepend()

prepend(string  $prepend, boolean  $isButton = false) : $this

Prepends something to the input

Parameters

string $prepend

The value to prepend

boolean $isButton

Whether the value is a button

Returns

$this

prependButton()

prependButton(string  $button) : $this

Prepend a button

Parameters

string $button

The button to prepend

Returns

$this

append()

append(string  $append, boolean  $isButton = false) : $this

Appends something to the input

Parameters

string $append

The value to append

boolean $isButton

Whether the value is a button

Returns

$this

appendButton()

appendButton(string  $button) : $this

Append a button

Parameters

string $button

The button to append

Returns

$this

large()

large() : $this

Makes the input group large

Returns

$this

small()

small() : $this

Makes the input group small

Returns

$this

renderAddon()

renderAddon(array  $addon) : string

Renders an addon

Parameters

array $addon

The addon to render

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Label.html ================================================ API Documentation

\BootstrapperLabel

Creates bootstrap 3 compliant labels

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withContents()
setType()
primary()
success()
info()
warning()
danger()
create()
normal()
No public properties found
LABEL_PRIMARY
LABEL_SUCCESS
LABEL_INFO
LABEL_WARNING
LABEL_DANGER
LABEL_DEFAULT
No protected methods found
$attributes
$type
$contents
N/A
No private methods found
No private properties found
N/A

Constants

LABEL_PRIMARY

LABEL_PRIMARY

Constant for primary labels

LABEL_SUCCESS

LABEL_SUCCESS

Constant for success labels

LABEL_INFO

LABEL_INFO

Constant for info labels

LABEL_WARNING

LABEL_WARNING

Constant for warning labels

LABEL_DANGER

LABEL_DANGER

Constant for danger labels

LABEL_DEFAULT

LABEL_DEFAULT

Constant for default labels

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type of the label

$contents

$contents : string

Type

string — The contents of the label

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the label

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withContents()

withContents(string  $contents) : $this

Sets the contents of the label

Parameters

string $contents

The new contents of the label

Returns

$this

setType()

setType(string  $type) : $this

Sets the type of the label. Assumes that the label- prefix is already set

Parameters

string $type

The new type

Returns

$this

primary()

primary(string  $contents = '') : $this

Creates a primary label

Parameters

string $contents

The contents of the label

Returns

$this

success()

success(string  $contents = '') : $this

Creates a success label

Parameters

string $contents

The contents of the label

Returns

$this

info()

info(string  $contents = '') : $this

Creates an info label

Parameters

string $contents

The contents of the label

Returns

$this

warning()

warning(string  $contents = '') : $this

Creates a warning label

Parameters

string $contents

The contents of the label

Returns

$this

danger()

danger(string  $contents = '') : $this

Creates a danger label

Parameters

string $contents

The contents of the label

Returns

$this

create()

create(string  $contents, string  $type = self::LABEL_DEFAULT) : $this

Creates a label

Parameters

string $contents

The contents of the label

string $type

The type to use

Returns

$this

normal()

normal(string  $contents = '') : $this

Creates a normal label

Parameters

string $contents

The contents of the label

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.MediaObject.html ================================================ API Documentation

\BootstrapperMediaObject

Creates Bootstrap 3 compliant Media Objects

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withContents()
asList()
No public properties found
No constants found
renderList()
renderItem()
getPosition()
getImage()
getHeading()
getLink()
getBody()
$attributes
$contents
$list
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$contents

$contents : array

Type

array — The contents of the media object

$list

$list : boolean

Type

boolean — Whether the list

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the media object

Throws

\Bootstrapper\Exceptions\MediaObjectException

if there is no contents

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withContents()

withContents(array  $contents) : $this

Sets the contents of the media object

Parameters

array $contents

The contents of the media object

Returns

$this

asList()

asList() : $this

Force the media object to become a list

Returns

$this

renderList()

renderList() : string

Renders a list

Returns

string

renderItem()

renderItem(array  $contents, string  $tag) : string

Renders an item in the string

Parameters

array $contents
string $tag

The tag to wrap the item in

Throws

\Bootstrapper\Exceptions\MediaObjectException

Returns

string

getPosition()

getPosition(array  $contents) : string

Get the position

Parameters

array $contents

Returns

string —

pull-right if the position key equals right. pull-left otherwise

getImage()

getImage(array  $contents, string  $alt) : string

Get the image of the media object

Parameters

array $contents
string $alt

The alt text of the image

Throws

\Bootstrapper\Exceptions\MediaObjectException

if there is no image set

Returns

string

getHeading()

getHeading(array  $contents) : string

Get the heading of the media object

Parameters

array $contents

Returns

string

getLink()

getLink(array  $contents, string  $image, string  $position) : string

Turn the image into a link/div

Parameters

array $contents

The contents array

string $image

The image

string $position

The position

Returns

string

getBody()

getBody(array  $contents) : string

Get the body of the contents array

Parameters

array $contents

Throws

\Bootstrapper\Exceptions\MediaObjectException

if the body key has not been set

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Modal.html ================================================ API Documentation

\BootstrapperModal

Creates Bootstrap 3 compliant modal

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
withTitle()
withBody()
withFooter()
named()
withButton()
No public properties found
No constants found
renderHeader()
renderBody()
renderFooter()
renderButton()
$attributes
$title
$body
$footer
$name
$button
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$title

$title : string

Type

string — The title of the modal

$body

$body : string

Type

string — The body of the modal

$footer

$footer : string

Type

string — The footer of the modal

$name

$name : string

Type

string — The name of the modal

$button

$button : string

Type

string — The button of the modal

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the modal

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

withTitle()

withTitle(string  $title) : $this

Sets the title of the modal

Parameters

string $title

Returns

$this

withBody()

withBody(string  $body) : $this

Sets the body of the modal

Parameters

string $body

The new body of the modal

Returns

$this

withFooter()

withFooter(string  $footer) : $this

Set the footer of the modal

Parameters

string $footer

The footer

Returns

$this

named()

named(string  $name) : $this

Sets the name of the modal

Parameters

string $name

The name of the modal

Returns

$this

withButton()

withButton(\Bootstrapper\Button  $button = null) : $this

Sets the button

Parameters

\Bootstrapper\Button $button

The button to open the modal with

Returns

$this

renderHeader()

renderHeader() : string

Renders the header of the modal

Returns

string

renderBody()

renderBody() : string

Renders the body

Returns

string

renderFooter()

renderFooter() : string

Renders the footer

Returns

string

renderButton()

renderButton(\Bootstrapper\Attributes  $attributes) : string

Renders the button

Parameters

\Bootstrapper\Attributes $attributes

The attributes of the modal

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Navbar.html ================================================ API Documentation

Constants

NAVBAR_INVERSE

NAVBAR_INVERSE

Constant for inverse navbars

NAVBAR_STATIC

NAVBAR_STATIC

Constant for static navbars

NAVBAR_TOP

NAVBAR_TOP

Constant for navbars that are stuck to the top

NAVBAR_BOTTOM

NAVBAR_BOTTOM

Constant for navbars fixed to the bottom

Properties

$attributes

$attributes : array

Type

array

$brand

$brand : string

Type

string — The brand of the navbar

$url

$url : \Illuminate\Routing\UrlGenerator

Type

\Illuminate\Routing\UrlGenerator — A Laravel URL generator

$content

$content : array

Type

array — The content of the array

$type

$type : string

Type

string — The type of the navbar

$position

$position : string

Type

string — The position of the navbar

$fluid

$fluid : boolean

Type

boolean — Whether the content is fluid or not

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the navbar

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

__construct()

__construct(\Illuminate\Routing\UrlGenerator  $url) 

Creates a new Navbar

Parameters

\Illuminate\Routing\UrlGenerator $url

A Laravel URL generator

withBrand()

withBrand(string  $brand, null|string  $link = null) : $this

Sets the brand of the navbar

Parameters

string $brand

The brand

null|string $link

The link. If not set we default to linking to

                      '/' using the UrlGenerator

Returns

$this

withContent()

withContent(mixed  $content) : $this

Adds some content to the navbar

Parameters

mixed $content

Anything that can become a string! If you pass in a

                  Bootstrapper\Navigation object we'll make sure
                  it's a navbar on render.

Returns

$this

inverse()

inverse() : $this

Sets the navbar to be inverse

Returns

$this

staticTop()

staticTop() : $this

Sets the position to top

Returns

$this

setType()

setType(string  $type) : $this

Sets the type of the navbar

Parameters

string $type

The type of the navbar. Assumes that the navbar-

                prefix is there

Returns

$this

setPosition()

setPosition(string  $position) : $this

Sets the position of the navbar

Parameters

string $position

The position of the navbar. Assumes that the

                    navbar- prefix is there

Returns

$this

top()

top() : $this

Sets the position of the navbar to the top

Returns

$this

bottom()

bottom() : $this

Sets the position of the navbar to the bottom

Returns

$this

create()

create(string  $position, array  $attributes = array()) : $this

Creates a navbar with a position and attributes

Parameters

string $position

The position of the navbar

array $attributes

The attributes of the navbar

Returns

$this

fluid()

fluid() : $this

Sets the navbar to be fluid

Returns

$this

renderContent()

renderContent() : string

Renders the inner content

Returns

string

renderHeader()

renderHeader() : string

Renders the header

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Navigation.html ================================================ API Documentation

Constants

NAVIGATION_PILLS

NAVIGATION_PILLS

Constant for navigation pills

NAVIGATION_TABS

NAVIGATION_TABS

Constant for navigation tabs

NAVIGATION_NAVBAR

NAVIGATION_NAVBAR

Constant for navigation elements in the navbar

NAVIGATION_DIVIDER

NAVIGATION_DIVIDER

Constant for navigation dividers

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type

$links

$links : array

Type

array — The links. It should be an array of arrays with the inner array having the following keys: <ul> <li>title - The text to show</li> <li>link - The link</li> <li>active - (optional) Forces the link to be active</li> <li>disabled - (optional) Forces the link to be disabled. Note that active has priority over this</li> <li>linkAttributes - The attributes for the link</li> <li>callback - A callback. If it return a result that is EXACTLY equal to false then the link won't be shown</li> </ul> To create a dropdown, the inner array should instead be [$title, $links], where $links is an array of arrays for links

$url

$url : \Illuminate\Routing\UrlGenerator

Type

\Illuminate\Routing\UrlGenerator — A laravel URL generator

$autoroute

$autoroute : boolean

Type

boolean — Whether we should automatically activate links

$justified

$justified : boolean

Type

boolean — Whether the links are justified or not

$stacked

$stacked : boolean

Type

boolean — Whether the navigation links are stacked or not

$right

$right : boolean

Type

boolean — Whether the navigation links float right or not

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the navigation object

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

__construct()

__construct(\Illuminate\Routing\UrlGenerator  $urlGenerator) 

Creates a new instance of Navigation

Parameters

\Illuminate\Routing\UrlGenerator $urlGenerator

pills()

pills(array  $links = array(), array  $attributes = null) : $this

Creates a pills navigation block

Parameters

array $links

The links

array $attributes

The attributes. Does not overwrite the

                     previous values if not set

Returns

$this

links()

links(array  $links) : $this

Sets the links of the navigation object

Parameters

array $links

The links

Returns

$this

tabs()

tabs(array  $links = array(), array  $attributes = null) : $this

Creates a navigation tab object.

Parameters

array $links

The links to be passed in

array $attributes

The attributes of the navigation object. Will

                     overwrite unless not set.

Returns

$this

autoroute()

autoroute(boolean  $autoroute) : $this

Sets the autorouting. Pass false to turn it off, true to turn it on

Parameters

boolean $autoroute

Whether the autorouting should be on

Returns

$this

navbar()

navbar() : $this

Turns the navigation object into one for navbars

Returns

$this

justified()

justified() : $this

Makes the navigation links justified

Returns

$this

stacked()

stacked() : $this

Makes the navigation stacked

Returns

$this

right()

right() : $this

Makes the navigation links float right

Returns

$this

renderLink()

renderLink(array  $link) : string

Renders a link

Parameters

array $link

A link to be rendered

Returns

string

renderDropdown()

renderDropdown(array  $link) : string

Renders the dropdown

Parameters

array $link

The link to render

Returns

string

dropdownShouldBeActive()

dropdownShouldBeActive(array  $dropdown) : boolean

Checks to see if the dropdown should be active

Parameters

array $dropdown

The dropdown array

Returns

boolean

itemShouldBeActive()

itemShouldBeActive(mixed  $link) : boolean

Checks to see if the given item should be active

Parameters

mixed $link

A link to check whether it should be active

Returns

boolean

renderSeparator()

renderSeparator(string  $separator) : string

Renders a separator

Parameters

string $separator

Returns

string

renderItem()

renderItem(string|array  $link) : string

Renders an item

Parameters

string|array $link

The item to render

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Panel.html ================================================ API Documentation

Constants

PRIMARY

PRIMARY

Constant for primary panels

SUCCESS

SUCCESS

Constant for success panels

INFO

INFO

Constant for info panels

WARNING

WARNING

Constant for warning panels

DANGER

DANGER

Constant for danger panels

NORMAL

NORMAL

Constant for default panels

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type of the panel

$header

$header : string

Type

string — The header of the panel

$body

$body : string

Type

string — The body of the panel

$footer

$footer : string

Type

string — The footer of the panel

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the panel

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

primary()

primary() : $this

Creates a primary panel

Returns

$this

success()

success() : $this

Creates a success panel

Returns

$this

info()

info() : $this

Creates an info panel

Returns

$this

warning()

warning() : $this

Creates an warning panel

Returns

$this

danger()

danger() : $this

Creates an danger panel

Returns

$this

setType()

setType(string  $type) : $this

Sets the type of the panel

Parameters

string $type

The new type. Assume the panel- prefix

Returns

$this

withHeader()

withHeader(string  $header) : $this

Sets the header of the panel

Parameters

string $header

The header

Returns

$this

withBody()

withBody(string  $body) : $this

Sets the body of the panel

Parameters

string $body

The body

Returns

$this

withFooter()

withFooter(string  $footer) : $this

Sets the footer

Parameters

string $footer

The new footer

Returns

$this

normal()

normal() : $this

Creates a normal panel

Returns

$this

renderHeader()

renderHeader() : string

Renders the header

Returns

string

renderBody()

renderBody() : string

Renders the body

Returns

string

renderFooter()

renderFooter() : string

Renders the footer

Returns

string
================================================ FILE: docs/classes/Bootstrapper.ProgressBar.html ================================================ API Documentation

Constants

PROGRESS_BAR_SUCCESS

PROGRESS_BAR_SUCCESS

Constant for success progress bars

PROGRESS_BAR_INFO

PROGRESS_BAR_INFO

Constant for info progress bars

PROGRESS_BAR_WARNING

PROGRESS_BAR_WARNING

Constant for warning success progress bars

PROGRESS_BAR_DANGER

PROGRESS_BAR_DANGER

Constant for danger progress bars

PROGRESS_BAR_NORMAL

PROGRESS_BAR_NORMAL

Constant for normal progress bars

Properties

$attributes

$attributes : array

Type

array

$value

$value : integer

Type

integer — The value of the progress bar

$visible

$visible : boolean

Type

boolean — Whether text should be visible

$type

$type : string

Type

string — The type of the progress bar

$striped

$striped : boolean

Type

boolean — Whether the progress bar should be striped

$animated

$animated : boolean

Type

boolean — Whether the progress bar should be animated

$visibleString

$visibleString : string

Type

string — What the visible string should be

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the progress bar

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

setType()

setType(string  $type) : $this

Sets the type of the progress bar

Parameters

string $type

The type

Returns

$this

value()

value(integer  $value) : $this

Sets the value of the progress bar

Parameters

integer $value

The value of the progress bar The value of the

              progress bar

Returns

$this

visible()

visible(string  $string = '%s%%') : $this

Whether the amount should be visible

Parameters

string $string

The string to show to the user. We internally

                  will use sprintf to show this, so you must
                  include a %s somewhere so we can add this in

Returns

$this

success()

success(integer  $value) : $this

Creates a success progress bar

Parameters

integer $value

The value of the progress bar

Returns

$this

info()

info(integer  $value) : $this

Creates an info progress bar

Parameters

integer $value

The value of the progress bar

Returns

$this

warning()

warning(integer  $value) : $this

Creates a warning progress bar

Parameters

integer $value

The value of the progress bar

Returns

$this

danger()

danger(integer  $value) : $this

Creates a danger progress bar

Parameters

integer $value

The value of the progress bar

Returns

$this

normal()

normal(integer  $value) : $this

Creates a normal progress bar

Parameters

integer $value

The value of the progress bar

Returns

$this

striped()

striped() : $this

Sets the progress bar to be striped

Returns

$this

animated()

animated() : $this

Sets the progress bar to be animated

Returns

$this

stack()

stack(array  $items) : string

Stacks several progress bars together

Parameters

array $items

The progress bars. Should be an array of arrays,

                which are a list of methods and parameters.

Returns

string

generateFromArray()

generateFromArray(array  $progressBar) : mixed

Generates a progress bar from an array

Parameters

array $progressBar

An array of methods with variables if required,

                      eg 'value=2', 'animated'

Returns

mixed
================================================ FILE: docs/classes/Bootstrapper.RenderedObject.html ================================================ API Documentation

\BootstrapperRenderedObject

Rendered Object abstract class

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
No public properties found
No constants found
No protected methods found
$attributes
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the object

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this
================================================ FILE: docs/classes/Bootstrapper.Tabbable.html ================================================ API Documentation

\BootstrapperTabbable

Creates Bootstrap 3 compliant tab elements

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
__construct()
tabs()
pills()
withContents()
active()
fade()
No public properties found
PILL
TAB
renderNavigation()
createNavigationLinks()
renderContents()
createContentTabs()
$attributes
$links
$contents
$active
$type
$fade
N/A
No private methods found
No private properties found
N/A

Constants

PILL

PILL

Constant for pill tabs

TAB

TAB

Constant for tab tabs

Properties

$attributes

$attributes : array

Type

array

$contents

$contents : array

Type

array — The contents of the navigation. Should be an array of arrays, with the following inner keys: <ul> <li>title - the title of the content</li> <li>content - the actual content</li> <li>attributes (optional) - any attributes</li> </ul>

$active

$active : integer

Type

integer — Which tab should be open first

$type

$type : string

Type

string — The type

$fade

$fade : boolean

Type

boolean — Whether we should fade in or not

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the tabbable object

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

__construct()

__construct(\Bootstrapper\Navigation  $links) 

Creates a new Tabbable object

Parameters

\Bootstrapper\Navigation $links

A navigation object

tabs()

tabs(array  $contents = array()) : $this

Creates content with a tabbed navigation

Parameters

array $contents

The content

Returns

$this

pills()

pills(array  $contents = array()) : $this

Creates content with a pill navigation

Parameters

array $contents

Returns

$this

withContents()

withContents(array  $contents) : $this

Sets the contents

Parameters

array $contents

An array of arrays

Returns

$this

active()

active(integer  $active) : $this

Sets which tab should be active

Parameters

integer $active

Returns

$this

fade()

fade() : $this

Sets the tabbable objects to fade in

Returns

$this

renderNavigation()

renderNavigation() : string

Render the navigation links

Returns

string

createNavigationLinks()

createNavigationLinks() : array

Creates the navigation links

Returns

array

renderContents()

renderContents() : string

Renders the contents

Returns

string

createContentTabs()

createContentTabs() : array

Creates the content tabs

Returns

array
================================================ FILE: docs/classes/Bootstrapper.Table.html ================================================ API Documentation

Constants

TABLE_STRIPED

TABLE_STRIPED

Constant for striped tables

TABLE_BORDERED

TABLE_BORDERED

Constant for bordered tables

TABLE_HOVER

TABLE_HOVER

Constant for tables that have an active hover state

TABLE_CONDENSED

TABLE_CONDENSED

Constant for condensed tables

Properties

$attributes

$attributes : array

Type

array

$type

$type : string

Type

string — The type of the table

$contents

$contents : mixed

Type

mixed — The contents of the table

$ignores

$ignores : array

Type

array — A list of columns to ignore

$callbacks

$callbacks : array

Type

array — A list of callbacks, of the form 'column' => function()

$only

$only : boolean|array

Type

boolean|array — An array of columns to get. False if none.

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the table

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

setType()

setType(string  $type) 

Sets the table type

Parameters

string $type

The type of the table

striped()

striped() : $this

Sets the table to be striped

Returns

$this

bordered()

bordered() : $this

Sets the table to be bordered

Returns

$this

hover()

hover() : $this

Sets the table to have an active hover state

Returns

$this

condensed()

condensed() : $this

Sets the table to be condensed

Returns

$this

withContents()

withContents(array|\Bootstrapper\Traversable  $contents) : $this

Sets the contents of the table

Parameters

array|\Bootstrapper\Traversable $contents

The contents of the table. We expect

                               either an array of arrays or an
                               array of eloquent models

Returns

$this

ignore()

ignore(array  $ignores) : $this

Creates a list of columns to ignore

Parameters

array $ignores

The ignored columns

Returns

$this

callback()

callback(string  $index, callable  $function) : $this

Adds a callback

Parameters

string $index

The column name for the callback

callable $function

The callback function,

                      which should be of the form
                      function($column, $row).

Returns

$this

only()

only(array  $only) : $this

Sets which columns we can return

Parameters

array $only

Returns

$this

renderContents()

renderContents() : string

Renders the contents of the table

Returns

string

getHeaders()

getHeaders() : array

Gets the headers of the contents

Returns

array

renderItem()

renderItem(mixed  $item, array  $headers) : string

Renders an item

Parameters

mixed $item

The item to render

array $headers

The headers to use

Returns

string
================================================ FILE: docs/classes/Bootstrapper.Thumbnail.html ================================================ API Documentation

\BootstrapperThumbnail

Creates Bootstrap 3 compliant Thumbnail

Summary

Methods
Properties
Constants
__toString()
render()
withAttributes()
image()
caption()
No public properties found
No constants found
renderImage()
renderCaption()
$attributes
$image
$caption
N/A
No private methods found
No private properties found
N/A

Properties

$attributes

$attributes : array

Type

array

$image

$image : array

Type

array — The image

$caption

$caption : string

Type

string — The caption

Methods

__toString()

__toString() : string

Calls the render method on the object. If an exception is thrown, it catches it and displays an error message

Returns

string

render()

render() : string

Renders the thumbnail

Throws

\Bootstrapper\Exceptions\ThumbnailException

if the image is not specified

Returns

string

withAttributes()

withAttributes(array  $attributes) : $this

Set the attributes of the object

Parameters

array $attributes

The attributes to use

Returns

$this

image()

image(string  $image, array  $attributes = array()) : $this

Sets the image for the thumbnail

Parameters

string $image

The image source

array $attributes

The attributes

Returns

$this

caption()

caption(string  $caption) : $this

Sets the caption for the thumbnail

Parameters

string $caption

The new caption

Returns

$this

renderImage()

renderImage() : string

Renders the image

Returns

string

renderCaption()

renderCaption() : string

Renders the caption

Returns

string
================================================ FILE: docs/css/bootstrap-responsive.css ================================================ /*! * Bootstrap Responsive v2.0.0 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ .hidden { display: none; visibility: hidden; } @media (max-width: 480px) { .nav-collapse { -webkit-transform: translate3d(0, 0, 0); } .page-header h1 small { display: block; line-height: 18px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input { display: block; width: 100%; height: 28px; /* Make inputs at least the height of their button counterpart */ /* Makes inputs behave like true block-level elements */ -webkit-box-sizing: border-box; /* Older Webkit */ -moz-box-sizing: border-box; /* Older FF */ -ms-box-sizing: border-box; /* IE8 */ box-sizing: border-box; /* CSS3 spec*/ } .input-prepend input[class*="span"], .input-append input[class*="span"] { width: auto; } input[type="checkbox"], input[type="radio"] { border: 1px solid #ccc; } .form-horizontal .control-group > label { float: none; width: auto; padding-top: 0; text-align: left; } .form-horizontal .controls { margin-left: 0; } .form-horizontal .control-list { padding-top: 0; } .form-horizontal .form-actions { padding-left: 10px; padding-right: 10px; } .modal { position: absolute; top: 10px; left: 10px; right: 10px; width: auto; margin: 0; } .modal.fade.in { top: auto; } .modal-header .close { padding: 10px; margin: -10px; } .carousel-caption { position: static; } } @media (max-width: 768px) { .container { width: auto; padding: 0 20px; } .row-fluid { width: 100%; } .row { margin-left: 0; } .row > [class*="span"], .row-fluid > [class*="span"] { float: none; display: block; width: auto; margin: 0; } } @media (min-width: 768px) and (max-width: 980px) { .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; content: ""; } .row:after { clear: both; } [class*="span"] { float: left; margin-left: 20px; } .span1 { width: 42px; } .span2 { width: 104px; } .span3 { width: 166px; } .span4 { width: 228px; } .span5 { width: 290px; } .span6 { width: 352px; } .span7 { width: 414px; } .span8 { width: 476px; } .span9 { width: 538px; } .span10 { width: 600px; } .span11 { width: 662px; } .span12, .container { width: 724px; } .offset1 { margin-left: 82px; } .offset2 { margin-left: 144px; } .offset3 { margin-left: 206px; } .offset4 { margin-left: 268px; } .offset5 { margin-left: 330px; } .offset6 { margin-left: 392px; } .offset7 { margin-left: 454px; } .offset8 { margin-left: 516px; } .offset9 { margin-left: 578px; } .offset10 { margin-left: 640px; } .offset11 { margin-left: 702px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; content: ""; } .row-fluid:after { clear: both; } .row-fluid > [class*="span"] { float: left; margin-left: 2.762430939%; } .row-fluid > [class*="span"]:first-child { margin-left: 0; } .row-fluid .span1 { width: 5.801104972%; } .row-fluid .span2 { width: 14.364640883%; } .row-fluid .span3 { width: 22.928176794%; } .row-fluid .span4 { width: 31.491712705%; } .row-fluid .span5 { width: 40.055248616%; } .row-fluid .span6 { width: 48.618784527%; } .row-fluid .span7 { width: 57.182320438000005%; } .row-fluid .span8 { width: 65.74585634900001%; } .row-fluid .span9 { width: 74.30939226%; } .row-fluid .span10 { width: 82.87292817100001%; } .row-fluid .span11 { width: 91.436464082%; } .row-fluid .span12 { width: 99.999999993%; } input.span1, textarea.span1, .uneditable-input.span1 { width: 32px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 94px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 156px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 218px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 280px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 342px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 404px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 466px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 528px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 590px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 652px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 714px; } } @media (max-width: 980px) { body { padding-top: 0; } .navbar-fixed-top { position: static; margin-bottom: 18px; } .navbar-fixed-top .navbar-inner { padding: 5px; } .navbar .container { width: auto; padding: 0; } .navbar .brand { padding-left: 10px; padding-right: 10px; margin: 0 0 0 -5px; } .navbar .nav-collapse { clear: left; } .navbar .nav { float: none; margin: 0 0 9px; } .navbar .nav > li { float: none; } .navbar .nav > li > a { margin-bottom: 2px; } .navbar .nav > .divider-vertical { display: none; } .navbar .nav > li > a, .navbar .dropdown-menu a { padding: 6px 15px; font-weight: bold; color: #999999; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .navbar .dropdown-menu li + li a { margin-bottom: 2px; } .navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover { background-color: #222222; } .navbar .dropdown-menu { position: static; top: auto; left: auto; float: none; display: block; max-width: none; margin: 0 15px; padding: 0; background-color: transparent; border: none; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .navbar .dropdown-menu:before, .navbar .dropdown-menu:after { display: none; } .navbar .dropdown-menu .divider { display: none; } .navbar-form, .navbar-search { float: none; padding: 9px 15px; margin: 9px 0; border-top: 1px solid #222222; border-bottom: 1px solid #222222; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); } .navbar .nav.pull-right { float: none; margin-left: 0; } .navbar-static .navbar-inner { padding-left: 10px; padding-right: 10px; } .btn-navbar { display: block; } .nav-collapse { overflow: hidden; height: 0; } } @media (min-width: 980px) { .nav-collapse.collapse { height: auto !important; } } @media (min-width: 1200px) { .row { margin-left: -30px; *zoom: 1; } .row:before, .row:after { display: table; content: ""; } .row:after { clear: both; } [class*="span"] { float: left; margin-left: 30px; } .span1 { width: 70px; } .span2 { width: 170px; } .span3 { width: 270px; } .span4 { width: 370px; } .span5 { width: 470px; } .span6 { width: 570px; } .span7 { width: 670px; } .span8 { width: 770px; } .span9 { width: 870px; } .span10 { width: 970px; } .span11 { width: 1070px; } .span12, .container { width: 1170px; } .offset1 { margin-left: 130px; } .offset2 { margin-left: 230px; } .offset3 { margin-left: 330px; } .offset4 { margin-left: 430px; } .offset5 { margin-left: 530px; } .offset6 { margin-left: 630px; } .offset7 { margin-left: 730px; } .offset8 { margin-left: 830px; } .offset9 { margin-left: 930px; } .offset10 { margin-left: 1030px; } .offset11 { margin-left: 1130px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; content: ""; } .row-fluid:after { clear: both; } .row-fluid > [class*="span"] { float: left; margin-left: 2.564102564%; } .row-fluid > [class*="span"]:first-child { margin-left: 0; } .row-fluid .span1 { width: 5.982905983%; } .row-fluid .span2 { width: 14.529914530000001%; } .row-fluid .span3 { width: 23.076923077%; } .row-fluid .span4 { width: 31.623931624%; } .row-fluid .span5 { width: 40.170940171000005%; } .row-fluid .span6 { width: 48.717948718%; } .row-fluid .span7 { width: 57.264957265%; } .row-fluid .span8 { width: 65.81196581200001%; } .row-fluid .span9 { width: 74.358974359%; } .row-fluid .span10 { width: 82.905982906%; } .row-fluid .span11 { width: 91.45299145300001%; } .row-fluid .span12 { width: 100%; } input.span1, textarea.span1, .uneditable-input.span1 { width: 60px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 160px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 260px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 360px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 460px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 560px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 660px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 760px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 860px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 960px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 1060px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 1160px; } .thumbnails { margin-left: -30px; } .thumbnails > li { margin-left: 30px; } } ================================================ FILE: docs/css/bootstrap.css ================================================ /*! * Bootstrap v2.0.0 * * Copyright 2012 Twitter, Inc * Licensed under the Apache License v2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world @twitter by @mdo and @fat. */ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } a:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } a:hover, a:active { outline: 0; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } img { max-width: 100%; height: auto; border: 0; -ms-interpolation-mode: bicubic; } button, input, select, textarea { margin: 0; font-size: 100%; vertical-align: middle; } button, input { *overflow: visible; line-height: normal; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } input[type="search"] { -webkit-appearance: textfield; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; } textarea { overflow: auto; vertical-align: top; } body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; color: #333333; background-color: #ffffff; } a { color: #0088cc; text-decoration: none; } a:hover { color: #005580; text-decoration: underline; } .row { margin-left: -20px; *zoom: 1; } .row:before, .row:after { display: table; content: ""; } .row:after { clear: both; } [class*="span"] { float: left; margin-left: 20px; } .span1 { width: 60px; } .span2 { width: 140px; } .span3 { width: 220px; } .span4 { width: 300px; } .span5 { width: 380px; } .span6 { width: 460px; } .span7 { width: 540px; } .span8 { width: 620px; } .span9 { width: 700px; } .span10 { width: 780px; } .span11 { width: 860px; } .span12, .container { width: 940px; } .offset1 { margin-left: 100px; } .offset2 { margin-left: 180px; } .offset3 { margin-left: 260px; } .offset4 { margin-left: 340px; } .offset5 { margin-left: 420px; } .offset6 { margin-left: 500px; } .offset7 { margin-left: 580px; } .offset8 { margin-left: 660px; } .offset9 { margin-left: 740px; } .offset10 { margin-left: 820px; } .offset11 { margin-left: 900px; } .row-fluid { width: 100%; *zoom: 1; } .row-fluid:before, .row-fluid:after { display: table; content: ""; } .row-fluid:after { clear: both; } .row-fluid > [class*="span"] { float: left; margin-left: 2.127659574%; } .row-fluid > [class*="span"]:first-child { margin-left: 0; } .row-fluid .span1 { width: 6.382978723%; } .row-fluid .span2 { width: 14.89361702%; } .row-fluid .span3 { width: 23.404255317%; } .row-fluid .span4 { width: 31.914893614%; } .row-fluid .span5 { width: 40.425531911%; } .row-fluid .span6 { width: 48.93617020799999%; } .row-fluid .span7 { width: 57.446808505%; } .row-fluid .span8 { width: 65.95744680199999%; } .row-fluid .span9 { width: 74.468085099%; } .row-fluid .span10 { width: 82.97872339599999%; } .row-fluid .span11 { width: 91.489361693%; } .row-fluid .span12 { width: 99.99999998999999%; } .container { width: 940px; margin-left: auto; margin-right: auto; *zoom: 1; } .container:before, .container:after { display: table; content: ""; } .container:after { clear: both; } .container-fluid { padding-left: 20px; padding-right: 20px; *zoom: 1; } .container-fluid:before, .container-fluid:after { display: table; content: ""; } .container-fluid:after { clear: both; } p { margin: 0 0 9px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px; } p small { font-size: 11px; color: #999999; } .lead { margin-bottom: 18px; font-size: 20px; font-weight: 200; line-height: 27px; } h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: bold; color: #333333; text-rendering: optimizelegibility; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; color: #999999; } h1 { font-size: 30px; line-height: 36px; } h1 small { font-size: 18px; } h2 { font-size: 24px; line-height: 36px; } h2 small { font-size: 18px; } h3 { line-height: 27px; font-size: 18px; } h3 small { font-size: 14px; } h4, h5, h6 { line-height: 18px; } h4 { font-size: 14px; } h4 small { font-size: 12px; } h5 { font-size: 12px; } h6 { font-size: 11px; color: #999999; text-transform: uppercase; } .page-header { padding-bottom: 17px; margin: 18px 0; border-bottom: 1px solid #eeeeee; } .page-header h1 { line-height: 1; } ul, ol { padding: 0; margin: 0 0 9px 25px; } ul ul, ul ol, ol ol, ol ul { margin-bottom: 0; } ul { list-style: disc; } ol { list-style: decimal; } li { line-height: 18px; } ul.unstyled { margin-left: 0; list-style: none; } dl { margin-bottom: 18px; } dt, dd { line-height: 18px; } dt { font-weight: bold; } dd { margin-left: 9px; } hr { margin: 18px 0; border: 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #ffffff; } strong { font-weight: bold; } em { font-style: italic; } .muted { color: #999999; } abbr { font-size: 90%; text-transform: uppercase; border-bottom: 1px dotted #ddd; cursor: help; } blockquote { padding: 0 0 0 15px; margin: 0 0 18px; border-left: 5px solid #eeeeee; } blockquote p { margin-bottom: 0; font-size: 16px; font-weight: 300; line-height: 22.5px; } blockquote small { display: block; line-height: 18px; color: #999999; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { float: right; padding-left: 0; padding-right: 15px; border-left: 0; border-right: 5px solid #eeeeee; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } q:before, q:after, blockquote:before, blockquote:after { content: ""; } address { display: block; margin-bottom: 18px; line-height: 18px; font-style: normal; } small { font-size: 100%; } cite { font-style: normal; } code, pre { padding: 0 3px 2px; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; color: #333333; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } code { padding: 3px 4px; color: #d14; background-color: #f7f7f9; border: 1px solid #e1e1e8; } pre { display: block; padding: 8.5px; margin: 0 0 9px; font-size: 12px; line-height: 18px; background-color: #f5f5f5; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, 0.15); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; white-space: pre; white-space: pre-wrap; word-break: break-all; } pre.prettyprint { margin-bottom: 18px; } pre code { padding: 0; background-color: transparent; } form { margin: 0 0 18px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 27px; font-size: 19.5px; line-height: 36px; color: #333333; border: 0; border-bottom: 1px solid #eee; } label, input, button, select, textarea { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; } label { display: block; margin-bottom: 5px; color: #333333; } input, textarea, select, .uneditable-input { display: inline-block; width: 210px; height: 18px; padding: 4px; margin-bottom: 9px; font-size: 13px; line-height: 18px; color: #555555; border: 1px solid #ccc; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .uneditable-textarea { width: auto; height: auto; } label input, label textarea, label select { display: block; } input[type="image"], input[type="checkbox"], input[type="radio"] { width: auto; height: auto; padding: 0; margin: 3px 0; *margin-top: 0; /* IE7 */ line-height: normal; border: 0; cursor: pointer; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } input[type="file"] { padding: initial; line-height: initial; border: initial; background-color: #ffffff; background-color: initial; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } input[type="button"], input[type="reset"], input[type="submit"] { width: auto; height: auto; } select, input[type="file"] { height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ line-height: 28px; } select { width: 220px; background-color: #ffffff; } select[multiple], select[size] { height: auto; } input[type="image"] { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } textarea { height: auto; } input[type="hidden"] { display: none; } .radio, .checkbox { padding-left: 18px; } .radio input[type="radio"], .checkbox input[type="checkbox"] { float: left; margin-left: -18px; } .controls > .radio:first-child, .controls > .checkbox:first-child { padding-top: 5px; } .radio.inline, .checkbox.inline { display: inline-block; margin-bottom: 0; vertical-align: middle; } .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline { margin-left: 10px; } .controls > .radio.inline:first-child, .controls > .checkbox.inline:first-child { padding-top: 0; } input, textarea { -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -ms-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; } input:focus, textarea:focus { border-color: rgba(82, 168, 236, 0.8); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); outline: 0; outline: thin dotted \9; /* IE6-8 */ } input[type="file"]:focus, input[type="checkbox"]:focus, select:focus { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .input-mini { width: 60px; } .input-small { width: 90px; } .input-medium { width: 150px; } .input-large { width: 210px; } .input-xlarge { width: 270px; } .input-xxlarge { width: 530px; } input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input { float: none; margin-left: 0; } input.span1, textarea.span1, .uneditable-input.span1 { width: 50px; } input.span2, textarea.span2, .uneditable-input.span2 { width: 130px; } input.span3, textarea.span3, .uneditable-input.span3 { width: 210px; } input.span4, textarea.span4, .uneditable-input.span4 { width: 290px; } input.span5, textarea.span5, .uneditable-input.span5 { width: 370px; } input.span6, textarea.span6, .uneditable-input.span6 { width: 450px; } input.span7, textarea.span7, .uneditable-input.span7 { width: 530px; } input.span8, textarea.span8, .uneditable-input.span8 { width: 610px; } input.span9, textarea.span9, .uneditable-input.span9 { width: 690px; } input.span10, textarea.span10, .uneditable-input.span10 { width: 770px; } input.span11, textarea.span11, .uneditable-input.span11 { width: 850px; } input.span12, textarea.span12, .uneditable-input.span12 { width: 930px; } input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] { background-color: #f5f5f5; border-color: #ddd; cursor: not-allowed; } .control-group.warning > label, .control-group.warning .help-block, .control-group.warning .help-inline { color: #c09853; } .control-group.warning input, .control-group.warning select, .control-group.warning textarea { color: #c09853; border-color: #c09853; } .control-group.warning input:focus, .control-group.warning select:focus, .control-group.warning textarea:focus { border-color: #a47e3c; -webkit-box-shadow: 0 0 6px #dbc59e; -moz-box-shadow: 0 0 6px #dbc59e; box-shadow: 0 0 6px #dbc59e; } .control-group.warning .input-prepend .add-on, .control-group.warning .input-append .add-on { color: #c09853; background-color: #fcf8e3; border-color: #c09853; } .control-group.error > label, .control-group.error .help-block, .control-group.error .help-inline { color: #b94a48; } .control-group.error input, .control-group.error select, .control-group.error textarea { color: #b94a48; border-color: #b94a48; } .control-group.error input:focus, .control-group.error select:focus, .control-group.error textarea:focus { border-color: #953b39; -webkit-box-shadow: 0 0 6px #d59392; -moz-box-shadow: 0 0 6px #d59392; box-shadow: 0 0 6px #d59392; } .control-group.error .input-prepend .add-on, .control-group.error .input-append .add-on { color: #b94a48; background-color: #f2dede; border-color: #b94a48; } .control-group.success > label, .control-group.success .help-block, .control-group.success .help-inline { color: #468847; } .control-group.success input, .control-group.success select, .control-group.success textarea { color: #468847; border-color: #468847; } .control-group.success input:focus, .control-group.success select:focus, .control-group.success textarea:focus { border-color: #356635; -webkit-box-shadow: 0 0 6px #7aba7b; -moz-box-shadow: 0 0 6px #7aba7b; box-shadow: 0 0 6px #7aba7b; } .control-group.success .input-prepend .add-on, .control-group.success .input-append .add-on { color: #468847; background-color: #dff0d8; border-color: #468847; } input:focus:required:invalid, textarea:focus:required:invalid, select:focus:required:invalid { color: #b94a48; border-color: #ee5f5b; } input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, select:focus:required:invalid:focus { border-color: #e9322d; -webkit-box-shadow: 0 0 6px #f8b9b7; -moz-box-shadow: 0 0 6px #f8b9b7; box-shadow: 0 0 6px #f8b9b7; } .form-actions { padding: 17px 20px 18px; margin-top: 18px; margin-bottom: 18px; background-color: #f5f5f5; border-top: 1px solid #ddd; } .uneditable-input { display: block; background-color: #ffffff; border-color: #eee; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); cursor: not-allowed; } :-moz-placeholder { color: #999999; } ::-webkit-input-placeholder { color: #999999; } .help-block { margin-top: 5px; margin-bottom: 0; color: #999999; } .help-inline { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-bottom: 9px; vertical-align: middle; padding-left: 5px; } .input-prepend, .input-append { margin-bottom: 5px; *zoom: 1; } .input-prepend:before, .input-append:before, .input-prepend:after, .input-append:after { display: table; content: ""; } .input-prepend:after, .input-append:after { clear: both; } .input-prepend input, .input-append input, .input-prepend .uneditable-input, .input-append .uneditable-input { -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .input-prepend input:focus, .input-append input:focus, .input-prepend .uneditable-input:focus, .input-append .uneditable-input:focus { position: relative; z-index: 2; } .input-prepend .uneditable-input, .input-append .uneditable-input { border-left-color: #ccc; } .input-prepend .add-on, .input-append .add-on { float: left; display: block; width: auto; min-width: 16px; height: 18px; margin-right: -1px; padding: 4px 5px; font-weight: normal; line-height: 18px; color: #999999; text-align: center; text-shadow: 0 1px 0 #ffffff; background-color: #f5f5f5; border: 1px solid #ccc; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .input-prepend .active, .input-append .active { background-color: #a9dba9; border-color: #46a546; } .input-prepend .add-on { *margin-top: 1px; /* IE6-7 */ } .input-append input, .input-append .uneditable-input { float: left; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .input-append .uneditable-input { border-right-color: #ccc; } .input-append .add-on { margin-right: 0; margin-left: -1px; -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .input-append input:first-child { *margin-left: -160px; } .input-append input:first-child + .add-on { *margin-left: -21px; } .search-query { padding-left: 14px; padding-right: 14px; margin-bottom: 0; -webkit-border-radius: 14px; -moz-border-radius: 14px; border-radius: 14px; } .form-search input, .form-inline input, .form-horizontal input, .form-search textarea, .form-inline textarea, .form-horizontal textarea, .form-search select, .form-inline select, .form-horizontal select, .form-search .help-inline, .form-inline .help-inline, .form-horizontal .help-inline, .form-search .uneditable-input, .form-inline .uneditable-input, .form-horizontal .uneditable-input { display: inline-block; margin-bottom: 0; } .form-search label, .form-inline label, .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend { display: inline-block; } .form-search .input-append .add-on, .form-inline .input-prepend .add-on, .form-search .input-append .add-on, .form-inline .input-prepend .add-on { vertical-align: middle; } .control-group { margin-bottom: 9px; } .form-horizontal legend + .control-group { margin-top: 18px; -webkit-margin-top-collapse: separate; } .form-horizontal .control-group { margin-bottom: 18px; *zoom: 1; } .form-horizontal .control-group:before, .form-horizontal .control-group:after { display: table; content: ""; } .form-horizontal .control-group:after { clear: both; } .form-horizontal .control-group > label { float: left; width: 140px; padding-top: 5px; text-align: right; } .form-horizontal .controls { margin-left: 160px; } .form-horizontal .form-actions { padding-left: 160px; } table { max-width: 100%; border-collapse: collapse; border-spacing: 0; } .table { width: 100%; margin-bottom: 18px; } .table th, .table td { padding: 8px; line-height: 18px; text-align: left; border-top: 1px solid #ddd; } .table th { font-weight: bold; vertical-align: bottom; } .table td { vertical-align: top; } .table thead:first-child tr th, .table thead:first-child tr td { border-top: 0; } .table tbody + tbody { border-top: 2px solid #ddd; } .table-condensed th, .table-condensed td { padding: 4px 5px; } .table-bordered { border: 1px solid #ddd; border-collapse: separate; *border-collapse: collapsed; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .table-bordered th + th, .table-bordered td + td, .table-bordered th + td, .table-bordered td + th { border-left: 1px solid #ddd; } .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td { border-top: 0; } .table-bordered thead:first-child tr:first-child th:first-child, .table-bordered tbody:first-child tr:first-child td:first-child { -webkit-border-radius: 4px 0 0 0; -moz-border-radius: 4px 0 0 0; border-radius: 4px 0 0 0; } .table-bordered thead:first-child tr:first-child th:last-child, .table-bordered tbody:first-child tr:first-child td:last-child { -webkit-border-radius: 0 4px 0 0; -moz-border-radius: 0 4px 0 0; border-radius: 0 4px 0 0; } .table-bordered thead:last-child tr:last-child th:first-child, .table-bordered tbody:last-child tr:last-child td:first-child { -webkit-border-radius: 0 0 0 4px; -moz-border-radius: 0 0 0 4px; border-radius: 0 0 0 4px; } .table-bordered thead:last-child tr:last-child th:last-child, .table-bordered tbody:last-child tr:last-child td:last-child { -webkit-border-radius: 0 0 4px 0; -moz-border-radius: 0 0 4px 0; border-radius: 0 0 4px 0; } .table-striped tbody tr:nth-child(odd) td, .table-striped tbody tr:nth-child(odd) th { background-color: #f9f9f9; } table .span1 { float: none; width: 44px; margin-left: 0; } table .span2 { float: none; width: 124px; margin-left: 0; } table .span3 { float: none; width: 204px; margin-left: 0; } table .span4 { float: none; width: 284px; margin-left: 0; } table .span5 { float: none; width: 364px; margin-left: 0; } table .span6 { float: none; width: 444px; margin-left: 0; } table .span7 { float: none; width: 524px; margin-left: 0; } table .span8 { float: none; width: 604px; margin-left: 0; } table .span9 { float: none; width: 684px; margin-left: 0; } table .span10 { float: none; width: 764px; margin-left: 0; } table .span11 { float: none; width: 844px; margin-left: 0; } table .span12 { float: none; width: 924px; margin-left: 0; } [class^="icon-"] { display: inline-block; width: 14px; height: 14px; vertical-align: text-top; background-image: url(../img/glyphicons-halflings.png); background-position: 14px 14px; background-repeat: no-repeat; *margin-right: .3em; } [class^="icon-"]:last-child { *margin-left: 0; } .icon-white { background-image: url(../img/glyphicons-halflings-white.png); } .icon-glass { background-position: 0 0; } .icon-music { background-position: -24px 0; } .icon-search { background-position: -48px 0; } .icon-envelope { background-position: -72px 0; } .icon-heart { background-position: -96px 0; } .icon-star { background-position: -120px 0; } .icon-star-empty { background-position: -144px 0; } .icon-user { background-position: -168px 0; } .icon-film { background-position: -192px 0; } .icon-th-large { background-position: -216px 0; } .icon-th { background-position: -240px 0; } .icon-th-list { background-position: -264px 0; } .icon-ok { background-position: -288px 0; } .icon-remove { background-position: -312px 0; } .icon-zoom-in { background-position: -336px 0; } .icon-zoom-out { background-position: -360px 0; } .icon-off { background-position: -384px 0; } .icon-signal { background-position: -408px 0; } .icon-cog { background-position: -432px 0; } .icon-trash { background-position: -456px 0; } .icon-home { background-position: 0 -24px; } .icon-file { background-position: -24px -24px; } .icon-time { background-position: -48px -24px; } .icon-road { background-position: -72px -24px; } .icon-download-alt { background-position: -96px -24px; } .icon-download { background-position: -120px -24px; } .icon-upload { background-position: -144px -24px; } .icon-inbox { background-position: -168px -24px; } .icon-play-circle { background-position: -192px -24px; } .icon-repeat { background-position: -216px -24px; } .icon-refresh { background-position: -240px -24px; } .icon-list-alt { background-position: -264px -24px; } .icon-lock { background-position: -287px -24px; } .icon-flag { background-position: -312px -24px; } .icon-headphones { background-position: -336px -24px; } .icon-volume-off { background-position: -360px -24px; } .icon-volume-down { background-position: -384px -24px; } .icon-volume-up { background-position: -408px -24px; } .icon-qrcode { background-position: -432px -24px; } .icon-barcode { background-position: -456px -24px; } .icon-tag { background-position: 0 -48px; } .icon-tags { background-position: -25px -48px; } .icon-book { background-position: -48px -48px; } .icon-bookmark { background-position: -72px -48px; } .icon-print { background-position: -96px -48px; } .icon-camera { background-position: -120px -48px; } .icon-font { background-position: -144px -48px; } .icon-bold { background-position: -167px -48px; } .icon-italic { background-position: -192px -48px; } .icon-text-height { background-position: -216px -48px; } .icon-text-width { background-position: -240px -48px; } .icon-align-left { background-position: -264px -48px; } .icon-align-center { background-position: -288px -48px; } .icon-align-right { background-position: -312px -48px; } .icon-align-justify { background-position: -336px -48px; } .icon-list { background-position: -360px -48px; } .icon-indent-left { background-position: -384px -48px; } .icon-indent-right { background-position: -408px -48px; } .icon-facetime-video { background-position: -432px -48px; } .icon-picture { background-position: -456px -48px; } .icon-pencil { background-position: 0 -72px; } .icon-map-marker { background-position: -24px -72px; } .icon-adjust { background-position: -48px -72px; } .icon-tint { background-position: -72px -72px; } .icon-edit { background-position: -96px -72px; } .icon-share { background-position: -120px -72px; } .icon-check { background-position: -144px -72px; } .icon-move { background-position: -168px -72px; } .icon-step-backward { background-position: -192px -72px; } .icon-fast-backward { background-position: -216px -72px; } .icon-backward { background-position: -240px -72px; } .icon-play { background-position: -264px -72px; } .icon-pause { background-position: -288px -72px; } .icon-stop { background-position: -312px -72px; } .icon-forward { background-position: -336px -72px; } .icon-fast-forward { background-position: -360px -72px; } .icon-step-forward { background-position: -384px -72px; } .icon-eject { background-position: -408px -72px; } .icon-chevron-left { background-position: -432px -72px; } .icon-chevron-right { background-position: -456px -72px; } .icon-plus-sign { background-position: 0 -96px; } .icon-minus-sign { background-position: -24px -96px; } .icon-remove-sign { background-position: -48px -96px; } .icon-ok-sign { background-position: -72px -96px; } .icon-question-sign { background-position: -96px -96px; } .icon-info-sign { background-position: -120px -96px; } .icon-screenshot { background-position: -144px -96px; } .icon-remove-circle { background-position: -168px -96px; } .icon-ok-circle { background-position: -192px -96px; } .icon-ban-circle { background-position: -216px -96px; } .icon-arrow-left { background-position: -240px -96px; } .icon-arrow-right { background-position: -264px -96px; } .icon-arrow-up { background-position: -289px -96px; } .icon-arrow-down { background-position: -312px -96px; } .icon-share-alt { background-position: -336px -96px; } .icon-resize-full { background-position: -360px -96px; } .icon-resize-small { background-position: -384px -96px; } .icon-plus { background-position: -408px -96px; } .icon-minus { background-position: -433px -96px; } .icon-asterisk { background-position: -456px -96px; } .icon-exclamation-sign { background-position: 0 -120px; } .icon-gift { background-position: -24px -120px; } .icon-leaf { background-position: -48px -120px; } .icon-fire { background-position: -72px -120px; } .icon-eye-open { background-position: -96px -120px; } .icon-eye-close { background-position: -120px -120px; } .icon-warning-sign { background-position: -144px -120px; } .icon-plane { background-position: -168px -120px; } .icon-calendar { background-position: -192px -120px; } .icon-random { background-position: -216px -120px; } .icon-comment { background-position: -240px -120px; } .icon-magnet { background-position: -264px -120px; } .icon-chevron-up { background-position: -288px -120px; } .icon-chevron-down { background-position: -313px -119px; } .icon-retweet { background-position: -336px -120px; } .icon-shopping-cart { background-position: -360px -120px; } .icon-folder-close { background-position: -384px -120px; } .icon-folder-open { background-position: -408px -120px; } .icon-resize-vertical { background-position: -432px -119px; } .icon-resize-horizontal { background-position: -456px -118px; } .dropdown { position: relative; } .dropdown-toggle { *margin-bottom: -3px; } .dropdown-toggle:active, .open .dropdown-toggle { outline: 0; } .caret { display: inline-block; width: 0; height: 0; text-indent: -99999px; *text-indent: 0; vertical-align: top; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid #000000; opacity: 0.3; filter: alpha(opacity=30); content: "\2193"; } .dropdown .caret { margin-top: 8px; margin-left: 2px; } .dropdown:hover .caret, .open.dropdown .caret { opacity: 1; filter: alpha(opacity=100); } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; float: left; display: none; min-width: 160px; max-width: 220px; _width: 160px; padding: 4px 0; margin: 0; list-style: none; background-color: #ffffff; border-color: #ccc; border-color: rgba(0, 0, 0, 0.2); border-style: solid; border-width: 1px; -webkit-border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; border-radius: 0 0 5px 5px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -webkit-background-clip: padding-box; -moz-background-clip: padding; background-clip: padding-box; *border-right-width: 2px; *border-bottom-width: 2px; } .dropdown-menu.bottom-up { top: auto; bottom: 100%; margin-bottom: 2px; } .dropdown-menu .divider { height: 1px; margin: 5px 1px; overflow: hidden; background-color: #e5e5e5; border-bottom: 1px solid #ffffff; *width: 100%; *margin: -5px 0 5px; } .dropdown-menu a { display: block; padding: 3px 15px; clear: both; font-weight: normal; line-height: 18px; color: #555555; white-space: nowrap; } .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover { color: #ffffff; text-decoration: none; background-color: #0088cc; } .dropdown.open { *z-index: 1000; } .dropdown.open .dropdown-toggle { color: #ffffff; background: #ccc; background: rgba(0, 0, 0, 0.3); } .dropdown.open .dropdown-menu { display: block; } .typeahead { margin-top: 2px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #eee; border: 1px solid rgba(0, 0, 0, 0.05); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } .well blockquote { border-color: #ddd; border-color: rgba(0, 0, 0, 0.15); } .fade { -webkit-transition: opacity 0.15s linear; -moz-transition: opacity 0.15s linear; -ms-transition: opacity 0.15s linear; -o-transition: opacity 0.15s linear; transition: opacity 0.15s linear; opacity: 0; } .fade.in { opacity: 1; } .collapse { -webkit-transition: height 0.35s ease; -moz-transition: height 0.35s ease; -ms-transition: height 0.35s ease; -o-transition: height 0.35s ease; transition: height 0.35s ease; position: relative; overflow: hidden; height: 0; } .collapse.in { height: auto; } .close { float: right; font-size: 20px; font-weight: bold; line-height: 18px; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.2; filter: alpha(opacity=20); } .close:hover { color: #000000; text-decoration: none; opacity: 0.4; filter: alpha(opacity=40); cursor: pointer; } .btn { display: inline-block; padding: 4px 10px 4px; font-size: 13px; line-height: 18px; color: #333333; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); background-color: #fafafa; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6); background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-repeat: no-repeat; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0); border: 1px solid #ccc; border-bottom-color: #bbb; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); cursor: pointer; *margin-left: .3em; } .btn:first-child { *margin-left: 0; } .btn:hover { color: #333333; text-decoration: none; background-color: #e6e6e6; background-position: 0 -15px; -webkit-transition: background-position 0.1s linear; -moz-transition: background-position 0.1s linear; -ms-transition: background-position 0.1s linear; -o-transition: background-position 0.1s linear; transition: background-position 0.1s linear; } .btn:focus { outline: thin dotted; outline: 5px auto -webkit-focus-ring-color; outline-offset: -2px; } .btn.active, .btn:active { background-image: none; -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); background-color: #e6e6e6; background-color: #d9d9d9 \9; color: rgba(0, 0, 0, 0.5); outline: 0; } .btn.disabled, .btn[disabled] { cursor: default; background-image: none; background-color: #e6e6e6; opacity: 0.65; filter: alpha(opacity=65); -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .btn-large { padding: 9px 14px; font-size: 15px; line-height: normal; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .btn-large .icon { margin-top: 1px; } .btn-small { padding: 5px 9px; font-size: 11px; line-height: 16px; } .btn-small .icon { margin-top: -1px; } .btn-primary, .btn-primary:hover, .btn-warning, .btn-warning:hover, .btn-danger, .btn-danger:hover, .btn-success, .btn-success:hover, .btn-info, .btn-info:hover { text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); color: #ffffff; } .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active { color: rgba(255, 255, 255, 0.75); } .btn-primary { background-color: #006dcc; background-image: -moz-linear-gradient(top, #0088cc, #0044cc); background-image: -ms-linear-gradient(top, #0088cc, #0044cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(top, #0088cc, #0044cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0); border-color: #0044cc #0044cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { background-color: #0044cc; } .btn-primary:active, .btn-primary.active { background-color: #003399 \9; } .btn-warning { background-color: #faa732; background-image: -moz-linear-gradient(top, #fbb450, #f89406); background-image: -ms-linear-gradient(top, #fbb450, #f89406); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); background-image: -webkit-linear-gradient(top, #fbb450, #f89406); background-image: -o-linear-gradient(top, #fbb450, #f89406); background-image: linear-gradient(top, #fbb450, #f89406); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0); border-color: #f89406 #f89406 #ad6704; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { background-color: #f89406; } .btn-warning:active, .btn-warning.active { background-color: #c67605 \9; } .btn-danger { background-color: #da4f49; background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); background-image: linear-gradient(top, #ee5f5b, #bd362f); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0); border-color: #bd362f #bd362f #802420; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { background-color: #bd362f; } .btn-danger:active, .btn-danger.active { background-color: #942a25 \9; } .btn-success { background-color: #5bb75b; background-image: -moz-linear-gradient(top, #62c462, #51a351); background-image: -ms-linear-gradient(top, #62c462, #51a351); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); background-image: -webkit-linear-gradient(top, #62c462, #51a351); background-image: -o-linear-gradient(top, #62c462, #51a351); background-image: linear-gradient(top, #62c462, #51a351); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0); border-color: #51a351 #51a351 #387038; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { background-color: #51a351; } .btn-success:active, .btn-success.active { background-color: #408140 \9; } .btn-info { background-color: #49afcd; background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); background-image: linear-gradient(top, #5bc0de, #2f96b4); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0); border-color: #2f96b4 #2f96b4 #1f6377; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { background-color: #2f96b4; } .btn-info:active, .btn-info.active { background-color: #24748c \9; } button.btn, input[type="submit"].btn { *padding-top: 2px; *padding-bottom: 2px; } button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner { padding: 0; border: 0; } button.btn.large, input[type="submit"].btn.large { *padding-top: 7px; *padding-bottom: 7px; } button.btn.small, input[type="submit"].btn.small { *padding-top: 3px; *padding-bottom: 3px; } .btn-group { position: relative; *zoom: 1; *margin-left: .3em; } .btn-group:before, .btn-group:after { display: table; content: ""; } .btn-group:after { clear: both; } .btn-group:first-child { *margin-left: 0; } .btn-group + .btn-group { margin-left: 5px; } .btn-toolbar { margin-top: 9px; margin-bottom: 9px; } .btn-toolbar .btn-group { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; } .btn-group .btn { position: relative; float: left; margin-left: -1px; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .btn-group .btn:first-child { margin-left: 0; -webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomleft: 4px; border-bottom-left-radius: 4px; } .btn-group .btn:last-child, .btn-group .dropdown-toggle { -webkit-border-top-right-radius: 4px; -moz-border-radius-topright: 4px; border-top-right-radius: 4px; -webkit-border-bottom-right-radius: 4px; -moz-border-radius-bottomright: 4px; border-bottom-right-radius: 4px; } .btn-group .btn.large:first-child { margin-left: 0; -webkit-border-top-left-radius: 6px; -moz-border-radius-topleft: 6px; border-top-left-radius: 6px; -webkit-border-bottom-left-radius: 6px; -moz-border-radius-bottomleft: 6px; border-bottom-left-radius: 6px; } .btn-group .btn.large:last-child, .btn-group .large.dropdown-toggle { -webkit-border-top-right-radius: 6px; -moz-border-radius-topright: 6px; border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px; } .btn-group .btn:hover, .btn-group .btn:focus, .btn-group .btn:active, .btn-group .btn.active { z-index: 2; } .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle { outline: 0; } .btn-group .dropdown-toggle { padding-left: 8px; padding-right: 8px; -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); *padding-top: 5px; *padding-bottom: 5px; } .btn-group.open { *z-index: 1000; } .btn-group.open .dropdown-menu { display: block; margin-top: 1px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .btn-group.open .dropdown-toggle { background-image: none; -webkit-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); } .btn .caret { margin-top: 7px; margin-left: 0; } .btn:hover .caret, .open.btn-group .caret { opacity: 1; filter: alpha(opacity=100); } .btn-primary .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret { border-top-color: #ffffff; opacity: 0.75; filter: alpha(opacity=75); } .btn-small .caret { margin-top: 4px; } .alert { padding: 8px 35px 8px 14px; margin-bottom: 18px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); background-color: #fcf8e3; border: 1px solid #fbeed5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .alert, .alert-heading { color: #c09853; } .alert .close { position: relative; top: -2px; right: -21px; line-height: 18px; } .alert-success { background-color: #dff0d8; border-color: #d6e9c6; } .alert-success, .alert-success .alert-heading { color: #468847; } .alert-danger, .alert-error { background-color: #f2dede; border-color: #eed3d7; } .alert-danger, .alert-error, .alert-danger .alert-heading, .alert-error .alert-heading { color: #b94a48; } .alert-info { background-color: #d9edf7; border-color: #bce8f1; } .alert-info, .alert-info .alert-heading { color: #3a87ad; } .alert-block { padding-top: 14px; padding-bottom: 14px; } .alert-block > p, .alert-block > ul { margin-bottom: 0; } .alert-block p + p { margin-top: 5px; } .nav { margin-left: 0; margin-bottom: 18px; list-style: none; } .nav > li > a { display: block; } .nav > li > a:hover { text-decoration: none; background-color: #eeeeee; } .nav-list { padding-left: 14px; padding-right: 14px; margin-bottom: 0; } .nav-list > li > a, .nav-list .nav-header { display: block; padding: 3px 15px; margin-left: -15px; margin-right: -15px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); } .nav-list .nav-header { font-size: 11px; font-weight: bold; line-height: 18px; color: #999999; text-transform: uppercase; } .nav-list .nav-header * { text-transform:none; } .nav-list > li + .nav-header { margin-top: 9px; } .nav-list .active > a, .nav-list .active > a:hover { color: #ffffff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background-color: #0088cc; } .nav-list [class^="icon-"] { margin-right: 2px; } .nav-tabs, .nav-pills { *zoom: 1; } .nav-tabs:before, .nav-pills:before, .nav-tabs:after, .nav-pills:after { display: table; content: ""; } .nav-tabs:after, .nav-pills:after { clear: both; } .nav-tabs > li, .nav-pills > li { float: left; } .nav-tabs > li > a, .nav-pills > li > a { padding-right: 12px; padding-left: 12px; margin-right: 2px; line-height: 14px; } .nav-tabs { border-bottom: 1px solid #ddd; } .nav-tabs > li { margin-bottom: -1px; } .nav-tabs > li > a { padding-top: 9px; padding-bottom: 9px; border: 1px solid transparent; -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #dddddd; } .nav-tabs > .active > a, .nav-tabs > .active > a:hover { color: #555555; background-color: #ffffff; border: 1px solid #ddd; border-bottom-color: transparent; cursor: default; } .nav-pills > li > a { padding-top: 8px; padding-bottom: 8px; margin-top: 2px; margin-bottom: 2px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .nav-pills .active > a, .nav-pills .active > a:hover { color: #ffffff; background-color: #0088cc; } .nav-stacked > li { float: none; } .nav-stacked > li > a { margin-right: 0; } .nav-tabs.nav-stacked { border-bottom: 0; } .nav-tabs.nav-stacked > li > a { border: 1px solid #ddd; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .nav-tabs.nav-stacked > li:first-child > a { -webkit-border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; } .nav-tabs.nav-stacked > li:last-child > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .nav-tabs.nav-stacked > li > a:hover { border-color: #ddd; z-index: 2; } .nav-pills.nav-stacked > li > a { margin-bottom: 3px; } .nav-pills.nav-stacked > li:last-child > a { margin-bottom: 1px; } .nav-tabs .dropdown-menu, .nav-pills .dropdown-menu { margin-top: 1px; border-width: 1px; } .nav-pills .dropdown-menu { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .nav-tabs .dropdown-toggle .caret, .nav-pills .dropdown-toggle .caret { border-top-color: #0088cc; margin-top: 6px; } .nav-tabs .dropdown-toggle:hover .caret, .nav-pills .dropdown-toggle:hover .caret { border-top-color: #005580; } .nav-tabs .active .dropdown-toggle .caret, .nav-pills .active .dropdown-toggle .caret { border-top-color: #333333; } .nav > .dropdown.active > a:hover { color: #000000; cursor: pointer; } .nav-tabs .open .dropdown-toggle, .nav-pills .open .dropdown-toggle, .nav > .open.active > a:hover { color: #ffffff; background-color: #999999; border-color: #999999; } .nav .open .caret, .nav .open.active .caret, .nav .open a:hover .caret { border-top-color: #ffffff; opacity: 1; filter: alpha(opacity=100); } .tabs-stacked .open > a:hover { border-color: #999999; } .tabbable { *zoom: 1; } .tabbable:before, .tabbable:after { display: table; content: ""; } .tabbable:after { clear: both; } .tabs-below .nav-tabs, .tabs-right .nav-tabs, .tabs-left .nav-tabs { border-bottom: 0; } .tab-content > .tab-pane, .pill-content > .pill-pane { display: none; } .tab-content > .active, .pill-content > .active { display: block; } .tabs-below .nav-tabs { border-top: 1px solid #ddd; } .tabs-below .nav-tabs > li { margin-top: -1px; margin-bottom: 0; } .tabs-below .nav-tabs > li > a { -webkit-border-radius: 0 0 4px 4px; -moz-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; } .tabs-below .nav-tabs > li > a:hover { border-bottom-color: transparent; border-top-color: #ddd; } .tabs-below .nav-tabs .active > a, .tabs-below .nav-tabs .active > a:hover { border-color: transparent #ddd #ddd #ddd; } .tabs-left .nav-tabs > li, .tabs-right .nav-tabs > li { float: none; } .tabs-left .nav-tabs > li > a, .tabs-right .nav-tabs > li > a { min-width: 74px; margin-right: 0; margin-bottom: 3px; } .tabs-left .nav-tabs { float: left; margin-right: 19px; border-right: 1px solid #ddd; } .tabs-left .nav-tabs > li > a { margin-right: -1px; -webkit-border-radius: 4px 0 0 4px; -moz-border-radius: 4px 0 0 4px; border-radius: 4px 0 0 4px; } .tabs-left .nav-tabs > li > a:hover { border-color: #eeeeee #dddddd #eeeeee #eeeeee; } .tabs-left .nav-tabs .active > a, .tabs-left .nav-tabs .active > a:hover { border-color: #ddd transparent #ddd #ddd; *border-right-color: #ffffff; } .tabs-right .nav-tabs { float: right; margin-left: 19px; border-left: 1px solid #ddd; } .tabs-right .nav-tabs > li > a { margin-left: -1px; -webkit-border-radius: 0 4px 4px 0; -moz-border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0; } .tabs-right .nav-tabs > li > a:hover { border-color: #eeeeee #eeeeee #eeeeee #dddddd; } .tabs-right .nav-tabs .active > a, .tabs-right .nav-tabs .active > a:hover { border-color: #ddd #ddd #ddd transparent; *border-left-color: #ffffff; } .navbar { overflow: visible; margin-bottom: 18px; } .navbar-inner { padding-left: 20px; padding-right: 20px; background-color: #2c2c2c; background-image: -moz-linear-gradient(top, #333333, #222222); background-image: -ms-linear-gradient(top, #333333, #222222); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222)); background-image: -webkit-linear-gradient(top, #333333, #222222); background-image: -o-linear-gradient(top, #333333, #222222); background-image: linear-gradient(top, #333333, #222222); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1); } .btn-navbar { display: none; float: right; padding: 7px 10px; margin-left: 5px; margin-right: 5px; background-color: #2c2c2c; background-image: -moz-linear-gradient(top, #333333, #222222); background-image: -ms-linear-gradient(top, #333333, #222222); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#333333), to(#222222)); background-image: -webkit-linear-gradient(top, #333333, #222222); background-image: -o-linear-gradient(top, #333333, #222222); background-image: linear-gradient(top, #333333, #222222); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0); border-color: #222222 #222222 #000000; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075); } .btn-navbar:hover, .btn-navbar:active, .btn-navbar.active, .btn-navbar.disabled, .btn-navbar[disabled] { background-color: #222222; } .btn-navbar:active, .btn-navbar.active { background-color: #080808 \9; } .btn-navbar .icon-bar { display: block; width: 18px; height: 2px; background-color: #f5f5f5; -webkit-border-radius: 1px; -moz-border-radius: 1px; border-radius: 1px; -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); } .btn-navbar .icon-bar + .icon-bar { margin-top: 3px; } .nav-collapse.collapse { height: auto; } .navbar .brand:hover { text-decoration: none; } .navbar .brand { float: left; display: block; padding: 8px 20px 12px; margin-left: -20px; font-size: 20px; font-weight: 200; line-height: 1; color: #ffffff; } .navbar .navbar-text { margin-bottom: 0; line-height: 40px; color: #999999; } .navbar .navbar-text a:hover { color: #ffffff; background-color: transparent; } .navbar .btn, .navbar .btn-group { margin-top: 5px; } .navbar .btn-group .btn { margin-top: 0; } .navbar-form { margin-bottom: 0; *zoom: 1; } .navbar-form:before, .navbar-form:after { display: table; content: ""; } .navbar-form:after { clear: both; } .navbar-form input, .navbar-form select { display: inline-block; margin-top: 5px; margin-bottom: 0; } .navbar-form .radio, .navbar-form .checkbox { margin-top: 5px; } .navbar-form input[type="image"], .navbar-form input[type="checkbox"], .navbar-form input[type="radio"] { margin-top: 3px; } .navbar-search { position: relative; float: left; margin-top: 6px; margin-bottom: 0; } .navbar-search .search-query { padding: 4px 9px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 1; color: #ffffff; color: rgba(255, 255, 255, 0.75); background: #666; background: rgba(255, 255, 255, 0.3); border: 1px solid #111; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.15); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.15); -webkit-transition: none; -moz-transition: none; -ms-transition: none; -o-transition: none; transition: none; } .navbar-search .search-query :-moz-placeholder { color: #eeeeee; } .navbar-search .search-query::-webkit-input-placeholder { color: #eeeeee; } .navbar-search .search-query:hover { color: #ffffff; background-color: #999999; background-color: rgba(255, 255, 255, 0.5); } .navbar-search .search-query:focus, .navbar-search .search-query.focused { padding: 5px 10px; color: #333333; text-shadow: 0 1px 0 #ffffff; background-color: #ffffff; border: 0; -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); outline: 0; } .navbar-fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } .navbar-fixed-top .navbar-inner { padding-left: 0; padding-right: 0; -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; } .navbar .nav { position: relative; left: 0; display: block; float: left; margin: 0 10px 0 0; } .navbar .nav.pull-right { float: right; } .navbar .nav > li { display: block; float: left; } .navbar .nav > li > a { float: none; padding: 10px 10px 11px; line-height: 19px; color: #999999; text-decoration: none; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .navbar .nav > li > a:hover { background-color: transparent; color: #ffffff; text-decoration: none; } .navbar .nav .active > a, .navbar .nav .active > a:hover { color: #ffffff; text-decoration: none; background-color: #222222; background-color: rgba(0, 0, 0, 0.5); } .navbar .divider-vertical { height: 40px; width: 1px; margin: 0 9px; overflow: hidden; background-color: #222222; border-right: 1px solid #333333; } .navbar .nav.pull-right { margin-left: 10px; margin-right: 0; } .navbar .dropdown-menu { margin-top: 1px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .navbar .dropdown-menu:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-bottom-color: rgba(0, 0, 0, 0.2); position: absolute; top: -7px; left: 9px; } .navbar .dropdown-menu:after { content: ''; display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #ffffff; position: absolute; top: -6px; left: 10px; } .navbar .nav .dropdown-toggle .caret, .navbar .nav .open.dropdown .caret { border-top-color: #ffffff; } .navbar .nav .active .caret { opacity: 1; filter: alpha(opacity=100); } .navbar .nav .open > .dropdown-toggle, .navbar .nav .active > .dropdown-toggle, .navbar .nav .open.active > .dropdown-toggle { background-color: transparent; } .navbar .nav .active > .dropdown-toggle:hover { color: #ffffff; } .navbar .nav.pull-right .dropdown-menu { left: auto; right: 0; } .navbar .nav.pull-right .dropdown-menu:before { left: auto; right: 12px; } .navbar .nav.pull-right .dropdown-menu:after { left: auto; right: 13px; } .breadcrumb { padding: 7px 14px; margin: 0 0 18px; background-color: #fbfbfb; background-image: -moz-linear-gradient(top, #ffffff, #f5f5f5); background-image: -ms-linear-gradient(top, #ffffff, #f5f5f5); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f5f5f5)); background-image: -webkit-linear-gradient(top, #ffffff, #f5f5f5); background-image: -o-linear-gradient(top, #ffffff, #f5f5f5); background-image: linear-gradient(top, #ffffff, #f5f5f5); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0); border: 1px solid #ddd; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; } .breadcrumb li { display: inline; text-shadow: 0 1px 0 #ffffff; } .breadcrumb .divider { padding: 0 5px; color: #999999; } .breadcrumb .active a { color: #333333; } .pagination { height: 36px; margin: 18px 0; } .pagination ul { display: inline-block; *display: inline; /* IE7 inline-block hack */ *zoom: 1; margin-left: 0; margin-bottom: 0; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .pagination li { display: inline; } .pagination a { float: left; padding: 0 14px; line-height: 34px; text-decoration: none; border: 1px solid #ddd; border-left-width: 0; } .pagination a:hover, .pagination .active a { background-color: #f5f5f5; } .pagination .active a { color: #999999; cursor: default; } .pagination .disabled a, .pagination .disabled a:hover { color: #999999; background-color: transparent; cursor: default; } .pagination li:first-child a { border-left-width: 1px; -webkit-border-radius: 3px 0 0 3px; -moz-border-radius: 3px 0 0 3px; border-radius: 3px 0 0 3px; } .pagination li:last-child a { -webkit-border-radius: 0 3px 3px 0; -moz-border-radius: 0 3px 3px 0; border-radius: 0 3px 3px 0; } .pagination-centered { text-align: center; } .pagination-right { text-align: right; } .pager { margin-left: 0; margin-bottom: 18px; list-style: none; text-align: center; *zoom: 1; } .pager:before, .pager:after { display: table; content: ""; } .pager:after { clear: both; } .pager li { display: inline; } .pager a { display: inline-block; padding: 5px 14px; background-color: #fff; border: 1px solid #ddd; -webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px; } .pager a:hover { text-decoration: none; background-color: #f5f5f5; } .pager .next a { float: right; } .pager .previous a { float: left; } .modal-open .dropdown-menu { z-index: 2050; } .modal-open .dropdown.open { *z-index: 2050; } .modal-open .popover { z-index: 2060; } .modal-open .tooltip { z-index: 2070; } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000000; } .modal-backdrop.fade { opacity: 0; } .modal-backdrop, .modal-backdrop.fade.in { opacity: 0.8; filter: alpha(opacity=80); } .modal { position: fixed; top: 50%; left: 50%; z-index: 1050; max-height: 500px; overflow: auto; width: 560px; margin: -250px 0 0 -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; /* IE6-7 */ -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; } .modal.fade { -webkit-transition: opacity .3s linear, top .3s ease-out; -moz-transition: opacity .3s linear, top .3s ease-out; -ms-transition: opacity .3s linear, top .3s ease-out; -o-transition: opacity .3s linear, top .3s ease-out; transition: opacity .3s linear, top .3s ease-out; top: -25%; } .modal.fade.in { top: 50%; } .modal-header { padding: 9px 15px; border-bottom: 1px solid #eee; } .modal-header .close { margin-top: 2px; } .modal-body { padding: 15px; } .modal-footer { padding: 14px 15px 15px; margin-bottom: 0; background-color: #f5f5f5; border-top: 1px solid #ddd; -webkit-border-radius: 0 0 6px 6px; -moz-border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px; -webkit-box-shadow: inset 0 1px 0 #ffffff; -moz-box-shadow: inset 0 1px 0 #ffffff; box-shadow: inset 0 1px 0 #ffffff; *zoom: 1; } .modal-footer:before, .modal-footer:after { display: table; content: ""; } .modal-footer:after { clear: both; } .modal-footer .btn { float: right; margin-left: 5px; margin-bottom: 0; } .tooltip { position: absolute; z-index: 1020; display: block; visibility: visible; padding: 5px; font-size: 11px; opacity: 0; filter: alpha(opacity=0); } .tooltip.in { opacity: 0.8; filter: alpha(opacity=80); } .tooltip.top { margin-top: -2px; } .tooltip.right { margin-left: 2px; } .tooltip.bottom { margin-top: 2px; } .tooltip.left { margin-left: -2px; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #000000; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid #000000; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #000000; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 5px solid #000000; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #ffffff; text-align: center; text-decoration: none; background-color: #000000; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; padding: 5px; } .popover.top { margin-top: -5px; } .popover.right { margin-left: 5px; } .popover.bottom { margin-top: 5px; } .popover.left { margin-left: -5px; } .popover.top .arrow { bottom: 0; left: 50%; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #000000; } .popover.right .arrow { top: 50%; left: 0; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 5px solid #000000; } .popover.bottom .arrow { top: 0; left: 50%; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid #000000; } .popover.left .arrow { top: 50%; right: 0; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 5px solid #000000; } .popover .arrow { position: absolute; width: 0; height: 0; } .popover-inner { padding: 3px; width: 280px; overflow: hidden; background: #000000; background: rgba(0, 0, 0, 0.8); -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); } .popover-title { padding: 9px 15px; line-height: 1; background-color: #f5f5f5; border-bottom: 1px solid #eee; -webkit-border-radius: 3px 3px 0 0; -moz-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0; } .popover-content { padding: 14px; background-color: #ffffff; -webkit-border-radius: 0 0 3px 3px; -moz-border-radius: 0 0 3px 3px; border-radius: 0 0 3px 3px; -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; } .popover-content p, .popover-content ul, .popover-content ol { margin-bottom: 0; } .thumbnails { margin-left: -20px; list-style: none; *zoom: 1; } .thumbnails:before, .thumbnails:after { display: table; content: ""; } .thumbnails:after { clear: both; } .thumbnails > li { float: left; margin: 0 0 18px 20px; } .thumbnail { display: block; padding: 4px; line-height: 1; border: 1px solid #ddd; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075); } a.thumbnail:hover { border-color: #0088cc; -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); } .thumbnail > img { display: block; max-width: 100%; margin-left: auto; margin-right: auto; } .thumbnail .caption { padding: 9px; } .label { padding: 1px 3px 2px; font-size: 9.75px; font-weight: bold; color: #ffffff; text-transform: uppercase; background-color: #999999; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .label-important { background-color: #b94a48; } .label-warning { background-color: #f89406; } .label-success { background-color: #468847; } .label-info { background-color: #3a87ad; } @-webkit-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @-moz-keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } @keyframes progress-bar-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } } .progress { overflow: hidden; height: 18px; margin-bottom: 18px; background-color: #f7f7f7; background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -ms-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); background-image: linear-gradient(top, #f5f5f5, #f9f9f9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#f9f9f9', GradientType=0); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .progress .bar { width: 0%; height: 18px; color: #ffffff; font-size: 12px; text-align: center; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); background-color: #0e90d2; background-image: -moz-linear-gradient(top, #149bdf, #0480be); background-image: -ms-linear-gradient(top, #149bdf, #0480be); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); background-image: -webkit-linear-gradient(top, #149bdf, #0480be); background-image: -o-linear-gradient(top, #149bdf, #0480be); background-image: linear-gradient(top, #149bdf, #0480be); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#149bdf', endColorstr='#0480be', GradientType=0); -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-transition: width 0.6s ease; -moz-transition: width 0.6s ease; -ms-transition: width 0.6s ease; -o-transition: width 0.6s ease; transition: width 0.6s ease; } .progress-striped .bar { background-color: #62c462; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); -webkit-background-size: 40px 40px; -moz-background-size: 40px 40px; -o-background-size: 40px 40px; background-size: 40px 40px; } .progress.active .bar { -webkit-animation: progress-bar-stripes 2s linear infinite; -moz-animation: progress-bar-stripes 2s linear infinite; animation: progress-bar-stripes 2s linear infinite; } .progress-danger .bar { background-color: #dd514c; background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); background-image: linear-gradient(top, #ee5f5b, #c43c35); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0); } .progress-danger.progress-striped .bar { background-color: #ee5f5b; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-success .bar { background-color: #5eb95e; background-image: -moz-linear-gradient(top, #62c462, #57a957); background-image: -ms-linear-gradient(top, #62c462, #57a957); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); background-image: -webkit-linear-gradient(top, #62c462, #57a957); background-image: -o-linear-gradient(top, #62c462, #57a957); background-image: linear-gradient(top, #62c462, #57a957); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0); } .progress-success.progress-striped .bar { background-color: #62c462; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .progress-info .bar { background-color: #4bb1cf; background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); background-image: -ms-linear-gradient(top, #5bc0de, #339bb9); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); background-image: -o-linear-gradient(top, #5bc0de, #339bb9); background-image: linear-gradient(top, #5bc0de, #339bb9); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0); } .progress-info.progress-striped .bar { background-color: #5bc0de; background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } .accordion { margin-bottom: 18px; } .accordion-group { margin-bottom: 2px; border: 1px solid #e5e5e5; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .accordion-heading { border-bottom: 0; } .accordion-heading .accordion-toggle { display: block; padding: 8px 15px; } .accordion-inner { padding: 9px 15px; border-top: 1px solid #e5e5e5; } .carousel { position: relative; margin-bottom: 18px; line-height: 1; } .carousel-inner { overflow: hidden; width: 100%; position: relative; } .carousel .item { display: none; position: relative; -webkit-transition: 0.6s ease-in-out left; -moz-transition: 0.6s ease-in-out left; -ms-transition: 0.6s ease-in-out left; -o-transition: 0.6s ease-in-out left; transition: 0.6s ease-in-out left; } .carousel .item > img { display: block; line-height: 1; } .carousel .active, .carousel .next, .carousel .prev { display: block; } .carousel .active { left: 0; } .carousel .next, .carousel .prev { position: absolute; top: 0; width: 100%; } .carousel .next { left: 100%; } .carousel .prev { left: -100%; } .carousel .next.left, .carousel .prev.right { left: 0; } .carousel .active.left { left: -100%; } .carousel .active.right { left: 100%; } .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 60px; font-weight: 100; line-height: 30px; color: #ffffff; text-align: center; background: #222222; border: 3px solid #ffffff; -webkit-border-radius: 23px; -moz-border-radius: 23px; border-radius: 23px; opacity: 0.5; filter: alpha(opacity=50); } .carousel-control.right { left: auto; right: 15px; } .carousel-control:hover { color: #ffffff; text-decoration: none; opacity: 0.9; filter: alpha(opacity=90); } .carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 15px 5px; background: #333333; background: rgba(0, 0, 0, 0.75); } .carousel-caption h4, .carousel-caption p { color: #ffffff; } .hero-unit { padding: 60px; margin-bottom: 30px; background-color: #f5f5f5; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } .hero-unit h1 { margin-bottom: 0; font-size: 60px; line-height: 1; letter-spacing: -1px; } .hero-unit p { font-size: 18px; font-weight: 200; line-height: 27px; } .pull-right { float: right; } .pull-left { float: left; } .hide { display: none; } .show { display: block; } .invisible { visibility: hidden; } ================================================ FILE: docs/css/jquery.iviewer.css ================================================ .viewer { -ms-touch-action: none; } .iviewer_common { position:absolute; bottom:10px; border: 1px solid #000; height: 28px; z-index: 5000; } .iviewer_cursor { cursor: url(../images/iviewer/hand.cur) 6 8, pointer; } .iviewer_drag_cursor { cursor: url(../images/iviewer/grab.cur) 6 8, pointer; } .iviewer_button { width: 28px; cursor: pointer; background-position: center center; background-repeat: no-repeat; } .iviewer_zoom_in { left: 20px; background: url(../images/iviewer/iviewer.zoom_in.png); } .iviewer_zoom_out { left: 55px; background: url(../images/iviewer/iviewer.zoom_out.png); } .iviewer_zoom_zero { left: 90px; background: url(../images/iviewer/iviewer.zoom_zero.png); } .iviewer_zoom_fit { left: 125px; background: url(../images/iviewer/iviewer.zoom_fit.png); } .iviewer_zoom_status { left: 160px; font: 1em/28px Sans; color: #000; background-color: #fff; text-align: center; width: 60px; } .iviewer_rotate_left { left: 227px; background: #fff url(../images/iviewer/iviewer.rotate_left.png) center center no-repeat; } .iviewer_rotate_right { left: 262px; background: #fff url(../images/iviewer/iviewer.rotate_right.png) center center no-repeat; } ================================================ FILE: docs/css/phpdocumentor-clean-icons/Read Me.txt ================================================ To modify your generated font, use the *dev.svg* file, located in the *fonts* folder in this package. You can import this dev.svg file to the IcoMoon app. All the tags (class names) and the Unicode points of your glyphs are saved in this file. See the documentation for more info on how to use this package: http://icomoon.io/#docs/font-face ================================================ FILE: docs/css/phpdocumentor-clean-icons/lte-ie7.js ================================================ /* Load this script using conditional IE comments if you need to support IE 7 and IE 6. */ window.onload = function() { function addIcon(el, entity) { var html = el.innerHTML; el.innerHTML = '' + entity + '' + html; } var icons = { 'icon-trait' : '', 'icon-interface' : '', 'icon-class' : '' }, els = document.getElementsByTagName('*'), i, attr, html, c, el; for (i = 0; ; i += 1) { el = els[i]; if(!el) { break; } attr = el.getAttribute('data-icon'); if (attr) { addIcon(el, attr); } c = el.className; c = c.match(/icon-[^\s'"]+/); if (c && icons[c[0]]) { addIcon(el, icons[c[0]]); } } }; ================================================ FILE: docs/css/phpdocumentor-clean-icons/style.css ================================================ @font-face { font-family: 'phpdocumentor-clean-icons'; src:url('fonts/phpdocumentor-clean-icons.eot'); src:url('fonts/phpdocumentor-clean-icons.eot?#iefix') format('embedded-opentype'), url('fonts/phpdocumentor-clean-icons.woff') format('woff'), url('fonts/phpdocumentor-clean-icons.ttf') format('truetype'), url('fonts/phpdocumentor-clean-icons.svg#phpdocumentor-clean-icons') format('svg'); font-weight: normal; font-style: normal; } /* Use the following CSS code if you want to use data attributes for inserting your icons */ [data-icon]:before { font-family: 'phpdocumentor-clean-icons'; content: attr(data-icon); speak: none; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; } /* Use the following CSS code if you want to have a class per icon */ /* Instead of a list of all class selectors, you can use the generic selector below, but it's slower: [class*="icon-"] { */ .icon-trait, .icon-interface, .icon-class { font-family: 'phpdocumentor-clean-icons'; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; } .icon-trait:before { content: "\e000"; } .icon-interface:before { content: "\e001"; } .icon-class:before { content: "\e002"; } ================================================ FILE: docs/css/prettify.css ================================================ .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} ================================================ FILE: docs/css/prism.css ================================================ /** * prism.js default theme for JavaScript, CSS and HTML * Based on dabblet (http://dabblet.com) * @author Lea Verou */ code[class*="language-"], pre[class*="language-"] { color: black; text-shadow: 0 1px white; font-family: Consolas, Monaco, 'Andale Mono', monospace; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } ::-moz-selection { text-shadow: none; background: #b3d4fc; } ::selection { text-shadow: none; background: #b3d4fc; } @media print { code[class*="language-"], pre[class*="language-"] { text-shadow: none; } } /* Code blocks */ pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; } :not(pre) > code[class*="language-"], pre[class*="language-"] { background: #f5f2f0; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: slategray; } .token.punctuation { color: #999; } .namespace { opacity: .7; } .token.property, .token.tag, .token.boolean, .token.number { color: #905; } .token.selector, .token.attr-name, .token.string { color: #690; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #a67f59; background: hsla(0,0%,100%,.5); } .token.atrule, .token.attr-value, .token.keyword { color: #07a; } .token.regex, .token.important { color: #e90; } .token.important { font-weight: bold; } .token.entity { cursor: help; } pre[data-line] { position: relative; padding: 1em 0 1em 3em; } .line-highlight { position: absolute; left: 0; right: 0; padding: inherit 0; margin-top: 1em; /* Same as .prism’s padding-top */ background: hsla(24, 20%, 50%,.08); background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0)); background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0)); background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0)); background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0)); pointer-events: none; line-height: inherit; white-space: pre; } .line-highlight:before, .line-highlight[data-end]:after { content: attr(data-start); position: absolute; top: .4em; left: .6em; min-width: 1em; padding: 0 .5em; background-color: hsla(24, 20%, 50%,.4); color: hsl(24, 20%, 95%); font: bold 65%/1.5 sans-serif; text-align: center; vertical-align: .3em; border-radius: 999px; text-shadow: none; box-shadow: 0 1px white; } .line-highlight[data-end]:after { content: attr(data-end); top: auto; bottom: .4em; } pre.line-numbers { position: relative; padding-left: 3.8em; counter-reset: linenumber; } pre.line-numbers > code { position: relative; } .line-numbers .line-numbers-rows { position: absolute; pointer-events: none; top: 0; font-size: 100%; left: -3.8em; width: 3em; /* works for line-numbers below 1000 lines */ letter-spacing: -1px; border-right: 1px solid #999; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .line-numbers-rows > span { pointer-events: none; display: block; counter-increment: linenumber; } .line-numbers-rows > span:before { content: counter(linenumber); color: #999; display: block; padding-right: 0.8em; text-align: right; } ================================================ FILE: docs/css/template.css ================================================ @import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro); @import url('phpdocumentor-clean-icons/style.css'); body { padding-top: 40px; background-color: #333333; } a { color: #6495ed; } a.anchor { height: 40px; margin-top: -40px; display: block; } h1, h2, h3, h4, h5, h6, .brand { font-family: 'Source Sans Pro', sans-serif; font-weight: normal; letter-spacing: 0.05em; } h2, h3, .detailsbar h1 { overflow: hidden; white-space: nowrap; margin: 30px 0 20px 0; } h2:after, h3:after, .detailsbar h1:after { content: ''; display: inline-block; vertical-align: middle; width: 100%; height: 2px; margin-left: 1em; background: silver; } h3 { margin: 10px 0 20px 0; } h4 { margin: 20px 0 10px 0; color: gray; font-size: 18.5px; } h3.public, h3.protected, h3.private { padding-left: 10px; text-overflow: ellipsis; } .table tr:first-of-type th, .table tr:first-of-type td { border-top: none; } .detailsbar { color: #eeeeee; background-color: #333333; font-size: 0.9em; overflow: hidden; border-left: 2px solid gray; } .detailsbar h1 { font-size: 1.5em; margin-bottom: 20px; margin-top: 0; } .detailsbar h2 { font-size: 1.2em; margin: 0; padding: 0; } .detailsbar h1:after { background: gray; } .detailsbar h2:after, .detailsbar h3:after { background: transparent; } .detailsbar dt { font-variant: small-caps; text-transform: lowercase; font-size: 1.1em; letter-spacing: 0.1em; color: silver; } .hierarchy div:nth-of-type(2) { margin-left: 11px; } .hierarchy div:nth-of-type(3) { margin-left: 22px; } .hierarchy div:nth-of-type(4) { margin-left: 33px; } .hierarchy div:nth-of-type(5) { margin-left: 44px; } .hierarchy div:nth-of-type(6) { margin-left: 55px; } .hierarchy div:nth-of-type(7) { margin-left: 66px; } .hierarchy div:nth-of-type(8) { margin-left: 77px; } .hierarchy div:nth-of-type(9) { margin-left: 88px; } .hierarchy div:before { content: "\f0da"; font-family: FontAwesome; margin-right: 5px; } .row-fluid { background-color: white; overflow: hidden; } footer.row-fluid, footer.row-fluid * { background-color: #333333; color: white; } footer.row-fluid { border-top: 2px dashed #555; margin-top: 2px; } .footer-sections .span4 { border: 2px solid #555; text-align: center; border-radius: 10px; margin-top: 70px; margin-bottom: 20px; background: #373737; } .footer-sections .span4 h1 { background: transparent; margin-top: -30px; margin-bottom: 20px; font-size: 5em; } .footer-sections .span4 h1 * { background: transparent; } .footer-sections .span4 div { border-bottom-right-radius: 6px; border-bottom-left-radius: 6px; padding: 10px; min-height: 40px; } .footer-sections .span4 div, .footer-sections .span4 div * { background-color: #555; } .footer-sections .span4 ul { text-align: left; list-style: none; margin: 0; padding: 0; } .content { background-color: white; padding-right: 20px; } .content nav { text-align: center; border-bottom: 1px solid silver; margin: 5px 0 20px 0; padding-bottom: 5px; } .content > h1 { padding-bottom: 15px; } .content > h1 small { display: block; padding-bottom: 8px; font-size: 0.6em; } .deprecated { text-decoration: line-through; } .method { margin-bottom: 20px; } .method .signature .argument { color: maroon; font-weight: bold; } .class #summary section.row-fluid { overflow: hidden } .class #summary .heading { font-weight: bold; text-align: center; } .class #summary section .span4 { padding: 3px; overflow: hidden; margin-bottom: -9999px; padding-bottom: 9999px; white-space: nowrap; text-overflow: ellipsis; border-left: 5px solid transparent; } .class #summary section.public .span4:first-of-type:before, .class #summary section.public .span6:first-of-type:before, h3.public:before { font-family: FontAwesome; content: "\f046"; color: green; display: inline-block; width: 1.2em; } .class #summary section .span4:first-of-type, .class #summary section .span6:first-of-type { padding-left: 21px; } .class #summary section .span4:first-of-type:before, .class #summary section .span6:first-of-type:before { margin-left: -21px; } .class #summary section.protected .span4:first-of-type:before, .class #summary section.protected .span6:first-of-type:before, h3.protected:before { font-family: FontAwesome; content: "\f132"; color: orange; display: inline-block; width: 1.2em; } .class #summary section.private .span4:first-of-type:before, .class #summary section.private .span6:first-of-type:before, h3.private:before { font-family: FontAwesome; content: "\f023"; color: red; display: inline-block; width: 1.2em; } .class #summary section em { font-size: 0.9em; color: silver; } .class #summary .inherited { color: gray; font-style: italic; } .accordion-group { border: none; } .accordion { margin-bottom: 0; } .accordion a:hover { text-decoration: none; background: #333333; color: #eeeeee; } .accordion-heading .accordion-toggle:before { content: "\f078"; font-family: FontAwesome; margin-right: 5px; } .accordion-heading .accordion-toggle.collapsed:before { content: "\f054"; } .accordion-heading .accordion-toggle { float: left; width: 16px; height: 16px; padding: 4px 2px 4px 12px; } .accordion-heading a { display: block; padding: 4px 12px; } .accordion-inner a { display: block; padding: 4px 12px; } .accordion-inner > ul a:before { font-family: 'phpdocumentor-clean-icons'; content: "\e001"; margin-right: 5px; } .accordion-inner li.class a:before { content: "\e002"; } .accordion-inner li.interface a:before { content: "\e001"; } .accordion-inner li.trait a:before { content: "\e000"; } .accordion-inner { padding: 4px 0 4px 12px; } .accordion-inner ul { list-style: none; padding: 0; margin: 0; } .row-fluid .span2 { width: 16.5%; } body .modal { width: 90%; /* desired relative width */ left: 5%; /* (100%-width)/2 */ /* place center */ margin-left:auto; margin-right:auto; } .side-nav.nav-list li a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } @media (min-width: 767px) { .sidebar { position: fixed; top: 40px; bottom: 0; background-color: #f3f3f3; left: 0; border-right: 1px solid #e9e9e9; overflow-y: scroll; overflow-x: hidden; padding-top: 10px; } .sidebar::-webkit-scrollbar { width: 10px; } .sidebar::-webkit-scrollbar-thumb { background: #cccccc; background-clip: padding-box; border: 3px solid #f3f3f3; border-radius: 5px; } .sidebar::-webkit-scrollbar-button { display: none; } .sidebar::-webkit-scrollbar-track { background: #f3f3f3; } } @media (max-width: 979px) { body { padding-top: 0; } } @media (max-width: 767px) { .class #summary .heading { display: none; } .detailsbar h1 { display: none; } body { background-color: white; } footer.row-fluid, footer.row-fluid * { background-color: white; } .footer-sections .span4 h1 { color: #ccccd9; margin-top: 0; } .detailsbar { background-color: white; color: #333; border: none; } .row-fluid .span2 { width: 100%; } } @media (min-width: 767px) { .detailsbar { min-height: 100%; margin-bottom: -99999px; padding-bottom: 99999px; padding-left: 20px; padding-top: 10px; } } @media (min-width: 1200px) { .row-fluid .span2 { width: 16.5%; } } ================================================ FILE: docs/deprecated.html ================================================ API Documentation
No deprecated elements have been found in this project.
================================================ FILE: docs/errors.html ================================================ API Documentation

Bootstrapper/Navigation.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Breadcrumb.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Panel.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Exceptions/ThumbnailException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Exceptions/ImageException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Carousel.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/BootstrapperServiceProvider.php23

Type Line Description
error 0 No summary was found for this file
error 78 No summary for method ""
error 88 No summary for method ""
error 98 No summary for method ""
error 108 No summary for method ""
error 118 No summary for method ""
error 128 No summary for method ""
error 138 No summary for method ""
error 148 No summary for method ""
error 164 No summary for method ""
error 174 No summary for method ""
error 184 No summary for method ""
error 194 No summary for method ""
error 204 No summary for method ""
error 214 No summary for method ""
error 224 No summary for method ""
error 234 No summary for method ""
error 244 No summary for method ""
error 254 No summary for method ""
error 264 No summary for method ""
error 274 No summary for method ""
error 284 No summary for method ""
error 294 No summary for method ""

Bootstrapper/Form.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/MediaObject.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/ButtonGroup.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Badge.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Table.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/InputGroup.php3

Type Line Description
error 0 No summary was found for this file
error 5 No summary for class ""
error 11 No summary for method ""

Bootstrapper/Exceptions/ModalException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Navbar.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Icon.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Accordion.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Carousel.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Tabbable.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/RenderedObject.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Helpers.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/ButtonGroup.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/InputGroup.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/ControlGroup.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Panel.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/DropdownButton.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Button.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/DropdownButton.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Icon.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Exceptions/MediaObjectException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Image.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Exceptions/CarouselException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Label.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/ProgressBar.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Label.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/ControlGroup.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Modal.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/MediaObject.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Table.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Helpers.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Image.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Accordion.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Form.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Modal.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Navigation.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/BootstrapperFacade.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Tabbable.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Button.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Breadcrumb.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Attributes.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Alert.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Alert.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Thumbnail.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Exceptions/AccordionException.php1

Type Line Description
error 12 No summary for class ""

Bootstrapper/Exceptions/ControlGroupException.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Navbar.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Thumbnail.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/Facades/Badge.php1

Type Line Description
error 0 No summary was found for this file

Bootstrapper/ProgressBar.php1

Type Line Description
error 0 No summary was found for this file
================================================ FILE: docs/files/Accordion.html ================================================ API Documentation

Accordion.php

Classes

Accordion Accordion Class Creates Bootstrap 3 compliant accordions
================================================ FILE: docs/files/Accordion.php.txt ================================================ name = $name; return $this; } /** * Add the contents for the accordion. Should be an array of arrays * Expected Keys: * * * @param array $contents * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Set the attributes of the accordion * * @param $attributes array The attributes to use * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Sets which panel should be opened. Numbering begins from 0. * * @param $integer int * @return $this */ public function open($integer) { $this->opened = $integer; return $this; } /** * Renders the accordion * * @return string */ public function render() { if (!$this->name) { $this->name = Helpers::generateId($this); } $attributes = new Attributes( $this->attributes, ['class' => 'panel-group', 'id' => $this->name] ); $string = "
"; $count = 0; foreach ($this->contents as $item) { $itemAttributes = array_key_exists( 'attributes', $item ) ? $item['attributes'] : []; $itemAttributes = new Attributes( $itemAttributes, ['class' => 'panel panel-default'] ); $string .= "
"; $string .= "
"; $string .= "

"; $string .= "{$item['title']}"; $string .= "

"; $string .= "
"; $bodyAttributes = new Attributes( [ 'id' => "{$this->name}-{$count}", 'class' => 'panel-collapse collapse' ] ); if ($this->opened == $count) { $bodyAttributes->addClass('in'); } $string .= "
"; $string .= "
{$item['contents']}
"; $string .= "
"; $string .= "
"; $count++; } $string .= "
"; return $string; } } ================================================ FILE: docs/files/Alert.html ================================================ API Documentation

Alert.php

Classes

Alert Creates Bootstrap 3 compliant alert boxes
================================================ FILE: docs/files/Alert.php.txt ================================================ type = $type; return $this; } /** * Renders the alert * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, ['class' => "alert {$this->type}"] ); if ($this->closer) { $attributes['class'] = trim( $attributes['class'] ) . ' alert-dismissable'; $this->contents = "{$this->contents}"; } return "
{$this->contents}
"; } /** * Creates an info alert box * * @param string $contents * @return $this */ public function info($contents = '') { return $this->setType(self::INFO)->withContents($contents); } /** * Creates a success alert box * * @param string $contents * @return $this */ public function success($contents = '') { return $this->setType(self::SUCCESS)->withContents($contents); } /** * Creates a warning alert box * * @param string $contents * @return $this */ public function warning($contents = '') { return $this->setType(self::WARNING)->withContents($contents); } /** * Creates a danger alert box * * @param string $contents * @return $this */ public function danger($contents = '') { return $this->setType(self::DANGER)->withContents($contents); } /** * Sets the contents of the alert box * * @param $contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Adds a close button with the given text * * @param string $closer * @return $this */ public function close($closer = '×') { $this->closer = $closer; return $this; } /** * Sets the attributes of the alert * * @param $attributes * @return $this */ public function withAttributes($attributes) { $this->attributes = $attributes; return $this; } } ================================================ FILE: docs/files/Attributes.html ================================================ API Documentation

Attributes.php

Classes

Attributes Simple attributes bag
================================================ FILE: docs/files/Attributes.php.txt ================================================ attributes = array_merge($defaults, $attributes); if (isset($attributes['class']) && isset($defaults['class'])) { $this->attributes['class'] = trim( "{$defaults['class']} {$attributes['class']}" ); } } /** * @return string Renders the HTML attributes */ public function __toString() { $string = ""; foreach ($this->attributes as $param => $value) { if ($value == '') { continue; } if (is_string($param)) { $value = str_replace("'", "\'", $value); $value = htmlentities(trim($value)); $string .= "{$param}='{$value}' "; } else { $value = htmlentities(trim($value)); $string .= "{$value} "; } } return trim($string); } /** * (PHP 5 >= 5.0.0)
* Whether a offset exists * * @link http://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset

* An offset to check for. *

* @return boolean true on success or false on failure. *

*

* The return value will be casted to boolean if * non-boolean was returned. */ public function offsetExists($offset) { return array_key_exists($offset, $this->attributes); } /** * (PHP 5 >= 5.0.0)
* Offset to retrieve * * @link http://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset

* The offset to retrieve. *

* @return mixed Can return all value types. */ public function offsetGet($offset) { return $this->attributes[$offset]; } /** * (PHP 5 >= 5.0.0)
* Offset to set * * @link http://php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset

* The offset to assign the value to. *

* @param mixed $value

* The value to set. *

* @return void */ public function offsetSet($offset, $value) { $this->attributes[$offset] = $value; } /** * (PHP 5 >= 5.0.0)
* Offset to unset * * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset

* The offset to unset. *

* @return void */ public function offsetUnset($offset) { unset($this->attributes[$offset]); } /** * Adds to to the class attributes * * @param $class string The class to add * @return $this */ public function addClass($class) { $this->attributes['class'] = isset($this->attributes['class']) ? $this->attributes['class'] . " {$class}" : $class; return $this; } } ================================================ FILE: docs/files/Badge.html ================================================ API Documentation

Badge.php

Classes

Badge Creates Bootstrap 3 compliant Badges
================================================ FILE: docs/files/Badge.php.txt ================================================ attributes, ['class' => 'badge']); $string = "{$this->contents}"; return $string; } /** * Adds contents to the badge * * @param $contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Adds attributes to the badge * * @param $attributes array * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FAccordion.php.txt ================================================ name = $name; return $this; } /** * Add the contents for the accordion. Should be an array of arrays * Expected Keys: * * * @param array $contents * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Sets which panel should be opened. Numbering begins from 0. * * @param $integer int * @return $this */ public function open($integer) { $this->opened = $integer; return $this; } /** * Renders the accordion * * @return string */ public function render() { if (!$this->name) { $this->name = Helpers::generateId($this); } $attributes = new Attributes( $this->attributes, ['class' => 'panel-group', 'id' => $this->name] ); $string = "
"; $count = 0; foreach ($this->contents as $item) { $itemAttributes = array_key_exists( 'attributes', $item ) ? $item['attributes'] : []; $itemAttributes = new Attributes( $itemAttributes, ['class' => 'panel panel-default'] ); $string .= "
"; $string .= "
"; $string .= "

"; $string .= "{$item['title']}"; $string .= "

"; $string .= "
"; $bodyAttributes = new Attributes( [ 'id' => "{$this->name}-{$count}", 'class' => 'panel-collapse collapse' ] ); if ($this->opened == $count) { $bodyAttributes->addClass('in'); } $string .= "
"; $string .= "
{$item['contents']}
"; $string .= "
"; $string .= "
"; $count++; } $string .= "
"; return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FAlert.php.txt ================================================ type = $type; return $this; } /** * Renders the alert * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, ['class' => "alert {$this->type}"] ); if ($this->closer) { $attributes->addClass('alert-dismissable'); $this->contents = "{$this->contents}"; } return "
{$this->contents}
"; } /** * Creates an info alert box * * @param string $contents * @return $this */ public function info($contents = '') { return $this->setType(self::INFO)->withContents($contents); } /** * Creates a success alert box * * @param string $contents * @return $this */ public function success($contents = '') { return $this->setType(self::SUCCESS)->withContents($contents); } /** * Creates a warning alert box * * @param string $contents * @return $this */ public function warning($contents = '') { return $this->setType(self::WARNING)->withContents($contents); } /** * Creates a danger alert box * * @param string $contents * @return $this */ public function danger($contents = '') { return $this->setType(self::DANGER)->withContents($contents); } /** * Sets the contents of the alert box * * @param $contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Adds a close button with the given text * * @param string $closer * @return $this */ public function close($closer = '×') { $this->closer = $closer; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FAttributes.php.txt ================================================ attributes = array_merge($defaults, $attributes); if (isset($attributes['class']) && isset($defaults['class'])) { $this->attributes['class'] = trim( "{$defaults['class']} {$attributes['class']}" ); } } /** * Renders the HTML attributes * * @return string */ public function __toString() { $string = ""; foreach ($this->attributes as $param => $value) { if ($value == '') { continue; } if (is_string($param)) { $value = str_replace("'", "\'", $value); $value = htmlentities(trim($value)); $string .= "{$param}='{$value}' "; } else { $value = htmlentities(trim($value)); $string .= "{$value} "; } } return trim($string); } /** * (PHP 5 >= 5.0.0)
* Whether a offset exists * * @link http://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset

* An offset to check for. *

* @return boolean true on success or false on failure. *

*

* The return value will be casted to boolean if * non-boolean was returned. */ public function offsetExists($offset) { return array_key_exists($offset, $this->attributes); } /** * (PHP 5 >= 5.0.0)
* Offset to retrieve * * @link http://php.net/manual/en/arrayaccess.offsetget.php * @param mixed $offset

* The offset to retrieve. *

* @return mixed Can return all value types. */ public function offsetGet($offset) { return $this->attributes[$offset]; } /** * (PHP 5 >= 5.0.0)
* Offset to set * * @link http://php.net/manual/en/arrayaccess.offsetset.php * @param mixed $offset

* The offset to assign the value to. *

* @param mixed $value

* The value to set. *

* @return void */ public function offsetSet($offset, $value) { $this->attributes[$offset] = $value; } /** * (PHP 5 >= 5.0.0)
* Offset to unset * * @link http://php.net/manual/en/arrayaccess.offsetunset.php * @param mixed $offset

* The offset to unset. *

* @return void */ public function offsetUnset($offset) { unset($this->attributes[$offset]); } /** * Adds to to the class attributes * * @param $class string The class to add * @return $this */ public function addClass($class) { $this->attributes['class'] = isset($this->attributes['class']) ? trim($this->attributes['class']) . " {$class}" : $class; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FBadge.php.txt ================================================ attributes, ['class' => 'badge']); $string = "{$this->contents}"; return $string; } /** * Adds contents to the badge * * @param $contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FBootstrapperServiceProvider.php.txt ================================================ registerAccordion(); $this->registerAlert(); $this->registerBadge(); $this->registerBreadcrumb(); $this->registerButtonGroup(); $this->registerButton(); $this->registerCarousel(); $this->registerControlGroup(); $this->registerDropdownButton(); $this->registerFormBuilder(); $this->registerIcon(); $this->registerImage(); $this->registerInputGroup(); $this->registerHelpers(); $this->registerLabel(); $this->registerMediaObject(); $this->registerModal(); $this->registerNavbar(); $this->registerNavigation(); $this->registerPanel(); $this->registerProgressBar(); $this->registerTabbable(); $this->registerTable(); $this->registerThumbnail(); $this->package('patricktalmadge/bootstrapper'); $this->app['config']->package( 'patricktalmadge/bootstrapper', __DIR__ . '/../config' ); } /** * Registers the Accordion class in the IoC */ private function registerAccordion() { $this->app->bind( 'bootstrapper::accordion', function () { return new Accordion(); } ); } /** * Registers the Alert class in the IoC */ private function registerAlert() { $this->app->bind( 'bootstrapper::alert', function () { return new Alert(); } ); } /** * Registers the Badge class into the IoC */ private function registerBadge() { $this->app->bind( 'bootstrapper::badge', function () { return new Badge; } ); } /** * Registers the Breadcrumb class into the IoC */ private function registerBreadcrumb() { $this->app->bind( 'bootstrapper::breadcrumb', function () { return new Breadcrumb; } ); } /** * Registers the ButtonGroup class into the IoC */ private function registerButtonGroup() { $this->app->bind( 'bootstrapper::buttongroup', function () { return new ButtonGroup; } ); } /** * Registers the Button class into the IoC */ private function registerButton() { $this->app->bind( 'bootstrapper::button', function () { return new Button; } ); } /** * Registers the Carousel class into the IoC */ private function registerCarousel() { $this->app->bind( 'bootstrapper::carousel', function () { return new Carousel; } ); } /** * Registers the ControlGroup class into the IoC */ private function registerControlGroup() { $this->app->bind( 'bootstrapper::controlgroup', function ($app) { return new ControlGroup($app['bootstrapper::form']); } ); } /** * Registers the DropdownButton class into the IoC */ private function registerDropdownButton() { $this->app->bind( 'bootstrapper::dropdownbutton', function () { return new DropdownButton; } ); } /** * Registers the FormBuilder class into the IoC */ private function registerFormBuilder() { $this->app->bindShared( 'bootstrapper::form', function ($app) { $form = new Form( $app['html'], $app['url'], $app['session.store']->token() ); return $form->setSessionStore($app['session.store']); } ); } /** * Registers the Icon class into the IoC */ private function registerIcon() { $this->app->bind( 'bootstrapper::icon', function ($app) { return new Icon($app['config']); } ); } /** * Registers the Image class into the IoC */ private function registerImage() { $this->app->bind( 'bootstrapper::image', function () { return new Image; } ); } /** * Registers the InputGroup class into the IoC */ private function registerInputGroup() { $this->app->bind( 'bootstrapper::inputgroup', function () { return new InputGroup; } ); } /** * Registers the Label class into the IoC */ private function registerLabel() { $this->app->bind( 'bootstrapper::label', function () { return new Label; } ); } /** * Registers the Helpers class into the IoC */ private function registerHelpers() { $this->app->bind( 'bootstrapper::helpers', function ($app) { return new Helpers($app['config']); } ); } /** * Registers the MediaObject class into the IoC */ private function registerMediaObject() { $this->app->bind( 'bootstrapper::mediaobject', function () { return new MediaObject; } ); } /** * Registers the Modal class into the IoC */ private function registerModal() { $this->app->bind( 'bootstrapper::modal', function () { return new Modal; } ); } /** * Registers the Navbar class into the IoC */ private function registerNavbar() { $this->app->bind( 'bootstrapper::navbar', function ($app) { return new Navbar($app['url']); } ); } /** * Registers the Navigation class into the IoC */ private function registerNavigation() { $this->app->bind( 'bootstrapper::navigation', function ($app) { return new Navigation($app['url']); } ); } /** * Registers the Panel class into the IoC */ private function registerPanel() { $this->app->bind( 'bootstrapper::panel', function () { return new Panel; } ); } /** * Registers the ProgressBar class into the IoC */ private function registerProgressBar() { $this->app->bind( 'bootstrapper::progressbar', function () { return new ProgressBar; } ); } /** * Registers the Tabbable class into the IoC */ private function registerTabbable() { $this->app->bind( 'bootstrapper::tabbable', function ($app) { return new Tabbable($app['navigation']); } ); } /** * Registers the Table class into the IoC */ private function registerTable() { $this->app->bind( 'bootstrapper::table', function () { return new Table; } ); } /** * Registers the Thumbnail class into the IoC */ private function registerThumbnail() { $this->app->bind( 'bootstrapper::thumbnail', function () { return new Thumbnail; } ); } } ================================================ FILE: docs/files/Bootstrapper%2FBreadcrumb.php.txt ================================================ attributes, ['class' => 'breadcrumb'] ); $string = "
    "; foreach ($this->links as $text => $link) { $string .= $this->renderLink($text, $link); } $string .= "
"; return $string; } /** * Set the links for the breadcrumbs. Expects an array of the following: * * * @param $links array * @return $this */ public function withLinks(array $links) { $this->links = $links; return $this; } /** * Renders the link * * @param $text * @param $link * @return string */ protected function renderLink($text, $link) { $string = ""; if (is_string($text)) { $string .= "
  • "; $string .= "{$text}"; } else { $string .= "
  • "; $string .= $link; } $string .= "
  • "; return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FButton.php.txt ================================================ type = $type; } /** * Sets the size of the button * * @param $size string The new size of the button. Assumes that the btn- * prefix is there */ public function setSize($size) { $this->size = $size; } /** * Renders the button * * @return string as a string */ public function render() { // Set up sensible defaults $defaults = ['type' => 'button', 'class' => "btn {$this->type}"]; if ($this->url) { // An tag should not have a type attribute unset($defaults['type']); } $attributes = new Attributes($this->attributes, $defaults); // Add size and block status if needed if ($this->size) { $attributes->addClass($this->size); } if ($this->block) { $attributes->addClass(self::BLOCK); } // Add the icon if needed $value = $this->icon ? $this->getValueWithIcon() : $this->value; // Set disabled and url if ($this->disabled) { $attributes['disabled'] = 'disabled'; } if ($this->url) { $attributes['href'] = $this->url; } // Create the right tag $tag = $this->url ? 'a' : 'button'; return "<{$tag} {$attributes}>{$value}"; } /** * Creates a button with class .btn-default and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function normal($contents = '') { $this->setType(self::NORMAL); return $this->withValue($contents); } /** * Creates an button with class .btn-primary and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function primary($contents = '') { $this->setType(self::PRIMARY); return $this->withValue($contents); } /** * Creates an button with class .btn-success and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function success($contents = '') { $this->setType(self::SUCCESS); return $this->withValue($contents); } /** * Creates an button with class .btn-info and the given contents * * @param string $contents The contents of the button * @return Button */ public function info($contents = '') { $this->setType(self::INFO); return $this->withValue($contents); } /** * Creates an button with class .btn-warning and the given contents * * @param string $contents The contents of the button * @return Button */ public function warning($contents = '') { $this->setType(self::WARNING); return $this->withValue($contents); } /** * Creates an button with class .btn-danger and the given contents * * @param string $contents The contents of the button * @return Button */ public function danger($contents = '') { $this->setType(self::DANGER); return $this->withValue($contents); } /** * Creates an button with class .btn-link and the given contents * * @param string $contents The contents of the button * @return Button */ public function link($contents = '') { $this->setType(self::LINK); return $this->withValue($contents); } /** * Sets the button to be a block button * * @return $this */ public function block() { $this->block = true; return $this; } /** * Makes the button a submit button * * @return $this */ public function submit() { $this->attributes['type'] = 'submit'; return $this; } /** * Makes the button a reset button * * @return $this */ public function reset() { $this->attributes['type'] = 'reset'; return $this; } /** * Sets the value of the button * * @param $value string The new value of the button * @return $this */ public function withValue($value = '') { $this->value = $value; return $this; } /** * Sets the button to be a large button * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the button to be a small button * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the button to be an extra small button * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * More descriptive version of withAttributes * * @see withAttributes * @param array $attributes The attributes to add * @return $this */ public function addAttributes(array $attributes) { return $this->withAttributes($attributes); } /** * Disables the button * * @return $this */ public function disable() { $this->disabled = true; return $this; } /** * Adds an icon to the button * * @param $icon string The icon to add * @param bool $append Whether the icon should be added after the text or * before * @return $this */ public function withIcon($icon, $append = true) { $this->icon = $icon; $this->appendIcon = $append; return $this; } /** * Descriptive version of withIcon(). Adds the icon after the text * * @see withIcon * @param $icon string The icon to add * @return $this */ public function appendIcon($icon) { return $this->withIcon($icon, true); } /** * Descriptive version of withIcon(). Adds the icon before the text * * @param $icon string The icon to add * @return $this */ public function prependIcon($icon) { return $this->withIcon($icon, false); } /** * Adds a url to the button, making it a link. This will generate an tag * * @param $url string The url to link to * @return $this */ public function asLinkTo($url) { $this->url = $url; return $this; } /** * Get the type of the button * * @return string */ public function getType() { return $this->type; } /** * Get the value of the button. Does not return the value with the icon * * @return string */ public function getValue() { return $this->value; } /** * Gets the attributes of the button * * @return array */ public function getAttributes() { return $this->attributes; } /** * Gets the value with the icon * * @return string The new value */ protected function getValueWithIcon() { if ($this->appendIcon) { return $this->value ? "{$this->value} {$this->icon}" : $this->icon; } else { return $this->value ? "{$this->icon} {$this->value}" : $this->icon; } } } ================================================ FILE: docs/files/Bootstrapper%2FButtonGroup.php.txt ================================================ attributes, [ 'class' => $this->vertical ? 'btn-group-vertical' : 'btn-group', 'data-toggle' => 'buttons' ] ); if ($this->size) { $attributes->addClass($this->size); } $contents = $this->renderContents(); return "
    {$contents}
    "; } /** * Sets the size of the button group * * @param $size */ public function setSize($size) { $this->size = $size; } /** * Sets the button group to be large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the button group to be small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the button group to be extra small * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * Sets the button group to be radio * * @param array $contents * @return $this */ public function radio(array $contents) { return $this->asType(self::RADIO)->withContents($contents); } /** * Sets the button group to be a checkbox * * @param array $contents * @return $this */ public function checkbox(array $contents) { return $this->asType(self::CHECKBOX)->withContents($contents); } /** * Sets the contents of the button group * * @param array $contents * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Sets the button group to be vertical * * @return $this */ public function vertical() { $this->vertical = true; return $this; } /** * Sets the type of the button group * * @param $type * @return $this */ public function asType($type) { $this->type = $type; return $this; } /** * Renders the contents of the button group * * @return string */ public function renderContents() { $contents = ''; if ($this->type == 'button') { foreach ($this->contents as $item) { $contents .= $item; } } else { foreach ($this->contents as $item) { if ($item instanceof Button) { $class = $item->getType(); $value = $item->getValue(); $attributes = new Attributes( $item->getAttributes(), ['type' => $this->type] ); $contents .= ""; } else { $contents .= $item; } } } return $contents; } } ================================================ FILE: docs/files/Bootstrapper%2FCarousel.php.txt ================================================
    image
    A path to the image
    alt
    The alt * text for the image
    caption (optional)
    The caption for * that slide
    */ protected $contents = []; /** * @var int Which slide should be active at the beginning */ protected $active = 0; /** * Names the carousel * * @param string $name The name of the carousel * @return $this */ public function named($name) { $this->name = $name; return $this; } /** * Sets the contents of the carousel * * @param array $contents The new contents. Should be an array of arrays, * with the inner keys being "image", "alt" and * (optionally) "caption" * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Renders the carousel * * @return string */ public function render() { if (!$this->name) { $this->name = Helpers::generateId($this); } $attributes = new Attributes( $this->attributes, [ 'id' => $this->name, 'class' => 'carousel slide', 'data-ride' => 'carousel' ] ); $string = "
    "; $string .= $this->renderIndicators(); $string .= $this->renderItems(); $string .= $this->renderControls(); $string .= "
    "; return $string; } /** * Renders the indicators * * @return string */ protected function renderIndicators() { $string = ""; return $string; } /** * Renders the items of the carousel * * @return string */ protected function renderItems() { $string = "
    "; return $string; } /** * Set the attributes of the control group * * @param array $attributes The attributes array * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Adds the contents to the control group * * @param string $contents The contents of the control group * @param null $controlSize |int The size of the form control * @return $this * @throws ControlGroupException If is $controlSize set and not between 1 * and 12 */ public function withContents($contents, $controlSize = null) { if (isset($controlSize) && $this->sizeIsInvalid($controlSize)) { throw new ControlGroupException( 'That content size is incorrect - it must be between 1 and 12' ); } $this->contents = $contents; $this->controlSize = $controlSize; return $this; } /** * Sets the label of the control group * * @param string $label The label * @param null $labelSize |int The size of the label * @return $this * @throws ControlGroupException If is $labelSize set and not between 1 * and 12 */ public function withLabel($label, $labelSize = null) { if (isset($labelSize) && $this->sizeIsInvalid($labelSize)) { throw new ControlGroupException( 'That label size is incorrect - it must be between 1 and 12' ); } $this->label = $label; $this->labelSize = $labelSize; return $this; } /** * Adds a help block * * @param string $help The help information * @return $this */ public function withHelp($help) { $this->help = $help; return $this; } /** * Generates a full control group with a label, control and help block * * @param string $label The label * @param string $control The form control * @param string $help The help text * @param int $labelSize The size of the label * @param int $controlSize The size of the form control * @return $this * @throws ControlGroupException if the sizes are invalid */ public function generate( $label, $control, $help = null, $labelSize = null, $controlSize = null ) { if ($this->sizesAreInvalid($labelSize, $controlSize)) { throw new ControlGroupException( 'The label size + control size must be between 1 and 12' ); } return $this->withLabel($label, $labelSize) ->withContents($control, $controlSize) ->withHelp($help); } /** * Renders the contents if given as an array * * @return string */ protected function renderArrayContents() { $string = ''; foreach ($this->contents as $item) { if (isset($item['label'])) { $string .= call_user_func_array( [$this->formBuilder, 'label'], $item['label'] ) . ' '; } $input_args = $item['input']; $type = $input_args['type']; unset($input_args['type']); $string .= call_user_func_array( [$this->formBuilder, $type], $input_args ); $string .= '
    '; } return $string; } /** * Renders the label * * @return string */ public function renderLabel() { $string = ''; if ($this->labelSize) { $this->controlSize = $this->controlSize ?: 12 - $this->labelSize; $this->label = preg_replace( "/class=('|\")(.*)('|\")/i", sprintf('class=${1}${2} col-sm-%s${3}', $this->labelSize), $this->label ); } $string .= $this->label; return $string; } /** * Creates the div to surround the form control * * @return string */ public function createControlDiv() { return sprintf("
    ", $this->controlSize); } /** * Checks if both the label size and control size are invalid * * @param int $labelSize The size of the label * @param int $controlSize The size of the control group * @return bool */ protected function sizesAreInvalid($labelSize = null, $controlSize = null) { // If both are null then we have a valid size if (!isset($labelSize) && !isset($controlSize)) { return false; } // So at least one of these is null if (isset($labelSize)) { if ($this->sizeIsInvalid($labelSize)) { return true; } } else { $labelSize = 0; } if (isset($controlSize)) { if ($this->sizeIsInvalid($controlSize)) { return true; } } else { $controlSize = 0; } return $this->sizeIsInvalid($labelSize + $controlSize); } /** * Checks if the size is invalid * * @param int $size The size * @return bool True if the size is below 1 or greater than 11, * false otherwise */ protected function sizeIsInvalid($size) { return $size < 1 || $size > 11; } } ================================================ FILE: docs/files/Bootstrapper%2FDropdownButton.php.txt ================================================ "; /** * Constant for primary buttons */ const PRIMARY = 'btn-primary'; /** * Constant for danger buttons */ const DANGER = 'btn-danger'; /** * Constant for warning buttons */ const WARNING = 'btn-warning'; /** * Constant for success buttons */ const SUCCESS = 'btn-success'; /** * Constant for default buttons */ const NORMAL = 'btn-default'; /** * Constant for info buttons */ const INFO = 'btn-info'; /** * Constant for large buttons */ const LARGE = 'btn-lg'; /** * Constant for small buttons */ const SMALL = 'btn-sm'; /** * Constant for extra small buttons */ const EXTRA_SMALL = 'btn-xs'; /** * @var string The label for this button */ protected $label; /** * @var array The contents of the dropdown button */ protected $contents = []; /** * @var string The type of the button */ protected $type = 'btn-default'; /** * @var string The size of the button */ protected $size; /** * @var bool Whether the drop icon should be a seperate button */ protected $split = false; /** * @var bool Whether the button should drop up */ protected $dropup = false; /** * Set the label of the button * * @param $label * @return $this */ public function labelled($label) { $this->label = $label; return $this; } /** * Set the contents of the button * * @param array $contents The contents of the dropdown button * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Sets the type of the button * * @param string $type The type of the button * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the size of the button * * @param string $size The size of the button * @return $this */ public function setSize($size) { $this->size = $size; return $this; } /** * Splits the button * * @return $this */ public function split() { $this->split = true; return $this; } /** * Sets the button to drop up * * @return $this */ public function dropup() { $this->dropup = true; return $this; } /** * Creates a normal dropdown button * * @param string $label The label * @return $this */ public function normal($label = '') { $this->setType(self::NORMAL); return $this->labelled($label); } /** * Creates a primary dropdown button * * @param string $label The label * @return $this */ public function primary($label = '') { $this->setType(self::PRIMARY); return $this->labelled($label); } /** * Creates a danger dropdown button * * @param string $label The label * @return $this */ public function danger($label = '') { $this->setType(self::DANGER); return $this->labelled($label); } /** * Creates a warning dropdown button * * @param string $label The label * @return $this */ public function warning($label = '') { $this->setType(self::WARNING); return $this->labelled($label); } /** * Creates a success dropdown button * * @param string $label The label * @return $this */ public function success($label = '') { $this->setType(self::SUCCESS); return $this->labelled($label); } /** * Creates a info dropdown button * * @param string $label The label * @return $this */ public function info($label = '') { $this->setType(self::INFO); return $this->labelled($label); } /** * Sets the size to large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the size to small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the size to extra small * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * Renders the dropdown button * * @return string */ public function render() { if ($this->dropup) { $string = "
    "; } else { $string = "
    "; } $attributes = new Attributes( $this->attributes, [ 'class' => "btn {$this->type} dropdown-toggle", 'data-toggle' => 'dropdown', 'type' => 'button' ] ); if ($this->size) { $attributes->addClass($this->size); } if ($this->split) { $splitAttributes = new Attributes( ['class' => $attributes['class'], 'type' => 'button'] ); $splitAttributes['class'] = str_replace( ' dropdown-toggle', '', $splitAttributes['class'] ); $string .= ""; $string .= ""; } else { $string .= ""; } $string .= ""; $string .= "
    "; return $string; } /** * Render the inner items * * @return string */ protected function renderItems() { $string = ''; foreach ($this->contents as $item) { if (is_array($item)) { $string .= "
  • {$item['label']}
  • "; } else { $string .= $item; } } return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FExceptions%2FAccordionException.php.txt ================================================ $method(); case 1: return $instance->$method($args[0]); case 2: return $instance->$method($args[0], $args[1]); case 3: return $instance->$method($args[0], $args[1], $args[2]); case 4: return $instance->$method( $args[0], $args[1], $args[2], $args[3] ); default: return call_user_func_array(array($instance, $method), $args); } } /** * Get an instance out of the IoC, or the cached instance * * @param string $facade The facade accessor * @return mixed The Bootstrapper object */ private static function getInstance($facade) { if (!isset(static::$instances[$facade])) { static::$instances[$facade] = static::getFacadeRoot(); } return static::$instances[$facade]; } } ================================================ FILE: docs/files/Bootstrapper%2FFacades%2FBreadcrumb.php.txt ================================================ "; const PRIMARY = 'btn-primary'; const DANGER = 'btn-danger'; const WARNING = 'btn-warning'; const SUCCESS = 'btn-success'; const INFO = 'btn-info'; const LARGE = 'btn-lg'; const SMALL = 'btn-sm'; const EXTRA_SMALL = 'btn-xs'; /** * {@inheritdoc} * @return string */ protected static function getFacadeAccessor() { return 'dropdownbutton'; } } ================================================ FILE: docs/files/Bootstrapper%2FFacades%2FForm.php.txt ================================================ open($attributes); } /** * Opens a horizontal form * * @param array $attributes * @return string */ function horizontal($attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_HORIZONTAL . ' ' . $attributes['class'] : self::FORM_HORIZONTAL; return $this->open($attributes); } /** * Creates a validation block * * @param string $type The type of validation * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string */ public function validation($type, $label, $input, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? "form-group {$type} " . $attributes['class'] : "form-group {$type} "; $attributes = new Attributes($attributes); return "
    {$label}{$input}
    "; } /** * Creates a success validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function success($label, $input, $attributes = []) { return ($this->validation( self::FORM_SUCCESS, $label, $input, $attributes )); } /** * Creates a warning validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function warning($label, $input, $attributes = []) { return ($this->validation( Form::FORM_WARNING, $label, $input, $attributes )); } /** * Creates an error validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function error($label, $input, $attributes = []) { return ($this->validation( Form::FORM_ERROR, $label, $input, $attributes )); } /** * Creates a feedback block with an icon * * @param string $label The label * @param string $input The input * @param string $icon The icon * @param array $attributes The attributes of the block * @return string */ public function feedback($label, $input, $icon, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? 'form-group has-feedback ' . $attributes['class'] : 'form-group has-feedback'; $attributes = new Attributes($attributes); return "
    {$label}{$input}
    "; } /** * Creates a help block * * @param string $helpText The help text * @param array $attributes * @return string */ public function help($helpText, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? 'help-block ' . $attributes['class'] : 'help-block'; $attributes = new Attributes($attributes); return "{$helpText}"; } /** * Opens a horizontal form with a given model * * @param mixed $model * @param array $attributes * @return string * @see Bootstrapper\Form::horizontal() * @see Illuminate\Html::model() */ public function horizontalModel($model, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_HORIZONTAL . ' ' . $attributes['class'] : self::FORM_HORIZONTAL; return $this->model($model, $attributes); } /** * Opens a inline form with a given model * * @param mixed $model * @param array $attributes * @return string * @see Bootstrapper\Form::inline() * @see Illuminate\Html::model() */ public function inlineModel($model, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_INLINE . ' ' . $attributes['class'] : self::FORM_INLINE; return $this->model($model, $attributes); } /** * {@inheritdoc} * @param string $name * @param array $list * @param null $selected * @param array $attributes * @return string */ public function select( $name, $list = array(), $selected = null, $attributes = array() ) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::select($name, $list, $selected, $attributes); } /** * {@inheritdoc} * @param string $name The name of the text area * @param string|null $value The default value * @param array $attributes The attributes of the text area * @return string */ public function textarea($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::textarea($name, $value, $attributes); } /** * {@inheritdoc} * @param string $name The name of the password input * @param array $attributes The attributes of the input * @return string */ public function password($name, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::password($name, $attributes); } /** * {@inheritdoc} * @param string $name The name of the text input * @param string|null $value The default value * @param array $attributes The attributes of the input * @return string */ public function text($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::text($name, $value, $attributes); } /** * {@inheritdoc} * @param string $name The name of the email input * @param string|null $value The default value of the input * @param array $attributes The attributes of the email input * @return string */ public function email($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::email($name, $value, $attributes); } /** * Creates a datetime form element * * @param string $name The name of the element * @param null $value The value * @param array $attributes The attributes * @return string * @see Illuminate\FormBuilder\input() */ public function datetime($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('datetime', $name, $value, $attributes); } /** * Creates a datetime local element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string * @see Illuminate\FormBuilder\input() */ public function datetimelocal($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('datetime-local', $name, $value, $attributes); } /** * Creates a date input * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function date($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('date', $name, $value, $attributes); } /** * Creates a month input * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function month($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('month', $name, $value, $attributes); } /** * Creates a week form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function week($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('week', $name, $value, $attributes); } /** * Creates a time form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function time($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('time', $name, $value, $attributes); } /** * Creates a number form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function number($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('number', $name, $value, $attributes); } /** * Creates a url form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function url($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('url', $name, $value, $attributes); } /** * Creates a search element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function search($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('search', $name, $value, $attributes); } /** * Creates a tel element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function tel($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('tel', $name, $value, $attributes); } /** * Creates a color element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function color($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('color', $name, $value, $attributes); } } ================================================ FILE: docs/files/Bootstrapper%2FHelpers.php.txt ================================================ config = $config; } /** * Slugifies a string * * @param string $string * @return mixed */ public static function slug($string) { return preg_replace('/[^A-Za-z0-9-]+/', '-', strtolower($string)); } /** * Outputs a link to the Bootstrap CDN * * @param bool $withTheme Gets the bootstrap theme as well * @return string */ public function css($withTheme = true) { $version = $this->config->get('bootstrapper::bootstrapVersion'); $string = ""; if ($withTheme) { $string .= ""; } return $string; } /** * Outputs a link to the Jquery and Bootstrap CDN * * @return string */ public function js() { $jquery = $this->config->get('bootstrapper::jqueryVersion'); $bootstrap = $this->config->get('bootstrapper::bootstrapVersion'); return ""; } /** * Generate an id of the form "x-class-name-x". These should always be * unique. * * @param RenderedObject $caller The object that called this * @return string A unique id */ public static function generateId(RenderedObject $caller) { $class = get_class($caller); if (isset(self::$counts[$class])) { $count = self::$counts[$class]; self::$counts[$class] += 1; } else { $count = 1; self::$counts[$class] = 2; } return static::slug(implode(' ', [$count, $class, $count])); } } ================================================ FILE: docs/files/Bootstrapper%2FIcon.php.txt ================================================ config = $config; } /** * Creates a span link with the correct icon link * * @param string $icon The icon name * @return string */ public function create($icon) { $baseClass = $this->config->get('bootstrapper::icon_prefix'); $icon = $this->normaliseIconString($icon); return ""; } /** * Magic method to create icons. Meaning the $icon->test is the same as * $icon->create('test') * * @param $method The icon name * @param $parameters The parameters. Not used * @return string */ public function __call($method, $parameters) { return $this->create($method); } /** * Replaces underscores with a minus sign, and convert camelCase to dash * separated * * @param string $icon * @return string */ private function normaliseIconString($icon) { // replace underscores with minus sign // and transform from camelCaseString to camel-case-string $icon = strtolower( preg_replace( '/(?<=\\w)(?=[A-Z])/', "-$1", str_replace('_', '-', $icon) ) ); return $icon; } } ================================================ FILE: docs/files/Bootstrapper%2FImage.php.txt ================================================ src) { throw new ImageException("You must specify the source"); } $attributes = new Attributes( $this->attributes, ['src' => $this->src, 'alt' => $this->alt] ); return ""; } /** * Sets the source of the image * * @param string $source The source of the image * @return $this */ public function withSource($source) { $this->src = $source; return $this; } /** * Sets the alt text of the image * * @param string $alt The alt text of the image * @return $this */ public function withAlt($alt) { $this->alt = $alt; return $this; } /** * Sets the image to be responsive * * @return $this */ public function responsive() { $this->addClass(self::IMAGE_RESPONSIVE); return $this; } /** * Creates a rounded image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function rounded($src = null, $alt = null) { $this->addClass(self::IMAGE_ROUNDED); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Creates a circle image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function circle($src = null, $alt = null) { $this->addClass(self::IMAGE_CIRCLE); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Creates a thumbnail image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function thumbnail($src = null, $alt = null) { $this->addClass(self::IMAGE_THUMBNAIL); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Adds a class to the attributes * * @param string $class The class we need to add to the image * @internal Normally we'd use the Attributes object but we don't have * access to it at this point :-( */ public function addClass($class) { $this->attributes['class'] = isset($this->attributes['class']) ? $this->attributes['class'] . " {$class}" : $class; } } ================================================ FILE: docs/files/Bootstrapper%2FInputGroup.php.txt ================================================ "input-group {$this->size}"]; $attributes = new Attributes($this->attributes, $attributes); $string = "
    "; if (is_array($this->prepend)) { $string .= $this->renderAddon($this->prepend); } $string .= $this->contents; if (is_array($this->append)) { $string .= $this->renderAddon($this->append); } $string .= "
    "; return $string; } /** * Renders an addon * * @param array $addon The addon to render * @return string */ protected function renderAddon(array $addon) { $string = ""; if ($addon['isButton']) { $string .= ""; } else { $string .= ""; } $string .= $addon['value']; $string .= ""; return $string; } /** * Sets the contents of the input group * * @param string $contents The new contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Sets the size of the input group * * @param string $size The new size * @return $this */ public function setSize($size) { $this->size = $size; return $this; } /** * Prepends something to the input * * @param string $prepend The value to prepend * @param bool $isButton Whether the value is a button * @return $this */ public function prepend($prepend, $isButton = false) { $this->prepend = ['value' => $prepend, 'isButton' => $isButton]; return $this; } /** * Prepend a button * * @param string $button The button to prepend * @return $this */ public function prependButton($button) { return $this->prepend($button, true); } /** * Appends something to the input * * @param string $append The value to append * @param bool $isButton Whether the value is a button * @return $this */ public function append($append, $isButton = false) { $this->append = ['value' => $append, 'isButton' => $isButton]; return $this; } /** * Append a button * * @param string $button The button to append * @return $this */ public function appendButton($button) { return $this->append($button, true); } /** * Makes the input group large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Makes the input group small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FLabel.php.txt ================================================ attributes, [ 'class' => "label {$this->type}" ] ); return "{$this->contents}"; } /** * Sets the contents of the label * * @param string $contents The new contents of the label * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Sets the type of the label. Assumes that the label- prefix is already set * * @param string $type The new type * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Creates a primary label * * @param string $contents The contents of the label * @return $this */ public function primary($contents = '') { $this->setType(self::LABEL_PRIMARY); return $this->withContents($contents); } /** * Creates a success label * * @param string $contents The contents of the label * @return $this */ public function success($contents = '') { $this->setType(self::LABEL_SUCCESS); return $this->withContents($contents); } /** * Creates an info label * * @param string $contents The contents of the label * @return $this */ public function info($contents = '') { $this->setType(self::LABEL_INFO); return $this->withContents($contents); } /** * Creates a warning label * * @param string $contents The contents of the label * @return $this */ public function warning($contents = '') { $this->setType(self::LABEL_WARNING); return $this->withContents($contents); } /** * Creates a danger label * * @param string $contents The contents of the label * @return $this */ public function danger($contents = '') { $this->setType(self::LABEL_DANGER); return $this->withContents($contents); } /** * Creates a label * * @param string $contents The contents of the label * @param string $type The type to use * @return $this */ public function create($contents, $type = self::LABEL_DEFAULT) { $this->setType($type); return $this->withContents($contents); } /** * Creates a normal label * * @param string $contents The contents of the label * @return $this */ public function normal($contents = '') { $this->setType(self::LABEL_DEFAULT); return $this->withContents($contents); } } ================================================ FILE: docs/files/Bootstrapper%2FMediaObject.php.txt ================================================ list) { return $this->renderList(); } if (!$this->contents) { throw new MediaObjectException( "You need to give the object some contents" ); } return $this->renderItem($this->contents, 'div'); } /** * Sets the contents of the media object * * @param array $contents The contents of the media object * @return $this */ public function withContents(array $contents) { $this->contents = $contents; // Check if it's an array of arrays $this->list = isset($contents[0]); return $this; } /** * Force the media object to become a list * * @return $this */ public function asList() { $this->list = true; return $this; } /** * Renders a list * * @return string */ protected function renderList() { $attributes = new Attributes( $this->attributes, ['class' => 'media-list'] ); $this->attributes = []; $string = "
      "; foreach ($this->contents as $item) { $string .= $this->renderItem($item, 'li'); } $string .= "
    "; return $string; } /** * Renders an item in the string * * @param array $contents * @param string $tag The tag to wrap the item in * @return string * @throws MediaObjectException */ protected function renderItem(array $contents, $tag) { $position = $this->getPosition($contents); $heading = $this->getHeading($contents); $image = $this->getImage($contents, $heading); $link = $this->getLink($contents, $image, $position); $body = $this->getBody($contents); $attributes = new Attributes($this->attributes, ['class' => 'media']); $string = "<{$tag} {$attributes}>"; $string .= $link; $string .= "
    "; if ($heading) { $string .= "

    {$heading}

    "; } $string .= $body; $string .= "
    "; return $string; } /** * Get the position * * @param array $contents * @return string pull-right if the position key equals right. pull-left * otherwise */ protected function getPosition(array $contents) { if (isset($contents['position']) && $contents['position'] == 'right') { return 'pull-right'; } return 'pull-left'; } /** * Get the image of the media object * * @param array $contents * @param string $alt The alt text of the image * @return string * @throws MediaObjectException if there is no image set */ protected function getImage(array $contents, $alt) { if (!isset($contents['image'])) { throw new MediaObjectException( "You must pass in an image to each object" ); } $image = $contents['image']; $attributes = new Attributes( ['class' => 'media-object', 'src' => $image, 'alt' => $alt] ); return ""; } /** * Get the heading of the media object * * @param array $contents * @return string */ protected function getHeading(array $contents) { return isset($contents['heading']) ? $contents['heading'] : ''; } /** * Turn the image into a link/div * * @param array $contents The contents array * @param string $image The image * @param string $position The position * @return string */ protected function getLink(array $contents, $image, $position) { if (isset($contents['link'])) { return "{$image}"; } return "
    {$image}
    "; } /** * Get the body of the contents array * * @param array $contents * @return string * @throws MediaObjectException if the body key has not been set */ protected function getBody(array $contents) { if (!isset($contents['body'])) { throw new MediaObjectException( 'You must pass in the body to each object' ); } $string = $contents['body']; if (isset($contents['nest'])) { $object = new MediaObject(); $string .= $object->withContents($contents['nest']); } return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FModal.php.txt ================================================ attributes, ['class' => 'modal']); $string = $this->renderButton($attributes); $string .= "
    "; return $string; } /** * Sets the title of the modal * * @param string $title * @return $this */ public function withTitle($title) { $this->title = $title; return $this; } /** * Renders the header of the modal * * @return string */ protected function renderHeader() { $title = ''; if ($this->title) { $title .= ""; } return ""; } /** * Sets the body of the modal * * @param string $body The new body of the modal * @return $this */ public function withBody($body) { $this->body = $body; return $this; } /** * Renders the body * * @return string */ protected function renderBody() { return $this->body ? "" : ''; } /** * Renders the footer * * @return string */ protected function renderFooter() { return $this->footer ? "" : ''; } /** * Set the footer of the modal * * @param string $footer The footer * @return $this */ public function withFooter($footer) { $this->footer = $footer; return $this; } /** * Sets the name of the modal * * @param string $name The name of the modal * @return $this */ public function named($name) { $this->name = $name; $this->attributes['id'] = $name; return $this; } /** * Sets the button * * @param Button $button The button to open the modal with * @return $this */ public function withButton(Button $button = null) { if ($button) { $this->button = $button; } else { $button = new Button(); $this->button = $button->withValue('Open Modal'); } return $this; } /** * Renders the button * * @param Attributes $attributes The attributes of the modal * @return string */ protected function renderButton(Attributes $attributes) { if (!$this->button) { return ''; } if (!isset($attributes['id'])) { $attributes['id'] = Helpers::generateId($this); } $this->button->addAttributes( ['data-toggle' => 'modal', 'data-target' => "#{$attributes['id']}"] )->render(); return $this->button->render(); } } ================================================ FILE: docs/files/Bootstrapper%2FNavbar.php.txt ================================================ url = $url; } /** * Renders the navbar * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, [ 'class' => "navbar {$this->type} {$this->position}", 'role' => 'navigation' ] ); $string = "
    "; $string .= $this->fluid ? "
    " : "
    "; $string .= $this->renderHeader(); $string .= $this->renderContent(); $string .= "
    "; return $string; } /** * Renders the inner content * * @return string */ protected function renderContent() { $string = ""; return $string; } /** * Renders the header * * @return string */ protected function renderHeader() { $string = ""; return $string; } /** * Sets the brand of the navbar * * @param string $brand The brand * @param null|string $link The link. If not set we default to linking to * '/' using the UrlGenerator * @return $this */ public function withBrand($brand, $link = null) { if (!isset($link)) { $link = $this->url->to('/'); } $this->brand = compact('brand', 'link'); return $this; } /** * Adds some content to the navbar * * @param mixed $content Anything that can become a string! If you pass in a * Bootstrapper\Navigation object we'll make sure * it's a navbar on render. * @return $this */ public function withContent($content) { $this->content[] = $content; return $this; } /** * Sets the navbar to be inverse * * @return $this */ public function inverse() { $this->setType(self::NAVBAR_INVERSE); return $this; } /** * Sets the position to top * * @return $this */ public function staticTop() { $this->setPosition(self::NAVBAR_STATIC); return $this; } /** * Sets the type of the navbar * * @param string $type The type of the navbar. Assumes that the navbar- * prefix is there * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the position of the navbar * * @param string $position The position of the navbar. Assumes that the * navbar- prefix is there * @return $this */ public function setPosition($position) { $this->position = $position; return $this; } /** * Sets the position of the navbar to the top * * @return $this */ public function top() { $this->setPosition(self::NAVBAR_TOP); return $this; } /** * Sets the position of the navbar to the bottom * * @return $this */ public function bottom() { $this->setPosition(self::NAVBAR_BOTTOM); return $this; } /** * Creates a navbar with a position and attributes * * @param string $position The position of the navbar * @param array $attributes The attributes of the navbar * @return $this */ public function create($position, $attributes = []) { $this->setPosition($position); return $this->withAttributes($attributes); } /** * Sets the navbar to be fluid * * @return $this */ public function fluid() { $this->fluid = true; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FNavigation.php.txt ================================================ *
  • title - The text to show
  • *
  • link - The link
  • *
  • active - (optional) Forces the link to be active
  • *
  • disabled - (optional) Forces the link to be disabled. Note that * active has priority over this
  • *
  • linkAttributes - The attributes for the link
  • *
  • callback - A callback. If it return a result that is EXACTLY * equal to false then the link won't be shown
  • * * To create a dropdown, the inner array should instead be [$title, $links], * where $links is an array of arrays for links */ protected $links = []; /** * @var UrlGenerator A laravel URL generator */ protected $url; /** * @var bool Whether we should automatically activate links */ protected $autoroute = true; /** * @var bool Whether the links are justified or not */ protected $justified = false; /** * @var bool Whether the navigation links are stacked or not */ protected $stacked = false; /** * @var bool Whether the navigation links float right or not */ protected $right = false; /** * Creates a new instance of Navigation * * @param UrlGenerator $urlGenerator */ public function __construct(UrlGenerator $urlGenerator) { $this->url = $urlGenerator; } /** * Renders the navigation object * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, ['class' => "nav {$this->type}"] ); if ($this->justified) { $attributes->addClass('nav-justified'); } if ($this->stacked) { $attributes->addClass('nav-stacked'); } if ($this->right) { $attributes->addClass('navbar-right'); } $string = "
      "; foreach ($this->links as $link) { $string .= $this->renderItem($link); } $string .= "
    "; return $string; } /** * Creates a pills navigation block * * @param array $links The links * @param array $attributes The attributes. Does not overwrite the * previous values if not set * @see Bootstrapper\Navigatation::$links * @return $this */ public function pills(array $links = [], array $attributes = null) { $this->type = self::NAVIGATION_PILLS; if (!isset($attributes)) { $attributes = $this->attributes; } return $this->links($links)->withAttributes($attributes); } /** * Sets the links of the navigation object * * @param array $links The links * @return $this * @see Bootstrapper\Navigation::$links */ public function links(array $links) { $this->links = $links; return $this; } /** * Creates a navigation tab object. * * @param array $links The links to be passed in * @param array $attributes The attributes of the navigation object. Will * overwrite unless not set. * @return $this */ public function tabs(array $links = [], array $attributes = null) { $this->type = self::NAVIGATION_TABS; if (!isset($attributes)) { $attributes = $this->attributes; } return $this->links($links)->withAttributes($attributes); } /** * Renders a link * * @param array $link A link to be rendered * @return string */ protected function renderLink(array $link) { $string = ''; if (isset($link['callback'])) { $callback = $link['callback']; if ($callback() === false) { return $string; } } if ($this->itemShouldBeActive($link)) { $string .= '
  • '; } elseif (isset($link['disabled']) && $link['disabled']) { $string .= '
  • '; } else { $string .= '
  • '; } $linkAttributes = isset($link['linkAttributes']) ? $link['linkAttributes'] : []; $linkAttributes = new Attributes( $linkAttributes, ['href' => $link['link']] ); $string .= "{$link['title']}
  • "; return $string; } /** * Sets the autorouting. Pass false to turn it off, true to turn it on * * @param bool $autoroute Whether the autorouting should be on * @return $this */ public function autoroute($autoroute) { $this->autoroute = $autoroute; return $this; } /** * Renders the dropdown * * @param array $link The link to render * @return string */ protected function renderDropdown(array $link) { if ($this->dropdownShouldBeActive($link)) { $string = '
  • '; } else { $string = '
  • '; } $string .= "{$link[0]} "; $string .= '
      '; foreach ($link[1] as $item) { $string .= $this->renderItem($item); } $string .= '
    '; $string .= '
  • '; return $string; } /** * Checks to see if the dropdown should be active * * @param array $dropdown The dropdown array * @return bool */ protected function dropdownShouldBeActive(array $dropdown) { if ($this->autoroute) { foreach ($dropdown[1] as $item) { if ($this->itemShouldBeActive($item)) { return true; } } } return false; } /** * Checks to see if the given item should be active * * @param mixed $link A link to check whether it should be active * @return bool */ protected function itemShouldBeActive($link) { if (is_string($link)) { return false; } $auto = $this->autoroute && $this->url->current() == $link['link']; $manual = isset($link['active']) && $link['active']; return $auto || $manual; } /** * Turns the navigation object into one for navbars * * @return $this */ public function navbar() { $this->type = self::NAVIGATION_NAVBAR; return $this; } /** * Makes the navigation links justified * * @return $this */ public function justified() { $this->justified = true; return $this; } /** * Makes the navigation stacked * * @return $this */ public function stacked() { $this->stacked = true; return $this; } /** * Makes the navigation links float right * * @return $this */ public function right() { $this->right = true; return $this; } /** * Renders a separator * * @param string $separator * @return string */ protected function renderSeparator($separator) { return "
  • "; } /** * Renders an item * * @param string|array $link The item to render * @return string */ private function renderItem($link) { if (!is_array($link)) { $string = $this->renderSeparator($link); } elseif (isset($link['link'])) { $string = $this->renderLink($link); } else { $string = $this->renderDropdown($link); } return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FPanel.php.txt ================================================ attributes, ['class' => "panel {$this->type}"] ); $string = "
    "; if ($this->header) { $string .= $this->renderHeader(); } if ($this->body) { $string .= $this->renderBody(); } if ($this->footer) { $string .= $this->renderFooter(); } $string .= "
    "; return $string; } /** * Creates a primary panel * * @return $this */ public function primary() { $this->setType(self::PRIMARY); return $this; } /** * Creates a success panel * * @return $this */ public function success() { $this->setType(self::SUCCESS); return $this; } /** * Creates an info panel * * @return $this */ public function info() { $this->setType(self::INFO); return $this; } /** * Creates an warning panel * * @return $this */ public function warning() { $this->setType(self::WARNING); return $this; } /** * Creates an danger panel * * @return $this */ public function danger() { $this->setType(self::DANGER); return $this; } /** * Sets the type of the panel * * @param string $type The new type. Assume the panel- prefix * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the header of the panel * * @param string $header The header * @return $this */ public function withHeader($header) { $this->header = $header; return $this; } /** * Renders the header * * @return string */ protected function renderHeader() { $string = "
    "; $string .= "

    {$this->header}

    "; $string .= '
    '; return $string; } /** * Sets the body of the panel * * @param string $body The body * @return $this */ public function withBody($body) { $this->body = $body; return $this; } /** * Renders the body * * @return string */ protected function renderBody() { return "
    {$this->body}
    "; } /** * Sets the footer * * @param string $footer The new footer * @return $this */ public function withFooter($footer) { $this->footer = $footer; return $this; } /** * Renders the footer * * @return string */ protected function renderFooter() { return ""; } /** * Creates a normal panel * * @return $this */ public function normal() { $this->setType(self::NORMAL); return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FProgressBar.php.txt ================================================ "; $attributes = new Attributes( $this->attributes, [ 'class' => "progress-bar {$this->type}", 'role' => 'progressbar', 'aria-valuenow' => "{$this->value}", 'aria-valuemin' => '0', 'aria-valuemax' => '100', 'style' => $this->value ? "width: {$this->value}%" : '' ] ); if ($this->striped) { $attributes->addClass('progress-bar-striped'); } if ($this->animated) { $attributes->addClass('active'); } $string .= "
    "; $string .= $this->visible ? sprintf($this->visibleString, $this->value) : "{$this->value}% complete"; $string .= "
    "; $string .= "
    "; return $string; } /** * Sets the type of the progress bar * * @param string $type The type * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the value of the progress bar * * @param int $value The value of the progress bar The value of the * progress bar * @return $this */ public function value($value) { $this->value = $value; return $this; } /** * Whether the amount should be visible * * @param string $string The string to show to the user. We internally * will use sprintf to show this, so you must * include a %s somewhere so we can add this in * @return $this */ public function visible($string = '%s%%') { $this->visible = true; $this->visibleString = $string; return $this; } /** * Creates a success progress bar * * @param int $value The value of the progress bar * @return $this */ public function success($value = 0) { $this->setType(self::PROGRESS_BAR_SUCCESS); return $this->value($value); } /** * Creates an info progress bar * * @param int $value The value of the progress bar * @return $this */ public function info($value = 0) { $this->setType(self::PROGRESS_BAR_INFO); return $this->value($value); } /** * Creates a warning progress bar * * @param int $value The value of the progress bar * @return $this */ public function warning($value = 0) { $this->setType(self::PROGRESS_BAR_WARNING); return $this->value($value); } /** * Creates a danger progress bar * * @param int $value The value of the progress bar * @return $this */ public function danger($value = 0) { $this->setType(self::PROGRESS_BAR_DANGER); return $this->value($value); } /** * Creates a normal progress bar * * @param int $value The value of the progress bar * @return $this */ public function normal($value = 0) { $this->setType(self::PROGRESS_BAR_NORMAL); return $this->value($value); } /** * Sets the progress bar to be striped * * @return $this */ public function striped() { $this->striped = true; return $this; } /** * Sets the progress bar to be animated * * @return $this */ public function animated() { $this->animated = true; return $this->striped(); } /** * Stacks several progress bars together * * @param array $items The progress bars. Should be an array of arrays, * which are a list of methods and parameters. * @return string */ public function stack(array $items) { $string = '
    '; foreach ($items as $progressBar) { $string .= $this->generateFromArray($progressBar); } $string .= '
    '; return $string; } /** * Generates a progress bar from an array * * @param array $progressBar An array of methods with variables if required, * eg 'value=2', 'animated' * @return mixed */ protected function generateFromArray(array $progressBar) { $bar = new static; foreach ($progressBar as $attribute) { $exploded = explode('=', $attribute); $method = $exploded[0]; $vars = isset($exploded[1]) ? $exploded[1] : null; if (isset($vars)) { $bar->$method($vars); } else { $bar->$method(); } } // Now to remove the outer divs $string = $bar->render(); $string = str_replace('
    ', '', $string); $string = str_replace('
    ', '
    ', $string); return $string; } } ================================================ FILE: docs/files/Bootstrapper%2FRenderedObject.php.txt ================================================ render(); } catch (\Exception $e) { $class = get_class($e); return "

    An exception of" . " type {$class} was thrown with the message:" . " {$e->getMessage()}

    "; } } /** * Renders the object * * @return string */ public abstract function render(); /** * Set the attributes of the object * * @param array $attributes The attributes to use * @return $this */ public function withAttributes(array $attributes) { $this->attributes = array_merge($attributes, $this->attributes); return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FTabbable.php.txt ================================================ *
  • title - the title of the content
  • *
  • content - the actual content
  • *
  • attributes (optional) - any attributes
  • * */ protected $contents = []; /** * @var int Which tab should be open first */ protected $active = 0; /** * @var string The type */ protected $type = self::TAB; /** * @var bool Whether we should fade in or not */ protected $fade = false; /** * Creates a new Tabbable object * * @param Navigation $links A navigation object */ public function __construct(Navigation $links) { $this->links = $links->autoroute(false)->withAttributes( ['role' => 'tablist'] ); } /** * Renders the tabbable object * * @return string */ public function render() { $string = $this->renderNavigation(); $string .= $this->renderContents(); return $string; } /** * Creates content with a tabbed navigation * * @param array $contents The content * @return $this * @see Bootstrapper\Navigation::$contents */ public function tabs($contents = []) { $this->links->tabs(); $this->type = self::TAB; return $this->withContents($contents); } /** * Creates content with a pill navigation * * @param array $contents * @return $this * @see Bootstrapper\Navigation::$contents */ public function pills($contents = []) { $this->links->pills(); $this->type = self::PILL; return $this->withContents($contents); } /** * Sets the contents * * @param array $contents An array of arrays * @return $this * @see Bootstrapper\Navigation::$contents */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Render the navigation links * * @return string */ protected function renderNavigation() { $this->links->links($this->createNavigationLinks()); return $this->links->render(); } /** * Creates the navigation links * * @return array */ protected function createNavigationLinks() { $links = []; $count = 0; foreach ($this->contents as $link) { $links[] = [ 'link' => '#' . Helpers::slug($link['title']), 'title' => $link['title'], 'linkAttributes' => [ 'role' => 'tab', 'data-toggle' => $this->type ], 'active' => $count == $this->active ]; $count += 1; } return $links; } /** * Renders the contents * * @return string */ protected function renderContents() { $tabs = $this->createContentTabs(); $string = '
    '; foreach ($tabs as $tab) { $string .= "
    {$tab['content']}
    "; } $string .= '
    '; return $string; } /** * Creates the content tabs * * @return array */ protected function createContentTabs() { $tabs = []; $count = 0; foreach ($this->contents as $item) { $itemAttributes = isset($item['attributes']) ? $item['attributes'] : []; $attributes = new Attributes( $itemAttributes, ['class' => 'tab-pane', 'id' => Helpers::slug($item['title'])] ); if ($this->fade) { $attributes->addClass('fade'); } if ($this->active == $count) { $attributes->addClass($this->fade ? 'in active' : 'active'); } $tabs[] = [ 'content' => $item['content'], 'attributes' => $attributes ]; $count += 1; } return $tabs; } /** * Sets which tab should be active * * @param int $active * @return $this */ public function active($active) { $this->active = $active; return $this; } /** * Sets the tabbable objects to fade in * * @return $this */ public function fade() { $this->fade = true; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FTable.php.txt ================================================ function() */ protected $callbacks = []; /** * @var bool|array An array of columns to get. False if none. */ protected $only = false; /** * Renders the table * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, [ 'class' => "table {$this->type}" ] ); $string = ""; if ($this->contents) { $string .= $this->renderContents(); } $string .= '
    '; return $string; } /** * Sets the table type * * @param string $type The type of the table */ public function setType($type) { $this->type = $type; } /** * Sets the table to be striped * * @return $this */ public function striped() { $this->setType(self::TABLE_STRIPED); return $this; } /** * Sets the table to be bordered * * @return $this */ public function bordered() { $this->setType(self::TABLE_BORDERED); return $this; } /** * Sets the table to have an active hover state * * @return $this */ public function hover() { $this->setType(self::TABLE_HOVER); return $this; } /** * Sets the table to be condensed * * @return $this */ public function condensed() { $this->setType(self::TABLE_CONDENSED); return $this; } /** * Sets the contents of the table * * @param array|Traversable $contents The contents of the table. We expect * either an array of arrays or an * array of eloquent models * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Renders the contents of the table * * @return string */ private function renderContents() { $headers = $this->getHeaders(); $string = ''; foreach ($headers as $heading) { $string .= "{$heading}"; } $string .= ''; $string .= ''; foreach ($this->contents as $item) { if (!is_array($item)) { $item = $item->getAttributes(); } $string .= $this->renderItem($item, $headers); } $string .= ''; return $string; } /** * Gets the headers of the contents * * @return array */ private function getHeaders() { $headers = []; foreach ($this->contents as $item) { if (!is_array($item)) { $item = $item->getAttributes(); } foreach (array_keys($item) as $key) { if (in_array($key, $this->ignores)) { continue; } if ($this->only && !in_array($key, $this->only)) { continue; } if (!in_array($key, $headers)) { $headers[] = $key; } } } foreach (array_keys($this->callbacks) as $key) { if (in_array($key, $this->ignores)) { continue; } if (!in_array($key, $headers)) { $headers[] = $key; } } return $headers; } /** * Renders an item * * @param mixed $item The item to render * @param array $headers The headers to use * @return string */ private function renderItem($item, array $headers) { $string = ''; foreach ($headers as $heading) { $value = isset($item[$heading]) ? $item[$heading] : ''; if (isset($this->callbacks[$heading])) { $value = $this->callbacks[$heading]($value, $item); } $string .= "{$value}"; } $string .= ''; return $string; } /** * Creates a list of columns to ignore * * @param array $ignores The ignored columns * @return $this */ public function ignore(array $ignores) { $this->ignores = $ignores; return $this; } /** * Adds a callback * * @param string $index The column name for the callback * @param callable $function The callback function, * which should be of the form * function($column, $row). * @return $this */ public function callback($index, \Closure $function) { $this->callbacks[$index] = $function; return $this; } /** * Sets which columns we can return * * @param array $only * @return $this */ public function only(array $only) { $this->only = $only; return $this; } } ================================================ FILE: docs/files/Bootstrapper%2FThumbnail.php.txt ================================================ image['image'])) { throw ThumbnailException::imageNotSpecified(); } $attributes = new Attributes( $this->attributes, ['class' => 'thumbnail'] ); $string = "
    "; $string .= $this->renderImage(); if ($this->caption) { $string .= $this->renderCaption(); } $string .= '
    '; return $string; } /** * Sets the image for the thumbnail * * @param string $image The image source * @param array $attributes The attributes * @return $this */ public function image($image, $attributes = []) { $this->image = compact('image', 'attributes'); return $this; } /** * Sets the caption for the thumbnail * * @param string $caption The new caption * @return $this */ public function caption($caption) { $this->caption = $caption; return $this; } /** * Renders the image * * @return string */ protected function renderImage() { $attributes = new Attributes( $this->image['attributes'], ['src' => $this->image['image']] ); return ""; } /** * Renders the caption * * @return string */ protected function renderCaption() { return "
    {$this->caption}
    "; } } ================================================ FILE: docs/files/Bootstrapper.Accordion.html ================================================ API Documentation

    BootstrapperAccordion.php

    Bootstrapper Accordion class

    Classes

    Accordion Creates Bootstrap 3 compliant accordions
    ================================================ FILE: docs/files/Bootstrapper.Alert.html ================================================ API Documentation

    BootstrapperAlert.php

    Bootstrapper Alert class

    Classes

    Alert Creates Bootstrap 3 compliant alert boxes
    ================================================ FILE: docs/files/Bootstrapper.Attributes.html ================================================ API Documentation

    BootstrapperAttributes.php

    Bootstrapper Attributes class

    Classes

    Attributes Simple attributes bag
    ================================================ FILE: docs/files/Bootstrapper.Badge.html ================================================ API Documentation

    BootstrapperBadge.php

    Bootstrapper Badge class

    Classes

    Badge Creates Bootstrap 3 compliant Badges
    ================================================ FILE: docs/files/Bootstrapper.BootstrapperServiceProvider.html ================================================ API Documentation

    BootstrapperBootstrapperServiceProvider.php

    Bootstrapper Service Provider

    Classes

    BootstrapperServiceProvider Service provider for Laravel
    ================================================ FILE: docs/files/Bootstrapper.Breadcrumb.html ================================================ API Documentation

    BootstrapperBreadcrumb.php

    Bootstrapper Breadcrumb class

    Classes

    Breadcrumb Creates Bootstrap 3 compliant Breadcrumbs
    ================================================ FILE: docs/files/Bootstrapper.Button.html ================================================ API Documentation

    BootstrapperButton.php

    Bootstrapper Button class

    Classes

    Button Creates a Bootstrap 3 compliant Button
    ================================================ FILE: docs/files/Bootstrapper.ButtonGroup.html ================================================ API Documentation

    BootstrapperButtonGroup.php

    Bootstrapper Button Group class

    Classes

    ButtonGroup Creates Bootstrap 3 compliant Button Groups
    ================================================ FILE: docs/files/Bootstrapper.Carousel.html ================================================ API Documentation

    BootstrapperCarousel.php

    Bootstrapper Carousel class

    Classes

    Carousel Creates Bootstrap 3 compliant carousels
    ================================================ FILE: docs/files/Bootstrapper.ControlGroup.html ================================================ API Documentation

    BootstrapperControlGroup.php

    Bootstrapper ControlGroup class

    Classes

    ControlGroup Creates Bootstrap 3 compliant control groups (for forms)
    ================================================ FILE: docs/files/Bootstrapper.DropdownButton.html ================================================ API Documentation

    BootstrapperDropdownButton.php

    Bootstrapper DropdownButton class

    Classes

    DropdownButton Creates Bootstrap 3 compliant Dropdown Buttons
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.AccordionException.html ================================================ API Documentation

    Bootstrapper/ExceptionsAccordionException.php

    Exceptions for Accordions

    Classes

    AccordionException Exceptions for Accordion class
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.CarouselException.html ================================================ API Documentation

    Bootstrapper/ExceptionsCarouselException.php

    Bootstrapper Carousel exception

    Classes

    CarouselException Exceptions thrown by the Carousel Class
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.ControlGroupException.html ================================================ API Documentation

    Bootstrapper/ExceptionsControlGroupException.php

    Bootstrapper ControlGroup exceptions

    Classes

    ControlGroupException Exception for use in the ControlGroup Class
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.ImageException.html ================================================ API Documentation

    Bootstrapper/ExceptionsImageException.php

    Bootstrapper Image Exceptions

    Classes

    ImageException Exceptions for the Image class
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.MediaObjectException.html ================================================ API Documentation

    Bootstrapper/ExceptionsMediaObjectException.php

    Bootstrapper Media Object exceptions

    Classes

    MediaObjectException Exceptions for the MediaObject class
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.ModalException.html ================================================ API Documentation

    Bootstrapper/ExceptionsModalException.php

    Bootstrapper Modal exceptions

    Classes

    ModalException ModalException for use in Modals
    ================================================ FILE: docs/files/Bootstrapper.Exceptions.ThumbnailException.html ================================================ API Documentation

    Bootstrapper/ExceptionsThumbnailException.php

    Bootstrapper Thumbnail Exception

    Classes

    ThumbnailException Exception used by the Thumbnail class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Accordion.html ================================================ API Documentation

    Bootstrapper/FacadesAccordion.php

    Bootstrapper Accordion facade

    Classes

    Accordion Facade for Accordions
    ================================================ FILE: docs/files/Bootstrapper.Facades.Alert.html ================================================ API Documentation

    Bootstrapper/FacadesAlert.php

    Bootstrapper Alert facade

    Classes

    Alert Facade for Bootstrapper Alerts
    ================================================ FILE: docs/files/Bootstrapper.Facades.Badge.html ================================================ API Documentation

    Bootstrapper/FacadesBadge.php

    Bootstrapper Badge facade

    Classes

    Badge Facade for Bootstrapper Badges
    ================================================ FILE: docs/files/Bootstrapper.Facades.BootstrapperFacade.html ================================================ API Documentation

    Bootstrapper/FacadesBootstrapperFacade.php

    Bootstrapper generic facade

    Classes

    BootstrapperFacade Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.
    ================================================ FILE: docs/files/Bootstrapper.Facades.Breadcrumb.html ================================================ API Documentation

    Bootstrapper/FacadesBreadcrumb.php

    Bootstrapper Breadcrumb facade

    Classes

    Breadcrumb Facade for the Breadcrumb class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Button.html ================================================ API Documentation

    Bootstrapper/FacadesButton.php

    Bootstrapper Button facade

    Classes

    Button Facade for Button class
    ================================================ FILE: docs/files/Bootstrapper.Facades.ButtonGroup.html ================================================ API Documentation

    Bootstrapper/FacadesButtonGroup.php

    Bootstrapper Button Group facade

    Classes

    ButtonGroup Facade for ButtonGroup
    ================================================ FILE: docs/files/Bootstrapper.Facades.Carousel.html ================================================ API Documentation

    Bootstrapper/FacadesCarousel.php

    Bootstrapper Carousel facade

    Classes

    Carousel Facade for Bootstrapper Carousel
    ================================================ FILE: docs/files/Bootstrapper.Facades.ControlGroup.html ================================================ API Documentation

    Bootstrapper/FacadesControlGroup.php

    Bootstrapper ControlGroup facade

    Classes

    ControlGroup Facade for Control Groups
    ================================================ FILE: docs/files/Bootstrapper.Facades.DropdownButton.html ================================================ API Documentation

    Bootstrapper/FacadesDropdownButton.php

    Bootstrapper DropdownButton facade

    Classes

    DropdownButton Facade for DropdownButton class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Form.html ================================================ API Documentation

    Bootstrapper/FacadesForm.php

    Bootstrapper Form facade

    Classes

    Form Facade for Form
    ================================================ FILE: docs/files/Bootstrapper.Facades.Helpers.html ================================================ API Documentation

    Bootstrapper/FacadesHelpers.php

    Bootstrapper Helper facade

    Classes

    Helpers Facade for the helpers class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Icon.html ================================================ API Documentation

    Bootstrapper/FacadesIcon.php

    Bootstrapper Icon facade

    Classes

    Icon Facade for Icon class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Image.html ================================================ API Documentation

    Bootstrapper/FacadesImage.php

    Bootstrapper Image facade

    Classes

    Image Facade for Image class
    ================================================ FILE: docs/files/Bootstrapper.Facades.InputGroup.html ================================================ API Documentation

    Bootstrapper/FacadesInputGroup.php

    Bootstrapper InputGroup facade

    Classes

    InputGroup Facade for InputGroup class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Label.html ================================================ API Documentation

    Bootstrapper/FacadesLabel.php

    Bootstrapper Image facade

    Classes

    Label Facade for the Label class
    ================================================ FILE: docs/files/Bootstrapper.Facades.MediaObject.html ================================================ API Documentation

    Bootstrapper/FacadesMediaObject.php

    Bootstrapper Media Object facade

    Classes

    MediaObject Facade for MediaObject class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Modal.html ================================================ API Documentation

    Bootstrapper/FacadesModal.php

    Bootstrapper Modal facade

    Classes

    Modal Facade for the Modal class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Navbar.html ================================================ API Documentation

    Bootstrapper/FacadesNavbar.php

    Bootstrapper Navbar facade

    Classes

    Navbar Facade for Navbar class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Navigation.html ================================================ API Documentation

    Bootstrapper/FacadesNavigation.php

    Bootstrapper Navigation facade

    Classes

    Navigation Facade for the Navigation class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Panel.html ================================================ API Documentation

    Bootstrapper/FacadesPanel.php

    Bootstrapper panel facade

    Classes

    Panel Facade for the Panel class
    ================================================ FILE: docs/files/Bootstrapper.Facades.ProgressBar.html ================================================ API Documentation

    Bootstrapper/FacadesProgressBar.php

    Bootstrapper ProgressBar facade

    Classes

    ProgressBar Facade for ProgressBar
    ================================================ FILE: docs/files/Bootstrapper.Facades.Tabbable.html ================================================ API Documentation

    Bootstrapper/FacadesTabbable.php

    Bootstrapper Tabbable facade

    Classes

    Tabbable Facade for Tabbable class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Table.html ================================================ API Documentation

    Bootstrapper/FacadesTable.php

    Bootstrapper Table facade

    Classes

    Table Facade for the Table class
    ================================================ FILE: docs/files/Bootstrapper.Facades.Thumbnail.html ================================================ API Documentation

    Bootstrapper/FacadesThumbnail.php

    Bootstrapper Thumbnail facade

    Classes

    Thumbnail Facade for Thumbnails
    ================================================ FILE: docs/files/Bootstrapper.Form.html ================================================ API Documentation

    BootstrapperForm.php

    Bootstrapper Form class

    Classes

    Form Creates Bootstrap 3 compliant forms
    ================================================ FILE: docs/files/Bootstrapper.Helpers.html ================================================ API Documentation

    BootstrapperHelpers.php

    Bootstrapper Helper functions

    Classes

    Helpers Helper class
    ================================================ FILE: docs/files/Bootstrapper.Icon.html ================================================ API Documentation

    BootstrapperIcon.php

    Bootstrapper Icon class

    Classes

    Icon Creates Bootstrap 3 compliant Icons
    ================================================ FILE: docs/files/Bootstrapper.Image.html ================================================ API Documentation

    BootstrapperImage.php

    Bootstrapper Image class

    Classes

    Image Creates Bootstrap 3 compliant images
    ================================================ FILE: docs/files/Bootstrapper.InputGroup.html ================================================ API Documentation

    BootstrapperInputGroup.php

    Bootstrapper InputGroup class

    Classes

    InputGroup Creates Bootstrap 3 compliant input groups (for forms)
    ================================================ FILE: docs/files/Bootstrapper.Label.html ================================================ API Documentation

    BootstrapperLabel.php

    Bootstrapper label class

    Classes

    Label Creates bootstrap 3 compliant labels
    ================================================ FILE: docs/files/Bootstrapper.MediaObject.html ================================================ API Documentation

    BootstrapperMediaObject.php

    Bootstrapper Media Object class

    Classes

    MediaObject Creates Bootstrap 3 compliant Media Objects
    ================================================ FILE: docs/files/Bootstrapper.Modal.html ================================================ API Documentation

    BootstrapperModal.php

    Bootstrapper Modal class

    Classes

    Modal Creates Bootstrap 3 compliant modal
    ================================================ FILE: docs/files/Bootstrapper.Navbar.html ================================================ API Documentation

    BootstrapperNavbar.php

    Bootstrapper Navbar class

    Classes

    Navbar Creates Bootstrap 3 compliant navbars
    ================================================ FILE: docs/files/Bootstrapper.Navigation.html ================================================ API Documentation

    BootstrapperNavigation.php

    Bootstrapper Navigation class

    Classes

    Navigation Creates Bootstrap 3 compliant navigation
    ================================================ FILE: docs/files/Bootstrapper.Panel.html ================================================ API Documentation

    BootstrapperPanel.php

    Bootstrapper Panel class

    Classes

    Panel Creates Bootstrap 3 compliant panels
    ================================================ FILE: docs/files/Bootstrapper.ProgressBar.html ================================================ API Documentation

    BootstrapperProgressBar.php

    Bootstrapper ProgressBar class

    Classes

    ProgressBar Creates Bootstrap 3 compliant progress bars
    ================================================ FILE: docs/files/Bootstrapper.RenderedObject.html ================================================ API Documentation

    BootstrapperRenderedObject.php

    Bootstrapper base class for objects

    Classes

    RenderedObject Rendered Object abstract class
    ================================================ FILE: docs/files/Bootstrapper.Tabbable.html ================================================ API Documentation

    BootstrapperTabbable.php

    Bootstrapper Tabbable class

    Classes

    Tabbable Creates Bootstrap 3 compliant tab elements
    ================================================ FILE: docs/files/Bootstrapper.Table.html ================================================ API Documentation

    BootstrapperTable.php

    Bootstrapper Table class

    Classes

    Table Creates Bootstrap 3 compliant tables
    ================================================ FILE: docs/files/Bootstrapper.Thumbnail.html ================================================ API Documentation

    BootstrapperThumbnail.php

    Bootstrapper Thumbnail class

    Classes

    Thumbnail Creates Bootstrap 3 compliant Thumbnail
    ================================================ FILE: docs/files/BootstrapperServiceProvider.html ================================================ API Documentation

    BootstrapperServiceProvider.php

    Classes

    BootstrapperServiceProvider
    ================================================ FILE: docs/files/BootstrapperServiceProvider.php.txt ================================================ registerAccordion(); $this->registerAlert(); $this->registerBadge(); $this->registerBreadcrumb(); $this->registerButtonGroup(); $this->registerButton(); $this->registerCarousel(); $this->registerControlGroup(); $this->registerDropdownButton(); $this->registerFormBuilder(); $this->registerIcon(); $this->registerImage(); $this->registerInputGroup(); $this->registerHelpers(); $this->registerLabel(); $this->registerMediaObject(); $this->registerModal(); $this->registerNavbar(); $this->registerNavigation(); $this->registerPanel(); $this->registerProgressBar(); $this->registerTabbable(); $this->registerTable(); $this->registerThumbnail(); $this->package('patricktalmadge/bootstrapper'); $this->app['config']->package( 'patricktalmadge/bootstrapper', __DIR__ . '/../config' ); } private function registerAccordion() { $this->app->bind( 'accordion', function () { return new Accordion(); } ); } private function registerAlert() { $this->app->bind( 'alert', function () { return new Alert(); } ); } public function registerBadge() { $this->app->bind( 'badge', function () { return new Badge; } ); } public function registerBreadcrumb() { $this->app->bind( 'breadcrumb', function () { return new Breadcrumb; } ); } public function registerButtonGroup() { $this->app->bind( 'buttongroup', function () { return new ButtonGroup; } ); } public function registerButton() { $this->app->bind( 'button', function () { return new Button; } ); } public function registerCarousel() { $this->app->bind( 'carousel', function () { return new Carousel; } ); } public function registerControlGroup() { $this->app->bind( 'controlgroup', function ($app) { return new ControlGroup($app['bootstrapper::form']); } ); } public function registerDropdownButton() { $this->app->bind( 'dropdownbutton', function () { return new DropdownButton; } ); } public function registerFormBuilder() { $this->app->bindShared( 'bootstrapper::form', function ($app) { $form = new Form( $app['html'], $app['url'], $app['session.store']->token() ); return $form->setSessionStore($app['session.store']); } ); } public function registerIcon() { $this->app->bind( 'icon', function ($app) { return new Icon($app['config']); } ); } public function registerImage() { $this->app->bind( 'image', function () { return new Image; } ); } public function registerInputGroup() { $this->app->bind( 'inputgroup', function () { return new InputGroup; } ); } public function registerLabel() { $this->app->bind( 'label', function () { return new Label; } ); } public function registerHelpers() { $this->app->bind( 'bootstrapper::helpers', function ($app) { return new Helpers($app['config']); } ); } public function registerMediaObject() { $this->app->bind( 'mediaobject', function () { return new MediaObject; } ); } public function registerModal() { $this->app->bind( 'modal', function () { return new Modal; } ); } public function registerNavbar() { $this->app->bind( 'navbar', function ($app) { return new Navbar($app['url']); } ); } public function registerNavigation() { $this->app->bind( 'navigation', function ($app) { return new Navigation($app['url']); } ); } public function registerPanel() { $this->app->bind( 'panel', function () { return new Panel; } ); } public function registerProgressBar() { $this->app->bind( 'progressbar', function () { return new ProgressBar; } ); } public function registerTabbable() { $this->app->bind( 'tabbable', function ($app) { return new Tabbable($app['navigation']); } ); } public function registerTable() { $this->app->bind( 'table', function () { return new Table; } ); } public function registerThumbnail() { $this->app->bind( 'thumbnail', function () { return new Thumbnail; } ); } } ================================================ FILE: docs/files/Breadcrumb.html ================================================ API Documentation

    Breadcrumb.php

    Classes

    Breadcrumb Creates Bootstrap 3 compliant Breadcrumbs
    ================================================ FILE: docs/files/Breadcrumb.php.txt ================================================ "; foreach ($this->links as $text => $link) { $string .= $this->renderLink($text, $link); } $string .= ""; return $string; } /** * Set the links for the breadcrumbs. Expects an array of the following: * * * @param $links array * @return $this */ public function withLinks(array $links) { $this->links = $links; return $this; } /** * Renders the link * * @param $text * @param $link * @return string */ protected function renderLink($text, $link) { $string = ""; if (is_string($text)) { $string .= "
  • "; $string .= "{$text}"; } else { $string .= "
  • "; $string .= $link; } $string .= "
  • "; return $string; } } ================================================ FILE: docs/files/Button.html ================================================ API Documentation

    Button.php

    Classes

    Button Creates a Bootstrap 3 compliant Button
    ================================================ FILE: docs/files/Button.php.txt ================================================ type = $type; } /** * Sets the size of the button * * @param $size string The new size of the button. Assumes that the btn- * prefix is there */ public function setSize($size) { $this->size = $size; } /** * Renders the button * * @return string as a string */ public function render() { // Set up sensible defaults $defaults = ['type' => 'button', 'class' => "btn {$this->type}"]; if ($this->url) { // An tag should not have a type attribute unset($defaults['type']); } $attributes = new Attributes($this->attributes, $defaults); // Add size and block status if needed if ($this->size) { $attributes->addClass($this->size); } if ($this->block) { $attributes->addClass(self::BLOCK); } // Add the icon if needed $value = $this->icon ? $this->getValueWithIcon() : $this->value; // Set disabled and url if ($this->disabled) { $attributes['disabled'] = 'disabled'; } if ($this->url) { $attributes['href'] = $this->url; } // Create the right tag $tag = $this->url ? 'a' : 'button'; return "<{$tag} {$attributes}>{$value}"; } /** * Creates a button with class .btn-default and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function normal($contents = '') { $this->setType(self::NORMAL); return $this->withValue($contents); } /** * Creates an button with class .btn-primary and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function primary($contents = '') { $this->setType(self::PRIMARY); return $this->withValue($contents); } /** * Creates an button with class .btn-success and the given contents * * @param string $contents The contents of the button The contents of the * button * @return Button */ public function success($contents = '') { $this->setType(self::SUCCESS); return $this->withValue($contents); } /** * Creates an button with class .btn-info and the given contents * * @param string $contents The contents of the button * @return Button */ public function info($contents = '') { $this->setType(self::INFO); return $this->withValue($contents); } /** * Creates an button with class .btn-warning and the given contents * * @param string $contents The contents of the button * @return Button */ public function warning($contents = '') { $this->setType(self::WARNING); return $this->withValue($contents); } /** * Creates an button with class .btn-danger and the given contents * * @param string $contents The contents of the button * @return Button */ public function danger($contents = '') { $this->setType(self::DANGER); return $this->withValue($contents); } /** * Creates an button with class .btn-link and the given contents * * @param string $contents The contents of the button * @return Button */ public function link($contents = '') { $this->setType(self::LINK); return $this->withValue($contents); } /** * Sets the button to be a block button * * @return $this */ public function block() { $this->block = true; return $this; } /** * Makes the button a submit button * * @return $this */ public function submit() { $this->attributes['type'] = 'submit'; return $this; } /** * Makes the button a reset button * * @return $this */ public function reset() { $this->attributes['type'] = 'reset'; return $this; } /** * Sets the value of the button * * @param $value string The new value of the button * @return $this */ public function withValue($value = '') { $this->value = $value; return $this; } /** * Sets the button to be a large button * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the button to be a small button * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the button to be an extra small button * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * Sets the attributes of the button * * @param $attributes array An array of attributes to add * @return $this */ public function withAttributes(array $attributes) { $this->attributes = array_merge($attributes, $this->attributes); return $this; } /** * More descriptive version of withAttributes * * @see withAttributes * @param array $attributes The attributes to add * @return $this */ public function addAttributes(array $attributes) { return $this->withAttributes($attributes); } /** * Disables the button * * @return $this */ public function disable() { $this->disabled = true; return $this; } /** * Adds an icon to the button * * @param $icon string The icon to add * @param bool $append Whether the icon should be added after the text or * before * @return $this */ public function withIcon($icon, $append = true) { $this->icon = $icon; $this->appendIcon = $append; return $this; } /** * Descriptive version of withIcon(). Adds the icon after the text * * @see withIcon * @param $icon string The icon to add * @return $this */ public function appendIcon($icon) { return $this->withIcon($icon, true); } /** * Descriptive version of withIcon(). Adds the icon before the text * * @param $icon string The icon to add * @return $this */ public function prependIcon($icon) { return $this->withIcon($icon, false); } /** * Adds a url to the button, making it a link. This will generate an tag * * @param $url string The url to link to * @return $this */ public function asLinkTo($url) { $this->url = $url; return $this; } /** * Get the type of the button * * @return string */ public function getType() { return $this->type; } /** * Get the value of the button. Does not return the value with the icon * * @return string */ public function getValue() { return $this->value; } /** * @return array */ public function getAttributes() { return $this->attributes; } /** * Gets the value with the icon * * @return string The new value */ protected function getValueWithIcon() { if ($this->appendIcon) { return $this->value ? "{$this->value} {$this->icon}" : $this->icon; } else { return $this->value ? "{$this->icon} {$this->value}" : $this->icon; } } } ================================================ FILE: docs/files/ButtonGroup.html ================================================ API Documentation

    ButtonGroup.php

    Classes

    ButtonGroup Creates Bootstrap 3 compliant Button Groups
    ================================================ FILE: docs/files/ButtonGroup.php.txt ================================================ $this->vertical ? 'btn-group-vertical' : 'btn-group', 'data-toggle' => 'buttons' ] ); if ($this->size) { $attributes->addClass($this->size); } $contents = $this->renderContents(); return "
    {$contents}
    "; } /** * Sets the size of the button group * * @param $size */ public function setSize($size) { $this->size = $size; } /** * Sets the button group to be large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the button group to be small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the button group to be extra small * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * Sets the button group to be radio * * @param array $contents * @return $this */ public function radio(array $contents) { return $this->asType(self::RADIO)->withContents($contents); } /** * Sets the button group to be a checkbox * * @param array $contents * @return $this */ public function checkbox(array $contents) { return $this->asType(self::CHECKBOX)->withContents($contents); } /** * Sets the contents of the button group * * @param array $contents * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Sets the button group to be vertical * * @return $this */ public function vertical() { $this->vertical = true; return $this; } /** * Sets the type of the button group * * @param $type * @return $this */ public function asType($type) { $this->type = $type; return $this; } /** * Renders the contents of the button group * * @return string */ public function renderContents() { $contents = ''; if ($this->type == 'button') { foreach ($this->contents as $item) { $contents .= $item; } } else { foreach ($this->contents as $item) { if ($item instanceof Button) { $class = $item->getType(); $value = $item->getValue(); $attributes = new Attributes( $item->getAttributes(), ['type' => $this->type] ); $contents .= ""; } else { $contents .= $item; } } } return $contents; } } ================================================ FILE: docs/files/Carousel.html ================================================ API Documentation

    Carousel.php

    Classes

    Carousel Creates Bootstrap 3 compliant carousels
    ================================================ FILE: docs/files/Carousel.php.txt ================================================
    image
    A path to the image
    alt
    The alt * text for the image
    caption (optional)
    The caption for * that slide
    */ protected $contents = []; /** * @var array The attributes of the carousel */ protected $attributes = []; /** * @var int Which slide should be active at the beginning */ protected $active = 0; /** * Names the carousel * * @param string $name The name of the carousel * @return $this */ public function named($name) { $this->name = $name; return $this; } /** * Sets the attributes of the carousel * * @param array $attributes The new attributes * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Sets the contents of the carousel * * @param array $contents The new contents. Should be an array of arrays, * with the inner keys being "image", "alt" and * (optionally) "caption" * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Renders the carousel * * @return string */ public function render() { if (!$this->name) { $this->name = Helpers::generateId($this); } $attributes = new Attributes( $this->attributes, [ 'id' => $this->name, 'class' => 'carousel slide', 'data-ride' => 'carousel' ] ); $string = "
    "; $string .= $this->renderIndicators(); $string .= $this->renderItems(); $string .= $this->renderControls(); $string .= "
    "; return $string; } /** * Renders the indicators * * @return string */ protected function renderIndicators() { $string = ""; return $string; } /** * Renders the items of the carousel * * @return string */ protected function renderItems() { $string = ""; return $string; } /** * Set the attributes of the control group * * @param array $attributes The attributes array * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Adds the contents to the control group * * @param string $contents The contents of the control group * @param null $controlSize |int The size of the form control * @return $this * @throws ControlGroupException If is $controlSize set and not between 1 * and 12 */ public function withContents($contents, $controlSize = null) { if (isset($controlSize) && $this->sizeIsInvalid($controlSize)) { throw new ControlGroupException( 'That content size is incorrect - it must be between 1 and 12' ); } $this->contents = $contents; $this->controlSize = $controlSize; return $this; } /** * Sets the label of the control group * * @param string $label The label * @param null $labelSize |int The size of the label * @return $this * @throws ControlGroupException If is $labelSize set and not between 1 * and 12 */ public function withLabel($label, $labelSize = null) { if (isset($labelSize) && $this->sizeIsInvalid($labelSize)) { throw new ControlGroupException( 'That label size is incorrect - it must be between 1 and 12' ); } $this->label = $label; $this->labelSize = $labelSize; return $this; } /** * Adds a help block * * @param string $help The help information * @return $this */ public function withHelp($help) { $this->help = $help; return $this; } /** * Generates a full control group with a label, control and help block * * @param string $label The label * @param string $control The form control * @param string $help The help text * @param int $labelSize The size of the label * @param int $controlSize The size of the form control * @return $this * @throws ControlGroupException if the sizes are invalid */ public function generate( $label, $control, $help = null, $labelSize = null, $controlSize = null ) { if ($this->sizesAreInvalid($labelSize, $controlSize)) { throw new ControlGroupException( 'The label size + control size must be between 1 and 12' ); } return $this->withLabel($label, $labelSize) ->withContents($control, $controlSize) ->withHelp($help); } /** * Renders the contents if given as an array * * @return string */ protected function renderArrayContents() { $string = ''; foreach ($this->contents as $item) { if (isset($item['label'])) { $string .= call_user_func_array( [$this->formBuilder, 'label'], $item['label'] ) . ' '; } $input_args = $item['input']; $type = $input_args['type']; unset($input_args['type']); $string .= call_user_func_array( [$this->formBuilder, $type], $input_args ); $string .= '
    '; } return $string; } /** * Renders the label * * @return string */ public function renderLabel() { $string = ''; if ($this->labelSize) { $this->controlSize = $this->controlSize ?: 12 - $this->labelSize; $this->label = preg_replace( "/class=('|\")(.*)('|\")/i", sprintf('class=${1}${2} col-sm-%s${3}', $this->labelSize), $this->label ); } $string .= $this->label; return $string; } /** * Creates the div to surround the form control * * @return string */ public function createControlDiv() { return sprintf("
    ", $this->controlSize); } /** * Checks if both the label size and control size are invalid * * @param int $labelSize The size of the label * @param int $controlSize The size of the control group * @return bool */ protected function sizesAreInvalid($labelSize = null, $controlSize = null) { // If both are null then we have a valid size if (!isset($labelSize) && !isset($controlSize)) { return false; } // So at least one of these is null if (isset($labelSize)) { if ($this->sizeIsInvalid($labelSize)) { return true; } } else { $labelSize = 0; } if (isset($controlSize)) { if ($this->sizeIsInvalid($controlSize)) { return true; } } else { $controlSize = 0; } return $this->sizeIsInvalid($labelSize + $controlSize); } /** * Checks if the size is invalid * * @param int The $size size * @return bool True if the size is below 1 or greater than 11, * false otherwise */ protected function sizeIsInvalid($size) { return $size < 1 || $size > 11; } } ================================================ FILE: docs/files/DropdownButton.html ================================================ API Documentation

    DropdownButton.php

    Classes

    DropdownButton Creates Bootstrap 3 compliant Dropdown Buttons
    ================================================ FILE: docs/files/DropdownButton.php.txt ================================================ "; /** * Constant for primary buttons */ const PRIMARY = 'btn-primary'; /** * Constant for danger buttons */ const DANGER = 'btn-danger'; /** * Constant for warning buttons */ const WARNING = 'btn-warning'; /** * Constant for success buttons */ const SUCCESS = 'btn-success'; /** * Constant for default buttons */ const NORMAL = 'btn-default'; /** * Constant for info buttons */ const INFO = 'btn-info'; /** * Constant for large buttons */ const LARGE = 'btn-lg'; /** * Constant for small buttons */ const SMALL = 'btn-sm'; /** * Constant for extra small buttons */ const EXTRA_SMALL = 'btn-xs'; /** * @var string The label for this button */ protected $label; /** * @var array The contents of the dropdown button */ protected $contents = []; /** * @var string The type of the button */ protected $type = 'btn-default'; /** * @var string The size of the button */ protected $size; /** * @var bool Whether the drop icon should be a seperate button */ protected $split = false; /** * @var bool Whether the button should drop up */ protected $dropup = false; /** * Set the label of the button * * @param $label * @return $this */ public function labelled($label) { $this->label = $label; return $this; } /** * Set the contents of the button * * @param array $contents The contents of the dropdown button * @return $this */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Sets the type of the button * * @param string $type The type of the button * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the size of the button * * @param string $size The size of the button * @return $this */ public function setSize($size) { $this->size = $size; return $this; } /** * Splits the button * * @return $this */ public function split() { $this->split = true; return $this; } /** * Sets the button to drop up * * @return $this */ public function dropup() { $this->dropup = true; return $this; } /** * Creates a normal dropdown button * * @param string $label The label * @return $this */ public function normal($label = '') { $this->setType(self::NORMAL); return $this->labelled($label); } /** * Creates a primary dropdown button * * @param string $label The label * @return $this */ public function primary($label = '') { $this->setType(self::PRIMARY); return $this->labelled($label); } /** * Creates a danger dropdown button * * @param string $label The label * @return $this */ public function danger($label = '') { $this->setType(self::DANGER); return $this->labelled($label); } /** * Creates a warning dropdown button * * @param string $label The label * @return $this */ public function warning($label = '') { $this->setType(self::WARNING); return $this->labelled($label); } /** * Creates a success dropdown button * * @param string $label The label * @return $this */ public function success($label = '') { $this->setType(self::SUCCESS); return $this->labelled($label); } /** * Creates a info dropdown button * * @param string $label The label * @return $this */ public function info($label = '') { $this->setType(self::INFO); return $this->labelled($label); } /** * Sets the size to large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Sets the size to small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } /** * Sets the size to extra small * * @return $this */ public function extraSmall() { $this->setSize(self::EXTRA_SMALL); return $this; } /** * Renders the dropdown button * * @return string */ public function render() { if ($this->dropup) { $string = "
    "; } else { $string = "
    "; } $attributes = new Attributes( [ 'class' => "btn {$this->type} dropdown-toggle", 'data-toggle' => 'dropdown', 'type' => 'button' ] ); if ($this->size) { $attributes->addClass($this->size); } if ($this->split) { $splitAttributes = new Attributes( ['class' => $attributes['class'], 'type' => 'button'] ); $splitAttributes['class'] = str_replace( ' dropdown-toggle', '', $splitAttributes['class'] ); $string .= ""; $string .= ""; } else { $string .= ""; } $string .= ""; $string .= "
    "; return $string; } /** * Render the inner items * * @return string */ protected function renderItems() { $string = ''; foreach ($this->contents as $item) { if (is_array($item)) { $string .= "
  • {$item['label']}
  • "; } else { $string .= $item; } } return $string; } } ================================================ FILE: docs/files/Exceptions%2FAccordionException.php.txt ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.CarouselException.html ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.ControlGroupException.html ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.ImageException.html ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.MediaObjectException.html ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.ModalException.html ================================================ API Documentation ================================================ FILE: docs/files/Exceptions.ThumbnailException.html ================================================ API Documentation ================================================ FILE: docs/files/Facades%2FAccordion.php.txt ================================================ $method(); case 1: return $instance->$method($args[0]); case 2: return $instance->$method($args[0], $args[1]); case 3: return $instance->$method($args[0], $args[1], $args[2]); case 4: return $instance->$method( $args[0], $args[1], $args[2], $args[3] ); default: return call_user_func_array(array($instance, $method), $args); } } /** * Get an instance out of the IoC, or the cached instance * * @param string $facade The facade accessor * @return mixed The Bootstrapper object */ private static function getInstance($facade) { if (!isset(static::$instances[$facade])) { static::$instances[$facade] = static::getFacadeRoot(); } return static::$instances[$facade]; } } ================================================ FILE: docs/files/Facades%2FBreadcrumb.php.txt ================================================ "; const PRIMARY = 'btn-primary'; const DANGER = 'btn-danger'; const WARNING = 'btn-warning'; const SUCCESS = 'btn-success'; const INFO = 'btn-info'; const LARGE = 'btn-lg'; const SMALL = 'btn-sm'; const EXTRA_SMALL = 'btn-xs'; /** * {@inheritdoc} * * @return string */ protected static function getFacadeAccessor() { return 'dropdownbutton'; } } ================================================ FILE: docs/files/Facades%2FForm.php.txt ================================================ API Documentation ================================================ FILE: docs/files/Facades.Alert.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Badge.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.BootstrapperFacade.html ================================================ API Documentation

    FacadesBootstrapperFacade.php

    Classes

    BootstrapperFacade Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.
    ================================================ FILE: docs/files/Facades.Breadcrumb.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Button.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.ButtonGroup.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Carousel.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.ControlGroup.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.DropdownButton.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Form.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Helpers.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Icon.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Image.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.InputGroup.html ================================================ API Documentation

    FacadesInputGroup.php

    Classes

    InputGroup Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.
    ================================================ FILE: docs/files/Facades.Label.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.MediaObject.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Modal.html ================================================ API Documentation

    FacadesModal.php

    Classes

    Modal Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.
    ================================================ FILE: docs/files/Facades.Navbar.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Navigation.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Panel.html ================================================ API Documentation

    FacadesPanel.php

    Classes

    Panel Facade for Bootstrapper classes. Have to use this because Laravel is a bit too clever for our liking and gives us the same instance each time. This is not helpful when we're using something like this and we have several instances of the object in use.
    ================================================ FILE: docs/files/Facades.ProgressBar.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Tabbable.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Table.html ================================================ API Documentation ================================================ FILE: docs/files/Facades.Thumbnail.html ================================================ API Documentation ================================================ FILE: docs/files/Form.html ================================================ API Documentation ================================================ FILE: docs/files/Form.php.txt ================================================ open($attributes); } /** * Opens a horizontal form * * @param array $attributes * @return string */ function horizontal($attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_HORIZONTAL . ' ' . $attributes['class'] : self::FORM_HORIZONTAL; return $this->open($attributes); } /** * Creates a validation block * * @param string $type The type of validation * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string */ public function validation($type, $label, $input, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? "form-group {$type} " . $attributes['class'] : "form-group {$type} "; $attributes = new Attributes($attributes); return "
    {$label}{$input}
    "; } /** * Creates a success validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function success($label, $input, $attributes = []) { return ($this->validation( self::FORM_SUCCESS, $label, $input, $attributes )); } /** * Creates a warning validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function warning($label, $input, $attributes = []) { return ($this->validation( Form::FORM_WARNING, $label, $input, $attributes )); } /** * Creates an error validation block * * @param string $label The label * @param string $input The input * @param array $attributes The attributes of the validation block * @return string * @see Bootstrapper\\Form::validation() */ public function error($label, $input, $attributes = []) { return ($this->validation( Form::FORM_ERROR, $label, $input, $attributes )); } /** * Creates a feedback block with an icon * * @param string $label The label * @param string $input The input * @param string $icon The icon * @param array $attributes The attributes of the block * @return string */ public function feedback($label, $input, $icon, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? 'form-group has-feedback ' . $attributes['class'] : 'form-group has-feedback'; $attributes = new Attributes($attributes); return "
    {$label}{$input}
    "; } /** * Creates a help block * * @param string $helpText The help text * @param array $attributes * @return string */ public function help($helpText, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? 'help-block ' . $attributes['class'] : 'help-block'; $attributes = new Attributes($attributes); return "{$helpText}"; } /** * Opens a horizontal form with a given model * * @param mixed $model * @param array $attributes * @return string * @see Bootstrapper\Form::horizontal() * @see Illuminate\Html::model() */ public function horizontalModel($model, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_HORIZONTAL . ' ' . $attributes['class'] : self::FORM_HORIZONTAL; return $this->model($model, $attributes); } /** * Opens a inline form with a given model * * @param mixed $model * @param array $attributes * @return string * @see Bootstrapper\Form::inline() * @see Illuminate\Html::model() */ public function inlineModel($model, $attributes = []) { $attributes['class'] = isset($attributes['class']) ? self::FORM_INLINE . ' ' . $attributes['class'] : self::FORM_INLINE; return $this->model($model, $attributes); } /** * {@inheritdoc} * @param string $name * @param array $list * @param null $selected * @param array $attributes * @return string */ public function select( $name, $list = array(), $selected = null, $attributes = array() ) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::select($name, $list, $selected, $attributes); } /** * {@inheritdoc} * * @param string $name The name of the text area * @param string|null $value The default value * @param array $attributes The attributes of the text area * @return string */ public function textarea($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::textarea($name, $value, $attributes); } /** * @param string $name * @param array $attributes * @return string */ public function password($name, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::password($name, $attributes); } /** * {@inheritdoc} * * @param string $name The name of the text input * @param string|null $value The default value * @param array $attributes The attributes of the input * @return string */ public function text($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::text($name, $value, $attributes); } /** * {@inheritdoc} * * @param string $name The name of the email input * @param string|null $value The default value of the input * @param array $attributes The attributes of the email input * @return string */ public function email($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::email($name, $value, $attributes); } /** * Creates a datetime form element * * @param string $name The name of the element * @param null $value The value * @param array $attributes The attributes * @return string * @see Illuminate\FormBuilder\input() */ public function datetime($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('datetime', $name, $value, $attributes); } /** * Creates a datetime local element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string * @see Illuminate\FormBuilder\input() */ public function datetimelocal($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('datetime-local', $name, $value, $attributes); } /** * Creates a date input * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function date($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('date', $name, $value, $attributes); } /** * Creates a month input * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function month($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('month', $name, $value, $attributes); } /** * Creates a week form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function week($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('week', $name, $value, $attributes); } /** * Creates a time form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function time($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('time', $name, $value, $attributes); } /** * Creates a number form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function number($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('number', $name, $value, $attributes); } /** * Creates a url form element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function url($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('url', $name, $value, $attributes); } /** * Creates a search element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function search($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('search', $name, $value, $attributes); } /** * Creates a tel element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function tel($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('tel', $name, $value, $attributes); } /** * Creates a color element * * @param string $name The name of the element * @param null $value * @param array $attributes * @return string */ public function color($name, $value = null, $attributes = array()) { $attributes['class'] = isset($attributes['class']) ? self::FORM_CONTROL . ' ' . $attributes['class'] : self::FORM_CONTROL; return parent::input('color', $name, $value, $attributes); } } ================================================ FILE: docs/files/Helpers.html ================================================ API Documentation ================================================ FILE: docs/files/Helpers.php.txt ================================================ config = $config; } /** * Slugifies a string * * @param string $string * @return mixed */ public static function slug($string) { return preg_replace('/[^A-Za-z0-9-]+/', '-', strtolower($string)); } /** * Outputs a link to the Bootstrap CDN * * @param bool $withTheme Gets the bootstrap theme as well * @return string */ public function css($withTheme = true) { $version = $this->config->get('bootstrapper::bootstrapVersion'); $string = ""; if ($withTheme) { $string .= ""; } return $string; } /** * Outputs a link to the Jquery and Bootstrap CDN * * @return string */ public function js() { $jquery = $this->config->get('bootstrapper::jqueryVersion'); $bootstrap = $this->config->get('bootstrapper::bootstrapVersion'); return ""; } /** * Generate an id of the form "x-class-name-x". These should always be * unique. * * @param RenderedObject $caller The object that called this * @return string A unique id */ public static function generateId(RenderedObject $caller) { $class = get_class($caller); if (isset(self::$counts[$class])) { $count = self::$counts[$class]; self::$counts[$class] += 1; } else { $count = 1; self::$counts[$class] = 2; } return static::slug(implode(' ', [$count, $class, $count])); } } ================================================ FILE: docs/files/Icon.html ================================================ API Documentation ================================================ FILE: docs/files/Icon.php.txt ================================================ config = $config; } /** * Creates a span link with the correct icon link * * @param string $icon The icon name * @return string */ public function create($icon) { $baseClass = $this->config->get('bootstrapper::icon_prefix'); $icon = $this->normaliseIconString($icon); return ""; } /** * Magic method to create icons. Meaning the $icon->test is the same as * $icon->create('test') * * @param $method The icon name * @param $parameters The parameters. Not used * @return string */ public function __call($method, $parameters) { return $this->create($method); } /** * Replaces underscores with a minus sign, and convert camelCase to dash * separated * * @param string $icon * @return string */ private function normaliseIconString($icon) { // replace underscores with minus sign // and transform from camelCaseString to camel-case-string $icon = strtolower( preg_replace( '/(?<=\\w)(?=[A-Z])/', "-$1", str_replace('_', '-', $icon) ) ); return $icon; } } ================================================ FILE: docs/files/Image.html ================================================ API Documentation ================================================ FILE: docs/files/Image.php.txt ================================================ src) { throw new ImageException("You must specify the source"); } $attributes = new Attributes( $this->attributes, ['src' => $this->src, 'alt' => $this->alt] ); return ""; } /** * Sets the source of the image * * @param string $source The source of the image * @return $this */ public function withSource($source) { $this->src = $source; return $this; } /** * Sets the alt text of the image * * @param string $alt The alt text of the image * @return $this */ public function withAlt($alt) { $this->alt = $alt; return $this; } /** * Sets the attributes of the image * * @param array $attributes * @return $this */ public function withAttributes($attributes) { $this->attributes = $attributes; return $this; } /** * Sets the image to be responsive * * @return $this */ public function responsive() { $this->addClass(self::IMAGE_RESPONSIVE); return $this; } /** * Creates a rounded image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function rounded($src = null, $alt = null) { $this->addClass(self::IMAGE_ROUNDED); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Creates a circle image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function circle($src = null, $alt = null) { $this->addClass(self::IMAGE_CIRCLE); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Creates a thumbnail image * * @param null|string $src The source of the image. Pass null to use the * previous value of the source * @param null|string $alt The alt text of the image. Pass null to use * the previous value * @return $this */ public function thumbnail($src = null, $alt = null) { $this->addClass(self::IMAGE_THUMBNAIL); if (!isset($src)) { $src = $this->src; } if (!isset($alt)) { $alt = $this->alt; } return $this->withSource($src)->withAlt($alt); } /** * Adds a class to the attributes * * @param string $class The class we need to add to the image * @internal Normally we'd use the Attributes object but we don't have * access to it at this point :-( */ public function addClass($class) { $this->attributes['class'] = isset($this->attributes['class']) ? $this->attributes['class'] . " {$class}" : $class; } } ================================================ FILE: docs/files/InputGroup.html ================================================ API Documentation ================================================ FILE: docs/files/InputGroup.php.txt ================================================ "input-group {$this->size}"]; $attributes = new Attributes($this->attributes, $attributes); $string = "
    "; if (is_array($this->prepend)) { $string .= $this->renderAddon($this->prepend); } $string .= $this->contents; if (is_array($this->append)) { $string .= $this->renderAddon($this->append); } $string .= "
    "; return $string; } /** * Renders an addon * * @param array $addon The addon to render * @return string */ protected function renderAddon(array $addon) { $string = ""; if ($addon['isButton']) { $string .= ""; } else { $string .= ""; } $string .= $addon['value']; $string .= ""; return $string; } /** * Sets the contents of the input group * * @param string $contents The new contents * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Sets the attributes * * @param array $attributes The new attributes of the input group * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Sets the size of the input group * * @param string $size The new size * @return $this */ public function setSize($size) { $this->size = $size; return $this; } /** * Prepends something to the input * * @param string $prepend The value to prepend * @param bool $isButton Whether the value is a button * @return $this */ public function prepend($prepend, $isButton = false) { $this->prepend = ['value' => $prepend, 'isButton' => $isButton]; return $this; } /** * Prepend a button * * @param string $button The button to prepend * @return $this */ public function prependButton($button) { return $this->prepend($button, true); } /** * Appends something to the input * * @param string $append The value to append * @param bool $isButton Whether the value is a button * @return $this */ public function append($append, $isButton = false) { $this->append = ['value' => $append, 'isButton' => $isButton]; return $this; } /** * Append a button * * @param string $button The button to append * @return $this */ public function appendButton($button) { return $this->append($button, true); } /** * Makes the input group large * * @return $this */ public function large() { $this->setSize(self::LARGE); return $this; } /** * Makes the input group small * * @return $this */ public function small() { $this->setSize(self::SMALL); return $this; } } ================================================ FILE: docs/files/Label.html ================================================ API Documentation ================================================ FILE: docs/files/Label.php.txt ================================================ type}'>{$this->contents}"; } /** * Sets the contents of the label * * @param string $contents The new contents of the label * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Sets the type of the label. Assumes that the label- prefix is already set * * @param string $type The new type * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Creates a primary label * * @param string $contents The contents of the label * @return $this */ public function primary($contents = '') { $this->setType(self::LABEL_PRIMARY); return $this->withContents($contents); } /** * Creates a success label * * @param string $contents The contents of the label * @return $this */ public function success($contents = '') { $this->setType(self::LABEL_SUCCESS); return $this->withContents($contents); } /** * Creates an info label * * @param string $contents The contents of the label * @return $this */ public function info($contents = '') { $this->setType(self::LABEL_INFO); return $this->withContents($contents); } /** * Creates a warning label * * @param string $contents The contents of the label * @return $this */ public function warning($contents = '') { $this->setType(self::LABEL_WARNING); return $this->withContents($contents); } /** * Creates a danger label * * @param string $contents The contents of the label * @return $this */ public function danger($contents = '') { $this->setType(self::LABEL_DANGER); return $this->withContents($contents); } /** * Creates a label * * @param string $contents The contents of the label * @param string $type The type to use * @return $this */ public function create($contents, $type = self::LABEL_DEFAULT) { $this->setType($type); return $this->withContents($contents); } /** * Creates a normal label * * @param string $contents The contents of the label * @return $this */ public function normal($contents = '') { $this->setType(self::LABEL_DEFAULT); return $this->withContents($contents); } } ================================================ FILE: docs/files/MediaObject.html ================================================ API Documentation ================================================ FILE: docs/files/MediaObject.php.txt ================================================ list) { return $this->renderList(); } if (!$this->contents) { throw new MediaObjectException( "You need to give the object some contents" ); } return $this->renderItem($this->contents, 'div'); } /** * Sets the contents of the media object * * @param array $contents The contents of the media object * @return $this */ public function withContents(array $contents) { $this->contents = $contents; // Check if it's an array of arrays $this->list = isset($contents[0]); return $this; } /** * Force the media object to become a list * * @return $this */ public function asList() { $this->list = true; return $this; } /** * Renders a list * * @return string */ protected function renderList() { $string = ""; return $string; } /** * Renders an item in the string * * @param array $contents * @param string $tag The tag to wrap the item in * @return string * @throws MediaObjectException */ protected function renderItem(array $contents, $tag) { $position = $this->getPosition($contents); $heading = $this->getHeading($contents); $image = $this->getImage($contents, $heading); $link = $this->getLink($contents, $image, $position); $body = $this->getBody($contents); $string = "<{$tag} class='media'>"; $string .= $link; $string .= "
    "; if ($heading) { $string .= "

    {$heading}

    "; } $string .= $body; $string .= "
    "; return $string; } /** * Get the position * * @param array $contents * @return string pull-right if the position key equals right. pull-left * otherwise */ protected function getPosition(array $contents) { if (isset($contents['position']) && $contents['position'] == 'right') { return 'pull-right'; } return 'pull-left'; } /** * Get the image of the media object * * @param array $contents * @param string $alt The alt text of the image * @return string * @throws MediaObjectException if there is no image set */ protected function getImage(array $contents, $alt) { if (!isset($contents['image'])) { throw new MediaObjectException( "You must pass in an image to each object" ); } $image = $contents['image']; $attributes = new Attributes( ['class' => 'media-object', 'src' => $image, 'alt' => $alt] ); return ""; } /** * Get the heading of the media object * * @param array $contents * @return string */ protected function getHeading(array $contents) { return isset($contents['heading']) ? $contents['heading'] : ''; } /** * Turn the image into a link/div * * @param array $contents The contents array * @param string $image The image * @param string $position The position * @return string */ protected function getLink(array $contents, $image, $position) { if (isset($contents['link'])) { return "{$image}"; } return "
    {$image}
    "; } /** * Get the body of the contents array * * @param array $contents * @return string * @throws MediaObjectException if the body key has not been set */ protected function getBody(array $contents) { if (!isset($contents['body'])) { throw new MediaObjectException( 'You must pass in the body to each object' ); } $string = $contents['body']; if (isset($contents['nest'])) { $object = new MediaObject(); $string .= $object->withContents($contents['nest']); } return $string; } } ================================================ FILE: docs/files/Modal.html ================================================ API Documentation ================================================ FILE: docs/files/Modal.php.txt ================================================ attributes, ['class' => 'modal']); $string = $this->renderButton($attributes); $string .= "
    "; return $string; } /** * Sets the attributes * * @param array $attributes The new attributes of the modal * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Sets the title of the modal * * @param string $title * @return $this */ public function withTitle($title) { $this->title = $title; return $this; } /** * Renders the header of the modal * * @return string */ protected function renderHeader() { $title = ''; if ($this->title) { $title .= ""; } return ""; } /** * Sets the body of the modal * * @param string $body The new body of the modal * @return $this */ public function withBody($body) { $this->body = $body; return $this; } /** * Renders the body * * @return string */ protected function renderBody() { return $this->body ? "" : ''; } /** * Renders the footer * * @return string */ protected function renderFooter() { return $this->footer ? "" : ''; } /** * Set the footer of the modal * * @param string $footer The footer * @return $this */ public function withFooter($footer) { $this->footer = $footer; return $this; } /** * Sets the name of the modal * * @param string $name The name of the modal * @return $this */ public function named($name) { $this->name = $name; $this->attributes['id'] = $name; return $this; } /** * Sets the button * * @param Button $button The button to open the modal with * @return $this */ public function withButton(Button $button = null) { if ($button) { $this->button = $button; } else { $button = new Button(); $this->button = $button->withValue('Open Modal'); } return $this; } /** * Renders the button * * @param Attributes $attributes The attributes of the modal * @return string */ protected function renderButton(Attributes $attributes) { if (!$this->button) { return ''; } if (!isset($attributes['id'])) { $attributes['id'] = Helpers::generateId($this); } $this->button->addAttributes( ['data-toggle' => 'modal', 'data-target' => "#{$attributes['id']}"] )->render(); return $this->button->render(); } } ================================================ FILE: docs/files/Navbar.html ================================================ API Documentation ================================================ FILE: docs/files/Navbar.php.txt ================================================ url = $url; } /** * Renders the navbar * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, [ 'class' => "navbar {$this->type} {$this->position}", 'role' => 'navigation' ] ); $string = "
    "; $string .= $this->fluid ? "
    " : "
    "; $string .= $this->renderHeader(); $string .= $this->renderContent(); $string .= "
    "; return $string; } /** * Renders the inner content * * @return string */ protected function renderContent() { $string = ""; return $string; } /** * Renders the header * * @return string */ protected function renderHeader() { $string = ""; return $string; } /** * Sets the brand of the navbar * * @param string $brand The brand * @param null|string $link The link. If not set we default to linking to * '/' using the UrlGenerator * @return $this */ public function withBrand($brand, $link = null) { if (!isset($link)) { $link = $this->url->to('/'); } $this->brand = compact('brand', 'link'); return $this; } /** * Adds attributes to the navbar * * @param $attributes array The attributes of the array * @return $this */ public function withAttributes($attributes) { $this->attributes = $attributes; return $this; } /** * Adds some content to the navbar * * @param mixed $content Anything that can become a string! If you pass in a * Bootstrapper\Navigation object we'll make sure * it's a navbar on render. * @return $this */ public function withContent($content) { $this->content[] = $content; return $this; } /** * Sets the navbar to be inverse * * @return $this */ public function inverse() { $this->setType(self::NAVBAR_INVERSE); return $this; } /** * Sets the position to top * * @return $this */ public function staticTop() { $this->setPosition(self::NAVBAR_STATIC); return $this; } /** * Sets the type of the navbar * * @param string $type The type of the navbar. Assumes that the navbar- * prefix is there * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the position of the navbar * * @param string $position The position of the navbar. Assumes that the * navbar- prefix is there * @return $this */ public function setPosition($position) { $this->position = $position; return $this; } /** * Sets the position of the navbar to the top * * @return $this */ public function top() { $this->setPosition(self::NAVBAR_TOP); return $this; } /** * Sets the position of the navbar to the bottom * * @return $this */ public function bottom() { $this->setPosition(self::NAVBAR_BOTTOM); return $this; } /** * Creates a navbar with a position and attributes * * @param string $position The position of the navbar * @param array $attributes The attributes of the navbar * @return $this */ public function create($position, $attributes = []) { $this->setPosition($position); return $this->withAttributes($attributes); } /** * Sets the navbar to be fluid * * @return $this */ public function fluid() { $this->fluid = true; return $this; } } ================================================ FILE: docs/files/Navigation.html ================================================ API Documentation ================================================ FILE: docs/files/Navigation.php.txt ================================================ *
  • title - The text to show
  • *
  • link - The link
  • *
  • active - (optional) Forces the link to be active
  • *
  • disabled - (optional) Forces the link to be disabled. Note that * active has priority over this
  • *
  • linkAttributes - The attributes for the link
  • *
  • callback - A callback. If it return a result that is EXACTLY * equal to false then the link won't be shown
  • * * To create a dropdown, the inner array should instead be [$title, $links], * where $links is an array of arrays for links */ protected $links = []; /** * @var UrlGenerator A laravel URL generator */ protected $url; /** * @var bool Whether we should automatically activate links */ protected $autoroute = true; /** * @var bool Whether the links are justified or not */ protected $justified = false; /** * @var bool Whether the navigation links are stacked or not */ protected $stacked = false; /** * Creates a new instance of Navigation * * @param UrlGenerator $urlGenerator */ public function __construct(UrlGenerator $urlGenerator) { $this->url = $urlGenerator; } /** * Renders the navigation object * * @return string */ public function render() { $attributes = new Attributes( $this->attributes, ['class' => "nav {$this->type}"] ); if ($this->justified) { $attributes->addClass('nav-justified'); } if ($this->stacked) { $attributes->addClass('nav-stacked'); } $string = "
      "; foreach ($this->links as $link) { if (!is_array($link)) { $string .= $this->renderSeparator($link); } elseif (isset($link['link'])) { $string .= $this->renderLink($link); } else { $string .= $this->renderDropdown($link); } } $string .= "
    "; return $string; } /** * Set the attributes of the navigation object * * @param array $attributes The attributes * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Creates a pills navigation block * * @param array $links The links * @param array $attributes The attributes. Does not overwrite the * previous values if not set * @see Bootstrapper\Navigatation::$links * @return $this */ public function pills(array $links = [], array $attributes = null) { $this->type = self::NAVIGATION_PILLS; if (!isset($attributes)) { $attributes = $this->attributes; } return $this->links($links)->withAttributes($attributes); } /** * Sets the links of the navigation object * * @param array $links The links * @return $this * @see Bootstrapper\Navigation::$links */ public function links(array $links) { $this->links = $links; return $this; } /** * Creates a navigation tab object. * * @param array $links The links to be passed in * @param array $attributes The attributes of the navigation object. Will * overwrite unless not set. * @return $this */ public function tabs(array $links = [], array $attributes = null) { $this->type = self::NAVIGATION_TABS; if (!isset($attributes)) { $attributes = $this->attributes; } return $this->links($links)->withAttributes($attributes); } /** * Renders a link * * @param array $link A link to be rendered * @return string */ protected function renderLink(array $link) { $string = ''; if (isset($link['callback'])) { $callback = $link['callback']; if ($callback() === false) { return $string; } } if ($this->itemShouldBeActive($link)) { $string .= '
  • '; } elseif (isset($link['disabled']) && $link['disabled']) { $string .= '
  • '; } else { $string .= '
  • '; } $linkAttributes = isset($link['linkAttributes']) ? $link['linkAttributes'] : []; $linkAttributes = new Attributes( $linkAttributes, ['href' => $link['link']] ); $string .= "{$link['title']}
  • "; return $string; } /** * Sets the autorouting. Pass false to turn it off, true to turn it on * * @param bool $autoroute Whether the autorouting should be on * @return $this */ public function autoroute($autoroute) { $this->autoroute = $autoroute; return $this; } /** * Renders the dropdown * * @param array $link The link to render * @return string */ protected function renderDropdown(array $link) { if ($this->dropdownShouldBeActive($link)) { $string = '
  • '; } else { $string = '
  • '; } $string .= "{$link[0]} "; $string .= '
      '; foreach ($link[1] as $item) { // @todo Eerily similar to the check in the render method $string .= is_array($item) ? $this->renderLink($item) : $this->renderSeparator($item); } $string .= '
    '; $string .= '
  • '; return $string; } /** * Checks to see if the dropdown should be active * * @param array $dropdown The dropdown array * @return bool */ protected function dropdownShouldBeActive(array $dropdown) { if ($this->autoroute) { foreach ($dropdown[1] as $item) { if ($this->itemShouldBeActive($item)) { return true; } } } return false; } /** * checks whether an item should be activated or not. * If the item is not to be activated via URL::current(), it checks * if the item is a dropdown and returns true if any of the children * of items have target === URL::current() * * @param array $item item array * @return boolean */ protected static function shouldActivate($item) { // @todo Rewrite. We can't assume we have access to the URL facade if (\URL::current() == $item['url']) { return true; } if (isset($item['items']) and is_array($item['items'])) { foreach ($item['items'] as $i) { if (static::shouldActivate($i) === true) { return true; } } } return false; } /** * Checks to see if the given item should be active * * @param mixed $link A link to check whether it should be active * @return bool */ protected function itemShouldBeActive($link) { if (is_string($link)) { return false; } $auto = $this->autoroute && $this->url->current() == $link['link']; $manual = isset($link['active']) && $link['active']; return $auto || $manual; } /** * Turns the navigation object into one for navbars * * @return $this */ public function navbar() { $this->type = self::NAVIGATION_NAVBAR; return $this; } /** * Makes the navigation links justified * * @return $this */ public function justified() { $this->justified = true; return $this; } /** * Makes the navigation stacked * * @return $this */ public function stacked() { $this->stacked = true; return $this; } /** * Renders a separator * * @param string $separator * @return string */ protected function renderSeparator($separator) { return "
  • "; } } ================================================ FILE: docs/files/Panel.html ================================================ API Documentation ================================================ FILE: docs/files/Panel.php.txt ================================================ attributes, ['class' => "panel {$this->type}"] ); $string = "
    "; if ($this->header) { $string .= $this->renderHeader(); } if ($this->body) { $string .= $this->renderBody(); } if ($this->footer) { $string .= $this->renderFooter(); } $string .= "
    "; return $string; } /** * Sets the attributes of the panel * * @param array $attributes The attributes * @return $this */ public function withAttributes(array $attributes) { $this->attributes = $attributes; return $this; } /** * Creates a primary panel * * @return $this */ public function primary() { $this->setType(self::PRIMARY); return $this; } /** * Creates a success panel * * @return $this */ public function success() { $this->setType(self::SUCCESS); return $this; } /** * Creates an info panel * * @return $this */ public function info() { $this->setType(self::INFO); return $this; } /** * Creates an warning panel * * @return $this */ public function warning() { $this->setType(self::WARNING); return $this; } /** * Creates an danger panel * * @return $this */ public function danger() { $this->setType(self::DANGER); return $this; } /** * Sets the type of the panel * * @param string $type The new type. Assume the panel- prefix * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the header of the panel * * @param string $header The header * @return $this */ public function withHeader($header) { $this->header = $header; return $this; } /** * Renders the header * * @return string */ protected function renderHeader() { $string = "
    "; $string .= "

    {$this->header}

    "; $string .= '
    '; return $string; } /** * Sets the body of the panel * * @param string $body The body * @return $this */ public function withBody($body) { $this->body = $body; return $this; } /** * Renders the body * * @return string */ protected function renderBody() { return "
    {$this->body}
    "; } /** * Sets the footer * * @param string $footer The new footer * @return $this */ public function withFooter($footer) { $this->footer = $footer; return $this; } /** * Renders the footer * * @return string */ protected function renderFooter() { return ""; } /** * Creates a normal panel * * @return $this */ public function normal() { $this->setType(self::NORMAL); return $this; } } ================================================ FILE: docs/files/ProgressBar.html ================================================ API Documentation ================================================ FILE: docs/files/ProgressBar.php.txt ================================================ "; $attributes = new Attributes( ['class' => $this->type], [ 'class' => 'progress-bar', 'role' => 'progressbar', 'aria-valuenow' => "{$this->value}", 'aria-valuemin' => '0', 'aria-valuemax' => '100', 'style' => $this->value ? "width: {$this->value}%" : '' ] ); if ($this->striped) { $attributes['class'] .= ' progress-bar-striped'; } if ($this->animated) { $attributes['class'] .= ' active'; } $string .= "
    "; $string .= $this->visible ? sprintf($this->visibleString, $this->value) : "{$this->value}% complete"; $string .= "
    "; $string .= "
    "; return $string; } /** * Sets the type of the progress bar * * @param string $type The type * @return $this */ public function setType($type) { $this->type = $type; return $this; } /** * Sets the value of the progress bar * * @param int $value The value of the progress bar The value of the * progress bar * @return $this */ public function value($value) { $this->value = $value; return $this; } /** * Whether the amount should be visible * * @param string $string The string to show to the user. We internally * will use sprintf to show this, so you must * include a %s somewhere so we can add this in * @return $this */ public function visible($string = '%s%%') { $this->visible = true; $this->visibleString = $string; return $this; } /** * Creates a success progress bar * * @param int $value The value of the progress bar * @return $this */ public function success($value = 0) { $this->setType(self::PROGRESS_BAR_SUCCESS); return $this->value($value); } /** * Creates an info progress bar * * @param int $value The value of the progress bar * @return $this */ public function info($value = 0) { $this->setType(self::PROGRESS_BAR_INFO); return $this->value($value); } /** * Creates a warning progress bar * * @param int $value The value of the progress bar * @return $this */ public function warning($value = 0) { $this->setType(self::PROGRESS_BAR_WARNING); return $this->value($value); } /** * Creates a danger progress bar * * @param int $value The value of the progress bar * @return $this */ public function danger($value = 0) { $this->setType(self::PROGRESS_BAR_DANGER); return $this->value($value); } /** * Creates a normal progress bar * * @param int $value The value of the progress bar * @return $this */ public function normal($value = 0) { $this->setType(self::PROGRESS_BAR_NORMAL); return $this->value($value); } /** * Sets the progress bar to be striped * * @return $this */ public function striped() { $this->striped = true; return $this; } /** * Sets the progress bar to be animated * * @return $this */ public function animated() { $this->animated = true; return $this->striped(); } /** * Stacks several progress bars together * * @param array $items The progress bars. Should be an array of arrays, * which are a list of methods and parameters. * @return string */ public function stack(array $items) { $string = '
    '; foreach ($items as $progressBar) { $string .= $this->generateFromArray($progressBar); } $string .= '
    '; return $string; } /** * Generates a progress bar from an array * * @param array $progressBar An array of methods with variables if required, * eg 'value=2', 'animated' * @return mixed */ protected function generateFromArray(array $progressBar) { $bar = new static; foreach ($progressBar as $attribute) { $exploded = explode('=', $attribute); $method = $exploded[0]; $vars = isset($exploded[1]) ? $exploded[1] : null; if (isset($vars)) { $bar->$method($vars); } else { $bar->$method(); } } // Now to remove the outer divs $string = $bar->render(); $string = str_replace('
    ', '', $string); $string = str_replace('
    ', '
    ', $string); return $string; } } ================================================ FILE: docs/files/RenderedObject.html ================================================ API Documentation

    RenderedObject.php

    Classes

    RenderedObject Rendered Object abstract class
    ================================================ FILE: docs/files/RenderedObject.php.txt ================================================ render(); } catch (\Exception $e) { $class = get_class($e); return "

    An exception of" . " type {$class} was thrown with the message:" . " {$e->getMessage()}

    "; } } /** * Renders the object * * @return string */ public abstract function render(); } ================================================ FILE: docs/files/Tabbable.html ================================================ API Documentation

    Tabbable.php

    Classes

    Tabbable Creates Bootstrap 3 compliant tab elements
    ================================================ FILE: docs/files/Tabbable.php.txt ================================================ *
  • title - the title of the content
  • *
  • content - the actual content
  • *
  • attributes (optional) - any attributes
  • * */ protected $contents = []; /** * @var int Which tab should be open first */ protected $active = 0; /** * @var string The type */ protected $type = self::TAB; /** * @var bool Whether we should fade in or not */ protected $fade = false; /** * Creates a new Tabbable object * * @param Navigation $links A navigation object */ public function __construct(Navigation $links) { $this->links = $links->autoroute(false)->withAttributes( ['role' => 'tablist'] ); } /** * Renders the tabbable object * * @return string */ public function render() { $string = $this->renderNavigation(); $string .= $this->renderContents(); return $string; } /** * Creates content with a tabbed navigation * * @param array $contents The content * @return $this * @see Bootstrapper\Navigation::$contents */ public function tabs($contents = []) { $this->links->tabs(); $this->type = self::TAB; return $this->withContents($contents); } /** * Creates content with a pill navigation * * @param array $contents * @return $this * @see Bootstrapper\Navigation::$contents */ public function pills($contents = []) { $this->links->pills(); $this->type = self::PILL; return $this->withContents($contents); } /** * Sets the contents * * @param array $contents An array of arrays * @return $this * @see Bootstrapper\Navigation::$contents */ public function withContents(array $contents) { $this->contents = $contents; return $this; } /** * Render the navigation links * * @return string */ protected function renderNavigation() { $this->links->links($this->createNavigationLinks()); return $this->links->render(); } /** * Creates the navigation links * * @return array */ protected function createNavigationLinks() { $links = []; $count = 0; foreach ($this->contents as $link) { $links[] = [ 'link' => '#' . Helpers::slug($link['title']), 'title' => $link['title'], 'linkAttributes' => [ 'role' => 'tab', 'data-toggle' => $this->type ], 'active' => $count == $this->active ]; $count += 1; } return $links; } /** * Renders the contents * * @return string */ protected function renderContents() { $tabs = $this->createContentTabs(); $string = '
    '; foreach ($tabs as $tab) { $string .= "
    {$tab['content']}
    "; } $string .= '
    '; return $string; } /** * Creates the content tabs * * @return array */ protected function createContentTabs() { $tabs = []; $count = 0; foreach ($this->contents as $item) { $itemAttributes = isset($item['attributes']) ? $item['attributes'] : []; $attributes = new Attributes( $itemAttributes, ['class' => 'tab-pane', 'id' => Helpers::slug($item['title'])] ); if ($this->fade) { $attributes->addClass('fade'); } if ($this->active == $count) { $attributes->addClass($this->fade ? 'in active' : 'active'); } $tabs[] = [ 'content' => $item['content'], 'attributes' => $attributes ]; $count += 1; } return $tabs; } /** * Sets which tab should be active * * @param int $active * @return $this */ public function active($active) { $this->active = $active; return $this; } /** * Sets the tabbable objects to fade in * * @return $this */ public function fade() { $this->fade = true; return $this; } } ================================================ FILE: docs/files/Table.html ================================================ API Documentation

    Table.php

    Classes

    Table Creates Bootstrap 3 compliant tables
    ================================================ FILE: docs/files/Table.php.txt ================================================ function() */ protected $callbacks = []; /** * @var bool|array An array of columns to get. False if none. */ protected $only = false; /** * Renders the table * * @return string */ public function render() { $attributes = new Attributes(['class' => "table {$this->type}"]); $string = ""; if ($this->contents) { $string .= $this->renderContents(); } $string .= '
    '; return $string; } /** * Sets the table type * * @param string $type The type of the table */ public function setType($type) { $this->type = $type; } /** * Sets the table to be striped * * @return $this */ public function striped() { $this->setType(self::TABLE_STRIPED); return $this; } /** * Sets the table to be bordered * * @return $this */ public function bordered() { $this->setType(self::TABLE_BORDERED); return $this; } /** * Sets the table to have an active hover state * * @return $this */ public function hover() { $this->setType(self::TABLE_HOVER); return $this; } /** * Sets the table to be condensed * * @return $this */ public function condensed() { $this->setType(self::TABLE_CONDENSED); return $this; } /** * Sets the contents of the table * * @param array|Traversable $contents The contents of the table. We expect * either an array of arrays or an * array of eloquent models * @return $this */ public function withContents($contents) { $this->contents = $contents; return $this; } /** * Renders the contents of the table * * @return string */ private function renderContents() { $headers = $this->getHeaders(); $string = ''; foreach ($headers as $heading) { $string .= "{$heading}"; } $string .= ''; $string .= ''; foreach ($this->contents as $item) { if (!is_array($item)) { $item = $item->getAttributes(); } $string .= $this->renderItem($item, $headers); } $string .= ''; return $string; } /** * Gets the headers of the contents * * @return array */ private function getHeaders() { $headers = []; foreach ($this->contents as $item) { if (!is_array($item)) { $item = $item->getAttributes(); } foreach (array_keys($item) as $key) { if (in_array($key, $this->ignores)) { continue; } if ($this->only && !in_array($key, $this->only)) { continue; } if (!in_array($key, $headers)) { $headers[] = $key; } } } foreach (array_keys($this->callbacks) as $key) { if (in_array($key, $this->ignores)) { continue; } if (!in_array($key, $headers)) { $headers[] = $key; } } return $headers; } /** * Renders an item * * @param mixed $item The item to render * @param array $headers The headers to use * @return string */ private function renderItem($item, array $headers) { $string = ''; foreach ($headers as $heading) { $value = isset($item[$heading]) ? $item[$heading] : ''; if (isset($this->callbacks[$heading])) { $value = $this->callbacks[$heading]($value, $item); } $string .= "{$value}"; } $string .= ''; return $string; } /** * Creates a list of columns to ignore * * @param array $ignores The ignored columns * @return $this */ public function ignore(array $ignores) { $this->ignores = $ignores; return $this; } /** * Adds a callback * * @param string $index The column name for the callback * @param callable $function The callback function, * which should be of the form * function($column, $row). * @return $this */ public function callback($index, \Closure $function) { $this->callbacks[$index] = $function; return $this; } /** * Sets which columns we can return * * @param array $only * @return $this */ public function only(array $only) { $this->only = $only; return $this; } } ================================================ FILE: docs/files/Thumbnail.html ================================================ API Documentation

    Thumbnail.php

    Classes

    Thumbnail Creates Bootstrap 3 compliant Thumbnail
    ================================================ FILE: docs/files/Thumbnail.php.txt ================================================ image['image'])) { throw ThumbnailException::imageNotSpecified(); } $string = '
    '; $string .= $this->renderImage(); if ($this->caption) { $string .= $this->renderCaption(); } $string .= '
    '; return $string; } /** * Sets the image for the thumbnail * * @param string $image The image source * @param array $attributes The attributes * @return $this */ public function image($image, $attributes = []) { $this->image = compact('image', 'attributes'); return $this; } /** * Sets the caption for the thumbnail * * @param string $caption The new caption * @return $this */ public function caption($caption) { $this->caption = $caption; return $this; } /** * Renders the image * * @return string */ protected function renderImage() { $attributes = new Attributes( $this->image['attributes'], ['src' => $this->image['image']] ); return ""; } /** * Renders the caption * * @return string */ protected function renderCaption() { return "
    {$this->caption}
    "; } } ================================================ FILE: docs/files/config%2Fconfig.php.txt ================================================ '3.1.1', 'jqueryVersion' => '2.1.0', 'icon_prefix' => 'glyphicon' ]; ================================================ FILE: docs/files/config.config.html ================================================ API Documentation

    configconfig.php

    Default config values

    ================================================ FILE: docs/graph_class.html ================================================ API Documentation
    ================================================ FILE: docs/graphs/class.html ================================================ API Documentation
    ================================================ FILE: docs/index.html ================================================ API Documentation

    \

    Namespaces

    Bootstrapper
    ================================================ FILE: docs/js/SVGPan.js ================================================ /** * SVGPan library 1.2 - phpDocumentor1 * ==================== * * Given an unique existing element with id "viewport", including the * the library into any SVG adds the following capabilities: * * - Mouse panning * - Mouse zooming (using the wheel) * - Object dargging * * Known issues: * * - Zooming (while panning) on Safari has still some issues * * Releases: * * 1.2 - phpDocumentor1, Fri Apr 08 19:19:00 CET 2011, Mike van Riel * Increased zoom speed with 20% * Disabled element moving functionality * * 1.2, Sat Mar 20 08:42:50 GMT 2010, Zeng Xiaohui * Fixed a bug with browser mouse handler interaction * * 1.1, Wed Feb 3 17:39:33 GMT 2010, Zeng Xiaohui * Updated the zoom code to support the mouse wheel on Safari/Chrome * * 1.0, Andrea Leofreddi * First release * * This code is licensed under the following BSD license: * * Copyright 2009-2010 Andrea Leofreddi . All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of * conditions and the following disclaimer. * * 2. 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. * * THIS SOFTWARE IS PROVIDED BY Andrea Leofreddi ``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 Andrea Leofreddi 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. * * The views and conclusions contained in the software and documentation are those of the * authors and should not be interpreted as representing official policies, either expressed * or implied, of Andrea Leofreddi. */ var root = document.documentElement; var state = 'none', stateTarget, stateOrigin, stateTf; setupHandlers(root); /** * Register handlers */ function setupHandlers(root){ setAttributes(root, { "onmouseup" : "add(evt)", "onmousedown" : "handleMouseDown(evt)", "onmousemove" : "handleMouseMove(evt)", "onmouseup" : "handleMouseUp(evt)", // "onmouseout" : "handleMouseUp(evt)" // Decomment this to stop the pan functionality when dragging out of the SVG element }); if(navigator.userAgent.toLowerCase().indexOf('webkit') >= 0) window.addEventListener('mousewheel', handleMouseWheel, false); // Chrome/Safari else window.addEventListener('DOMMouseScroll', handleMouseWheel, false); // Others } /** * Instance an SVGPoint object with given event coordinates. */ function getEventPoint(evt) { var p = root.createSVGPoint(); p.x = evt.clientX; p.y = evt.clientY; return p; } /** * Sets the current transform matrix of an element. */ function setCTM(element, matrix) { var s = "matrix(" + matrix.a + "," + matrix.b + "," + matrix.c + "," + matrix.d + "," + matrix.e + "," + matrix.f + ")"; element.setAttribute("transform", s); } /** * Dumps a matrix to a string (useful for debug). */ function dumpMatrix(matrix) { var s = "[ " + matrix.a + ", " + matrix.c + ", " + matrix.e + "\n " + matrix.b + ", " + matrix.d + ", " + matrix.f + "\n 0, 0, 1 ]"; return s; } /** * Sets attributes of an element. */ function setAttributes(element, attributes){ for (i in attributes) element.setAttributeNS(null, i, attributes[i]); } /** * Handle mouse move event. */ function handleMouseWheel(evt) { if(evt.preventDefault) evt.preventDefault(); evt.returnValue = false; var svgDoc = evt.target.ownerDocument; var delta; if(evt.wheelDelta) delta = evt.wheelDelta / 3600; // Chrome/Safari else delta = evt.detail / -90; // Mozilla var z = 1 + (delta * 1.2); // Zoom factor: 0.9/1.1 var g = svgDoc.getElementById("viewport"); var p = getEventPoint(evt); p = p.matrixTransform(g.getCTM().inverse()); // Compute new scale matrix in current mouse position var k = root.createSVGMatrix().translate(p.x, p.y).scale(z).translate(-p.x, -p.y); setCTM(g, g.getCTM().multiply(k)); stateTf = stateTf.multiply(k.inverse()); } /** * Handle mouse move event. */ function handleMouseMove(evt) { if(evt.preventDefault) evt.preventDefault(); evt.returnValue = false; var svgDoc = evt.target.ownerDocument; var g = svgDoc.getElementById("viewport"); if(state == 'pan') { // Pan mode var p = getEventPoint(evt).matrixTransform(stateTf); setCTM(g, stateTf.inverse().translate(p.x - stateOrigin.x, p.y - stateOrigin.y)); } else if(state == 'move') { // Move mode var p = getEventPoint(evt).matrixTransform(g.getCTM().inverse()); setCTM(stateTarget, root.createSVGMatrix().translate(p.x - stateOrigin.x, p.y - stateOrigin.y).multiply(g.getCTM().inverse()).multiply(stateTarget.getCTM())); stateOrigin = p; } } /** * Handle click event. */ function handleMouseDown(evt) { if(evt.preventDefault) evt.preventDefault(); evt.returnValue = false; var svgDoc = evt.target.ownerDocument; var g = svgDoc.getElementById("viewport"); // if(evt.target.tagName == "svg") { // Pan mode state = 'pan'; stateTf = g.getCTM().inverse(); stateOrigin = getEventPoint(evt).matrixTransform(stateTf); // } else { // Move mode // state = 'move'; // // stateTarget = evt.target; // // stateTf = g.getCTM().inverse(); // // stateOrigin = getEventPoint(evt).matrixTransform(stateTf); // } } /** * Handle mouse button release event. */ function handleMouseUp(evt) { if(evt.preventDefault) evt.preventDefault(); evt.returnValue = false; var svgDoc = evt.target.ownerDocument; if(state == 'pan' || state == 'move') { // Quit pan mode state = ''; } } ================================================ FILE: docs/js/bootstrap.js ================================================ /* =================================================== * bootstrap-transition.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#transitions * =================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================== */ !function( $ ) { $(function () { "use strict" /* CSS TRANSITION SUPPORT (https://gist.github.com/373874) * ======================================================= */ $.support.transition = (function () { var thisBody = document.body || document.documentElement , thisStyle = thisBody.style , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined return support && { end: (function () { var transitionEnd = "TransitionEnd" if ( $.browser.webkit ) { transitionEnd = "webkitTransitionEnd" } else if ( $.browser.mozilla ) { transitionEnd = "transitionend" } else if ( $.browser.opera ) { transitionEnd = "oTransitionEnd" } return transitionEnd }()) } })() }) }( window.jQuery ) /* ========================================================== * bootstrap-alert.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#alerts * ========================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================== */ !function( $ ){ "use strict" /* ALERT CLASS DEFINITION * ====================== */ var dismiss = '[data-dismiss="alert"]' , Alert = function ( el ) { $(el).on('click', dismiss, this.close) } Alert.prototype = { constructor: Alert , close: function ( e ) { var $this = $(this) , selector = $this.attr('data-target') , $parent if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 } $parent = $(selector) $parent.trigger('close') e && e.preventDefault() $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) $parent.removeClass('in') function removeElement() { $parent.remove() $parent.trigger('closed') } $.support.transition && $parent.hasClass('fade') ? $parent.on($.support.transition.end, removeElement) : removeElement() } } /* ALERT PLUGIN DEFINITION * ======================= */ $.fn.alert = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('alert') if (!data) $this.data('alert', (data = new Alert(this))) if (typeof option == 'string') data[option].call($this) }) } $.fn.alert.Constructor = Alert /* ALERT DATA-API * ============== */ $(function () { $('body').on('click.alert.data-api', dismiss, Alert.prototype.close) }) }( window.jQuery ) /* ============================================================ * bootstrap-button.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#buttons * ============================================================ * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================ */ !function( $ ){ "use strict" /* BUTTON PUBLIC CLASS DEFINITION * ============================== */ var Button = function ( element, options ) { this.$element = $(element) this.options = $.extend({}, $.fn.button.defaults, options) } Button.prototype = { constructor: Button , setState: function ( state ) { var d = 'disabled' , $el = this.$element , data = $el.data() , val = $el.is('input') ? 'val' : 'html' state = state + 'Text' data.resetText || $el.data('resetText', $el[val]()) $el[val](data[state] || this.options[state]) // push to event loop to allow forms to submit setTimeout(function () { state == 'loadingText' ? $el.addClass(d).attr(d, d) : $el.removeClass(d).removeAttr(d) }, 0) } , toggle: function () { var $parent = this.$element.parent('[data-toggle="buttons-radio"]') $parent && $parent .find('.active') .removeClass('active') this.$element.toggleClass('active') } } /* BUTTON PLUGIN DEFINITION * ======================== */ $.fn.button = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('button') , options = typeof option == 'object' && option if (!data) $this.data('button', (data = new Button(this, options))) if (option == 'toggle') data.toggle() else if (option) data.setState(option) }) } $.fn.button.defaults = { loadingText: 'loading...' } $.fn.button.Constructor = Button /* BUTTON DATA-API * =============== */ $(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { $(e.target).button('toggle') }) }) }( window.jQuery ) /* ========================================================== * bootstrap-carousel.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#carousel * ========================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================== */ !function( $ ){ "use strict" /* CAROUSEL CLASS DEFINITION * ========================= */ var Carousel = function (element, options) { this.$element = $(element) this.options = $.extend({}, $.fn.carousel.defaults, options) this.options.slide && this.slide(this.options.slide) } Carousel.prototype = { cycle: function () { this.interval = setInterval($.proxy(this.next, this), this.options.interval) return this } , to: function (pos) { var $active = this.$element.find('.active') , children = $active.parent().children() , activePos = children.index($active) , that = this if (pos > (children.length - 1) || pos < 0) return if (this.sliding) { return this.$element.one('slid', function () { that.to(pos) }) } if (activePos == pos) { return this.pause().cycle() } return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos])) } , pause: function () { clearInterval(this.interval) return this } , next: function () { if (this.sliding) return return this.slide('next') } , prev: function () { if (this.sliding) return return this.slide('prev') } , slide: function (type, next) { var $active = this.$element.find('.active') , $next = next || $active[type]() , isCycling = this.interval , direction = type == 'next' ? 'left' : 'right' , fallback = type == 'next' ? 'first' : 'last' , that = this this.sliding = true isCycling && this.pause() $next = $next.length ? $next : this.$element.find('.item')[fallback]() if (!$.support.transition && this.$element.hasClass('slide')) { this.$element.trigger('slide') $active.removeClass('active') $next.addClass('active') this.sliding = false this.$element.trigger('slid') } else { $next.addClass(type) $next[0].offsetWidth // force reflow $active.addClass(direction) $next.addClass(direction) this.$element.trigger('slide') this.$element.one($.support.transition.end, function () { $next.removeClass([type, direction].join(' ')).addClass('active') $active.removeClass(['active', direction].join(' ')) that.sliding = false setTimeout(function () { that.$element.trigger('slid') }, 0) }) } isCycling && this.cycle() return this } } /* CAROUSEL PLUGIN DEFINITION * ========================== */ $.fn.carousel = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('carousel') , options = typeof option == 'object' && option if (!data) $this.data('carousel', (data = new Carousel(this, options))) if (typeof option == 'number') data.to(option) else if (typeof option == 'string' || (option = options.slide)) data[option]() else data.cycle() }) } $.fn.carousel.defaults = { interval: 5000 } $.fn.carousel.Constructor = Carousel /* CAROUSEL DATA-API * ================= */ $(function () { $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) { var $this = $(this), href , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data()) $target.carousel(options) e.preventDefault() }) }) }( window.jQuery ) /* ============================================================= * bootstrap-collapse.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#collapse * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================ */ !function( $ ){ "use strict" var Collapse = function ( element, options ) { this.$element = $(element) this.options = $.extend({}, $.fn.collapse.defaults, options) if (this.options["parent"]) { this.$parent = $(this.options["parent"]) } this.options.toggle && this.toggle() } Collapse.prototype = { constructor: Collapse , dimension: function () { var hasWidth = this.$element.hasClass('width') return hasWidth ? 'width' : 'height' } , show: function () { var dimension = this.dimension() , scroll = $.camelCase(['scroll', dimension].join('-')) , actives = this.$parent && this.$parent.find('.in') , hasData if (actives && actives.length) { hasData = actives.data('collapse') actives.collapse('hide') hasData || actives.data('collapse', null) } this.$element[dimension](0) this.transition('addClass', 'show', 'shown') this.$element[dimension](this.$element[0][scroll]) } , hide: function () { var dimension = this.dimension() this.reset(this.$element[dimension]()) this.transition('removeClass', 'hide', 'hidden') this.$element[dimension](0) } , reset: function ( size ) { var dimension = this.dimension() this.$element .removeClass('collapse') [dimension](size || 'auto') [0].offsetWidth this.$element.addClass('collapse') } , transition: function ( method, startEvent, completeEvent ) { var that = this , complete = function () { if (startEvent == 'show') that.reset() that.$element.trigger(completeEvent) } this.$element .trigger(startEvent) [method]('in') $.support.transition && this.$element.hasClass('collapse') ? this.$element.one($.support.transition.end, complete) : complete() } , toggle: function () { this[this.$element.hasClass('in') ? 'hide' : 'show']() } } /* COLLAPSIBLE PLUGIN DEFINITION * ============================== */ $.fn.collapse = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('collapse') , options = typeof option == 'object' && option if (!data) $this.data('collapse', (data = new Collapse(this, options))) if (typeof option == 'string') data[option]() }) } $.fn.collapse.defaults = { toggle: true } $.fn.collapse.Constructor = Collapse /* COLLAPSIBLE DATA-API * ==================== */ $(function () { $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function ( e ) { var $this = $(this), href , target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 , option = $(target).data('collapse') ? 'toggle' : $this.data() $(target).collapse(option) }) }) }( window.jQuery ) /* ============================================================ * bootstrap-dropdown.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#dropdowns * ============================================================ * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============================================================ */ !function( $ ){ "use strict" /* DROPDOWN CLASS DEFINITION * ========================= */ var toggle = '[data-toggle="dropdown"]' , Dropdown = function ( element ) { var $el = $(element).on('click.dropdown.data-api', this.toggle) $('html').on('click.dropdown.data-api', function () { $el.parent().removeClass('open') }) } Dropdown.prototype = { constructor: Dropdown , toggle: function ( e ) { var $this = $(this) , selector = $this.attr('data-target') , $parent , isActive if (!selector) { selector = $this.attr('href') selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 } $parent = $(selector) $parent.length || ($parent = $this.parent()) isActive = $parent.hasClass('open') clearMenus() !isActive && $parent.toggleClass('open') return false } } function clearMenus() { $(toggle).parent().removeClass('open') } /* DROPDOWN PLUGIN DEFINITION * ========================== */ $.fn.dropdown = function ( option ) { return this.each(function () { var $this = $(this) , data = $this.data('dropdown') if (!data) $this.data('dropdown', (data = new Dropdown(this))) if (typeof option == 'string') data[option].call($this) }) } $.fn.dropdown.Constructor = Dropdown /* APPLY TO STANDARD DROPDOWN ELEMENTS * =================================== */ $(function () { $('html').on('click.dropdown.data-api', clearMenus) $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle) }) }( window.jQuery ) /* ========================================================= * bootstrap-modal.js v2.0.0 * http://twitter.github.com/bootstrap/javascript.html#modals * ========================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ========================================================= */ !function( $ ){ "use strict" /* MODAL CLASS DEFINITION * ====================== */ var Modal = function ( content, options ) { this.options = $.extend({}, $.fn.modal.defaults, options) this.$element = $(content) .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) } Modal.prototype = { constructor: Modal , toggle: function () { return this[!this.isShown ? 'show' : 'hide']() } , show: function () { var that = this if (this.isShown) return $('body').addClass('modal-open') this.isShown = true this.$element.trigger('show') escape.call(this) backdrop.call(this, function () { var transition = $.support.transition && that.$element.hasClass('fade') !that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position that.$element .show() if (transition) { that.$element[0].offsetWidth // force reflow } that.$element.addClass('in') transition ? that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) : that.$element.trigger('shown') }) } , hide: function ( e ) { e && e.preventDefault() if (!this.isShown) return var that = this this.isShown = false $('body').removeClass('modal-open') escape.call(this) this.$element .trigger('hide') .removeClass('in') $.support.transition && this.$element.hasClass('fade') ? hideWithTransition.call(this) : hideModal.call(this) } } /* MODAL PRIVATE METHODS * ===================== */ function hideWithTransition() { var that = this , timeout = setTimeout(function () { that.$element.off($.support.transition.end) hideModal.call(that) }, 500) this.$element.one($.support.transition.end, function () { clearTimeout(timeout) hideModal.call(that) }) } function hideModal( that ) { this.$element .hide() .trigger('hidden') backdrop.call(this) } function backdrop( callback ) { var that = this , animate = this.$element.hasClass('fade') ? 'fade' : '' if (this.isShown && this.options.backdrop) { var doAnimate = $.support.transition && animate this.$backdrop = $('