Plugin Directory

Changeset 746006


Ignore:
Timestamp:
07/25/2013 02:27:00 AM (13 years ago)
Author:
pirmax
Message:

Mise à jour.

Location:
minecraft-onlineusers-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • minecraft-onlineusers-widget/trunk/readme.txt

    r745999 r746006  
    2929== Changelog ==
    3030
    31 = 2.1 =
     31= 2.2 =
    3232
    3333* Ajout d'une option pour modifier le CSS du Widget
  • minecraft-onlineusers-widget/trunk/widget.php

    r745999 r746006  
    33/**
    44 * @package Minecraft Online Users Widget
    5  * @version 2.1
     5 * @version 2.2
    66 */
    77/*
     
    1010Description: Plugin Widget permettant d'afficher les joueurs en ligne d'un serveur dans le menu du blog.
    1111Author: pirmax
    12 Version: 2.1
     12Version: 2.2
    1313Author URI: http://pirmax.fr/
    1414*/
     
    4343            "serverip" => "play.minefight.fr",
    4444            "serverport" => "25565",
    45             "displayAvatar" => 1,
    46             "displayCount" => 1,
     45            "displayAvatar" => "on",
     46            "displayCount" => "on",
    4747            "nbSlot" => 30,
    4848            "avatarSize" => 25,
     
    6464    margin-left: 20px;
    6565    font-weight: bold;
    66 }",
    67             "format_data" => ""
     66}"
    6867        );
    6968        $instance = wp_parse_args($instance, $defaut);
     
    8685            }
    8786
    88             $displayWidget = '';
     87            $displayWidget = '<style>' . $instance['styleCSS'] . '</style>';
    8988
    9089            extract($args);
     
    146145            "serverip" => "play.minefight.fr",
    147146            "serverport" => "25565",
    148             "displayAvatar" => 1,
    149             "displayCount" => 1,
     147            "displayAvatar" => "on",
     148            "displayCount" => "on",
    150149            "nbSlot" => 30,
    151150            "avatarSize" => 25,
     
    167166    margin-left: 20px;
    168167    font-weight: bold;
    169 }",
    170             "format_data" => ""
     168}"
    171169        );
    172170        $d = wp_parse_args($d, $defaut);
     
    204202        </p>
    205203        <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>
    208206        </p>
    209207        <p style="border-bottom: 1px dashed #CCCCCC; padding-bottom: 5px;">
Note: See TracChangeset for help on using the changeset viewer.