siteorigin/siteorigin-panels — pull request #4 by tareiking (2014-12-12 01:44:43+00:00)
Title: Allow theme developers to add markup between panel-row-style and panel-grid-cell

### Goal of PR

We use the Foundation 5 in-house and the grid requires additional markup surrounding rows additionally to the existing `siteorigin_panels_after_row` and `siteorigin_panels_before_row` filters which are available. In particular, we need a filter between `siteorigin_panels_before_row` and the row content.

This PR proposes the addition of two new filters to support the above request and alters the existing panel output as shown below:

**Existing Panel Output**
```
.siteorigin_panels_before_row
.panel-grid
.panel-row-style
{ panel content }
.close-panel-row-style
.close-panel-grid
.siteorigin_panels_after_row
```
**Proposed Panel Output***
```
.siteorigin_panels_before_row
.panel-grid
.panel-row-style
.siteorigin_panels_before_content
{ panel content }
.siteorigin_panels_after_content
.close-panel-row-style
.close-panel-grid
.siteorigin_panels_after_row
```

## Filter Reference
`siteorigin_panels_before_content` : Add's markup between opening panel grid tag and row content
`siteorigin_panels_after_content` : Add's markup between row content and the closing panel grid tag

### Example usage:

```
/**
* Adding wrapper rows to siteorigin panels
*/
function beyond_below_content( $data ) {
is_front_page() ? $html = '

' : $html = '';

return $html;
}
add_filter( 'siteorigin_panels_before_content', 'beyond_below_content' );

function beyond_after_content( ) {
is_front_page() ? $html = '

' : $html = '';

return $html;
}
add_filter( 'siteorigin_panels_after_content', 'beyond_after_content' );
```