Changeset 1306839
- Timestamp:
- 12/12/2015 11:38:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fbook-page-widget-ex-like-box/trunk/wpvote-fbook-likebox-page.php
r1301083 r1306839 16 16 parent::__construct( 17 17 'vote_fb_like_box', /* Base ID */ 18 __( 'WPvote Facebook Likebox', ' vote-fb-likebox' ), /* Name */19 array( 'description' => __( 'WPvote Likebox Widget!', ' vote-fb-likebox' ), ) /* Args */18 __( 'WPvote Facebook Likebox', 'fbook-page-widget-ex-like-box' ), /* Name */ 19 array( 'description' => __( 'WPvote Likebox Widget!', 'fbook-page-widget-ex-like-box' ), ) /* Args */ 20 20 ); 21 21 } … … 25 25 public function form( $instance ) { 26 26 $instance = wp_parse_args( (array) $instance, array('title'=>'', 'width'=>'300', 'height'=>'280','page_name'=>'https://www.facebook.com/WpVote-394137057376939','show_friends_faces'=>'on','show_header'=>'on','show_post'=>'on','langlocale'=>'en_US','show_small'=>'','sdk_include'=>'on' )); 27 if ( isset( $instance['title'] ) ) { $title = $instance['title']; } else { $title = __( 'Support us', ' vote-fb-likebox' ); }27 if ( isset( $instance['title'] ) ) { $title = $instance['title']; } else { $title = __( 'Support us', 'fbook-page-widget-ex-like-box' ); } 28 28 if ( isset( $instance['width'] ) ) { $width = $instance['width']; }else{ $width="300";} 29 29 if ( isset( $instance['height'] ) ) { $height = $instance['height']; }else{ $height="280";} … … 37 37 ?> 38 38 <p> 39 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title' ); ?>:</label>39 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title','fbook-page-widget-ex-like-box' ); ?>:</label> 40 40 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" 41 41 name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" … … 45 45 <p> 46 46 <label 47 for="<?php echo $this->get_field_id( 'page_name' ); ?>"><?php _e( 'Facebook Page URL' ); ?>:</label>47 for="<?php echo $this->get_field_id( 'page_name' ); ?>"><?php _e( 'Facebook Page URL','fbook-page-widget-ex-like-box' ); ?>:</label> 48 48 <input class="widefat" id="<?php echo $this->get_field_id( 'page_name' ); ?>" 49 49 name="<?php echo $this->get_field_name( 'page_name' ); ?>" type="text" … … 56 56 value="on" <?php checked( $show_friends_faces, 'on' ); ?>> 57 57 <label 58 for="<?php echo $this->get_field_id( 'show_friends_faces' ); ?>"><?php _e( 'Show Friends\' Faces' ); ?></label>58 for="<?php echo $this->get_field_id( 'show_friends_faces' ); ?>"><?php _e( 'Show Friends\' Faces','fbook-page-widget-ex-like-box' ); ?></label> 59 59 </p> 60 60 … … 63 63 name="<?php echo $this->get_field_name( 'show_header' ); ?>" type="checkbox" 64 64 value="on" <?php checked( $header_page, 'on' ); ?>> 65 <label for="<?php echo $this->get_field_id( 'show_header' ); ?>"><?php _e( 'Show Header' ); ?></label>65 <label for="<?php echo $this->get_field_id( 'show_header' ); ?>"><?php _e( 'Show Header','fbook-page-widget-ex-like-box' ); ?></label> 66 66 </p> 67 67 … … 70 70 name="<?php echo $this->get_field_name( 'show_small' ); ?>" type="checkbox" 71 71 value="on" <?php checked( $header_small, 'on' ); ?>> 72 <label for="<?php echo $this->get_field_id( 'show_small' ); ?>"><?php _e( 'Show Small Header' ); ?></label>72 <label for="<?php echo $this->get_field_id( 'show_small' ); ?>"><?php _e( 'Show Small Header','fbook-page-widget-ex-like-box' ); ?></label> 73 73 </p> 74 74 … … 77 77 name="<?php echo $this->get_field_name( 'show_post' ); ?>" type="checkbox" 78 78 value="on" <?php checked( $show_post, 'on' ); ?>> 79 <label for="<?php echo $this->get_field_id( 'show_post' ); ?>"><?php _e( 'Show Posts' ); ?></label>79 <label for="<?php echo $this->get_field_id( 'show_post' ); ?>"><?php _e( 'Show Posts','fbook-page-widget-ex-like-box' ); ?></label> 80 80 </p> 81 81 … … 84 84 name="<?php echo $this->get_field_name( 'sdk_include' ); ?>" type="checkbox" 85 85 value="on" <?php checked( $sdk_inc, 'on' ); ?>> 86 <label for="<?php echo $this->get_field_id( 'sdk_include' ); ?>"><?php _e( 'Facebook SDK include' ); ?></label>86 <label for="<?php echo $this->get_field_id( 'sdk_include' ); ?>"><?php _e( 'Facebook SDK include','fbook-page-widget-ex-like-box' ); ?></label> 87 87 </p> 88 88 … … 90 90 <p> 91 91 <label 92 for="<?php echo $this->get_field_id( 'width' ); ?>"><?php _e( 'Width' ); ?>:</label>92 for="<?php echo $this->get_field_id( 'width' ); ?>"><?php _e( 'Width','fbook-page-widget-ex-like-box' ); ?>:</label> 93 93 <input class="widefat" id="<?php echo $this->get_field_id( 'width' ); ?>" 94 94 name="<?php echo $this->get_field_name( 'width' ); ?>" type="text" … … 98 98 <p> 99 99 <label 100 for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height' ); ?>:</label>100 for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height','fbook-page-widget-ex-like-box' ); ?>:</label> 101 101 <input class="widefat" id="<?php echo $this->get_field_id( 'height' ); ?>" 102 102 name="<?php echo $this->get_field_name( 'height' ); ?>" type="text" … … 106 106 <p> 107 107 <?php 108 echo '<p style="text-align:left;"><label for="' . $this->get_field_name('langlocale') . '"> Set Language locale: <select name="' . $this->get_field_name('langlocale') . '" id="' . $this->get_field_id('langlocale') . '">"';108 echo '<p style="text-align:left;"><label for="' . $this->get_field_name('langlocale') . '">'._e('Set lang. locale','fbook-page-widget-ex-like-box').': <select name="' . $this->get_field_name('langlocale') . '" id="' . $this->get_field_id('langlocale') . '">"'; 109 109 ?> 110 110 <option value="af_ZA" <?php if ($langlocalee == 'af_ZA') echo 'selected="af_ZA"'; ?> >Afrikaans</option>
Note: See TracChangeset
for help on using the changeset viewer.