Changeset 1444809
- Timestamp:
- 06/28/2016 08:42:47 AM (10 years ago)
- File:
-
- 1 edited
-
wp-wadvisor/trunk/widget-wadvisor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-wadvisor/trunk/widget-wadvisor.php
r1412102 r1444809 31 31 parent::__construct( 32 32 'Wadvisor_Page_Widget', // Base ID 33 __(' Wadvisor page widget', 'wadvisor_page_widget_domain'), // Widget name will appear in UI34 array( 'description' => __( 'Generates a Wadvisor Page feed in your widget area.', 'wadvisor_page_widget_domain'), ) // Args33 __('wadvisor-page-widget-name', 'wp-wadvisor'), // Widget name will appear in UI 34 array( 'description' => __('wadvisor-page-widget-description', 'wp-wadvisor'), ) // Args 35 35 ); 36 36 … … 140 140 $title = $instance[ 'title' ]; 141 141 } else { 142 $title = __( 'Widget title', 'wadvisor_page_widget_domain');142 $title = __('wadvisor-page-widget-default-title', 'wp-wadvisor'); 143 143 } 144 144 if ( isset( $instance[ 'id' ] ) ) { … … 179 179 ?> 180 180 <p> 181 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:'); ?></label>181 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('wadvisor-page-widget-label-title', 'wp-wadvisor'); ?></label> 182 182 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" 183 183 </p> 184 184 <p> 185 <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Page id*:'); ?></label>185 <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e('wadvisor-page-widget-label-id', 'wp-wadvisor'); ?></label> 186 186 <input class="widefat" id="<?php echo $this->get_field_id( 'id' ); ?>" name="<?php echo $this->get_field_name( 'id' ); ?>" type="text" value="<?php echo esc_attr( $id ); ?>" required="required"> 187 187 </p> 188 188 <p> 189 <label for="<?php echo $this->get_field_id( 'default_lang' ); ?>"><?php _e( 'Default language:'); ?></label>189 <label for="<?php echo $this->get_field_id( 'default_lang' ); ?>"><?php _e('wadvisor-page-widget-label-default-language', 'wp-wadvisor'); ?></label> 190 190 <select class="widefat" id="<?php echo $this->get_field_id( 'default_lang' ); ?>" name="<?php echo $this->get_field_name( 'default_lang' ); ?>"> 191 <option value=""> Auto</option>192 <option value="fr-fr" <?php echo ($default_lang=='fr-fr')?'selected':''; ?>> French (France)</option>193 <option value="en-us" <?php echo ($default_lang=='en-us')?'selected':''; ?>> English (US)</option>194 <option value="en-gb" <?php echo ($default_lang=='en-gb')?'selected':''; ?>> English (UK)</option>191 <option value=""><?php _e('wadvisor-page-widget-label-language-auto', 'wp-wadvisor'); ?></option> 192 <option value="fr-fr" <?php echo ($default_lang=='fr-fr')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-fr-fr', 'wp-wadvisor'); ?></option> 193 <option value="en-us" <?php echo ($default_lang=='en-us')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-en-us', 'wp-wadvisor'); ?></option> 194 <option value="en-gb" <?php echo ($default_lang=='en-gb')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-en-gb', 'wp-wadvisor'); ?></option> 195 195 </select> 196 196 </p> 197 197 <p> 198 <label for="<?php echo $this->get_field_id( 'show_covers' ); ?>"><?php _e( 'Show covers:'); ?></label>198 <label for="<?php echo $this->get_field_id( 'show_covers' ); ?>"><?php _e('wadvisor-page-widget-label-show-covers', 'wp-wadvisor'); ?></label> 199 199 <input class="widefat" id="<?php echo $this->get_field_id( 'show_covers' ); ?>" name="<?php echo $this->get_field_name( 'show_covers' ); ?>" type="checkbox" value="true" <?php echo ($show_covers=='true')?'checked':''; ?>> 200 200 </p> 201 201 <p> 202 <label for="<?php echo $this->get_field_id( 'show_followers' ); ?>"><?php _e( 'Show followers:'); ?></label>202 <label for="<?php echo $this->get_field_id( 'show_followers' ); ?>"><?php _e('wadvisor-page-widget-label-show-followers', 'wp-wadvisor'); ?></label> 203 203 <input class="widefat" id="<?php echo $this->get_field_id( 'show_followers' ); ?>" name="<?php echo $this->get_field_name( 'show_followers' ); ?>" type="checkbox" value="true" <?php echo ($show_followers=='true')?'checked':''; ?>> 204 204 </p> 205 205 <p> 206 <label for="<?php echo $this->get_field_id( 'show_questions' ); ?>"><?php _e( 'Show questions:'); ?></label>206 <label for="<?php echo $this->get_field_id( 'show_questions' ); ?>"><?php _e('wadvisor-page-widget-label-show-questions', 'wp-wadvisor'); ?></label> 207 207 <input class="widefat" id="<?php echo $this->get_field_id( 'show_questions' ); ?>" name="<?php echo $this->get_field_name( 'show_questions' ); ?>" type="checkbox" value="true" <?php echo ($show_questions=='true')?'checked':''; ?>> 208 208 </p> 209 209 <p> 210 <label for="<?php echo $this->get_field_id( 'questions_limit' ); ?>"><?php _e( 'Questions limit:'); ?></label>210 <label for="<?php echo $this->get_field_id( 'questions_limit' ); ?>"><?php _e('wadvisor-page-widget-label-questions-limit', 'wp-wadvisor'); ?></label> 211 211 <input class="widefat" id="<?php echo $this->get_field_id( 'questions_limit' ); ?>" name="<?php echo $this->get_field_name( 'questions_limit' ); ?>" type="text" value="<?php echo esc_attr( $questions_limit ); ?>"> 212 212 </p> 213 213 <p> 214 <label for="<?php echo $this->get_field_id( 'questions_max_height' ); ?>"><?php _e( 'Questions max height:'); ?></label>214 <label for="<?php echo $this->get_field_id( 'questions_max_height' ); ?>"><?php _e('wadvisor-page-widget-label-max-height', 'wp-wadvisor'); ?></label> 215 215 <input class="widefat" id="<?php echo $this->get_field_id( 'questions_max_height' ); ?>" name="<?php echo $this->get_field_name( 'questions_max_height' ); ?>" type="text" value="<?php echo esc_attr( $questions_max_height ); ?>"> 216 216 </p>
Note: See TracChangeset
for help on using the changeset viewer.