Changeset 1035086
- Timestamp:
- 11/29/2014 03:34:42 PM (11 years ago)
- Location:
- bootstrap-3-shortcodes/trunk
- Files:
-
- 5 edited
-
README.md (modified) (4 diffs)
-
bootstrap-shortcodes.php (modified) (80 diffs)
-
includes/actions-filters.php (modified) (2 diffs)
-
includes/help/README.html (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bootstrap-3-shortcodes/trunk/README.md
r991902 r1035086 217 217 218 218 ### Responsive Utilities 219 [responsive visible_block="lg md" hidden="sn xs"] ... [/responsive]219 [responsive block="lg md" hidden="sn xs"] ... [/responsive] 220 220 221 221 #### [reponsive] parameters … … 230 230 data | Data attribute and value pairs separated by a comma. Pairs separated by pipe (see example at [Button Dropdowns](#button-dropdowns)). | optional | any text | none 231 231 232 [Bootstrap emphasis classes documentation](http://getbootstrap.com/css/#type-emphasis)232 [Bootstrap responsive utilities documentation](http://getbootstrap.com/css/#responsive-utilities) 233 233 234 234 * * * … … 237 237 238 238 ### Icons 239 [icon type="arrow "]239 [icon type="arrow-right"] 240 240 241 241 #### [icon] parameters … … 818 818 819 819 ### Modal 820 [modal text="This is my modal" title="Modal Title Goes Here" xclass="btn btn-primary btn-l arge"]820 [modal text="This is my modal" title="Modal Title Goes Here" xclass="btn btn-primary btn-lg"] 821 821 ... 822 822 [modal-footer] -
bootstrap-3-shortcodes/trunk/bootstrap-shortcodes.php
r991902 r1035086 4 4 Plugin URI: http://wp-snippets.com/freebies/bootstrap-shortcodes or https://github.com/filipstefansson/bootstrap-shortcodes 5 5 Description: The plugin adds a shortcodes for all Bootstrap elements. 6 Version: 3. 2.46 Version: 3.3 7 7 Author: Filip Stefansson, Simon Yeldon, and Michael W. Delaney 8 8 Author URI: … … 135 135 function bs_button( $atts, $content = null ) { 136 136 137 extract(shortcode_atts( array(137 $atts = shortcode_atts( array( 138 138 "type" => false, 139 139 "size" => false, … … 147 147 "title" => false, 148 148 "data" => false 149 ), $atts ));149 ), $atts ); 150 150 151 151 $class = 'btn'; 152 $class .= ( $ type ) ? ' btn-' . $type: ' btn-default';153 $class .= ( $ size ) ? ' btn-' . $size: '';154 $class .= ( $ block== 'true' ) ? ' btn-block' : '';155 $class .= ( $ dropdown== 'true' ) ? ' dropdown-toggle' : '';156 $class .= ( $ disabled== 'true' ) ? ' disabled' : '';157 $class .= ( $a ctive== 'true' ) ? ' active' : '';158 $class .= ( $ xclass ) ? ' ' . $xclass: '';159 160 $data_props = $this->parse_data_attributes( $ data);152 $class .= ( $atts['type'] ) ? ' btn-' . $atts['type'] : ' btn-default'; 153 $class .= ( $atts['size'] ) ? ' btn-' . $atts['size'] : ''; 154 $class .= ( $atts['block'] == 'true' ) ? ' btn-block' : ''; 155 $class .= ( $atts['dropdown'] == 'true' ) ? ' dropdown-toggle' : ''; 156 $class .= ( $atts['disabled'] == 'true' ) ? ' disabled' : ''; 157 $class .= ( $atts['active'] == 'true' ) ? ' active' : ''; 158 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 159 160 $data_props = $this->parse_data_attributes( $atts['data'] ); 161 161 162 162 return sprintf( 163 163 '<a href="%s" class="%s"%s%s%s>%s</a>', 164 esc_url( $ link),165 esc_attr( $class ), 166 ( $ target ) ? sprintf( ' target="%s"', esc_attr( $target) ) : '',167 ( $ title ) ? sprintf( ' title="%s"', esc_attr( $title) ) : '',164 esc_url( $atts['link'] ), 165 esc_attr( $class ), 166 ( $atts['target'] ) ? sprintf( ' target="%s"', esc_attr( $atts['target'] ) ) : '', 167 ( $atts['title'] ) ? sprintf( ' title="%s"', esc_attr( $atts['title'] ) ) : '', 168 168 ( $data_props ) ? ' ' . $data_props : '', 169 169 do_shortcode( $content ) … … 181 181 function bs_button_group( $atts, $content = null ) { 182 182 183 extract(shortcode_atts( array(183 $atts = shortcode_atts( array( 184 184 "size" => false, 185 185 "vertical" => false, … … 188 188 "xclass" => false, 189 189 "data" => false 190 ), $atts ));190 ), $atts ); 191 191 192 192 $class = 'btn-group'; 193 $class .= ( $ size ) ? ' btn-group-' . $size: '';194 $class .= ( $ vertical== 'true' ) ? ' btn-group-vertical' : '';195 $class .= ( $ justified== 'true' ) ? ' btn-group-justified' : '';196 $class .= ( $ dropup== 'true' ) ? ' dropup' : '';197 $class .= ( $ xclass ) ? ' ' . $xclass: '';198 199 $data_props = $this->parse_data_attributes( $ data);193 $class .= ( $atts['size'] ) ? ' btn-group-' . $atts['size'] : ''; 194 $class .= ( $atts['vertical'] == 'true' ) ? ' btn-group-vertical' : ''; 195 $class .= ( $atts['justified'] == 'true' ) ? ' btn-group-justified' : ''; 196 $class .= ( $atts['dropup'] == 'true' ) ? ' dropup' : ''; 197 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 198 199 $data_props = $this->parse_data_attributes( $atts['data'] ); 200 200 201 201 return sprintf( … … 214 214 *-------------------------------------------------------------------------------------*/ 215 215 function bs_button_toolbar( $atts, $content = null ) { 216 217 extract(shortcode_atts( array(216 217 $atts = shortcode_atts( array( 218 218 "xclass" => false, 219 219 "data" => false 220 ), $atts ));220 ), $atts ); 221 221 222 222 $class = 'btn-toolbar'; 223 $class .= ( $ xclass ) ? ' ' . $xclass: '';224 225 $data_props = $this->parse_data_attributes( $ data);223 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 224 225 $data_props = $this->parse_data_attributes( $atts['data'] ); 226 226 227 227 return sprintf( … … 242 242 *-------------------------------------------------------------------------------------*/ 243 243 function bs_caret( $atts, $content = null ) { 244 245 extract(shortcode_atts( array(244 245 $atts = shortcode_atts( array( 246 246 "xclass" => false, 247 247 "data" => false 248 ), $atts ));248 ), $atts ); 249 249 250 250 $class = 'caret'; 251 $class .= ( $ xclass ) ? ' ' . $xclass: '';252 253 $data_props = $this->parse_data_attributes( $ data);251 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 252 253 $data_props = $this->parse_data_attributes( $atts['data'] ); 254 254 255 255 return sprintf( … … 270 270 *-------------------------------------------------------------------------------------*/ 271 271 function bs_container( $atts, $content = null ) { 272 273 extract(shortcode_atts( array(272 273 $atts = shortcode_atts( array( 274 274 "fluid" => false, 275 275 "xclass" => false, 276 276 "data" => false 277 ), $atts ));278 279 $class = ( $ fluid== 'true' ) ? 'container-fluid' : 'container';280 $class .= ( $ xclass ) ? ' ' . $xclass: '';281 282 $data_props = $this->parse_data_attributes( $ data);277 ), $atts ); 278 279 $class = ( $atts['fluid'] == 'true' ) ? 'container-fluid' : 'container'; 280 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 281 282 $data_props = $this->parse_data_attributes( $atts['data'] ); 283 283 284 284 return sprintf( … … 298 298 *-------------------------------------------------------------------------------------*/ 299 299 function bs_dropdown( $atts, $content = null ) { 300 301 extract(shortcode_atts( array(300 301 $atts = shortcode_atts( array( 302 302 "xclass" => false, 303 303 "data" => false 304 ), $atts ));304 ), $atts ); 305 305 306 306 $class = 'dropdown-menu'; 307 $class .= ( $ xclass ) ? ' ' . $xclass: '';308 309 $data_props = $this->parse_data_attributes( $ data);307 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 308 309 $data_props = $this->parse_data_attributes( $atts['data'] ); 310 310 311 311 return sprintf( … … 325 325 *-------------------------------------------------------------------------------------*/ 326 326 function bs_dropdown_item( $atts, $content = null ) { 327 328 extract(shortcode_atts( array(327 328 $atts = shortcode_atts( array( 329 329 "link" => false, 330 330 "disabled" => false, 331 331 "xclass" => false, 332 332 "data" => false 333 ), $atts ));333 ), $atts ); 334 334 335 335 $li_class = ''; 336 $li_class .= ( $ disabled== 'true' ) ? ' disabled' : '';336 $li_class .= ( $atts['disabled'] == 'true' ) ? ' disabled' : ''; 337 337 338 338 $a_class = ''; 339 $a_class .= ( $ xclass ) ? ' ' . $xclass: '';340 341 $data_props = $this->parse_data_attributes( $ data);339 $a_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 340 341 $data_props = $this->parse_data_attributes( $atts['data'] ); 342 342 343 343 return sprintf( 344 344 '<li role="presentation" class="%s"><a role="menuitem" href="%s" class="%s"%s>%s</a></li>', 345 345 esc_attr( $li_class ), 346 esc_url( $ link),346 esc_url( $atts['link'] ), 347 347 esc_attr( $a_class ), 348 348 ( $data_props ) ? ' ' . $data_props : '', … … 360 360 function bs_divider( $atts, $content = null ) { 361 361 362 extract(shortcode_atts( array(362 $atts = shortcode_atts( array( 363 363 "xclass" => false, 364 364 "data" => false 365 ), $atts ));365 ), $atts ); 366 366 367 367 $class = 'divider'; 368 $class .= ( $ xclass ) ? ' ' . $xclass: '';369 370 $data_props = $this->parse_data_attributes( $ data);368 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 369 370 $data_props = $this->parse_data_attributes( $atts['data'] ); 371 371 372 372 return sprintf( … … 387 387 function bs_dropdown_header( $atts, $content = null ) { 388 388 389 extract(shortcode_atts( array(389 $atts = shortcode_atts( array( 390 390 "xclass" => false, 391 391 "data" => false 392 ), $atts ));392 ), $atts ); 393 393 394 394 $class = 'dropdown-header'; 395 $class .= ( $ xclass ) ? ' ' . $xclass: '';396 397 $data_props = $this->parse_data_attributes( $ data);395 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 396 397 $data_props = $this->parse_data_attributes( $atts['data'] ); 398 398 399 399 return sprintf( … … 412 412 *-------------------------------------------------------------------------------------*/ 413 413 function bs_nav( $atts, $content = null ) { 414 415 extract(shortcode_atts( array(414 415 $atts = shortcode_atts( array( 416 416 "type" => false, 417 417 "stacked" => false, … … 419 419 "xclass" => false, 420 420 "data" => false 421 ), $atts ));421 ), $atts ); 422 422 423 423 $class = 'nav'; 424 $class .= ( $ type ) ? ' nav-' . $type: ' nav-tabs';425 $class .= ( $ stacked== 'true' ) ? ' nav-stacked' : '';426 $class .= ( $ justified== 'true' ) ? ' nav-justified' : '';427 $class .= ( $ xclass ) ? ' ' . $xclass: '';428 429 $data_props = $this->parse_data_attributes( $ data);424 $class .= ( $atts['type'] ) ? ' nav-' . $atts['type'] : ' nav-tabs'; 425 $class .= ( $atts['stacked'] == 'true' ) ? ' nav-stacked' : ''; 426 $class .= ( $atts['justified'] == 'true' ) ? ' nav-justified' : ''; 427 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 428 429 $data_props = $this->parse_data_attributes( $atts['data'] ); 430 430 431 431 return sprintf( … … 445 445 function bs_nav_item( $atts, $content = null ) { 446 446 447 extract(shortcode_atts( array(447 $atts = shortcode_atts( array( 448 448 "link" => false, 449 449 "active" => false, … … 452 452 "xclass" => false, 453 453 "data" => false, 454 ), $atts ));454 ), $atts ); 455 455 456 456 $li_classes = ''; 457 $li_classes .= ( $ dropdown) ? 'dropdown' : '';458 $li_classes .= ( $a ctive== 'true' ) ? ' active' : '';459 $li_classes .= ( $ disabled== 'true' ) ? ' disabled' : '';457 $li_classes .= ( $atts['dropdown'] ) ? 'dropdown' : ''; 458 $li_classes .= ( $atts['active'] == 'true' ) ? ' active' : ''; 459 $li_classes .= ( $atts['disabled'] == 'true' ) ? ' disabled' : ''; 460 460 461 461 $a_classes = ''; 462 $a_classes .= ( $ dropdown== 'true' ) ? ' dropdown-toggle' : '';463 $a_classes .= ( $ xclass ) ? ' ' . $xclass: '';464 465 $data_props = $this->parse_data_attributes( $ data);462 $a_classes .= ( $atts['dropdown'] == 'true' ) ? ' dropdown-toggle' : ''; 463 $a_classes .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 464 465 $data_props = $this->parse_data_attributes( $atts['data'] ); 466 466 467 467 # Wrong idea I guess .... … … 474 474 '<li%1$s><a href="%2$s"%3$s%4$s%5$s>%6$s</li>', 475 475 ( ! empty( $li_classes ) ) ? sprintf( ' class="%s"', esc_attr( $li_classes ) ) : '', 476 esc_url( $ link),476 esc_url( $atts['link'] ), 477 477 ( ! empty( $a_classes ) ) ? sprintf( ' class="%s"', esc_attr( $a_classes ) ) : '', 478 ( $ dropdown) ? ' data-toggle="dropdown"' : '',478 ( $atts['dropdown'] ) ? ' data-toggle="dropdown"' : '', 479 479 ( $data_props ) ? ' ' . $data_props : '', 480 480 do_shortcode( $content ) … … 493 493 function bs_alert( $atts, $content = null ) { 494 494 495 extract(shortcode_atts( array(495 $atts = shortcode_atts( array( 496 496 "type" => false, 497 497 "dismissable" => false, 498 498 "xclass" => false, 499 499 "data" => false 500 ), $atts ));500 ), $atts ); 501 501 502 502 $class = 'alert'; 503 $class .= ( $ type ) ? ' alert-' . $type: ' alert-success';504 $class .= ( $ dismissable== 'true' ) ? ' alert-dismissable' : '';505 $class .= ( $ xclass ) ? ' ' . $xclass: '';506 507 $dismissable = ( $ dismissable) ? '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' : '';508 509 $data_props = $this->parse_data_attributes( $ data);503 $class .= ( $atts['type'] ) ? ' alert-' . $atts['type'] : ' alert-success'; 504 $class .= ( $atts['dismissable'] == 'true' ) ? ' alert-dismissable' : ''; 505 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 506 507 $dismissable = ( $atts['dismissable'] ) ? '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>' : ''; 508 509 $data_props = $this->parse_data_attributes( $atts['data'] ); 510 510 511 511 return sprintf( … … 526 526 function bs_progress( $atts, $content = null ) { 527 527 528 extract(shortcode_atts( array(528 $atts = shortcode_atts( array( 529 529 "striped" => false, 530 530 "animated" => false, 531 531 "xclass" => false, 532 532 "data" => false 533 ), $atts ));533 ), $atts ); 534 534 535 535 $class = 'progress'; 536 $class .= ( $ striped== 'true' ) ? ' progress-striped' : '';537 $class .= ( $a nimated== 'true' ) ? ' active' : '';538 $class .= ( $ xclass ) ? ' ' . $xclass: '';539 540 $data_props = $this->parse_data_attributes( $ data);536 $class .= ( $atts['striped'] == 'true' ) ? ' progress-striped' : ''; 537 $class .= ( $atts['animated'] == 'true' ) ? ' active' : ''; 538 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 539 540 $data_props = $this->parse_data_attributes( $atts['data'] ); 541 541 542 542 return sprintf( … … 556 556 function bs_progress_bar( $atts, $content = null ) { 557 557 558 extract(shortcode_atts( array(558 $atts = shortcode_atts( array( 559 559 "type" => false, 560 560 "percent" => false, … … 562 562 "xclass" => false, 563 563 "data" => false 564 ), $atts ));564 ), $atts ); 565 565 566 566 $class = 'progress-bar'; 567 $class .= ( $ type ) ? ' progress-bar-' . $type: '';568 $class .= ( $ xclass ) ? ' ' . $xclass: '';569 570 $data_props = $this->parse_data_attributes( $ data);567 $class .= ( $atts['type'] ) ? ' progress-bar-' . $atts['type'] : ''; 568 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 569 570 $data_props = $this->parse_data_attributes( $atts['data'] ); 571 571 572 572 return sprintf( 573 573 '<div class="%s" role="progressbar" %s%s>%s</div>', 574 574 esc_attr( $class ), 575 ( $ percent ) ? ' aria-value="' . (int) $percent . '" aria-valuemin="0" aria-valuemax="100" style="width: ' . (int) $percent. '%;"' : '',575 ( $atts['percent'] ) ? ' aria-value="' . (int) $atts['percent'] . '" aria-valuemin="0" aria-valuemax="100" style="width: ' . (int) $atts['percent'] . '%;"' : '', 576 576 ( $data_props ) ? ' ' . $data_props : '', 577 ( $ percent ) ? sprintf('<span%s>%s</span>', ( !$label ) ? ' class="sr-only"' : '', (int) $percent. '% Complete') : ''577 ( $atts['percent'] ) ? sprintf('<span%s>%s</span>', ( !$atts['label'] ) ? ' class="sr-only"' : '', (int) $atts['percent'] . '% Complete') : '' 578 578 ); 579 579 } … … 588 588 *-------------------------------------------------------------------------------------*/ 589 589 function bs_code( $atts, $content = null ) { 590 591 extract(shortcode_atts( array(590 591 $atts = shortcode_atts( array( 592 592 "inline" => false, 593 593 "scrollable" => false, 594 594 "xclass" => false, 595 595 "data" => false 596 ), $atts ));596 ), $atts ); 597 597 598 598 $class = ''; 599 $class .= ( $ scrollable== 'true' ) ? ' pre-scrollable' : '';600 $class .= ( $ xclass ) ? ' ' . $xclass: '';601 602 $data_props = $this->parse_data_attributes( $ data);599 $class .= ( $atts['scrollable'] == 'true' ) ? ' pre-scrollable' : ''; 600 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 601 602 $data_props = $this->parse_data_attributes( $atts['data'] ); 603 603 604 604 return sprintf( 605 605 '<%1$s class="%2$s"%3$s>%4$s</%1$s>', 606 ( $ inline) ? 'code' : 'pre',606 ( $atts['inline'] ) ? 'code' : 'pre', 607 607 esc_attr( $class ), 608 608 ( $data_props ) ? ' ' . $data_props : '', … … 620 620 *-------------------------------------------------------------------------------------*/ 621 621 function bs_row( $atts, $content = null ) { 622 623 extract(shortcode_atts( array(622 623 $atts = shortcode_atts( array( 624 624 "xclass" => false, 625 625 "data" => false 626 ), $atts ));626 ), $atts ); 627 627 628 628 $class = 'row'; 629 $class .= ( $ xclass ) ? ' ' . $xclass: '';630 631 $data_props = $this->parse_data_attributes( $ data);629 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 630 631 $data_props = $this->parse_data_attributes( $atts['data'] ); 632 632 633 633 return sprintf( … … 649 649 function bs_column( $atts, $content = null ) { 650 650 651 extract(shortcode_atts( array(651 $atts = shortcode_atts( array( 652 652 "lg" => false, 653 653 "md" => false, … … 668 668 "xclass" => false, 669 669 "data" => false 670 ), $atts ));670 ), $atts ); 671 671 672 672 $class = ''; 673 $class .= ( $ lg ) ? ' col-lg-' . $lg: '';674 $class .= ( $ md ) ? ' col-md-' . $md: '';675 $class .= ( $ sm ) ? ' col-sm-' . $sm: '';676 $class .= ( $ xs ) ? ' col-xs-' . $xs: '';677 $class .= ( $ offset_lg ) ? ' col-lg-offset-' . $offset_lg: '';678 $class .= ( $ offset_md ) ? ' col-md-offset-' . $offset_md: '';679 $class .= ( $ offset_sm ) ? ' col-sm-offset-' . $offset_sm: '';680 $class .= ( $ offset_xs ) ? ' col-xs-offset-' . $offset_xs: '';681 $class .= ( $ pull_lg ) ? ' col-lg-pull-' . $pull_lg: '';682 $class .= ( $ pull_md ) ? ' col-md-pull-' . $pull_md: '';683 $class .= ( $ pull_sm ) ? ' col-sm-pull-' . $pull_sm: '';684 $class .= ( $ pull_xs ) ? ' col-xs-pull-' . $pull_xs: '';685 $class .= ( $ push_lg ) ? ' col-lg-push-' . $push_lg: '';686 $class .= ( $ push_md ) ? ' col-md-push-' . $push_md: '';687 $class .= ( $ push_sm ) ? ' col-sm-push-' . $push_sm: '';688 $class .= ( $ push_xs ) ? ' col-xs-push-' . $push_xs: '';689 $class .= ( $ xclass ) ? ' ' . $xclass: '';690 691 $data_props = $this->parse_data_attributes( $ data);673 $class .= ( $atts['lg'] ) ? ' col-lg-' . $atts['lg'] : ''; 674 $class .= ( $atts['md'] ) ? ' col-md-' . $atts['md'] : ''; 675 $class .= ( $atts['sm'] ) ? ' col-sm-' . $atts['sm'] : ''; 676 $class .= ( $atts['xs'] ) ? ' col-xs-' . $atts['xs'] : ''; 677 $class .= ( $atts['offset_lg'] || $atts['offset_lg'] === "0" ) ? ' col-lg-offset-' . $atts['offset_lg'] : ''; 678 $class .= ( $atts['offset_md'] || $atts['offset_md'] === "0" ) ? ' col-md-offset-' . $atts['offset_md'] : ''; 679 $class .= ( $atts['offset_sm'] || $atts['offset_sm'] === "0" ) ? ' col-sm-offset-' . $atts['offset_sm'] : ''; 680 $class .= ( $atts['offset_xs'] || $atts['offset_xs'] === "0" ) ? ' col-xs-offset-' . $atts['offset_xs'] : ''; 681 $class .= ( $atts['pull_lg'] || $atts['pull_lg'] === "0" ) ? ' col-lg-pull-' . $atts['pull_lg'] : ''; 682 $class .= ( $atts['pull_md'] || $atts['pull_md'] === "0" ) ? ' col-md-pull-' . $atts['pull_md'] : ''; 683 $class .= ( $atts['pull_sm'] || $atts['pull_sm'] === "0" ) ? ' col-sm-pull-' . $atts['pull_sm'] : ''; 684 $class .= ( $atts['pull_xs'] || $atts['pull_xs'] === "0" ) ? ' col-xs-pull-' . $atts['pull_xs'] : ''; 685 $class .= ( $atts['push_lg'] || $atts['push_lg'] === "0" ) ? ' col-lg-push-' . $atts['push_lg'] : ''; 686 $class .= ( $atts['push_md'] || $atts['push_md'] === "0" ) ? ' col-md-push-' . $atts['push_md'] : ''; 687 $class .= ( $atts['push_sm'] || $atts['push_sm'] === "0" ) ? ' col-sm-push-' . $atts['push_sm'] : ''; 688 $class .= ( $atts['push_xs'] || $atts['push_xs'] === "0" ) ? ' col-xs-push-' . $atts['push_xs'] : ''; 689 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 690 691 $data_props = $this->parse_data_attributes( $atts['data'] ); 692 692 693 693 return sprintf( … … 708 708 function bs_list_group( $atts, $content = null ) { 709 709 710 extract(shortcode_atts( array(710 $atts = shortcode_atts( array( 711 711 "linked" => false, 712 712 "xclass" => false, 713 713 "data" => false 714 ), $atts ));714 ), $atts ); 715 715 716 716 $class = 'list-group'; 717 $class .= ( $ xclass ) ? ' ' . $xclass: '';718 719 $data_props = $this->parse_data_attributes( $ data);717 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 718 719 $data_props = $this->parse_data_attributes( $atts['data'] ); 720 720 721 721 return sprintf( 722 722 '<%1$s class="%2$s"%3$s>%4$s</%1$s>', 723 ( $ linked== 'true' ) ? 'div' : 'ul',723 ( $atts['linked'] == 'true' ) ? 'div' : 'ul', 724 724 esc_attr( $class ), 725 725 ( $data_props ) ? ' ' . $data_props : '', … … 737 737 function bs_list_group_item( $atts, $content = null ) { 738 738 739 extract(shortcode_atts( array(739 $atts = shortcode_atts( array( 740 740 "link" => false, 741 741 "type" => false, … … 744 744 "xclass" => false, 745 745 "data" => false 746 ), $atts ));746 ), $atts ); 747 747 748 748 $class = 'list-group-item'; 749 $class .= ( $ type ) ? ' list-group-item-' . $type: '';750 $class .= ( $a ctive== 'true' ) ? ' active' : '';751 $class .= ( $ xclass ) ? ' ' . $xclass: '';752 753 $data_props = $this->parse_data_attributes( $ data);749 $class .= ( $atts['type'] ) ? ' list-group-item-' . $atts['type'] : ''; 750 $class .= ( $atts['active'] == 'true' ) ? ' active' : ''; 751 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 752 753 $data_props = $this->parse_data_attributes( $atts['data'] ); 754 754 755 755 return sprintf( 756 756 '<%1$s %2$s %3$s class="%4$s"%5$s>%6$s</%1$s>', 757 ( $ link) ? 'a' : 'li',758 ( $ link ) ? 'href="' . esc_url( $link) . '"' : '',759 ( $ target ) ? sprintf( ' target="%s"', esc_attr( $target) ) : '',757 ( $atts['link'] ) ? 'a' : 'li', 758 ( $atts['link'] ) ? 'href="' . esc_url( $atts['link'] ) . '"' : '', 759 ( $atts['target'] ) ? sprintf( ' target="%s"', esc_attr( $atts['target'] ) ) : '', 760 760 esc_attr( $class ), 761 761 ( $data_props ) ? ' ' . $data_props : '', … … 772 772 function bs_list_group_item_heading( $atts, $content = null ) { 773 773 774 extract(shortcode_atts( array(774 $atts = shortcode_atts( array( 775 775 "xclass" => false, 776 776 "data" => false 777 ), $atts ));777 ), $atts ); 778 778 779 779 $class = 'list-group-item-heading'; 780 $class .= ( $ xclass ) ? ' ' . $xclass: '';781 782 $data_props = $this->parse_data_attributes( $ data);780 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 781 782 $data_props = $this->parse_data_attributes( $atts['data'] ); 783 783 784 784 return sprintf( … … 797 797 *-------------------------------------------------------------------------------------*/ 798 798 function bs_list_group_item_text( $atts, $content = null ) { 799 800 extract( shortcode_atts( array( 801 "xclass" => false, 802 "data" => false 803 ), $atts ) ); 804 805 $class = 'list-group-item-text'; 806 $class .= ( $xclass ) ? ' ' . $xclass : ''; 807 808 $data_props = $this->parse_data_attributes( $data ); 809 810 return sprintf( 811 '<p class="%s"%s>%s</p>', 812 esc_attr( $class ), 813 ( $data_props ) ? ' ' . $data_props : '', 814 do_shortcode( $content ) 815 ); 816 } 817 818 /*-------------------------------------------------------------------------------------- 819 * 820 * bs_breadcrumb 821 * 822 * 823 *-------------------------------------------------------------------------------------*/ 824 function bs_breadcrumb( $atts, $content = null ) { 825 826 extract( shortcode_atts( array( 799 800 $atts = shortcode_atts( array( 827 801 "xclass" => false, 828 802 "data" => false 829 ), $atts ) ); 803 ), $atts ); 804 805 $class = 'list-group-item-text'; 806 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 807 808 $data_props = $this->parse_data_attributes( $atts['data'] ); 809 810 return sprintf( 811 '<p class="%s"%s>%s</p>', 812 esc_attr( $class ), 813 ( $data_props ) ? ' ' . $data_props : '', 814 do_shortcode( $content ) 815 ); 816 } 817 818 /*-------------------------------------------------------------------------------------- 819 * 820 * bs_breadcrumb 821 * 822 * 823 *-------------------------------------------------------------------------------------*/ 824 function bs_breadcrumb( $atts, $content = null ) { 825 826 $atts = shortcode_atts( array( 827 "xclass" => false, 828 "data" => false 829 ), $atts ); 830 830 831 831 $class = 'breadcrumb'; 832 $class .= ( $ xclass ) ? ' ' . $xclass: '';833 834 $data_props = $this->parse_data_attributes( $ data);832 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 833 834 $data_props = $this->parse_data_attributes( $atts['data'] ); 835 835 836 836 return sprintf( … … 851 851 function bs_breadcrumb_item( $atts, $content = null ) { 852 852 853 extract(shortcode_atts( array(853 $atts = shortcode_atts( array( 854 854 "link" => false, 855 855 "xclass" => false, 856 856 "data" => false 857 ), $atts ));857 ), $atts ); 858 858 859 859 $class = ''; 860 $class .= ( $ xclass ) ? ' ' . $xclass: '';861 862 $data_props = $this->parse_data_attributes( $ data);860 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 861 862 $data_props = $this->parse_data_attributes( $atts['data'] ); 863 863 864 864 return sprintf( 865 865 '<li><a href="%s" class="%s"%s>%s</a></li>', 866 esc_url( $ link),866 esc_url( $atts['link'] ), 867 867 esc_attr( $class ), 868 868 ( $data_props ) ? ' ' . $data_props : '', … … 881 881 function bs_label( $atts, $content = null ) { 882 882 883 extract(shortcode_atts( array(883 $atts = shortcode_atts( array( 884 884 "type" => false, 885 885 "xclass" => false, 886 886 "data" => false 887 ), $atts ));887 ), $atts ); 888 888 889 889 $class = 'label'; 890 $class .= ( $ type ) ? ' label-' . $type: ' label-default';891 $class .= ( $ xclass ) ? ' ' . $xclass: '';892 893 $data_props = $this->parse_data_attributes( $ data);890 $class .= ( $atts['type'] ) ? ' label-' . $atts['type'] : ' label-default'; 891 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 892 893 $data_props = $this->parse_data_attributes( $atts['data'] ); 894 894 895 895 return sprintf( … … 911 911 function bs_badge( $atts, $content = null ) { 912 912 913 extract(shortcode_atts( array(913 $atts = shortcode_atts( array( 914 914 "right" => false, 915 915 "xclass" => false, 916 916 "data" => false 917 ), $atts ));917 ), $atts ); 918 918 919 919 $class = 'badge'; 920 $class .= ( $ right== 'true' ) ? ' pull-right' : '';921 $class .= ( $ xclass ) ? ' ' . $xclass: '';922 923 $data_props = $this->parse_data_attributes( $ data);920 $class .= ( $atts['right'] == 'true' ) ? ' pull-right' : ''; 921 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 922 923 $data_props = $this->parse_data_attributes( $atts['data'] ); 924 924 925 925 return sprintf( … … 941 941 function bs_icon( $atts, $content = null ) { 942 942 943 extract(shortcode_atts( array(943 $atts = shortcode_atts( array( 944 944 "type" => false, 945 945 "xclass" => false, 946 946 "data" => false 947 ), $atts ));947 ), $atts ); 948 948 949 949 $class = 'glyphicon'; 950 $class .= ( $ type ) ? ' glyphicon-' . $type: '';951 $class .= ( $ xclass ) ? ' ' . $xclass: '';952 953 $data_props = $this->parse_data_attributes( $ data);950 $class .= ( $atts['type'] ) ? ' glyphicon-' . $atts['type'] : ''; 951 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 952 953 $data_props = $this->parse_data_attributes( $atts['data'] ); 954 954 955 955 return sprintf( … … 1013 1013 *-------------------------------------------------------------------------------------*/ 1014 1014 function bs_table_wrap( $atts, $content = null ) { 1015 extract( shortcode_atts( array( 1016 'bordered' => false, 1017 'striped' => false, 1018 'hover' => false, 1019 'condensed' => false, 1020 'xclass' => false, 1021 'data' => false 1022 ), $atts ) ); 1015 1016 $atts = shortcode_atts( array( 1017 'bordered' => false, 1018 'striped' => false, 1019 'hover' => false, 1020 'condensed' => false, 1021 'responsive' => false, 1022 'xclass' => false, 1023 'data' => false 1024 ), $atts ); 1023 1025 1024 1026 $class = 'table'; 1025 $class .= ( $ bordered == 'true' )? ' table-bordered' : '';1026 $class .= ( $ striped == 'true' )? ' table-striped' : '';1027 $class .= ( $ hover == 'true' )? ' table-hover' : '';1028 $class .= ( $ condensed== 'true' ) ? ' table-condensed' : '';1029 $class .= ( $xclass) ? ' ' . $xclass: '';1027 $class .= ( $atts['bordered'] == 'true' ) ? ' table-bordered' : ''; 1028 $class .= ( $atts['striped'] == 'true' ) ? ' table-striped' : ''; 1029 $class .= ( $atts['hover'] == 'true' ) ? ' table-hover' : ''; 1030 $class .= ( $atts['condensed'] == 'true' ) ? ' table-condensed' : ''; 1031 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1030 1032 1031 1033 $return = ''; 1032 1034 1033 1035 $tag = array('table'); 1034 $title = '';1035 1036 $content = do_shortcode($content); 1036 1037 1037 $return .= $this->scrape_dom_element($tag, $content, $class, $title, $data); 1038 $return .= $this->scrape_dom_element($tag, $content, $class, '', $atts['data']); 1039 $return = ( $atts['responsive'] ) ? '<div class="table-responsive">' . $return . '</div>' : $return; 1038 1040 return $return; 1039 1041 } … … 1053 1055 function bs_well( $atts, $content = null ) { 1054 1056 1055 extract(shortcode_atts( array(1057 $atts = shortcode_atts( array( 1056 1058 "size" => false, 1057 1059 "xclass" => false, 1058 1060 "data" => false 1059 ), $atts ));1061 ), $atts ); 1060 1062 1061 1063 $class = 'well'; 1062 $class .= ( $ size ) ? ' well-' . $size: '';1063 $class .= ( $ xclass ) ? ' ' . $xclass: '';1064 1065 $data_props = $this->parse_data_attributes( $ data);1064 $class .= ( $atts['size'] ) ? ' well-' . $atts['size'] : ''; 1065 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1066 1067 $data_props = $this->parse_data_attributes( $atts['data'] ); 1066 1068 1067 1069 return sprintf( … … 1083 1085 function bs_panel( $atts, $content = null ) { 1084 1086 1085 extract(shortcode_atts( array(1087 $atts = shortcode_atts( array( 1086 1088 "title" => false, 1087 1089 "heading" => false, … … 1090 1092 "xclass" => false, 1091 1093 "data" => false 1092 ), $atts ));1094 ), $atts ); 1093 1095 1094 1096 $class = 'panel'; 1095 $class .= ( $ type ) ? ' panel-' . $type: ' panel-default';1096 $class .= ( $ xclass ) ? ' ' . $xclass: '';1097 1098 if( ! $ heading && $title) {1099 $ heading = $title;1100 $ title= true;1097 $class .= ( $atts['type'] ) ? ' panel-' . $atts['type'] : ' panel-default'; 1098 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1099 1100 if( ! $atts['heading'] && $atts['title'] ) { 1101 $atts['heading'] = $atts['title']; 1102 $atts['title'] = true; 1101 1103 } 1102 1104 1103 $data_props = $this->parse_data_attributes( $ data);1104 1105 $footer = ( $ footer ) ? '<div class="panel-footer">' . $footer. '</div>' : '';1106 1107 if ( $ heading) {1105 $data_props = $this->parse_data_attributes( $atts['data'] ); 1106 1107 $footer = ( $atts['footer'] ) ? '<div class="panel-footer">' . $atts['footer'] . '</div>' : ''; 1108 1109 if ( $atts['heading'] ) { 1108 1110 $heading = sprintf( 1109 1111 '<div class="panel-heading">%s%s%s</div>', 1110 ( $ title) ? '<h3 class="panel-title">' : '',1111 esc_html( $ heading),1112 ( $ title) ? '</h3>' : ''1112 ( $atts['title'] ) ? '<h3 class="panel-title">' : '', 1113 esc_html( $atts['heading'] ), 1114 ( $atts['title'] ) ? '</h3>' : '' 1113 1115 ); 1114 1116 } … … 1144 1146 1145 1147 $GLOBALS['tabs_default_count'] = 0; 1146 1147 extract(shortcode_atts( array(1148 1149 $atts = shortcode_atts( array( 1148 1150 "type" => false, 1149 1151 "xclass" => false, 1150 1152 "data" => false 1151 ), $atts ));1153 ), $atts ); 1152 1154 1153 1155 $ul_class = 'nav'; 1154 $ul_class .= ( $ type ) ? ' nav-' . $type: ' nav-tabs';1155 $ul_class .= ( $ xclass ) ? ' ' . $xclass: '';1156 $ul_class .= ( $atts['type'] ) ? ' nav-' . $atts['type'] : ' nav-tabs'; 1157 $ul_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1156 1158 1157 1159 $div_class = 'tab-content'; … … 1159 1161 $id = 'custom-tabs-'. $GLOBALS['tabs_count']; 1160 1162 1161 $data_props = $this->parse_data_attributes( $ data);1163 $data_props = $this->parse_data_attributes( $atts['data'] ); 1162 1164 1163 1165 $atts_map = bs_attribute_map( $content ); … … 1204 1206 function bs_tab( $atts, $content = null ) { 1205 1207 1206 extract(shortcode_atts( array(1208 $atts = shortcode_atts( array( 1207 1209 'title' => false, 1208 1210 'active' => false, … … 1210 1212 'xclass' => false, 1211 1213 'data' => false 1212 ), $atts ));1214 ), $atts ); 1213 1215 1214 1216 if( $GLOBALS['tabs_default_active'] && $GLOBALS['tabs_default_count'] == 0 ) { … … 1218 1220 1219 1221 $class = 'tab-pane'; 1220 $class .= ( $ fade== 'true' ) ? ' fade' : '';1221 $class .= ( $a ctive== 'true' ) ? ' active' : '';1222 $class .= ( $a ctive == 'true' && $fade== 'true' ) ? ' in' : '';1223 1224 $id = 'custom-tab-'. $GLOBALS['tabs_count'] . '-'. sanitize_title( $ title);1222 $class .= ( $atts['fade'] == 'true' ) ? ' fade' : ''; 1223 $class .= ( $atts['active'] == 'true' ) ? ' active' : ''; 1224 $class .= ( $atts['active'] == 'true' && $atts['fade'] == 'true' ) ? ' in' : ''; 1225 1226 $id = 'custom-tab-'. $GLOBALS['tabs_count'] . '-'. sanitize_title( $atts['title'] ); 1225 1227 1226 $data_props = $this->parse_data_attributes( $ data);1228 $data_props = $this->parse_data_attributes( $atts['data'] ); 1227 1229 1228 1230 return sprintf( … … 1254 1256 $GLOBALS['collapsibles_count'] = 0; 1255 1257 1256 extract(shortcode_atts( array(1258 $atts = shortcode_atts( array( 1257 1259 "xclass" => false, 1258 1260 "data" => false 1259 ), $atts ));1261 ), $atts ); 1260 1262 1261 1263 $class = 'panel-group'; 1262 $class .= ( $ xclass ) ? ' ' . $xclass: '';1264 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1263 1265 1264 1266 $id = 'custom-collapse-'. $GLOBALS['collapsibles_count']; 1265 1267 1266 $data_props = $this->parse_data_attributes( $ data);1268 $data_props = $this->parse_data_attributes( $atts['data'] ); 1267 1269 1268 1270 return sprintf( … … 1287 1289 function bs_collapse( $atts, $content = null ) { 1288 1290 1289 extract(shortcode_atts( array(1291 $atts = shortcode_atts( array( 1290 1292 "title" => false, 1291 1293 "type" => false, … … 1293 1295 "xclass" => false, 1294 1296 "data" => false 1295 ), $atts ));1297 ), $atts ); 1296 1298 1297 1299 $panel_class = 'panel'; 1298 $panel_class .= ( $ type ) ? ' panel-' . $type: ' panel-default';1299 $panel_class .= ( $ xclass ) ? ' ' . $xclass: '';1300 $panel_class .= ( $atts['type'] ) ? ' panel-' . $atts['type'] : ' panel-default'; 1301 $panel_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1300 1302 1301 1303 $collapse_class = 'panel-collapse'; 1302 $collapse_class .= ( $a ctive== 'true' ) ? ' in' : ' collapse';1304 $collapse_class .= ( $atts['active'] == 'true' ) ? ' in' : ' collapse'; 1303 1305 1304 1306 $parent = 'custom-collapse-'. $GLOBALS['collapsibles_count']; 1305 $current_collapse = $parent . '-'. sanitize_title( $ title);1306 1307 $data_props = $this->parse_data_attributes( $ data);1307 $current_collapse = $parent . '-'. sanitize_title( $atts['title'] ); 1308 1309 $data_props = $this->parse_data_attributes( $atts['data'] ); 1308 1310 1309 1311 return sprintf( … … 1322 1324 $parent, 1323 1325 $current_collapse, 1324 $ title,1326 $atts['title'], 1325 1327 esc_attr( $collapse_class ), 1326 1328 do_shortcode( $content ) … … 1345 1347 $GLOBALS['carousel_default_count'] = 0; 1346 1348 1347 extract(shortcode_atts( array(1349 $atts = shortcode_atts( array( 1348 1350 "interval" => false, 1349 1351 "pause" => false, … … 1351 1353 "xclass" => false, 1352 1354 "data" => false, 1353 ), $atts ));1355 ), $atts ); 1354 1356 1355 1357 $div_class = 'carousel slide'; 1356 $div_class .= ( $ xclass ) ? ' ' . $xclass: '';1358 $div_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1357 1359 1358 1360 $inner_class = 'carousel-inner'; … … 1360 1362 $id = 'custom-carousel-'. $GLOBALS['carousel_count']; 1361 1363 1362 $data_props = $this->parse_data_attributes( $ data);1364 $data_props = $this->parse_data_attributes( $atts['data'] ); 1363 1365 1364 1366 $atts_map = bs_attribute_map( $content ); … … 1388 1390 esc_attr( $div_class ), 1389 1391 esc_attr( $id ), 1390 ( $ interval ) ? sprintf( ' data-interval="%d"', $interval) : '',1391 ( $ pause ) ? sprintf( ' data-pause="%s"', esc_attr( $pause) ) : '',1392 ( $ wrap == 'true' ) ? sprintf( ' data-wrap="%s"', esc_attr( $wrap) ) : '',1392 ( $atts['interval'] ) ? sprintf( ' data-interval="%d"', $atts['interval'] ) : '', 1393 ( $atts['pause'] ) ? sprintf( ' data-pause="%s"', esc_attr( $atts['pause'] ) ) : '', 1394 ( $atts['wrap'] == 'true' ) ? sprintf( ' data-wrap="%s"', esc_attr( $atts['wrap'] ) ) : '', 1393 1395 ( $data_props ) ? ' ' . $data_props : '', 1394 1396 ( $indicators ) ? '<ol class="carousel-indicators">' . implode( $indicators ) . '</ol>' : '', … … 1410 1412 *-------------------------------------------------------------------------------------*/ 1411 1413 function bs_carousel_item( $atts, $content = null ) { 1412 1413 extract(shortcode_atts( array(1414 1415 $atts = shortcode_atts( array( 1414 1416 "active" => false, 1415 1417 "caption" => false, 1416 1418 "xclass" => false, 1417 1419 "data" => false 1418 ), $atts ));1420 ), $atts ); 1419 1421 1420 1422 if( $GLOBALS['carousel_default_active'] && $GLOBALS['carousel_default_count'] == 0 ) { … … 1424 1426 1425 1427 $class = 'item'; 1426 $class .= ( $a ctive== 'true' ) ? ' active' : '';1427 $class .= ( $ xclass ) ? ' ' . $xclass: '';1428 1429 $data_props = $this->parse_data_attributes( $ data);1428 $class .= ( $atts['active'] == 'true' ) ? ' active' : ''; 1429 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1430 1431 $data_props = $this->parse_data_attributes( $atts['data'] ); 1430 1432 1431 1433 $content = preg_replace('/class=".*?"/', '', $content); … … 1436 1438 ( $data_props ) ? ' ' . $data_props : '', 1437 1439 do_shortcode( $content ), 1438 ( $ caption ) ? '<div class="carousel-caption">' . esc_html( $caption) . '</div>' : ''1440 ( $atts['caption'] ) ? '<div class="carousel-caption">' . esc_html( $atts['caption'] ) . '</div>' : '' 1439 1441 ); 1440 1442 } … … 1452 1454 function bs_tooltip( $atts, $content = null ) { 1453 1455 1454 $defaults =array(1456 $atts = shortcode_atts( array( 1455 1457 'title' => '', 1456 1458 'placement' => 'top', … … 1458 1460 'html' => 'false', 1459 1461 'data' => '' 1460 ); 1461 extract( shortcode_atts( $defaults, $atts ) ); 1462 ), $atts ); 1462 1463 1463 1464 $class = 'bs-tooltip'; 1464 1465 1465 $ data .= ( $animation ) ? $this->check_for_data($data) . 'animation,' . $animation: '';1466 $ data .= ( $placement ) ? $this->check_for_data($data) . 'placement,' . $placement: '';1467 $ data .= ( $html ) ? $this->check_for_data($data) . 'html,' . $html: '';1466 $atts['data'] .= ( $atts['animation'] ) ? $this->check_for_data($atts['data']) . 'animation,' . $atts['animation'] : ''; 1467 $atts['data'] .= ( $atts['placement'] ) ? $this->check_for_data($atts['data']) . 'placement,' . $atts['placement'] : ''; 1468 $atts['data'] .= ( $atts['html'] ) ? $this->check_for_data($atts['data']) . 'html,' .$atts['html'] : ''; 1468 1469 1469 1470 $return = ''; 1470 1471 $tag = 'span'; 1471 1472 $content = do_shortcode($content); 1472 $return .= $this->get_dom_element($tag, $content, $class, $ title, $data);1473 $return .= $this->get_dom_element($tag, $content, $class, $atts['title'], $atts['data']); 1473 1474 return $return; 1474 1475 … … 1484 1485 function bs_popover( $atts, $content = null ) { 1485 1486 1486 $defaults =array(1487 $atts = shortcode_atts( array( 1487 1488 'title' => false, 1488 1489 'text' => '', … … 1491 1492 'html' => 'false', 1492 1493 'data' => '' 1493 ); 1494 extract( shortcode_atts( $defaults, $atts ) ); 1494 ), $atts ); 1495 1495 1496 1496 $class = 'bs-popover'; 1497 1497 1498 $ data .= $this->check_for_data($data) . 'toggle,popover';1499 $ data .= $this->check_for_data($data) . 'content,' . $text;1500 $ data .= ( $animation ) ? $this->check_for_data($data) . 'animation,' . $animation: '';1501 $ data .= ( $placement ) ? $this->check_for_data($data) . 'placement,' . $placement: '';1502 $ data .= ( $html ) ? $this->check_for_data($data) . 'html,' . $html: '';1498 $atts['data'] .= $this->check_for_data($atts['data']) . 'toggle,popover'; 1499 $atts['data'] .= $this->check_for_data($atts['data']) . 'content,' . $atts['text']; 1500 $atts['data'] .= ( $atts['animation'] ) ? $this->check_for_data($atts['data']) . 'animation,' . $atts['animation'] : ''; 1501 $atts['data'] .= ( $atts['placement'] ) ? $this->check_for_data($atts['data']) . 'placement,' . $atts['placement'] : ''; 1502 $atts['data'] .= ( $atts['html'] ) ? $this->check_for_data($atts['data']) . 'html,' . $atts['html'] : ''; 1503 1503 1504 1504 $return = ''; 1505 1505 $tag = 'span'; 1506 1506 $content = do_shortcode($content); 1507 $return .= $this->get_dom_element($tag, $content, $class, $ title, $data);1507 $return .= $this->get_dom_element($tag, $content, $class, $atts['title'], $atts['data']); 1508 1508 return $return; 1509 1509 … … 1522 1522 function bs_media( $atts, $content = null ) { 1523 1523 1524 extract(shortcode_atts( array(1524 $atts = shortcode_atts( array( 1525 1525 "xclass" => false, 1526 1526 "data" => false 1527 ), $atts ));1527 ), $atts ); 1528 1528 1529 1529 $class = 'media'; 1530 $class .= ( $ xclass ) ? ' ' . $xclass: '';1531 1532 $data_props = $this->parse_data_attributes( $ data);1530 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass']: ''; 1531 1532 $data_props = $this->parse_data_attributes( $atts['data'] ); 1533 1533 1534 1534 return sprintf( … … 1542 1542 function bs_media_object( $atts, $content = null ) { 1543 1543 1544 extract(shortcode_atts( array(1544 $atts = shortcode_atts( array( 1545 1545 "pull" => "left", 1546 1546 "xclass" => false, 1547 1547 "data" => false 1548 ), $atts ));1548 ), $atts ); 1549 1549 1550 1550 $class = "media-object img-responsive"; 1551 $class .= ($ xclass) ? ' ' . $xclass: '';1551 $class .= ($atts['xclass']) ? ' ' . $atts['xclass'] : ''; 1552 1552 1553 1553 $return = ''; 1554 1554 1555 1555 $tag = array('figure', 'div', 'img', 'i', 'span'); 1556 $title = '';1557 1556 $content = do_shortcode(preg_replace('/(<br>)+$/', '', $content)); 1558 $return .= $this->scrape_dom_element($tag, $content, $class, $title, $data);1559 $return = '<span class=" pull-' . esc_attr($pull) . '">' . $return . '</span>';1557 $return .= $this->scrape_dom_element($tag, $content, $class, '', $atts['data']); 1558 $return = '<span class="media-' . esc_attr($atts['pull']) . '">' . $return . '</span>'; 1560 1559 return $return; 1561 1560 } … … 1563 1562 function bs_media_body( $atts, $content = null ) { 1564 1563 1565 extract(shortcode_atts( array(1564 $atts = shortcode_atts( array( 1566 1565 "title" => false, 1567 1566 "xclass" => false, 1568 1567 "data" => false 1569 ), $atts ));1568 ), $atts ); 1570 1569 1571 1570 $div_class = 'media-body'; 1572 $div_class .= ( $ xclass ) ? ' ' . $xclass: '';1571 $div_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1573 1572 1574 1573 $h4_class = 'media-heading'; 1575 $h4_class .= ( $ xclass ) ? ' ' . $xclass: '';1574 $h4_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1576 1575 1577 1576 $data_props = $this->parse_data_attributes( $data ); … … 1582 1581 ( $data_props ) ? ' ' . $data_props : '', 1583 1582 esc_attr( $h4_class ), 1584 esc_html( $title),1583 esc_html( $atts['title']), 1585 1584 do_shortcode( $content ) 1586 1585 ); … … 1594 1593 *-------------------------------------------------------------------------------------*/ 1595 1594 function bs_jumbotron( $atts, $content = null ) { 1596 1597 extract(shortcode_atts( array(1595 1596 $atts = shortcode_atts( array( 1598 1597 "title" => false, 1599 1598 "xclass" => false, 1600 1599 "data" => false 1601 ), $atts ));1600 ), $atts ); 1602 1601 1603 1602 $class = 'jumbotron'; 1604 $class .= ( $ xclass ) ? ' ' . $xclass: '';1605 1606 $data_props = $this->parse_data_attributes( $ data);1603 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1604 1605 $data_props = $this->parse_data_attributes( $atts['data'] ); 1607 1606 1608 1607 return sprintf( … … 1610 1609 esc_attr( $class ), 1611 1610 ( $data_props ) ? ' ' . $data_props : '', 1612 ( $ title ) ? '<h1>' . esc_html( $title) . '</h1>' : '',1611 ( $atts['title'] ) ? '<h1>' . esc_html( $atts['title'] ) . '</h1>' : '', 1613 1612 do_shortcode( $content ) 1614 1613 ); … … 1622 1621 *-------------------------------------------------------------------------------------*/ 1623 1622 function bs_page_header( $atts, $content = null ) { 1624 extract( shortcode_atts( array( 1623 1624 $atts = shortcode_atts( array( 1625 1625 "xclass" => false, 1626 1626 "data" => false 1627 ), $atts ) ); 1628 $data_props = $this->parse_data_attributes( $data ); 1627 ), $atts ); 1628 1629 $data_props = $this->parse_data_attributes( $atts['data'] ); 1629 1630 1630 1631 $class = "page-header"; 1631 $class .= ($ xclass) ? ' ' . $xclass: '';1632 $class .= ($atts['xclass']) ? ' ' . $atts['xclass'] : ''; 1632 1633 1633 1634 $return = ''; … … 1636 1637 $content = $this->strip_paragraph($content); 1637 1638 $content = $this->nest_dom_element('h1', 'div', $content); 1638 $return .= $this->get_dom_element($tag, $content, $class, $title, $data);1639 $return .= $this->get_dom_element($tag, $content, $class, '', $atts['data']); 1639 1640 return $return; 1640 1641 … … 1648 1649 *-------------------------------------------------------------------------------------*/ 1649 1650 function bs_lead( $atts, $content = null ) { 1650 extract( shortcode_atts( array( 1651 1652 $atts = shortcode_atts( array( 1651 1653 "xclass" => false, 1652 1654 "data" => false 1653 ), $atts ));1655 ), $atts ); 1654 1656 1655 1657 $class = 'lead'; 1656 $class .= ( $ xclass ) ? ' ' . $xclass: '';1657 1658 $data_props = $this->parse_data_attributes( $ data);1658 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1659 1660 $data_props = $this->parse_data_attributes( $atts['data'] ); 1659 1661 1660 1662 return sprintf( … … 1673 1675 *-------------------------------------------------------------------------------------*/ 1674 1676 function bs_emphasis( $atts, $content = null ) { 1675 1676 extract(shortcode_atts( array(1677 1678 $atts = shortcode_atts( array( 1677 1679 "type" => false, 1678 1680 "xclass" => false, 1679 1681 "data" => false 1680 ), $atts ));1682 ), $atts ); 1681 1683 1682 1684 $class = ''; 1683 $class .= ( $ type ) ? 'text-' . $type: 'text-muted';1684 $class .= ( $ xclass ) ? ' ' . $xclass: '';1685 1686 $data_props = $this->parse_data_attributes( $ data);1685 $class .= ( $atts['type'] ) ? 'text-' . $atts['type'] : 'text-muted'; 1686 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1687 1688 $data_props = $this->parse_data_attributes( $atts['data'] ); 1687 1689 1688 1690 return sprintf( … … 1701 1703 *-------------------------------------------------------------------------------------*/ 1702 1704 function bs_img( $atts, $content = null ) { 1703 extract( shortcode_atts( array( 1705 1706 $atts = shortcode_atts( array( 1704 1707 "type" => false, 1705 1708 "responsive" => false, 1706 1709 "xclass" => false, 1707 1710 "data" => false 1708 ), $atts ));1709 1710 $class .= ( $ type ) ? 'img-' . $type. ' ' : '';1711 $class .= ( $ responsive== 'true' ) ? ' img-responsive' : '';1712 $class .= ( $ xclass ) ? ' ' . $xclass: '';1711 ), $atts ); 1712 1713 $class .= ( $atts['type'] ) ? 'img-' . $atts['type'] . ' ' : ''; 1714 $class .= ( $atts['responsive'] == 'true' ) ? ' img-responsive' : ''; 1715 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1713 1716 1714 1717 $return = ''; 1715 1718 $tag = array('img'); 1716 1719 $content = do_shortcode($content); 1717 $return .= $this->scrape_dom_element($tag, $content, $class, $title, $data);1720 $return .= $this->scrape_dom_element($tag, $content, $class, '', $atts['data']); 1718 1721 return $return; 1719 1722 … … 1727 1730 *-------------------------------------------------------------------------------------*/ 1728 1731 function bs_thumbnail( $atts, $content = null ) { 1729 extract( shortcode_atts( array( 1732 1733 $atts = shortcode_atts( array( 1730 1734 "xclass" => false, 1731 1735 "has_content" => false, 1732 1736 "data" => false 1733 ), $atts ));1737 ), $atts ); 1734 1738 1735 1739 $class = "thumbnail"; 1736 $class .= ($ xclass) ? ' ' . $xclass: '';1740 $class .= ($atts['xclass']) ? ' ' . $atts['xclass'] : ''; 1737 1741 1738 1742 $return = ''; 1739 if($ has_content) {1743 if($atts['has_content']) { 1740 1744 $content = '<div>' . $content . '</div>'; 1741 1745 $tag = array('div'); … … 1744 1748 } 1745 1749 $content = do_shortcode($content); 1746 $return .= $this->scrape_dom_element($tag, $content, $class, $title, $data);1750 $return .= $this->scrape_dom_element($tag, $content, $class, '', $atts['data']); 1747 1751 return $return; 1748 1752 … … 1757 1761 function bs_responsive( $atts, $content = null ) { 1758 1762 1759 extract(shortcode_atts( array(1763 $atts = shortcode_atts( array( 1760 1764 "visible" => false, 1761 1765 "hidden" => false, … … 1765 1769 "xclass" => false, 1766 1770 "data" => false 1767 ), $atts ));1771 ), $atts ); 1768 1772 1769 1773 $class = ''; 1770 if( $ visible) {1771 $visible = explode( ' ', $ visible);1774 if( $atts['visible'] ) { 1775 $visible = explode( ' ', $atts['visible'] ); 1772 1776 foreach($visible as $v): 1773 1777 $class .= "visible-$v "; 1774 1778 endforeach; 1775 1779 } 1776 if( $ hidden) {1777 $hidden = explode( ' ', $ hidden);1780 if( $atts['hidden'] ) { 1781 $hidden = explode( ' ', $atts['hidden'] ); 1778 1782 foreach( $hidden as $h ): 1779 1783 $class .= "hidden-$h "; 1780 1784 endforeach; 1781 1785 } 1782 if( $ block) {1783 $block = explode( ' ', $ block);1786 if( $atts['block'] ) { 1787 $block = explode( ' ', $atts['block'] ); 1784 1788 foreach( $block as $b ): 1785 1789 $class .= "visible-$b-block "; 1786 1790 endforeach; 1787 1791 } 1788 if( $ inline) {1789 $inline = explode( ' ', $ inline);1792 if( $atts['inline'] ) { 1793 $inline = explode( ' ', $atts['inline'] ); 1790 1794 foreach( $inline as $i ): 1791 1795 $class .= "visible-$i-inline "; 1792 1796 endforeach; 1793 1797 } 1794 if( $ inline_block) {1795 $inline_block = explode( ' ', $ inline_block);1798 if( $atts['inline_block'] ) { 1799 $inline_block = explode( ' ', $atts['inline_block'] ); 1796 1800 foreach( $inline_block as $ib ): 1797 1801 $class .= "visible-$ib-inline "; 1798 1802 endforeach; 1799 1803 } 1800 $class .= ( $ xclass ) ? ' ' . $xclass: '';1801 1802 $data_props = $this->parse_data_attributes( $ data);1804 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1805 1806 $data_props = $this->parse_data_attributes( $atts['data'] ); 1803 1807 1804 1808 return sprintf( … … 1820 1824 function bs_modal( $atts, $content = null ) { 1821 1825 1822 extract(shortcode_atts( array(1826 $atts = shortcode_atts( array( 1823 1827 "text" => false, 1824 1828 "title" => false, … … 1826 1830 "xclass" => false, 1827 1831 "data" => false 1828 ), $atts ));1832 ), $atts ); 1829 1833 1830 1834 $a_class = ''; 1831 $a_class .= ( $ xclass ) ? ' ' . $xclass: '';1835 $a_class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1832 1836 1833 1837 $div_class = 'modal fade'; 1834 $div_class .= ( $ size ) ? ' bs-modal-' . $size: '';1835 1836 $id = 'custom-modal-' . sanitize_title( $ title);1837 1838 $data_props = $this->parse_data_attributes( $ data);1838 $div_class .= ( $atts['size'] ) ? ' bs-modal-' . $atts['size'] : ''; 1839 1840 $id = 'custom-modal-' . sanitize_title( $atts['title'] ); 1841 1842 $data_props = $this->parse_data_attributes( $atts['data'] ); 1839 1843 1840 1844 return sprintf( … … 1857 1861 esc_attr( $a_class ), 1858 1862 ( $data_props ) ? ' ' . $data_props : '', 1859 esc_html( $ text),1863 esc_html( $atts['text'] ), 1860 1864 esc_attr( $div_class ), 1861 ( $ title ) ? '<h4 class="modal-title">' . $title. '</h4>' : '',1865 ( $atts['title'] ) ? '<h4 class="modal-title">' . $atts['title'] . '</h4>' : '', 1862 1866 do_shortcode( $content ) 1863 1867 ); … … 1874 1878 function bs_modal_footer( $atts, $content = null ) { 1875 1879 1876 extract(shortcode_atts( array(1880 $atts = shortcode_atts( array( 1877 1881 "xclass" => false, 1878 1882 "data" => false, 1879 ), $atts ));1883 ), $atts ); 1880 1884 1881 1885 $class = 'modal-footer'; 1882 $class .= ( $ xclass ) ? ' ' . $xclass: '';1883 1884 $data_props = $this->parse_data_attributes( $ data);1886 $class .= ( $atts['xclass'] ) ? ' ' . $atts['xclass'] : ''; 1887 1888 $data_props = $this->parse_data_attributes( $atts['data'] ); 1885 1889 1886 1890 return sprintf( … … 1920 1924 * 1921 1925 *-------------------------------------------------------------------------------------*/ 1922 function get_dom_element( $tag, $content, $class, $title , $data = null ) {1926 function get_dom_element( $tag, $content, $class, $title = '', $data = null ) { 1923 1927 1924 1928 //clean up content … … 1956 1960 * 1957 1961 *-------------------------------------------------------------------------------------*/ 1958 function scrape_dom_element( $tag, $content, $class, $title , $data = null ) {1962 function scrape_dom_element( $tag, $content, $class, $title = '', $data = null ) { 1959 1963 1960 1964 $previous_value = libxml_use_internal_errors(TRUE); … … 2054 2058 2055 2059 new BoostrapShortcodes(); 2060 -
bootstrap-3-shortcodes/trunk/includes/actions-filters.php
r991902 r1035086 13 13 14 14 function bootstrap_shortcodes_help_styles() { 15 wp_register_style( 'bs-font', plugins_url( 'bootstrap-3-shortcodes/includes/help/bs-font.css' ) ); 16 wp_register_style( 'bootstrap-shortcodes-help', plugins_url( 'bootstrap-3-shortcodes/includes/help/css/bootstrap-shortcodes-help.css' ) ); 17 wp_register_style( 'bootstrap-modal', plugins_url( 'bootstrap-3-shortcodes/includes/help/css/bootstrap-modal.css' ) ); 18 wp_register_script( 'bootstrap', plugins_url( 'bootstrap-3-shortcodes/includes/help/js/bootstrap.min.js' ) ); 19 wp_enqueue_style( 'bootstrap-shortcodes-help' ); 20 wp_enqueue_style( 'bootstrap-modal' ); 21 wp_enqueue_style( 'bs-font' ); 22 wp_enqueue_script( 'bootstrap' ); 15 $screen = get_current_screen(); 16 if($screen->parent_base != "gf_edit_forms") { 17 wp_register_style( 'bs-font', plugins_url( 'bootstrap-3-shortcodes/includes/help/bs-font.css' ) ); 18 wp_register_style( 'bootstrap-shortcodes-help', plugins_url( 'bootstrap-3-shortcodes/includes/help/css/bootstrap-shortcodes-help.css' ) ); 19 wp_register_style( 'bootstrap-modal', plugins_url( 'bootstrap-3-shortcodes/includes/help/css/bootstrap-modal.css' ) ); 20 wp_register_script( 'bootstrap', plugins_url( 'bootstrap-3-shortcodes/includes/help/js/bootstrap.min.js' ) ); 21 wp_enqueue_style( 'bootstrap-shortcodes-help' ); 22 wp_enqueue_style( 'bootstrap-modal' ); 23 wp_enqueue_style( 'bs-font' ); 24 wp_enqueue_script( 'bootstrap' ); 25 } 23 26 24 27 } … … 29 32 //action to add a custom button to the content editor 30 33 function add_bootstrap_button() { 31 32 //the id of the container I want to show in the popup 33 $popup_id = 'bootstrap-shortcodes-help'; 34 35 //our popup's title 36 $title = 'Bootstrap Shortcodes Help'; 34 $screen = get_current_screen(); 35 if($screen->parent_base != "gf_edit_forms") { 36 //the id of the container I want to show in the popup 37 $popup_id = 'bootstrap-shortcodes-help'; 37 38 38 //append the icon 39 printf( 40 '<a data-toggle="modal" data-target="#bootstrap-shortcodes-help" title="%2$s" href="%3$s" class="%4$s"><span class="bs_bootstrap-logo wp-media-buttons-icon"></span></a>', 41 esc_attr( $popup_id ), 42 esc_attr( $title ), 43 esc_url( '#' ), 44 esc_attr( 'button add_media bootstrap-shortcodes-button') 45 //sprintf( '<img src="%s" style="height: 20px; position: relative; top: -2px;">', esc_url( $img ) ) 46 ); 39 //our popup's title 40 $title = 'Bootstrap Shortcodes Help'; 41 42 //append the icon 43 printf( 44 '<a data-toggle="modal" data-target="#bootstrap-shortcodes-help" title="%2$s" href="%3$s" class="%4$s"><span class="bs_bootstrap-logo wp-media-buttons-icon"></span></a>', 45 esc_attr( $popup_id ), 46 esc_attr( $title ), 47 esc_url( '#' ), 48 esc_attr( 'button add_media bootstrap-shortcodes-button') 49 //sprintf( '<img src="%s" style="height: 20px; position: relative; top: -2px;">', esc_url( $img ) ) 50 ); 51 } 47 52 } 48 53 -
bootstrap-3-shortcodes/trunk/includes/help/README.html
r991902 r1035086 3 3 <h2 id="requirements">Requirements</h2> 4 4 <p>This plugin won't do anything if you don't have WordPress theme built with the <a href="http://getbootstrap.com/">Bootstrap</a> framework. <strong>This plugin does not include the Bootstrap framework</strong>.</p> 5 <p>The plugin is tested to work with <code>Bootstrap 3.2</code> and <code>WordPress 3.9</code>.</p>5 <p>The plugin is tested to work with <code>Bootstrap 3.2</code> and <code>WordPress 4.0</code>.</p> 6 6 <p>This plugin contains a <code>composer.json</code> file for those of you who manage your PHP dependencies with <a href="https://getcomposer.org">Composer</a>.</p> 7 7 <h2 id="shortcode-reference">Shortcode Reference</h2> … … 589 589 <hr> 590 590 <h3 id="responsive-utilities">Responsive Utilities</h3> 591 <pre><code>[responsive visible_block="lg md" hidden="sn xs"] ... [/responsive]</code></pre>591 <pre><code>[responsive block="lg md" hidden="sn xs"] ... [/responsive]</code></pre> 592 592 <h4 id="-reponsive-parameters">[reponsive] parameters</h4> 593 593 <table> … … 653 653 </tbody> 654 654 </table> 655 <p><a href="http://getbootstrap.com/css/# type-emphasis">Bootstrap emphasis classes documentation</a></p>655 <p><a href="http://getbootstrap.com/css/#responsive-utilities">Bootstrap responsive utilities documentation</a></p> 656 656 <hr> 657 657 <h3 id="components">Components</h3> 658 658 <h3 id="icons">Icons</h3> 659 <pre><code>[icon type="arrow "]</code></pre>659 <pre><code>[icon type="arrow-right"]</code></pre> 660 660 <h4 id="-icon-parameters">[icon] parameters</h4> 661 661 <table> … … 2297 2297 <hr> 2298 2298 <h3 id="modal">Modal</h3> 2299 <pre><code>[modal text="This is my modal" title="Modal Title Goes Here" xclass="btn btn-primary btn-l arge"]2299 <pre><code>[modal text="This is my modal" title="Modal Title Goes Here" xclass="btn btn-primary btn-lg"] 2300 2300 ... 2301 2301 [modal-footer] -
bootstrap-3-shortcodes/trunk/readme.txt
r991902 r1035086 4 4 Requires at least: 3.8 5 5 Tested up to: 4.0 6 Stable tag: 3. 2.46 Stable tag: 3.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 19 19 For questions, support, or to contribute to this plugin, check out [our GitHub project](https://github.com/filipstefansson/bootstrap-3-shortcodes) 20 20 21 ####Updated for Bootstrap 3. 222 Now supporting the changes to Responsive Utilities introduced in Bootstrap 3.2!21 ####Updated for Bootstrap 3.3.x 22 Tested and working in the latest version of Bootstrap! 23 23 24 24 If you like this plugin, check out our companion plugin for Font Awesome, [Font Awesome Shortcodes](http://www.wordpress.org/plugins/font-awesome-shortcodes/) … … 71 71 72 72 == Changelog == 73 74 = 3.3 = 75 * Tested to work with Bootstrap 3.3! 76 * Only enqueue tooltip and popover trigger javascript if those shortcodes are in use 77 * Added support for offsets, pulls, and pushes of "0" in [column] 78 * Added support for Bootstrap's responsive tables in [table-wrap] 79 * Better correct for conflicts with Gravity Forms --these two plugins should finally play well together 80 * Fix documentation for [modal] and [responsive] 81 * Removed use of extract() to better fit with WordPress's best practices. 73 82 74 83 = 3.2.4 =
Note: See TracChangeset
for help on using the changeset viewer.