├── .editorconfig ├── assets ├── banner-1544x500.png ├── banner-772x250.png ├── icon.svg ├── screenshot-1.png ├── screenshot-2.png ├── screenshot-3.png ├── screenshot-4.png ├── screenshot-5.png ├── screenshot-6.png └── screenshot-7.png ├── bootstrap-shortcodes.php ├── css ├── admin.css ├── bootstrap.css └── shortcodes.css ├── fonts ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2 ├── images ├── alert.png ├── collapse.png ├── dwicons.png ├── facebook.png ├── glyphicons-halflings.png ├── grid.png ├── icons.png ├── labels.png ├── tabs.png ├── twitter.png └── well.png ├── inc ├── bs_alert.php ├── bs_buttons.php ├── bs_collapse.php ├── bs_grid.php ├── bs_icons.php ├── bs_labels.php ├── bs_lead.php ├── bs_tabs.php ├── bs_tooltip.php └── bs_well.php ├── js ├── bootstrap.js ├── init.js ├── jquery.js └── plugins │ ├── alerts.html │ ├── alerts.js │ ├── buttons.html │ ├── buttons.js │ ├── collapse.js │ ├── grid.html │ ├── grid.js │ ├── icons.html │ ├── icons.js │ ├── labels.html │ ├── labels.js │ ├── lead.js │ ├── tabs.html │ ├── tabs.js │ ├── tooltip.html │ ├── tooltip.js │ └── wells.js └── readme.txt /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Unix-style newlines with a newline ending every file 7 | [*] 8 | end_of_line = lf 9 | insert_final_newline = true 10 | 11 | # 4 space indentation 12 | [*] 13 | indent_style = space 14 | indent_size = 4 15 | -------------------------------------------------------------------------------- /assets/banner-1544x500.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/banner-1544x500.png -------------------------------------------------------------------------------- /assets/banner-772x250.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/banner-772x250.png -------------------------------------------------------------------------------- /assets/icon.svg: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 17 | 18 | 19 | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 39 | 40 | 41 | 42 | 43 | 47 | 48 | 49 | 50 | 51 | 52 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /assets/screenshot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-1.png -------------------------------------------------------------------------------- /assets/screenshot-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-2.png -------------------------------------------------------------------------------- /assets/screenshot-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-3.png -------------------------------------------------------------------------------- /assets/screenshot-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-4.png -------------------------------------------------------------------------------- /assets/screenshot-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-5.png -------------------------------------------------------------------------------- /assets/screenshot-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-6.png -------------------------------------------------------------------------------- /assets/screenshot-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/assets/screenshot-7.png -------------------------------------------------------------------------------- /bootstrap-shortcodes.php: -------------------------------------------------------------------------------- 1 | shortcodes as &$shortcode ) { 72 | if ( isset( $options[ 'chk_default_options_' . $shortcode ] ) ) { 73 | array_push( $buttons, 'bs_' . $shortcode ); 74 | } 75 | } 76 | return $buttons; 77 | } 78 | 79 | function regplugins( $plgs) { 80 | foreach ( $this->shortcodes as &$shortcode ) { 81 | $plgs[ 'bs_' . $shortcode ] = plugins_url( 'js/plugins/' . $shortcode . '.js', __FILE__ ); 82 | } 83 | return $plgs; 84 | } 85 | 86 | function register_settings_page() { 87 | add_options_page( __( 'BS Shortcodes', 'bsshortcodes' ), __( 'BS Shortcodes', 'bsshortcodes' ), 'manage_options', __FILE__, array( &$this, 'dw_render_form') ); 88 | } 89 | 90 | function add_options_defaults() { 91 | $arr = array( 92 | 'chk_default_options_css' => '1', 93 | 'chk_default_options_js' => '1', 94 | 'chk_default_options_grid' => '1', 95 | 'chk_default_options_tabs' => '1', 96 | 'chk_default_options_collapse' => '1', 97 | 'chk_default_options_alerts' => '1', 98 | 'chk_default_options_wells' => '1', 99 | 'chk_default_options_buttons' => '1', 100 | 'chk_default_options_labels' => '1', 101 | 'chk_default_options_icons' => '1', 102 | 'chk_default_options_lead' => '1', 103 | 'chk_default_options_tooltip' => '1' 104 | ); 105 | update_option( 'bs_options', $arr ); 106 | } 107 | 108 | function register_settings() { 109 | register_setting( 'bs_plugin_options', 'bs_options' ); 110 | } 111 | 112 | function dw_render_form() { 113 | ?> 114 |
115 |

116 |

Bootstrap Shortcodes Options

117 |
118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 129 | 130 | 131 | 132 | 135 | 136 | 137 | 138 | 154 | 155 |
Twitter Bootstrap CSS 127 |
Uncheck this if you already include Bootstrap css on your template 128 |
Twitter Bootstrap JS 133 |
Uncheck this if you already include Bootstrap javascript on your template 134 |
Twitter Bootstrap Shortcodes 139 | 140 | shortcodes as &$shortcode ): ?> 141 | 149 |
150 | 151 | 152 | Uncheck to remove button from TinyMCE editor 153 |
156 |

157 | 158 |

