Changeset 715213
- Timestamp:
- 05/19/2013 12:07:33 PM (13 years ago)
- File:
-
- 1 edited
-
live-stream-badger/trunk/stream-status-widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
live-stream-badger/trunk/stream-status-widget.php
r714858 r715213 157 157 ?> 158 158 <p> 159 <label name="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title' ); ?></label> 160 <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" 161 name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $title; ?>"/> 162 </p> 163 <p> 164 <label name="<?php echo $this->get_field_id( 'menu_id' ); ?>"><?php _e( 'Select menu:' ); ?></label> 165 <select name="<?php echo $this->get_field_name( 'menu_id' ); ?>" 166 id="<?php echo $this->get_field_id( 'menu_id' ); ?>"> 167 <?php 168 foreach ( $menus as $menu ) { 169 echo '<option value="' . $menu->term_id . '"' . selected( $menu_id, $menu->term_id, FALSE ) . '>' . $menu->name . '</option>'; 170 } 171 ?> 172 </select> 173 </p> 174 <p> 175 <label name="<?php echo $this->get_field_id( 'display_type' ); ?>"><?php _e( 'Display type:' ); ?></label> 176 <select name="<?php echo $this->get_field_name( 'display_type' ); ?>"" 177 id="<?php echo $this->get_field_id( 'display_type' ); ?>"> 178 <option value="text" <?php selected( $display_type, 'text' ) ?>>Text</option> 179 <option value="screen_cap" <?php selected( $display_type, 'screen_cap' ) ?>>Screen Capture</option> 180 <option value="image" <?php selected( $display_type, 'image' ) ?>>Channel's image</option> 181 </select> 182 </p> 183 <p> 184 <label name="<?php echo $this->get_field_id( 'hide_offline' ); ?>"><?php _e( 'Hide offline?' ); ?></label> 185 <input type="checkbox" id="<?php echo $this->get_field_id( 'hide_offline' ); ?>" 186 name="<?php echo $this->get_field_name( 'hide_offline' ); ?>" <?php checked( $hide_offline ) ?> 187 value="1"/> 188 </p> 189 <p> 190 <label name="<?php echo $this->get_field_id( 'hide_offline_images' ); ?>"><?php _e( 'Hide offline images?' ); ?></label> 191 <input type="checkbox" id="<?php echo $this->get_field_id( 'hide_offline_images' ); ?>" 192 name="<?php echo $this->get_field_name( 'hide_offline_images' ); ?>" <?php checked( $hide_offline_images ) ?> 193 value="1"/> 159 <label> 160 <?php _e( 'Title' ); ?> 161 <input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" 162 value="<?php echo $title; ?>"/> 163 </label> 164 </p> 165 <p> 166 <label> 167 <?php _e( 'Select menu containing stream links:' ); ?> 168 <select class="widefat" name="<?php echo $this->get_field_name( 'menu_id' ); ?>" id="<?php echo $this->get_field_id( 'menu_id' ); ?>"> 169 <?php 170 foreach ( $menus as $menu ) { 171 echo '<option value="' . $menu->term_id . '"' . selected( $menu_id, $menu->term_id, FALSE ) . '>' . $menu->name . '</option>'; 172 } 173 ?> 174 </select> 175 </label> 176 </p> 177 <p> 178 <label> 179 <?php _e( 'Display type:' ); ?> 180 <select name="<?php echo $this->get_field_name( 'display_type' ); ?>" id="<?php echo $this->get_field_id( 'display_type' ); ?>"> 181 <option value="text" <?php selected( $display_type, 'text' ) ?>>Text</option> 182 <option value="screen_cap" <?php selected( $display_type, 'screen_cap' ) ?>>Screen Capture</option> 183 <option value="image" <?php selected( $display_type, 'image' ) ?>>Channel's image</option> 184 </select> 185 </label> 186 </p> 187 <p> 188 <label> 189 <input type="checkbox" id="<?php echo $this->get_field_id( 'hide_offline' ); ?>" name="<?php echo $this->get_field_name( 'hide_offline' ); ?>" 190 <?php checked( $hide_offline ) ?> value="1"/> 191 <?php _e( 'Hide offline?' ); ?> 192 </label> 193 </p> 194 <p> 195 <label> 196 <input type="checkbox" id="<?php echo $this->get_field_id( 'hide_offline_images' ); ?>" name="<?php echo $this->get_field_name( 'hide_offline_images' ); ?>" 197 <?php checked( $hide_offline_images ) ?> value="1"/> 198 <?php _e( 'Hide offline images?' ); ?> 199 </label> 194 200 </p> 195 201 <?php
Note: See TracChangeset
for help on using the changeset viewer.