├── .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 | 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 |
368 | 369 |
370 |