159 |
160 | 161 |
.active > a > [class^="icon-"], 62 | #bs-wrapper .nav-tabs > .active > a > [class*=" icon-"] { 63 | background-image: url("../images/glyphicons-halflings.png"); 64 | } 65 | 66 | #bs-wrapper .nav-tabs .add-new { 67 | float: right; 68 | } 69 | 70 | #bs-wrapper .nav-tabs li a { 71 | outline: none; 72 | } 73 | 74 | #bs-wrapper .nav-tabs .delete-tab { 75 | margin: 0 0 0 5px; 76 | display: none; 77 | height: 16px; 78 | line-height: 12px; 79 | text-align: center; 80 | width: 16px; 81 | } 82 | 83 | #bs-wrapper .nav-tabs .active .delete-tab { 84 | display: inline-block; 85 | } 86 | 87 | #bs-wrapper .nav-tabs .active .delete-tab:hover { 88 | background: #bbb; 89 | border-radius: 20px; 90 | color: #fff; 91 | } 92 | 93 | #bs-wrapper .tab-content textarea { 94 | -webkit-box-sizing: border-box; 95 | -moz-box-sizing: border-box; 96 | -ms-box-sizing: border-box; 97 | box-sizing: border-box; 98 | width: 100% !important; 99 | height: 120px; 100 | min-height: 120px; 101 | } 102 | 103 | #bs-wrapper .tab-content input[type=text], 104 | #bs-wrapper .tab-content select, 105 | #bs-wrapper #bs-grid input[type=number] { 106 | -webkit-box-sizing: border-box; 107 | -moz-box-sizing: border-box; 108 | -ms-box-sizing: border-box; 109 | box-sizing: border-box; 110 | width: 50%; 111 | height: 30px; 112 | } 113 | 114 | #bs-wrapper #bs-grid form { 115 | margin: 0; 116 | } 117 | 118 | .show-grid.row { 119 | background-color: #F5F5F5; 120 | -webkit-box-sizing: border-box; 121 | -moz-box-sizing: border-box; 122 | box-sizing: border-box; 123 | -webkit-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); 124 | -moz-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); 125 | box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); 126 | border: 1px solid #DDD; 127 | border-radius: 4px 4px 4px 4px; 128 | margin: 15px 0; 129 | position: relative; 130 | padding: 44px 14px 14px; 131 | } 132 | 133 | .show-grid.row:before { 134 | background-color: #F5F5F5; 135 | border: 1px solid #DDD; 136 | border-radius: 4px 0 4px 0; 137 | color: #9DA0A4; 138 | content: "Row"; 139 | font-size: 12px; 140 | font-weight: bold; 141 | left: -1px; 142 | line-height: 2; 143 | padding: 3px 7px; 144 | position: absolute; 145 | top: -1px; 146 | } 147 | 148 | .show-grid { 149 | margin-bottom: 20px; 150 | margin-top: 10px; 151 | } 152 | 153 | .show-grid *{ 154 | cursor: pointer; 155 | } 156 | 157 | .show-grid h5 { 158 | font-size: 92%; 159 | font-weight: normal; 160 | color: #999; 161 | } 162 | 163 | .show-grid [class*="col-"] { 164 | background-color: #fff; 165 | border: 1px solid #eee; 166 | border-radius: 3px 3px 3px 3px; 167 | padding: 10px 10px 0; 168 | text-align: center; 169 | } 170 | 171 | .show-grid [class*="col-"]:hover { 172 | background: none repeat scroll 0 0 #DDDDDD; 173 | border-color: #ddd; 174 | } 175 | 176 | .show-grid .show-grid { 177 | margin-bottom: 0; 178 | margin-top: 0; 179 | } 180 | 181 | .show-grid .show-grid [class*="col-"] { 182 | background-color: #CCCCCC; 183 | } 184 | 185 | .show-grid [class*="col-"].active { 186 | background: #563D7C; 187 | color: #fff; 188 | border: 1px solid #fff; 189 | } 190 | -------------------------------------------------------------------------------- /css/shortcodes.css: -------------------------------------------------------------------------------- 1 | body.page-template-shortcodes-php #content { 2 | max-width: inherit; 3 | } 4 | .row-fluid > br{ 5 | display: none!important; 6 | } 7 | .page-header { 8 | border-bottom: 1px solid #eee; 9 | margin: 20px 0 30px; 10 | padding-bottom: 9px; 11 | } 12 | 13 | .show-grid { 14 | margin-bottom: 20px; 15 | margin-top: 10px; 16 | } 17 | 18 | .show-grid [class*="span"] { 19 | background-color: #eee; 20 | border-radius: 3px; 21 | line-height: 40px; 22 | min-height: 40px; 23 | text-align: center; 24 | } 25 | 26 | .alert .close { 27 | box-shadow: none; 28 | } 29 | 30 | .nav-tabs > li { 31 | margin: 0 0 -1px !important; 32 | list-style: none; 33 | } 34 | 35 | .nav-tabs > li li { 36 | margin: 0 !important; 37 | list-style: none !important; 38 | } 39 | 40 | /* Icons ---*/ 41 | .the-icons { 42 | list-style: none !important; 43 | margin-left: 0 !important; 44 | } 45 | 46 | .the-icons li { 47 | float: left; 48 | line-height: 25px; 49 | width: 25%; 50 | margin-left: 0 !important; 51 | } 52 | 53 | [class^="icon-"], 54 | [class*=" icon-"] { 55 | display: inline-block; 56 | width: 14px; 57 | height: 14px; 58 | margin-top: 1px; 59 | *margin-right: .3em; 60 | line-height: 14px; 61 | vertical-align: text-top; 62 | background-image: url("../images/glyphicons-halflings.png"); 63 | background-position: 14px 14px; 64 | background-repeat: no-repeat; 65 | } 66 | 67 | .icon-white { 68 | background-image: url("../images/glyphicons-halflings-white.png"); 69 | } 70 | 71 | .icon-glass { 72 | background-position: 0 0; 73 | } 74 | 75 | .icon-music { 76 | background-position: -24px 0; 77 | } 78 | 79 | .icon-search { 80 | background-position: -48px 0; 81 | } 82 | 83 | .icon-envelope { 84 | background-position: -72px 0; 85 | } 86 | 87 | .icon-heart { 88 | background-position: -96px 0; 89 | } 90 | 91 | .icon-star { 92 | background-position: -120px 0; 93 | } 94 | 95 | .icon-star-empty { 96 | background-position: -144px 0; 97 | } 98 | 99 | .icon-user { 100 | background-position: -168px 0; 101 | } 102 | 103 | .icon-film { 104 | background-position: -192px 0; 105 | } 106 | 107 | .icon-th-large { 108 | background-position: -216px 0; 109 | } 110 | 111 | .icon-th { 112 | background-position: -240px 0; 113 | } 114 | 115 | .icon-th-list { 116 | background-position: -264px 0; 117 | } 118 | 119 | .icon-ok { 120 | background-position: -288px 0; 121 | } 122 | 123 | .icon-remove { 124 | background-position: -312px 0; 125 | } 126 | 127 | .icon-zoom-in { 128 | background-position: -336px 0; 129 | } 130 | 131 | .icon-zoom-out { 132 | background-position: -360px 0; 133 | } 134 | 135 | .icon-off { 136 | background-position: -384px 0; 137 | } 138 | 139 | .icon-signal { 140 | background-position: -408px 0; 141 | } 142 | 143 | .icon-cog { 144 | background-position: -432px 0; 145 | } 146 | 147 | .icon-trash { 148 | background-position: -456px 0; 149 | } 150 | 151 | .icon-home { 152 | background-position: 0 -24px; 153 | } 154 | 155 | .icon-file { 156 | background-position: -24px -24px; 157 | } 158 | 159 | .icon-time { 160 | background-position: -48px -24px; 161 | } 162 | 163 | .icon-road { 164 | background-position: -72px -24px; 165 | } 166 | 167 | .icon-download-alt { 168 | background-position: -96px -24px; 169 | } 170 | 171 | .icon-download { 172 | background-position: -120px -24px; 173 | } 174 | 175 | .icon-upload { 176 | background-position: -144px -24px; 177 | } 178 | 179 | .icon-inbox { 180 | background-position: -168px -24px; 181 | } 182 | 183 | .icon-play-circle { 184 | background-position: -192px -24px; 185 | } 186 | 187 | .icon-repeat { 188 | background-position: -216px -24px; 189 | } 190 | 191 | .icon-refresh { 192 | background-position: -240px -24px; 193 | } 194 | 195 | .icon-list-alt { 196 | background-position: -264px -24px; 197 | } 198 | 199 | .icon-lock { 200 | background-position: -287px -24px; 201 | } 202 | 203 | .icon-flag { 204 | background-position: -312px -24px; 205 | } 206 | 207 | .icon-headphones { 208 | background-position: -336px -24px; 209 | } 210 | 211 | .icon-volume-off { 212 | background-position: -360px -24px; 213 | } 214 | 215 | .icon-volume-down { 216 | background-position: -384px -24px; 217 | } 218 | 219 | .icon-volume-up { 220 | background-position: -408px -24px; 221 | } 222 | 223 | .icon-qrcode { 224 | background-position: -432px -24px; 225 | } 226 | 227 | .icon-barcode { 228 | background-position: -456px -24px; 229 | } 230 | 231 | .icon-tag { 232 | background-position: 0 -48px; 233 | } 234 | 235 | .icon-tags { 236 | background-position: -25px -48px; 237 | } 238 | 239 | .icon-book { 240 | background-position: -48px -48px; 241 | } 242 | 243 | .icon-bookmark { 244 | background-position: -72px -48px; 245 | } 246 | 247 | .icon-print { 248 | background-position: -96px -48px; 249 | } 250 | 251 | .icon-camera { 252 | background-position: -120px -48px; 253 | } 254 | 255 | .icon-font { 256 | background-position: -144px -48px; 257 | } 258 | 259 | .icon-bold { 260 | background-position: -167px -48px; 261 | } 262 | 263 | .icon-italic { 264 | background-position: -192px -48px; 265 | } 266 | 267 | .icon-text-height { 268 | background-position: -216px -48px; 269 | } 270 | 271 | .icon-text-width { 272 | background-position: -240px -48px; 273 | } 274 | 275 | .icon-align-left { 276 | background-position: -264px -48px; 277 | } 278 | 279 | .icon-align-center { 280 | background-position: -288px -48px; 281 | } 282 | 283 | .icon-align-right { 284 | background-position: -312px -48px; 285 | } 286 | 287 | .icon-align-justify { 288 | background-position: -336px -48px; 289 | } 290 | 291 | .icon-list { 292 | background-position: -360px -48px; 293 | } 294 | 295 | .icon-indent-left { 296 | background-position: -384px -48px; 297 | } 298 | 299 | .icon-indent-right { 300 | background-position: -408px -48px; 301 | } 302 | 303 | .icon-facetime-video { 304 | background-position: -432px -48px; 305 | } 306 | 307 | .icon-picture { 308 | background-position: -456px -48px; 309 | } 310 | 311 | .icon-pencil { 312 | background-position: 0 -72px; 313 | } 314 | 315 | .icon-map-marker { 316 | background-position: -24px -72px; 317 | } 318 | 319 | .icon-adjust { 320 | background-position: -48px -72px; 321 | } 322 | 323 | .icon-tint { 324 | background-position: -72px -72px; 325 | } 326 | 327 | .icon-edit { 328 | background-position: -96px -72px; 329 | } 330 | 331 | .icon-share { 332 | background-position: -120px -72px; 333 | } 334 | 335 | .icon-check { 336 | background-position: -144px -72px; 337 | } 338 | 339 | .icon-move { 340 | background-position: -168px -72px; 341 | } 342 | 343 | .icon-step-backward { 344 | background-position: -192px -72px; 345 | } 346 | 347 | .icon-fast-backward { 348 | background-position: -216px -72px; 349 | } 350 | 351 | .icon-backward { 352 | background-position: -240px -72px; 353 | } 354 | 355 | .icon-play { 356 | background-position: -264px -72px; 357 | } 358 | 359 | .icon-pause { 360 | background-position: -288px -72px; 361 | } 362 | 363 | .icon-stop { 364 | background-position: -312px -72px; 365 | } 366 | 367 | .icon-forward { 368 | background-position: -336px -72px; 369 | } 370 | 371 | .icon-fast-forward { 372 | background-position: -360px -72px; 373 | } 374 | 375 | .icon-step-forward { 376 | background-position: -384px -72px; 377 | } 378 | 379 | .icon-eject { 380 | background-position: -408px -72px; 381 | } 382 | 383 | .icon-chevron-left { 384 | background-position: -432px -72px; 385 | } 386 | 387 | .icon-chevron-right { 388 | background-position: -456px -72px; 389 | } 390 | 391 | .icon-plus-sign { 392 | background-position: 0 -96px; 393 | } 394 | 395 | .icon-minus-sign { 396 | background-position: -24px -96px; 397 | } 398 | 399 | .icon-remove-sign { 400 | background-position: -48px -96px; 401 | } 402 | 403 | .icon-ok-sign { 404 | background-position: -72px -96px; 405 | } 406 | 407 | .icon-question-sign { 408 | background-position: -96px -96px; 409 | } 410 | 411 | .icon-info-sign { 412 | background-position: -120px -96px; 413 | } 414 | 415 | .icon-screenshot { 416 | background-position: -144px -96px; 417 | } 418 | 419 | .icon-remove-circle { 420 | background-position: -168px -96px; 421 | } 422 | 423 | .icon-ok-circle { 424 | background-position: -192px -96px; 425 | } 426 | 427 | .icon-ban-circle { 428 | background-position: -216px -96px; 429 | } 430 | 431 | .icon-arrow-left { 432 | background-position: -240px -96px; 433 | } 434 | 435 | .icon-arrow-right { 436 | background-position: -264px -96px; 437 | } 438 | 439 | .icon-arrow-up { 440 | background-position: -289px -96px; 441 | } 442 | 443 | .icon-arrow-down { 444 | background-position: -312px -96px; 445 | } 446 | 447 | .icon-share-alt { 448 | background-position: -336px -96px; 449 | } 450 | 451 | .icon-resize-full { 452 | background-position: -360px -96px; 453 | } 454 | 455 | .icon-resize-small { 456 | background-position: -384px -96px; 457 | } 458 | 459 | .icon-plus { 460 | background-position: -408px -96px; 461 | } 462 | 463 | .icon-minus { 464 | background-position: -433px -96px; 465 | } 466 | 467 | .icon-asterisk { 468 | background-position: -456px -96px; 469 | } 470 | 471 | .icon-exclamation-sign { 472 | background-position: 0 -120px; 473 | } 474 | 475 | .icon-gift { 476 | background-position: -24px -120px; 477 | } 478 | 479 | .icon-leaf { 480 | background-position: -48px -120px; 481 | } 482 | 483 | .icon-fire { 484 | background-position: -72px -120px; 485 | } 486 | 487 | .icon-eye-open { 488 | background-position: -96px -120px; 489 | } 490 | 491 | .icon-eye-close { 492 | background-position: -120px -120px; 493 | } 494 | 495 | .icon-warning-sign { 496 | background-position: -144px -120px; 497 | } 498 | 499 | .icon-plane { 500 | background-position: -168px -120px; 501 | } 502 | 503 | .icon-calendar { 504 | background-position: -192px -120px; 505 | } 506 | 507 | .icon-random { 508 | width: 16px; 509 | background-position: -216px -120px; 510 | } 511 | 512 | .icon-comment { 513 | background-position: -240px -120px; 514 | } 515 | 516 | .icon-magnet { 517 | background-position: -264px -120px; 518 | } 519 | 520 | .icon-chevron-up { 521 | background-position: -288px -120px; 522 | } 523 | 524 | .icon-chevron-down { 525 | background-position: -313px -119px; 526 | } 527 | 528 | .icon-retweet { 529 | background-position: -336px -120px; 530 | } 531 | 532 | .icon-shopping-cart { 533 | background-position: -360px -120px; 534 | } 535 | 536 | .icon-folder-close { 537 | background-position: -384px -120px; 538 | } 539 | 540 | .icon-folder-open { 541 | width: 16px; 542 | background-position: -408px -120px; 543 | } 544 | 545 | .icon-resize-vertical { 546 | background-position: -432px -119px; 547 | } 548 | 549 | .icon-resize-horizontal { 550 | background-position: -456px -118px; 551 | } 552 | 553 | .icon-hdd { 554 | background-position: 0 -144px; 555 | } 556 | 557 | .icon-bullhorn { 558 | background-position: -24px -144px; 559 | } 560 | 561 | .icon-bell { 562 | background-position: -48px -144px; 563 | } 564 | 565 | .icon-certificate { 566 | background-position: -72px -144px; 567 | } 568 | 569 | .icon-thumbs-up { 570 | background-position: -96px -144px; 571 | } 572 | 573 | .icon-thumbs-down { 574 | background-position: -120px -144px; 575 | } 576 | 577 | .icon-hand-right { 578 | background-position: -144px -144px; 579 | } 580 | 581 | .icon-hand-left { 582 | background-position: -168px -144px; 583 | } 584 | 585 | .icon-hand-up { 586 | background-position: -192px -144px; 587 | } 588 | 589 | .icon-hand-down { 590 | background-position: -216px -144px; 591 | } 592 | 593 | .icon-circle-arrow-right { 594 | background-position: -240px -144px; 595 | } 596 | 597 | .icon-circle-arrow-left { 598 | background-position: -264px -144px; 599 | } 600 | 601 | .icon-circle-arrow-up { 602 | background-position: -288px -144px; 603 | } 604 | 605 | .icon-circle-arrow-down { 606 | background-position: -312px -144px; 607 | } 608 | 609 | .icon-globe { 610 | background-position: -336px -144px; 611 | } 612 | 613 | .icon-wrench { 614 | background-position: -360px -144px; 615 | } 616 | 617 | .icon-tasks { 618 | background-position: -384px -144px; 619 | } 620 | 621 | .icon-filter { 622 | background-position: -408px -144px; 623 | } 624 | 625 | .icon-briefcase { 626 | background-position: -432px -144px; 627 | } 628 | 629 | .icon-fullscreen { 630 | background-position: -456px -144px; 631 | } 632 | 633 | /** 634 | * HTML Iframe style 635 | */ 636 | body.icon_selector{ 637 | padding: 0; 638 | margin:0; 639 | } 640 | body.icon_selector li{ 641 | padding:5px 3px; 642 | cursor:pointer; 643 | width: 24%; 644 | overflow: hidden; 645 | white-space: nowrap; 646 | text-overflow: ellipsis; 647 | } 648 | body.icon_selector li:hover{ 649 | border-radius: 3px; 650 | background: #ddd; 651 | 652 | } 653 | .tabcreator #frm_create{ 654 | line-height: 30px; 655 | } 656 | .tabcreator #txt_content{ 657 | width:100%; 658 | } 659 | .tabcreator .tabcreator .nav{ 660 | margin-bottom: 0; 661 | } 662 | .tabcreator #newtab{ 663 | width: 100%; 664 | } 665 | .tabcreator #deletetab{ 666 | display: none; 667 | } 668 | .tabcreator #fields{ 669 | display: none; 670 | } 671 | .tabcreator #myTabContent{ 672 | min-height: 20px; 673 | border: 1px solid #ddd; 674 | border-top: none; 675 | margin-bottom: 10px; 676 | padding:10px; 677 | } 678 | .tabcreator .alert, 679 | .tabcreator #savetab{ 680 | display: none; 681 | } 682 | .tabcreator #frm_create{ 683 | margin-bottom: 10px; 684 | } 685 | 686 | -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /images/alert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/alert.png -------------------------------------------------------------------------------- /images/collapse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/collapse.png -------------------------------------------------------------------------------- /images/dwicons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/dwicons.png -------------------------------------------------------------------------------- /images/facebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/facebook.png -------------------------------------------------------------------------------- /images/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/glyphicons-halflings.png -------------------------------------------------------------------------------- /images/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/grid.png -------------------------------------------------------------------------------- /images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/icons.png -------------------------------------------------------------------------------- /images/labels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/labels.png -------------------------------------------------------------------------------- /images/tabs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/tabs.png -------------------------------------------------------------------------------- /images/twitter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/twitter.png -------------------------------------------------------------------------------- /images/well.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheWebShop/bootstrap-shortcodes/a27bf8fd19fe6792fb00e432ef7044ef7c2a519b/images/well.png -------------------------------------------------------------------------------- /inc/bs_alert.php: -------------------------------------------------------------------------------- 1 | 'unknown', 5 | 'dismissible' => 'true' 6 | ), $params ) ); 7 | $content = preg_replace( '/
/', '', $content ); 8 | $result = '
'; 9 | $result .= $dismissible=='true'? '' : ''; 10 | $result .= do_shortcode( $content ); 11 | $result .= '
'; 12 | return force_balance_tags( $result ); 13 | } 14 | add_shortcode( 'bs_notification', 'bs_notice' ); 15 | -------------------------------------------------------------------------------- /inc/bs_buttons.php: -------------------------------------------------------------------------------- 1 | 'default', 5 | 'type' => 'default', 6 | 'value' => 'button', 7 | 'href' => "#" 8 | ), $params ) ); 9 | 10 | $content = preg_replace( '/
/', '', $content ); 11 | $result = '' . $value . ''; 12 | return force_balance_tags( $result ); 13 | } 14 | add_shortcode( 'bs_button', 'bs_buttons' ); 15 | -------------------------------------------------------------------------------- /inc/bs_collapse.php: -------------------------------------------------------------------------------- 1 | '' 6 | ), $params ) ); 7 | $content = preg_replace( '/
/', '', $content ); 8 | $result = '
'; 9 | $result .= do_shortcode( $content ); 10 | $result .= '
'; 11 | return force_balance_tags( $result ); 12 | } 13 | add_shortcode( 'bs_collapse', 'bs_collapse' ); 14 | 15 | 16 | function bs_citem( $params, $content=null ){ 17 | extract( shortcode_atts( array( 18 | 'id'=> '', 19 | 'title'=> 'Collapse title', 20 | 'parent' => '', 21 | 'open' => 'false', 22 | ), $params ) ); 23 | $content = preg_replace( '/
/', '', $content ); 24 | $result = '
'; 25 | $result .= ' '; 32 | $result .= '
'; 33 | $result .= '
'; 34 | $result .= do_shortcode( $content ); 35 | $result .= '
'; 36 | $result .= '
'; 37 | $result .= '
'; 38 | return force_balance_tags( $result ); 39 | } 40 | add_shortcode('bs_citem', 'bs_citem' ); 41 | -------------------------------------------------------------------------------- /inc/bs_grid.php: -------------------------------------------------------------------------------- 1 | 'row' 6 | ), $params ) ); 7 | $content = preg_replace( '/
/', '', $content ); 8 | $result = '
'; 9 | $result .= do_shortcode( $content ); 10 | $result .= '
'; 11 | return force_balance_tags( $result ); 12 | } 13 | add_shortcode('bs_row', 'bs_row'); 14 | 15 | function bs_span( $params, $content=null ) { 16 | extract( shortcode_atts( array( 17 | 'class' => 'col-sm-1' 18 | ), $params ) ); 19 | 20 | $result = '
'; 21 | $result .= do_shortcode( $content ); 22 | $result .= '
'; 23 | return force_balance_tags( $result ); 24 | } 25 | add_shortcode( 'bs_col', 'bs_span' ); -------------------------------------------------------------------------------- /inc/bs_icons.php: -------------------------------------------------------------------------------- 1 | 'default' 6 | ), $params)); 7 | 8 | $content = preg_replace( '/
/', '', $content ); 9 | $result = ''; 10 | return force_balance_tags( $result ); 11 | } 12 | add_shortcode( 'bs_icon', 'bs_icons' ); 13 | -------------------------------------------------------------------------------- /inc/bs_labels.php: -------------------------------------------------------------------------------- 1 | 'default' 5 | ), $params ) ); 6 | 7 | $content = preg_replace( '/
/', '', $content ); 8 | $result = '' . $content . ''; 9 | return force_balance_tags( $result ); 10 | } 11 | add_shortcode( 'bs_label', 'bs_labels' ); 12 | -------------------------------------------------------------------------------- /inc/bs_lead.php: -------------------------------------------------------------------------------- 1 | /', '', $content ); 5 | $result = '
'; 6 | $result .= do_shortcode( $content ); 7 | $result .= '
'; 8 | 9 | return force_balance_tags( $result ); 10 | } 11 | add_shortcode( 'bs_lead', 'bs_lead' ); 12 | -------------------------------------------------------------------------------- /inc/bs_tabs.php: -------------------------------------------------------------------------------- 1 | /', '', $content ); 19 | $result = '
'; 20 | $result .= do_shortcode( $content ); 21 | $result .= '
'; 22 | return force_balance_tags( $result ); 23 | } 24 | add_shortcode( 'bs_tabs', 'bs_tabs' ); 25 | 26 | function bs_thead( $params, $content=null) { 27 | $content = preg_replace( '/
/', '', $content ); 28 | $result = ''; 31 | return force_balance_tags( $result ); 32 | } 33 | add_shortcode( 'bs_thead', 'bs_thead' ); 34 | 35 | function bs_tab( $params, $content=null ) { 36 | extract( shortcode_atts( array( 37 | 'href' => '#', 38 | 'title' => '', 39 | 'class' => '' 40 | ), $params ) ); 41 | $content = preg_replace( '/
/', '', $content ); 42 | 43 | $result = '
  • '; 44 | $result .= '' . $title . ''; 45 | $result .= '
  • '; 46 | return force_balance_tags( $result ); 47 | } 48 | add_shortcode( 'bs_tab', 'bs_tab' ); 49 | 50 | function bs_dropdown( $params, $content=null ) { 51 | global $bs_timestamp; 52 | extract( shortcode_atts( array( 53 | 'title' => '', 54 | 'id' => '', 55 | 'class' => '', 56 | ), $params ) ); 57 | $content = preg_replace( '/
    /', '', $content ); 58 | $result = ''; 63 | return force_balance_tags( $result ); 64 | } 65 | add_shortcode( 'bs_dropdown', 'bs_dropdown' ); 66 | 67 | function bs_tcontents( $params, $content=null ) { 68 | $content = preg_replace( '/
    /', '', $content ); 69 | $result = '
    '; 70 | $result .= do_shortcode( $content ); 71 | $result .= '
    '; 72 | return force_balance_tags( $result ); 73 | } 74 | add_shortcode( 'bs_tcontents', 'bs_tcontents' ); 75 | 76 | function bs_tcontent( $params, $content=null ) { 77 | extract(shortcode_atts(array( 78 | 'id' => '', 79 | 'class'=>'', 80 | ), $params ) ); 81 | $content = preg_replace( '/
    /', '', $content ); 82 | $class = ($class=='active')? 'active in': ''; 83 | $result = '
    '; 84 | $result .= do_shortcode( $content ); 85 | $result .= '
    '; 86 | return force_balance_tags( $result ); 87 | } 88 | add_shortcode( 'bs_tcontent', 'bs_tcontent' ); 89 | -------------------------------------------------------------------------------- /inc/bs_tooltip.php: -------------------------------------------------------------------------------- 1 | 'top', 5 | 'trigger' => 'hover', 6 | 'href' => "#" 7 | ), $params ) ); 8 | 9 | $placement = (in_array( $placement, array( 'top', 'right', 'bottom', 'left' ) ))? $placement: 'top'; 10 | $content = preg_replace('/
    /', '', $content); 11 | $title = explode( '\n', wordwrap( $content, 20, '\n' ) ); 12 | $result = '' . esc_attr( $content ) . ''; 13 | return force_balance_tags( $result ); 14 | } 15 | add_shortcode( 'bs_tooltip', 'bs_tooltip' ); 16 | -------------------------------------------------------------------------------- /inc/bs_well.php: -------------------------------------------------------------------------------- 1 | 'unknown' 5 | ), $params)); 6 | 7 | $content = preg_replace( '/
    /', '', $content ); 8 | $result = '
    '; 9 | $result .= do_shortcode( $content ); 10 | $result .= '
    '; 11 | return force_balance_tags( $result ); 12 | } 13 | add_shortcode( 'bs_well', 'bs_well' ); -------------------------------------------------------------------------------- /js/bootstrap.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v3.3.5 (http://getbootstrap.com) 3 | * Copyright 2011-2015 Twitter, Inc. 4 | * Licensed under the MIT license 5 | */ 6 | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
    ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); -------------------------------------------------------------------------------- /js/init.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | $(document).ready(function() { 3 | $('[data-toggle="tooltip"]').tooltip() 4 | // Stop "click triggered" tootips from acting as bookmarks to top of page 5 | .filter('[data-trigger*="click"]') 6 | .on('click', function(e) { 7 | e.preventDefault(); 8 | }); 9 | }); 10 | }(jQuery)); 11 | -------------------------------------------------------------------------------- /js/plugins/alerts.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 54 | 55 | 56 | 57 |
    58 |
    59 |
    60 |

    Options

    61 |
    62 |
    63 | 69 |
    70 |
    71 |
    72 | 75 |
    76 |
    77 |
    78 | 79 |
    80 |
    81 |
    82 |
    83 |

    Preview

    84 |
    85 | 86 |
    87 |
    88 |
    89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /js/plugins/alerts.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_alerts', function(editor, url) { 2 | editor.addButton('bs_alerts', { 3 | tooltip: 'Alerts', 4 | icon: 'bs-alerts', 5 | onclick: function() { 6 | tinymce.activeEditor.windowManager.open({ 7 | title: 'Add an alert', 8 | url: url + '/alerts.html', 9 | width: 480, 10 | height: 180 11 | }); 12 | } 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /js/plugins/buttons.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 23 | 24 | 25 |
    26 |
    27 |
    28 | 29 | 36 | 37 | 46 | 47 | 48 | 49 | 50 |
    51 | 52 |
    53 |
    54 | 55 | 56 | -------------------------------------------------------------------------------- /js/plugins/buttons.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_buttons', function(editor, url) { 2 | editor.addButton('bs_buttons', { 3 | tooltip: 'Buttons', 4 | icon: 'bs-buttons', 5 | onclick: function() { 6 | tinymce.activeEditor.windowManager.open({ 7 | title: 'Buttons', 8 | url: url + '/buttons.html', 9 | width: 480, 10 | height: 320 11 | }); 12 | } 13 | }); 14 | }); -------------------------------------------------------------------------------- /js/plugins/collapse.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | tinymce.PluginManager.add('bs_collapse', function(editor, url) { 3 | editor.addButton('bs_collapse', { 4 | tooltip: 'Collapse', 5 | icon: 'bs-collapse', 6 | onclick: function() { 7 | // Open window 8 | editor.windowManager.open({ 9 | title: 'Collapse', 10 | body: [{ 11 | type: 'textbox', 12 | name: 'itemnum', 13 | value: '3', 14 | label: 'Number of items' 15 | },{ 16 | type: 'checkbox', 17 | name: 'isopen', 18 | checked: false, 19 | label: 'Start open?' 20 | }], 21 | onsubmit: function(e) { 22 | // Insert content when the window form is submitted 23 | var uID = guid(); 24 | var shortcode = '[bs_collapse id="collapse_' + uID + '"]
    '; 25 | var num = e.data.itemnum; 26 | for (i = 0; i < num; i++) { 27 | var id = guid(); 28 | var title = 'Collapsible Group Item ' + (i + 1); 29 | shortcode += '[bs_citem'; 30 | shortcode += ' title="' + title + '"'; 31 | shortcode += ' id="citem_' + id + '"'; 32 | shortcode += ' parent="collapse_' + uID + '"'; 33 | shortcode += (e.data.isopen? ' open="true"': ''); 34 | shortcode += ']
    '; 35 | shortcode += 'Collapse content goes here....
    '; 36 | shortcode += '[/bs_citem]
    '; 37 | } 38 | 39 | shortcode += '[/bs_collapse]'; 40 | editor.insertContent(shortcode); 41 | } 42 | }); 43 | } 44 | }); 45 | }); 46 | 47 | function guid() { 48 | function s4() { 49 | return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); 50 | } 51 | return s4() + '-' + s4(); 52 | } 53 | })(); 54 | -------------------------------------------------------------------------------- /js/plugins/grid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 113 | 114 | 115 | 116 |
    117 |
    118 |
    119 |
    120 | 121 |
    122 | 131 |
    132 |
    133 |
    134 | 166 | 167 |

    Preview

    168 |
    169 | 170 |
    171 | 172 |
    173 |
    174 |
    175 | 176 | 177 | -------------------------------------------------------------------------------- /js/plugins/grid.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_grid', function(editor, url) { 2 | editor.addButton('bs_grid', { 3 | type: 'menubutton', 4 | tooltip: 'Grid', 5 | icon: 'bs-grid', 6 | menu: [ 7 | { text: '12 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [bs_col class="col-sm-1"]Text[/bs_col]
    [/bs_row]'); } }, 8 | { text: '6 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [bs_col class="col-sm-2"]Text[/bs_col]
    [/bs_row]'); } }, 9 | { text: '4 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-3"]Text[/bs_col]
    [bs_col class="col-sm-3"]Text[/bs_col]
    [bs_col class="col-sm-3"]Text[/bs_col]
    [bs_col class="col-sm-3"]Text[/bs_col]
    [/bs_row]'); } }, 10 | { text: '3 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-4"]Text[/bs_col]
    [bs_col class="col-sm-4"]Text[/bs_col]
    [bs_col class="col-sm-4"]Text[/bs_col]
    [/bs_row]'); } }, 11 | { text: '2 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-6"]Text[/bs_col]
    [bs_col class="col-sm-6"]Text[/bs_col]
    [/bs_row]'); } }, 12 | { text: '1 Columns', onclick: function() { editor.insertContent('[bs_row class="row"]
    [bs_col class="col-sm-12"]Text[/bs_col]
    [/bs_row]'); } }, 13 | { 14 | text: 'Custom Grid', 15 | onclick: function() { 16 | tinymce.activeEditor.windowManager.open({ 17 | title: 'Custom Grid', 18 | url: url + '/grid.html', 19 | width: 580, 20 | height: 420 21 | }); 22 | } 23 | } 24 | ] 25 | }); 26 | }); 27 | -------------------------------------------------------------------------------- /js/plugins/icons.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 19 | 42 | 43 | 44 | 45 |
    46 |
      47 |
    • asterisk
    • 48 |
    • plus
    • 49 |
    • euro
    • 50 |
    • eur
    • 51 |
    • minus
    • 52 |
    • cloud
    • 53 |
    • envelope
    • 54 |
    • pencil
    • 55 |
    • glass
    • 56 |
    • music
    • 57 |
    • search
    • 58 |
    • heart
    • 59 |
    • star
    • 60 |
    • star-empty
    • 61 |
    • user
    • 62 |
    • film
    • 63 |
    • th-large
    • 64 |
    • th
    • 65 |
    • th-list
    • 66 |
    • ok
    • 67 |
    • remove
    • 68 |
    • zoom-in
    • 69 |
    • zoom-out
    • 70 |
    • off
    • 71 |
    • signal
    • 72 |
    • cog
    • 73 |
    • trash
    • 74 |
    • home
    • 75 |
    • file
    • 76 |
    • time
    • 77 |
    • road
    • 78 |
    • download-alt
    • 79 |
    • download
    • 80 |
    • upload
    • 81 |
    • inbox
    • 82 |
    • play-circle
    • 83 |
    • repeat
    • 84 |
    • refresh
    • 85 |
    • list-alt
    • 86 |
    • lock
    • 87 |
    • flag
    • 88 |
    • headphones
    • 89 |
    • volume-off
    • 90 |
    • volume-down
    • 91 |
    • volume-up
    • 92 |
    • qrcode
    • 93 |
    • barcode
    • 94 |
    • tag
    • 95 |
    • tags
    • 96 |
    • book
    • 97 |
    • bookmark
    • 98 |
    • print
    • 99 |
    • camera
    • 100 |
    • font
    • 101 |
    • bold
    • 102 |
    • italic
    • 103 |
    • text-height
    • 104 |
    • text-width
    • 105 |
    • align-left
    • 106 |
    • align-center
    • 107 |
    • align-right
    • 108 |
    • align-justify
    • 109 |
    • list
    • 110 |
    • indent-left
    • 111 |
    • indent-right
    • 112 |
    • facetime-video
    • 113 |
    • picture
    • 114 |
    • map-marker
    • 115 |
    • adjust
    • 116 |
    • tint
    • 117 |
    • edit
    • 118 |
    • share
    • 119 |
    • check
    • 120 |
    • move
    • 121 |
    • step-backward
    • 122 |
    • fast-backward
    • 123 |
    • backward
    • 124 |
    • play
    • 125 |
    • pause
    • 126 |
    • stop
    • 127 |
    • forward
    • 128 |
    • fast-forward
    • 129 |
    • step-forward
    • 130 |
    • eject
    • 131 |
    • chevron-left
    • 132 |
    • chevron-right
    • 133 |
    • plus-sign
    • 134 |
    • minus-sign
    • 135 |
    • remove-sign
    • 136 |
    • ok-sign
    • 137 |
    • question-sign
    • 138 |
    • info-sign
    • 139 |
    • screenshot
    • 140 |
    • remove-circle
    • 141 |
    • ok-circle
    • 142 |
    • ban-circle
    • 143 |
    • arrow-left
    • 144 |
    • arrow-right
    • 145 |
    • arrow-up
    • 146 |
    • arrow-down
    • 147 |
    • share-alt
    • 148 |
    • resize-full
    • 149 |
    • resize-small
    • 150 |
    • exclamation-sign
    • 151 |
    • gift
    • 152 |
    • leaf
    • 153 |
    • fire
    • 154 |
    • eye-open
    • 155 |
    • eye-close
    • 156 |
    • warning-sign
    • 157 |
    • plane
    • 158 |
    • calendar
    • 159 |
    • random
    • 160 |
    • comment
    • 161 |
    • magnet
    • 162 |
    • chevron-up
    • 163 |
    • chevron-down
    • 164 |
    • retweet
    • 165 |
    • shopping-cart
    • 166 |
    • folder-close
    • 167 |
    • folder-open
    • 168 |
    • resize-vertical
    • 169 |
    • resize-horizontal
    • 170 |
    • hdd
    • 171 |
    • bullhorn
    • 172 |
    • bell
    • 173 |
    • certificate
    • 174 |
    • thumbs-up
    • 175 |
    • thumbs-down
    • 176 |
    • hand-right
    • 177 |
    • hand-left
    • 178 |
    • hand-up
    • 179 |
    • hand-down
    • 180 |
    • circle-arrow-right
    • 181 |
    • circle-arrow-left
    • 182 |
    • circle-arrow-up
    • 183 |
    • circle-arrow-down
    • 184 |
    • globe
    • 185 |
    • wrench
    • 186 |
    • tasks
    • 187 |
    • filter
    • 188 |
    • briefcase
    • 189 |
    • fullscreen
    • 190 |
    • dashboard
    • 191 |
    • paperclip
    • 192 |
    • heart-empty
    • 193 |
    • link
    • 194 |
    • phone
    • 195 |
    • pushpin
    • 196 |
    • usd
    • 197 |
    • gbp
    • 198 |
    • sort
    • 199 |
    • sort-by-alphabet
    • 200 |
    • sort-by-alphabet-alt
    • 201 |
    • sort-by-order
    • 202 |
    • sort-by-order-alt
    • 203 |
    • sort-by-attributes
    • 204 |
    • sort-by-attributes-alt
    • 205 |
    • unchecked
    • 206 |
    • expand
    • 207 |
    • collapse-down
    • 208 |
    • collapse-up
    • 209 |
    • log-in
    • 210 |
    • flash
    • 211 |
    • log-out
    • 212 |
    • new-window
    • 213 |
    • record
    • 214 |
    • save
    • 215 |
    • open
    • 216 |
    • saved
    • 217 |
    • import
    • 218 |
    • export
    • 219 |
    • send
    • 220 |
    • floppy-disk
    • 221 |
    • floppy-saved
    • 222 |
    • floppy-remove
    • 223 |
    • floppy-save
    • 224 |
    • floppy-open
    • 225 |
    • credit-card
    • 226 |
    • transfer
    • 227 |
    • cutlery
    • 228 |
    • header
    • 229 |
    • compressed
    • 230 |
    • earphone
    • 231 |
    • phone-alt
    • 232 |
    • tower
    • 233 |
    • stats
    • 234 |
    • sd-video
    • 235 |
    • hd-video
    • 236 |
    • subtitles
    • 237 |
    • sound-stereo
    • 238 |
    • sound-dolby
    • 239 |
    • sound-5-1
    • 240 |
    • sound-6-1
    • 241 |
    • sound-7-1
    • 242 |
    • copyright-mark
    • 243 |
    • registration-mark
    • 244 |
    • cloud-download
    • 245 |
    • cloud-upload
    • 246 |
    • tree-conifer
    • 247 |
    • tree-deciduous
    • 248 |
    • cd
    • 249 |
    • save-file
    • 250 |
    • open-file
    • 251 |
    • level-up
    • 252 |
    • copy
    • 253 |
    • paste
    • 254 |
    • alert
    • 255 |
    • equalizer
    • 256 |
    • king
    • 257 |
    • queen
    • 258 |
    • pawn
    • 259 |
    • bishop
    • 260 |
    • knight
    • 261 |
    • baby-formula
    • 262 |
    • tent
    • 263 |
    • blackboard
    • 264 |
    • bed
    • 265 |
    • apple
    • 266 |
    • erase
    • 267 |
    • hourglass
    • 268 |
    • lamp
    • 269 |
    • duplicate
    • 270 |
    • piggy-bank
    • 271 |
    • scissors
    • 272 |
    • bitcoin
    • 273 |
    • btc
    • 274 |
    • xbt
    • 275 |
    • yen
    • 276 |
    • jpy
    • 277 |
    • ruble
    • 278 |
    • rub
    • 279 |
    • scale
    • 280 |
    • ice-lolly
    • 281 |
    • ice-lolly-tasted
    • 282 |
    • education
    • 283 |
    • option-horizontal
    • 284 |
    • option-vertical
    • 285 |
    • menu-hamburger
    • 286 |
    • modal-window
    • 287 |
    • oil
    • 288 |
    • grain
    • 289 |
    • sunglasses
    • 290 |
    • text-size
    • 291 |
    • text-color
    • 292 |
    • text-background
    • 293 |
    • object-align-top
    • 294 |
    • object-align-bottom
    • 295 |
    • object-align-horizontal
    • 296 |
    • object-align-left
    • 297 |
    • object-align-vertical
    • 298 |
    • object-align-right
    • 299 |
    • triangle-right
    • 300 |
    • triangle-left
    • 301 |
    • triangle-bottom
    • 302 |
    • triangle-top
    • 303 |
    • console
    • 304 |
    • superscript
    • 305 |
    • subscript
    • 306 |
    • menu-left
    • 307 |
    • menu-right
    • 308 |
    • menu-down
    • 309 |
    • menu-up
    • 310 |
    311 |
    312 | 313 | 314 | 315 | -------------------------------------------------------------------------------- /js/plugins/icons.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_icons', function(editor, url) { 2 | editor.addButton('bs_icons', { 3 | tooltip : 'Icons', 4 | icon : 'bs-icons', 5 | onclick : function() { 6 | tinymce.activeEditor.windowManager.open({ 7 | title : 'Icons', 8 | url : url + '/icons.html', 9 | width : 480, 10 | height : 320 11 | }); 12 | } 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /js/plugins/labels.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 19 | 20 | 21 | 22 |
    23 |
    24 |
    25 | 26 | 35 | 36 | 37 |
    38 | 39 |
    40 |
    41 | 42 | 43 | -------------------------------------------------------------------------------- /js/plugins/labels.js: -------------------------------------------------------------------------------- 1 | 2 | tinymce.PluginManager.add('bs_labels', function(editor, url) { 3 | editor.addButton('bs_labels', { 4 | tooltip: 'Labels', 5 | icon: 'bs-labels', 6 | onclick: function() { 7 | tinymce.activeEditor.windowManager.open({ 8 | title: 'Labels', 9 | url: url + '/labels.html', 10 | width: 480, 11 | height: 320 12 | }); 13 | } 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /js/plugins/lead.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_lead', function(editor, url) { 2 | editor.addButton('bs_lead', { 3 | tooltip: 'Lead', 4 | icon: 'bs-lead', 5 | onclick: function() { 6 | editor.insertContent('[bs_lead]This is a lead text and needs your attention.[/bs_lead]'); 7 | } 8 | }); 9 | }); -------------------------------------------------------------------------------- /js/plugins/tabs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 298 | 299 | 300 | 301 |
    302 | 317 |
    318 |
    319 | 320 | 324 | 325 | 326 |
    327 | 328 |
    329 | 330 | 331 |
    332 |
    333 | 334 | 338 | 339 | 340 |
    341 |
    342 | 343 | 347 | 348 | 349 |
    350 |
    351 | 352 | 357 | 361 | 362 |
    363 | 364 |
    365 |
    366 |
    367 |

    368 | 369 |

    370 |
    371 | 372 | 373 | 374 | 375 | 376 | -------------------------------------------------------------------------------- /js/plugins/tabs.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_tabs', function(editor, url) { 2 | editor.addButton('bs_tabs', { 3 | tooltip: 'Tabs', 4 | icon: 'bs-tabs', 5 | onclick: function() { 6 | tinymce.activeEditor.windowManager.open({ 7 | title: 'Tabs', 8 | url: url + '/tabs.html', 9 | width: 480, 10 | height: 320 11 | }); 12 | } 13 | }); 14 | }); -------------------------------------------------------------------------------- /js/plugins/tooltip.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 24 | 25 | 26 | 27 |
    28 |
    29 |
    30 | 31 | 32 | 33 | 39 | 40 | 45 |
    46 | 47 |
    48 |
    49 | 50 | 51 | -------------------------------------------------------------------------------- /js/plugins/tooltip.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_tooltip', function(editor, url) { 2 | editor.addButton('bs_tooltip', { 3 | tooltip: 'Tooltip', 4 | icon: 'bs-tooltip', 5 | onclick: function() { 6 | tinymce.activeEditor.windowManager.open({ 7 | title: 'Tooltip', 8 | url: url + '/tooltip.html', 9 | width: 480, 10 | height: 320 11 | }); 12 | } 13 | }); 14 | }); -------------------------------------------------------------------------------- /js/plugins/wells.js: -------------------------------------------------------------------------------- 1 | tinymce.PluginManager.add('bs_wells', function(editor, url) { 2 | editor.addButton('bs_wells', { 3 | type: 'menubutton', 4 | tooltip: 'Well', 5 | icon: 'bs-wells', 6 | menu: [ 7 | { text: 'Small well', onclick: function() { editor.insertContent('[bs_well size="sm"]This well needs your attention.[/bs_well]'); } }, 8 | { text: 'Medium well', onclick: function() { editor.insertContent('[bs_well size="md"]This well needs your attention.[/bs_well]'); } }, 9 | { text: 'Large well', onclick: function() { editor.insertContent('[bs_well size="lg"]This well needs your attention.[/bs_well]'); } } 10 | ] 11 | }); 12 | }); -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | === Bootstrap Shortcodes === 2 | Contributors: sinetheta, beaurixon, no3x, Designwall Team 3 | Tags: shortcode, shortcodes, bootstrap, buttons, grid, well, responsive, widget 4 | Requires at least: 3.9 5 | Tested up to: 4.3 6 | Stable tag: 3.4.0 7 | License: GNU General Public License v2.0 8 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 | 10 | Wordpress plugin to add shortcodes for Twitter Bootstrap 3.3 11 | 12 | == Description == 13 | 14 | ## Latest Bootstrap 15 | 16 | Bootstrap Shortcodes allow quick and easy implementation of Twitter Bootstrap components through the TinyMCE rich-editor. 17 | 18 | ## Supported Shortcodes 19 | 20 | We add a row of buttons to the bottom of your post editor Visual mode, each of which gives options for inserting Bootstrap's most popular components. 21 | 22 | ### CSS 23 | 24 | * Alerts 25 | * Buttons 26 | * Grid (container, row, columns, fully responsive) 27 | * Icons 28 | * Labels 29 | * Lead Text 30 | * Wells 31 | 32 | ### JavaScript 33 | 34 | * Collapse 35 | * Tabs 36 | * Tooltip 37 | 38 | ## Support 39 | 40 | Please report issues directly to our [Github repository](https://github.com/TheWebShop/bootstrap-shortcodes/issues). 41 | 42 | == Installation == 43 | 44 | 1. Unzip files. 45 | 2. Upload the folder into your plugins directory. 46 | 3. Activate the plugin. 47 | 4. Add new shortcodes to posts or pages. 48 | 49 | == Changelog == 50 | 51 | = 3.4.0 = 52 | * Updated icons to 3.3.5 53 | * Added control panel popup for inserting alerts. 54 | * Added option to hide dismiss button in alerts. 55 | * Added option to display accordions as initially expanded. 56 | 57 | = 3.3.0 = 58 | * Updated Boostrap from 3.3.1 to 3.3.5 59 | * Add .btn-block as a button "size" 60 | * Change default column size from xs to sm 61 | 62 | = 3.2.1 = 63 | * Reverted wpautop injection changes to prevent conflicts with other plugins 64 | 65 | = 3.2.0 = 66 | * Fixed issues related to Wordpress 4.1 update 67 | * Prevented Wordpress wpautop injection from interfering with shortcodes 68 | 69 | = 3.1.0 = 70 | * Updated Boostrap from 3.1.1 to 3.3.1 71 | * Added Aria roles to accordion panels 72 | 73 | = 3.0.2 = 74 | * Minor bugfixes and preview updates 75 | 76 | = 3.0.0 = 77 | * Updated for Wordpress 3.9 and TinyMCE 4 78 | 79 | = 2.1.1 = 80 | * Fixed grid wizard 81 | 82 | = 2.1 = 83 | * Added support for labels 84 | 85 | = 2.0 = 86 | * Namespaced shortcodes to prevent conflicts with other plugins and themes 87 | 88 | = 1.5 = 89 | * Added support for tooltips 90 | 91 | = 1.4 = 92 | * Added support for tabs 93 | 94 | = 1.3 = 95 | * Added support for leads 96 | 97 | = 1.2 = 98 | * Added options to disable Shortcodes in TinyMCE editor 99 | 100 | = 1.1 = 101 | * Added support for wells 102 | 103 | = 1.0 = 104 | * Upgraded from Bootstrap 2 to 3 105 | 106 | == Frequently Asked Questions == 107 | 108 | = There is no Button in the Visual Editor = 109 | 110 | You must toggle the Advanced Editor Toolbar to unlock the Bootstrap Shortcodes icons. (see screenshot) 111 | 112 | == Screenshots == 113 | 114 | 1. The rendered Bootstrap components as they would appear with a default Bootstrap 3 theme. 115 | 2. Enable the Bootstrap Shortcodes icons by toggling the Advanced Editor Toolbar. 116 | 3. Custom buttons added to the TinyMCE visual editor for adding shortcodes to content. 117 | 4. The glyphicon selection tool for adding Bootstrap icons. 118 | 5. The grid maker tool to help create custom layouts. 119 | 6. The button maker tool to help setting up your buttons. 120 | 7. The available notifications. 121 | 122 | Join the chat at https://gitter.im/TheWebShop/bootstrap-shortcodes 123 | --------------------------------------------------------------------------------