Skip to content

Commit

Permalink
Merge pull request #25 from deanblackborough/row-column-and-form-group
Browse files Browse the repository at this point in the history
Row and column view helpers
  • Loading branch information
deanblackborough authored Jan 20, 2018
2 parents a19fe7e + 23ef9e2 commit f666207
Show file tree
Hide file tree
Showing 8 changed files with 981 additions and 26 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Full changelog for Zend Framework 3 view helpers library.

## v1.02.0 - Row and Column view helper - 2018-01-20

* Added a Bootstrap 4 row view helper.
* Added a Bootstrap 4 column view helper.
* Updated dependencies, zendframework/zend-view v2.10

## v1.01.2 - Minor corrections - 2018-01-05

* Require PHP 7, suggest PHP 7.2.
Expand Down
59 changes: 56 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[![Latest Stable Version](https://img.shields.io/packagist/v/deanblackborough/zf3-view-helpers.svg?style=flat-square)](https://packagist.org/packages/deanblackborough/zf3-view-helpers)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/deanblackborough/zf3-view-helpers/blob/master/LICENSE)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.0-8892BF.svg)](https://php.net/)
[![Build Status](https://travis-ci.org/deanblackborough/zf3-view-helpers.svg?branch=master)](https://travis-ci.org/deanblackborough/zf3-view-helpers)
[![Total Downloads](https://img.shields.io/packagist/dt/deanblackborough/zf3-view-helpers.svg?style=flat-square)](https://packagist.org/packages/deanblackborough/zf3-view-helpers)

# ZF3 view helpers

Expand All @@ -16,11 +17,13 @@ A collection of Zend Framework 3 view helpers, primarily focused on Bootstrap 3
* Bootstrap 4 Alert component - [20 tests]
* Bootstrap 4 Badge component - [13 tests]
* Bootstrap 4 Button component - [31 tests]
* Bootstrap 4 Card component
* Bootstrap 4 Card component - [34 tests]
* Bootstrap 4 Column - [33 tests]
* Bootstrap 4 Jumbotron component - [27 tests]
* Bootstrap 4 Navbar component (lite)
* Bootstrap 4 Navbar component (lite) - [2 tests]
* Bootstrap 4 Progress bar component - [28 tests]
* Bootstrap 4 Multiple progress bar component - [4 tests]
* Bootstrap 4 Row - [17 tests]

### Bootstrap 3

Expand Down Expand Up @@ -146,6 +149,35 @@ echo $this->bootstrap4Card('', 'width: 20rem;')->
addLinkToBody('Card link', '#')->
setHeader('Header')->
setFooter('Footer');
```

### Bootstrap 4 column

Create a column

##### Public methods

* lg() - Set large column width
* md() - Set medium column width
* setBgStyle() - Set the background colour utility class
* setTextStyle() - Set the text colour utility class
* sm() - Set small column width
* xl() - Set extra large column width
* xs() - Set extra small column width

#### Examples

```
echo $this->bootstrap4Column('<p>Content</p>')->md(12);
```

```
echo $this->bootstrap4Column('<p>Content</p>')->
xl(6)->
xl(12)->
sm(6)->
setBgStyle()->
setTextStyle(); ?>
```

### Bootstrap 4 Jumbotron
Expand Down Expand Up @@ -230,6 +262,27 @@ echo $this->bootstrap4ProgressBar([25, 15], ['primary', 'info'])->
animate(); ?>
```

### Bootstrap 4 row

Create a row

##### Public methods

* setBgStyle() - Set the background colour utility class
* setTextStyle() - Set the text colour utility class

#### Examples

```
echo $this->bootstrap4Row('<p>Content</p>')
```

```
echo $this->bootstrap4Row('<p>Content</p>')->
setBgStyle()->
setTextStyle(); ?>
```

### Bootstrap 3 Button

Create a Bootstrap 3 button
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "deanblackborough/zf3-view-helpers",
"description": "A collection of view helpers for ZF3",
"description": "A bunch of view helpers that I use in my Zend Framework 3 apps",
"autoload": {
"psr-4" : {
"DBlackborough\\Zf3ViewHelpers\\" : "src/"
}
},
"homepage": "https://github.com/deanblackborough/zf3-view-helpers",
"keywords": [ "zf3", "view helpers", "bootstrap", "zend" ],
"keywords": [ "zf3", "view helpers", "bootstrap", "zend", "framework", "bootstrap4" ],
"authors": [
{
"name": "Dean Blackborough",
Expand All @@ -16,7 +16,7 @@
],
"require": {
"php": "^7",
"zendframework/zend-view": "^2.9",
"zendframework/zend-view": "^2.10",
"deanblackborough/zf3-view-helpers-code-completion": "^1"
},
"suggest": {
Expand Down
40 changes: 20 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f666207

Please sign in to comment.