[Plugin: WordPress Twitter Bootstrap CSS] Fluid Layout activation
-
Hi,
first thanks for porting twitter bootstrap to WordPress, I was looking for a collection of shorcodes to use on my sites and your plugin is just what I wanted.I would like to suggest you to enable the possibility to use the fluid lauoyt when using the row shortcode.
I’m a PHP programmer, though I’m no expert on WordPress, checking the row function at hlt-bootstrap-shortcodes.php file (and without having investigated further) I think it would be easy to enable the fluid layout of the twitter bootstrap framework.
Here is a suggestion:
public function row( $inaAtts = array(), $insContent = '' ) { $this->def( &$inaAtts, 'type' ); $sContType = !empty($inaAtts['type']) ? '-'.$inaAtts['type'] : ''; $sReturn = '<div class="container'.$sContType.'"> <div class="row'.$sContType.'">'; $sReturn .= $this->doShortcode( $insContent ); $sReturn .= '</div></div>'; return $sReturn; }//rowI’ve checked and it works, it correctly adds the postfix “-fluid” when you write a shorcode like this [TBS_ROW type=”fluid”]
Why fluid?, you might ask, well the normal container has a 940px fixed with, so it can not be used if you have a sidebar. With a fluid container inherits the with of its parent container, and the row-fluid is a 100% width. All this let you create, for example, two span6 columns inside a container less than 940px width.
I hope you find this suggestion useful.
Best regards
The topic ‘[Plugin: WordPress Twitter Bootstrap CSS] Fluid Layout activation’ is closed to new replies.