Changeset 1471086
- Timestamp:
- 08/09/2016 09:11:16 PM (10 years ago)
- Location:
- wp-bootstrap-widgets
- Files:
-
- 6 edited
- 1 copied
-
tags/0.2.2 (copied) (copied from wp-bootstrap-widgets/trunk)
-
tags/0.2.2/README.txt (modified) (2 diffs)
-
tags/0.2.2/widgets/embed.php (modified) (3 diffs)
-
tags/0.2.2/wp-bootstrap-widgets.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/widgets/embed.php (modified) (3 diffs)
-
trunk/wp-bootstrap-widgets.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-bootstrap-widgets/tags/0.2.2/README.txt
r1447323 r1471086 4 4 Requires at least: 4.0 5 5 Tested up to: 4.5.2 6 Stable tag: 0.2. 16 Stable tag: 0.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 0.2.2 = 37 * Add optional title to Responsive Embed component. 38 36 39 = 0.2 = 37 40 * Add navbar widget support, with brand name, logo and color. -
wp-bootstrap-widgets/tags/0.2.2/widgets/embed.php
r1445949 r1471086 38 38 $aspect_ratio = isset( $instance['aspect_ratio'] ) ? $instance['aspect_ratio'] : 'embed-responsive-16by9'; 39 39 $code = isset( $instance['code'] ) ? $instance['code'] : ''; 40 $title = isset( $instance['title'] ) ? $instance['title'] : ''; 40 41 echo $args['before_widget']; 42 if ( ! empty( $title ) ) { 43 echo $args['before_title'] . $title . $args['after_title']; 44 } 41 45 ?> 42 46 <div class="embed-responsive <?php echo $aspect_ratio; ?>"> … … 55 59 */ 56 60 public function form( $instance ) { 61 $this->form_field_title( $instance ); 57 62 $this->form_field_code( $instance ); 58 63 $this->form_field_aspect_ratio( $instance ); 64 } 65 66 /** 67 * @param $instance 68 */ 69 public function form_field_title( $instance ) { 70 $id = $this->get_field_id( 'title' ); 71 $name = $this->get_field_name( 'title' ); 72 $value = isset( $instance['title'] ) ? $instance['title'] : ''; 73 wpbw_field_text( $name, __( 'Title <em>(optional)</em>:' ), compact( 'id' ), $value ); 59 74 } 60 75 … … 104 119 $instance['code'] = $this->filter_code_field( $new_instance['code'] ); 105 120 $instance['aspect_ratio'] = strip_tags( $new_instance['aspect_ratio'] ); 121 $instance['title'] = strip_tags( $new_instance['title'] ); 106 122 107 123 return $instance; -
wp-bootstrap-widgets/tags/0.2.2/wp-bootstrap-widgets.php
r1447323 r1471086 4 4 Plugin URI: https://github.com/glhd/wp-bootstrap-widgets 5 5 Description: Bootstrap Components as WordPress Widgets 6 Version: 0.2. 16 Version: 0.2.2 7 7 Author: Galahad, Inc. 8 8 Author URI: http://glhd.org/ -
wp-bootstrap-widgets/trunk/README.txt
r1447323 r1471086 4 4 Requires at least: 4.0 5 5 Tested up to: 4.5.2 6 Stable tag: 0.2. 16 Stable tag: 0.2.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 34 34 == Changelog == 35 35 36 = 0.2.2 = 37 * Add optional title to Responsive Embed component. 38 36 39 = 0.2 = 37 40 * Add navbar widget support, with brand name, logo and color. -
wp-bootstrap-widgets/trunk/widgets/embed.php
r1445949 r1471086 38 38 $aspect_ratio = isset( $instance['aspect_ratio'] ) ? $instance['aspect_ratio'] : 'embed-responsive-16by9'; 39 39 $code = isset( $instance['code'] ) ? $instance['code'] : ''; 40 $title = isset( $instance['title'] ) ? $instance['title'] : ''; 40 41 echo $args['before_widget']; 42 if ( ! empty( $title ) ) { 43 echo $args['before_title'] . $title . $args['after_title']; 44 } 41 45 ?> 42 46 <div class="embed-responsive <?php echo $aspect_ratio; ?>"> … … 55 59 */ 56 60 public function form( $instance ) { 61 $this->form_field_title( $instance ); 57 62 $this->form_field_code( $instance ); 58 63 $this->form_field_aspect_ratio( $instance ); 64 } 65 66 /** 67 * @param $instance 68 */ 69 public function form_field_title( $instance ) { 70 $id = $this->get_field_id( 'title' ); 71 $name = $this->get_field_name( 'title' ); 72 $value = isset( $instance['title'] ) ? $instance['title'] : ''; 73 wpbw_field_text( $name, __( 'Title <em>(optional)</em>:' ), compact( 'id' ), $value ); 59 74 } 60 75 … … 104 119 $instance['code'] = $this->filter_code_field( $new_instance['code'] ); 105 120 $instance['aspect_ratio'] = strip_tags( $new_instance['aspect_ratio'] ); 121 $instance['title'] = strip_tags( $new_instance['title'] ); 106 122 107 123 return $instance; -
wp-bootstrap-widgets/trunk/wp-bootstrap-widgets.php
r1447323 r1471086 4 4 Plugin URI: https://github.com/glhd/wp-bootstrap-widgets 5 5 Description: Bootstrap Components as WordPress Widgets 6 Version: 0.2. 16 Version: 0.2.2 7 7 Author: Galahad, Inc. 8 8 Author URI: http://glhd.org/
Note: See TracChangeset
for help on using the changeset viewer.