Changeset 746006
- Timestamp:
- 07/25/2013 02:27:00 AM (13 years ago)
- Location:
- minecraft-onlineusers-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
widget.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
minecraft-onlineusers-widget/trunk/readme.txt
r745999 r746006 29 29 == Changelog == 30 30 31 = 2. 1=31 = 2.2 = 32 32 33 33 * Ajout d'une option pour modifier le CSS du Widget -
minecraft-onlineusers-widget/trunk/widget.php
r745999 r746006 3 3 /** 4 4 * @package Minecraft Online Users Widget 5 * @version 2. 15 * @version 2.2 6 6 */ 7 7 /* … … 10 10 Description: Plugin Widget permettant d'afficher les joueurs en ligne d'un serveur dans le menu du blog. 11 11 Author: pirmax 12 Version: 2. 112 Version: 2.2 13 13 Author URI: http://pirmax.fr/ 14 14 */ … … 43 43 "serverip" => "play.minefight.fr", 44 44 "serverport" => "25565", 45 "displayAvatar" => 1,46 "displayCount" => 1,45 "displayAvatar" => "on", 46 "displayCount" => "on", 47 47 "nbSlot" => 30, 48 48 "avatarSize" => 25, … … 64 64 margin-left: 20px; 65 65 font-weight: bold; 66 }", 67 "format_data" => "" 66 }" 68 67 ); 69 68 $instance = wp_parse_args($instance, $defaut); … … 86 85 } 87 86 88 $displayWidget = ' ';87 $displayWidget = '<style>' . $instance['styleCSS'] . '</style>'; 89 88 90 89 extract($args); … … 146 145 "serverip" => "play.minefight.fr", 147 146 "serverport" => "25565", 148 "displayAvatar" => 1,149 "displayCount" => 1,147 "displayAvatar" => "on", 148 "displayCount" => "on", 150 149 "nbSlot" => 30, 151 150 "avatarSize" => 25, … … 167 166 margin-left: 20px; 168 167 font-weight: bold; 169 }", 170 "format_data" => "" 168 }" 171 169 ); 172 170 $d = wp_parse_args($d, $defaut); … … 204 202 </p> 205 203 <p> 206 <label for="<?php echo $this->get_field_id('displayAvatar'); ?>"><input name="<?php echo $this->get_field_name('displayAvatar'); ?>" id="<?php echo $this->get_field_id('displayAvatar'); ?>" type="checkbox" <?php if($d['displayAvatar'] == 1){ echo 'checked'; } ?> /> Afficher l'avatar des joueurs</label><br />207 <label for="<?php echo $this->get_field_id('displayCount'); ?>"><input name="<?php echo $this->get_field_name('displayCount'); ?>" id="<?php echo $this->get_field_id('displayCount'); ?>" type="checkbox" <?php if($d['displayCount'] == 1){ echo 'checked'; } ?> /> Afficher le nombre de joueur en ligne</label>204 <label for="<?php echo $this->get_field_id('displayAvatar'); ?>"><input name="<?php echo $this->get_field_name('displayAvatar'); ?>" id="<?php echo $this->get_field_id('displayAvatar'); ?>" type="checkbox" <?php if($d['displayAvatar'] == 'on'){ echo 'checked'; } ?> /> Afficher l'avatar des joueurs</label><br /> 205 <label for="<?php echo $this->get_field_id('displayCount'); ?>"><input name="<?php echo $this->get_field_name('displayCount'); ?>" id="<?php echo $this->get_field_id('displayCount'); ?>" type="checkbox" <?php if($d['displayCount'] == 'on'){ echo 'checked'; } ?> /> Afficher le nombre de joueur en ligne</label> 208 206 </p> 209 207 <p style="border-bottom: 1px dashed #CCCCCC; padding-bottom: 5px;">
Note: See TracChangeset
for help on using the changeset viewer.